:root {
  --bg: #f4ecdd;
  --surface: rgba(255, 251, 245, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ink: #132538;
  --muted: #617387;
  --navy: #163b57;
  --teal: #0f6c69;
  --gold: #bf8742;
  --line: rgba(19, 37, 56, 0.10);
  --line-strong: rgba(19, 37, 56, 0.18);
  --shadow: 0 22px 70px rgba(17, 36, 55, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --wrap: min(1240px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 108, 105, 0.12), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(191, 135, 66, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f0e3 0%, #f6f7f4 44%, #edf3f6 100%);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 37, 56, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 37, 56, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 74%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 240, 227, 0.78);
  border-bottom: 1px solid rgba(19, 37, 56, 0.08);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(22, 59, 87, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a,
.header-cta,
.btn,
.toolbar-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  background: rgba(22, 59, 87, 0.08);
  color: var(--ink);
}

.header-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(22, 59, 87, 0.22);
}

.hero-block {
  padding: 42px 0 24px;
}

.hero-grid,
.studio-grid,
.feature-grid,
.showcase-grid,
.timeline-grid,
.footer-grid,
.hero-metrics,
.meta-grid,
.field-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-card,
.timeline-card,
.showcase-card,
.studio-sidebar .side-card,
.studio-form-card,
.studio-result-card,
.metric-card,
.meta-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 52px;
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 135, 66, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.98), rgba(244, 248, 250, 0.94));
}

.eyebrow,
.soft-pill,
.mode-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.soft-pill {
  color: var(--navy);
  background: rgba(22, 59, 87, 0.08);
}

.hero-copy h1,
.section-head h2 {
  margin: 18px 0 14px;
  font-family: "KaiTi", "STKaiti", serif;
  line-height: 1.12;
}

.hero-copy h1 {
  font-size: clamp(42px, 5vw, 72px);
  max-width: 8.8em;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.result-toolbar,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.toolbar-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.btn:hover,
.toolbar-btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.btn-primary,
.toolbar-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 16px 30px rgba(22, 59, 87, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
}

.hero-metrics {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 20px;
}

.metric-card span,
.hero-panel-top p,
.hero-panel-note p,
.section-head p,
.feature-card p,
.showcase-card p,
.timeline-card p,
.meta-box,
.field span,
.field input,
.field textarea,
.field select,
.history-item p,
.usage-box,
.site-footer p,
.card-head p,
.empty-state p,
.result-box {
  color: var(--muted);
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(22, 59, 87, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(242, 247, 250, 0.94));
}

.hero-panel-top,
.hero-panel-card,
.hero-panel-note,
.common-panel,
.notice-box,
.history-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 37, 56, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.hero-panel-card h3,
.feature-card h3,
.timeline-card h3,
.showcase-card h3,
.side-card h3,
.card-head h3,
.history-item strong {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink);
}

.hero-panel-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.hero-panel-note strong,
.meta-box strong,
.showcase-meta strong,
.timeline-card span,
.side-card-head h3,
.badge-count {
  color: var(--navy);
}

.section,
.studio-section {
  padding: 34px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.46), rgba(241, 246, 249, 0.26));
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  max-width: 10em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
}

.showcase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92));
}

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

.showcase-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(22, 59, 87, 0.18);
}

.showcase-meta {
  display: grid;
  gap: 10px;
}

.showcase-meta div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 108, 105, 0.04);
  border: 1px solid rgba(19, 37, 56, 0.06);
}

.showcase-meta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 59, 87, 0.06);
  border: 1px solid rgba(19, 37, 56, 0.08);
  font-size: 13px;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
  padding: 24px;
}

.timeline-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-weight: 800;
}

.studio-section {
  padding-bottom: 54px;
}

.studio-head {
  align-items: end;
}

.studio-grid {
  grid-template-columns: 290px 1fr 1fr;
  align-items: start;
}

.studio-sidebar,
.studio-form-card,
.studio-result-card {
  min-height: 100%;
}

.studio-sidebar {
  display: grid;
  gap: 18px;
}

.side-card,
.studio-form-card,
.studio-result-card {
  padding: 24px;
}

.side-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.case-list,
.history-list {
  display: grid;
  gap: 12px;
}

.case-item,
.history-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.case-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 37, 56, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.case-item:hover,
.history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 59, 87, 0.18);
}

.case-item.active {
  background: linear-gradient(135deg, rgba(22, 59, 87, 0.96), rgba(15, 108, 105, 0.92));
  color: #fff;
}

.case-item.active p,
.case-item.active .case-index {
  color: rgba(255, 255, 255, 0.82);
}

.case-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.case-index {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(22, 59, 87, 0.08);
  color: var(--navy);
  font-weight: 800;
}

.case-item h4 {
  margin: 0;
  font-size: 16px;
}

.case-item p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.side-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.side-card-head h3 {
  margin: 0;
}

.badge-count {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 59, 87, 0.08);
  font-weight: 800;
}

.history-item {
  padding: 14px;
  border: 1px solid rgba(19, 37, 56, 0.08);
}

.history-item .history-time {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-item p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-head h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.card-head p {
  margin: 0;
  line-height: 1.8;
}

.mode-tag {
  background: rgba(22, 59, 87, 0.08);
  color: var(--navy);
}

.mode-tag.accent {
  background: rgba(15, 108, 105, 0.10);
  color: var(--teal);
}

.meta-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.meta-box {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.meta-box strong {
  display: block;
  margin-bottom: 12px;
}

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

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(15, 108, 105, 0.44);
  box-shadow: 0 0 0 4px rgba(15, 108, 105, 0.08);
}

.common-panel {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-actions {
  margin-top: 18px;
}

.wide {
  width: 100%;
}

.result-toolbar {
  margin-bottom: 16px;
}

.toolbar-btn {
  border: none;
}

.result-box {
  min-height: 620px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 251, 0.92));
  border: 1px solid rgba(19, 37, 56, 0.08);
  overflow: auto;
  line-height: 1.9;
}

.result-box.empty {
  display: grid;
  place-items: center;
}

.result-box h1,
.result-box h2,
.result-box h3 {
  color: var(--ink);
  line-height: 1.35;
}

.result-box h1 {
  font-size: 28px;
}

.result-box h2 {
  font-size: 22px;
}

.result-box h3 {
  font-size: 18px;
}

.result-box ul {
  padding-left: 20px;
}

.empty-state {
  text-align: center;
  max-width: 360px;
}

.empty-state h4 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--navy);
}

.usage-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22, 59, 87, 0.06);
  border: 1px solid rgba(19, 37, 56, 0.06);
  font-size: 13px;
}

.hidden {
  display: none;
}

.site-footer {
  padding: 0 0 46px;
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px 28px;
  background: rgba(255, 251, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .studio-grid,
  .feature-grid,
  .showcase-grid,
  .timeline-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .section-head p {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100vw - 24px, 100%);
  }

  .nav-row {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .header-cta {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .timeline-card,
  .showcase-card,
  .studio-sidebar .side-card,
  .studio-form-card,
  .studio-result-card,
  .metric-card,
  .meta-box,
  .footer-grid {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .side-card,
  .studio-form-card,
  .studio-result-card {
    padding: 22px;
  }

  .hero-grid,
  .hero-metrics,
  .feature-grid,
  .showcase-grid,
  .timeline-grid,
  .footer-grid,
  .meta-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .card-head {
    flex-direction: column;
  }

  .result-toolbar,
  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .toolbar-btn {
    width: 100%;
  }

  .result-box {
    min-height: 420px;
  }
}
