:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #65635f;
  --paper: #f8f5ef;
  --panel: rgba(255, 252, 245, 0.84);
  --panel-solid: #fffcf5;
  --line: rgba(23, 23, 23, 0.12);
  --teal: #087f8c;
  --amber: #d69b18;
  --coral: #d65a31;
  --mint: #3a9d73;
  --violet: #6f5cc2;
  --shadow: 0 24px 70px rgba(40, 33, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

button,
input,
select {
  font: inherit;
}

#heroCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.78);
  box-shadow: 0 12px 40px rgba(30, 26, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #171717;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #373531;
}

.nav a:hover {
  background: rgba(23, 23, 23, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 96px 0 64px;
  align-items: center;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: #3c3a36;
  font-size: 18px;
  line-height: 1.8;
}

.hero-search,
.hero-panel,
.feature,
.note-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search {
  grid-column: 2;
  padding: 18px;
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.16);
}

.search-row button,
.card-action,
.tab,
.chip,
.link-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.search-row button {
  padding: 0 14px;
}

.hero-panel {
  grid-column: 2;
  align-self: start;
  padding: 20px;
}

.signal {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.signal span {
  color: var(--muted);
  font-size: 13px;
}

.signal strong {
  text-align: right;
}

.meter {
  height: 10px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.06);
}

.meter span {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-size: 24px;
}

.stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.tabs,
.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.chip {
  padding: 0 14px;
}

.tab[aria-selected="true"],
.chip.is-active {
  color: #fff;
  background: #171717;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 22px;
}

.toolbar select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.feature {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.feature-label,
.card-meta,
.tag,
.timeline-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.feature h3 {
  margin: 18px 0 12px;
  font-size: 30px;
  line-height: 1.12;
}

.feature p {
  color: #403d38;
  line-height: 1.75;
}

.feature-ring {
  position: relative;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0 36%, transparent 37%),
    conic-gradient(var(--teal), var(--amber), var(--coral), var(--mint), var(--teal));
}

.feature-ring::after {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--panel-solid);
  content: "";
}

.feature-ring span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
}

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

.card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: 0 16px 48px rgba(35, 30, 22, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 23, 23, 0.3);
  box-shadow: 0 22px 60px rgba(35, 30, 22, 0.16);
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: #48443d;
  line-height: 1.65;
}

.status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.ready {
  background: var(--teal);
}

.status.pending {
  background: var(--amber);
}

.status.draft {
  background: var(--coral);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-action,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.card-action.primary,
.link-button {
  color: #fff;
  border-color: #171717;
  background: #171717;
}

.card-action[aria-disabled="true"] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  cursor: not-allowed;
}

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(23, 23, 23, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.74);
  color: var(--muted);
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  min-height: 230px;
  padding: 20px;
  border-top: 4px solid #171717;
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.84);
  box-shadow: 0 16px 48px rgba(35, 30, 22, 0.1);
}

.timeline-item h3 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.timeline-item p {
  color: #48443d;
  line-height: 1.7;
}

.timeline-step {
  font-size: 28px;
  font-weight: 800;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-grid article {
  min-height: 220px;
  padding: 20px;
}

.note-grid span {
  color: var(--coral);
  font-size: 32px;
  font-weight: 800;
}

.note-grid h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.note-grid p {
  color: #48443d;
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .resource-layout,
  .timeline,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-search,
  .hero-panel {
    grid-column: 1;
  }

  .feature {
    position: static;
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .topbar,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .search-row,
  .stats,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select {
    width: 100%;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
  }

  .card {
    min-height: 0;
  }

  .footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
