:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #171717;
  --muted: #616161;
  --line: rgba(23, 23, 23, 0.08);
  --accent: #1f8f55;
  --accent-soft: rgba(31, 143, 85, 0.12);
  --accent-warm: #ffb948;
  --shadow: 0 18px 60px rgba(31, 39, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 185, 72, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 143, 85, 0.14), transparent 26%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 143, 85, 0.18);
}

.brand strong,
.section-head h2,
.hero h1,
.spotlight-body h2,
.current-card h3,
.tool-card h3 {
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span,
.site-nav a,
.section-head p,
.eyebrow,
.tool-kind,
.status,
.card-kicker,
.site-footer p:last-child {
  color: var(--muted);
}

.brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero,
.current-card,
.about-card {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  padding: 28px 0 48px;
}

.eyebrow,
.section-head p,
.card-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.hero-text,
.spotlight-body p,
.current-card p,
.tool-card p,
.about-card p,
.feature-bullets li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.button.primary:hover {
  background: #000;
}

.button.secondary:hover {
  border-color: rgba(23, 23, 23, 0.2);
}

.hero-points,
.feature-bullets {
  margin: 22px 0 0;
  padding: 0 0 0 18px;
}

.hero-points li,
.feature-bullets li {
  margin: 10px 0;
}

.spotlight-card,
.current-card,
.tool-card,
.about-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-poster {
  display: block;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(31, 143, 85, 0.12), transparent 36%),
    linear-gradient(180deg, #f6f6f6, #f0f0f0);
}

.spotlight-banner {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.spotlight-body {
  padding: 20px 22px 22px;
}

.spotlight-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.spotlight-tag,
.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.spotlight-body h2,
.current-card h3,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.35rem);
}

.spotlight-body p {
  margin: 12px 0 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row span {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 28px 0 14px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.current-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.45fr);
  padding: 28px;
}

.current-card h3 {
  margin-top: 0;
  font-size: 2rem;
}

.current-side {
  display: grid;
  gap: 14px;
}

.mini-stat {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.mini-stat strong {
  display: block;
  font-size: 1.4rem;
}

.mini-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.mini-program-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.mini-program-card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.mini-program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.mini-program-qr {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  padding: 22px;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.status.live {
  color: var(--accent);
  background: var(--accent-soft);
}

.status.building {
  color: #8a5a00;
  background: rgba(255, 185, 72, 0.18);
}

.tool-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.text-link {
  justify-content: flex-start;
  min-height: auto;
  padding: 0;
  margin-top: 14px;
  color: var(--text);
}

.text-link.muted {
  color: var(--muted);
}

.about-card {
  padding: 28px;
}

.about-card p {
  margin: 0;
}

.about-card p + p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-copy {
  display: grid;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  color: var(--muted);
  align-self: flex-end;
}

.icp-link:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero,
  .current-card,
  .tool-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .current-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    gap: 14px;
    padding-top: 14px;
  }

  .site-nav {
    gap: 10px;
    width: 100%;
    font-size: 0.9rem;
  }

  .site-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .hero-text,
  .spotlight-body p,
  .current-card p,
  .tool-card p,
  .about-card p,
  .feature-bullets li {
    font-size: 0.96rem;
    line-height: 1.66;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .current-card,
  .tool-card,
  .about-card {
    padding: 18px;
  }

  .spotlight-body {
    padding: 18px;
  }

  .spotlight-poster {
    padding: 18px;
  }

  .current-side {
    grid-template-columns: 1fr;
  }

  .current-card h3 {
    font-size: 1.55rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section {
    padding: 18px 0 10px;
  }

  .site-footer {
    gap: 8px;
    padding: 26px 0 34px;
    font-size: 0.88rem;
  }

  .icp-link {
    align-self: flex-start;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .spotlight-body h2,
  .section-head h2 {
    font-size: 1.35rem;
  }

}
