:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 251, 245, 0.84);
  --surface-strong: #fffdf9;
  --surface-muted: rgba(255, 255, 255, 0.58);
  --ink: #1f2933;
  --ink-soft: #5f6d79;
  --line: rgba(31, 41, 51, 0.09);
  --accent: #126c68;
  --accent-strong: #0a4f4c;
  --accent-soft: rgba(18, 108, 104, 0.12);
  --warm: #d97f31;
  --warm-soft: rgba(217, 127, 49, 0.14);
  --shadow: 0 24px 70px rgba(34, 41, 47, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Aptos", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-heading: "Bahnschrift", "Avenir Next Condensed", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 127, 49, 0.08), transparent 32%),
    radial-gradient(circle at right 20%, rgba(18, 108, 104, 0.12), transparent 36%),
    var(--bg);
  min-height: 100vh;
}

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

button {
  font: inherit;
}

.page-bg {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
}

.page-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(31, 41, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 51, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 72%, transparent 100%);
}

.page-glow {
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.65;
  position: absolute;
}

.page-glow-a {
  background: rgba(18, 108, 104, 0.18);
  width: 320px;
  height: 320px;
  top: 90px;
  right: 8%;
}

.page-glow-b {
  background: rgba(217, 127, 49, 0.16);
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 2%;
}

.page-shell {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 28px 24px 72px;
  position: relative;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 28px;
  padding: 14px 18px;
  position: sticky;
  top: 18px;
  z-index: 20;
}

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

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 14px;
  color: #fdf9f1;
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 42px;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 8px 14px;
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(18, 108, 104, 0.08);
  color: var(--accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.toolbar {
  display: inline-flex;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  min-width: 80px;
  padding: 0 18px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.18);
  color: #fcfaf6;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 41, 51, 0.08);
  color: var(--ink);
}

.button-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 34px rgba(18, 108, 104, 0.24);
  color: #fbf7ef;
}

.app-root {
  display: grid;
  gap: 24px;
}

.panel {
  backdrop-filter: blur(16px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.95fr);
  padding: 22px;
}

.hero-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 248, 241, 0.9) 100%),
    linear-gradient(135deg, rgba(18, 108, 104, 0.06) 0%, rgba(217, 127, 49, 0.08) 100%);
  border: 1px solid rgba(31, 41, 51, 0.06);
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.hero-main::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 60px;
  width: 100%;
}

.eyebrow {
  color: var(--accent-strong);
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 12px;
  max-width: 10ch;
}

.hero-headline {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px;
  max-width: 38rem;
}

.hero-summary {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
  max-width: 46rem;
}

.hero-divider {
  background: linear-gradient(90deg, rgba(18, 108, 104, 0.16), rgba(217, 127, 49, 0.16));
  border-radius: 999px;
  height: 1px;
  margin: 24px 0 22px;
}

.hero-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 8px;
  padding: 10px 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.profile-card,
.stats-card,
.section,
.quote-card {
  padding: 24px;
}

.profile-card {
  background: linear-gradient(180deg, rgba(13, 51, 49, 0.94) 0%, rgba(20, 84, 80, 0.94) 100%);
  border-radius: calc(var(--radius-xl) - 8px);
  color: #f9f5ee;
  overflow: hidden;
  position: relative;
}

.profile-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.profile-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  height: 68px;
  justify-content: center;
  letter-spacing: 0.06em;
  min-width: 68px;
}

.profile-meta-label {
  color: rgba(249, 245, 238, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.profile-meta-value {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-links {
  display: grid;
  gap: 12px;
}

.profile-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  transition: background-color 0.24s ease, transform 0.24s ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.profile-link-label {
  color: rgba(249, 245, 238, 0.7);
  font-size: 0.84rem;
}

.profile-link-value {
  color: #fffaf3;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: right;
}

.stats-card {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92) 0%, rgba(255, 247, 239, 0.92) 100%);
  border: 1px solid rgba(31, 41, 51, 0.06);
  border-radius: calc(var(--radius-xl) - 8px);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  gap: 14px;
}

.stat-item {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.section {
  position: relative;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-subtitle {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
  max-width: 46rem;
}

.cards-grid,
.list-grid {
  display: grid;
  gap: 18px;
}

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

.content-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 249, 243, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
}

.content-card-header {
  display: grid;
  gap: 6px;
}

.content-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.content-card-subtitle {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.bullet-list,
.timeline-points {
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
  line-height: 1.8;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li,
.timeline-points li {
  padding-left: 18px;
  position: relative;
}

.bullet-list li::before,
.timeline-points li::before {
  background: linear-gradient(135deg, var(--accent) 0%, var(--warm) 100%);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0.72em;
  width: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 8px 12px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 250, 245, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.timeline-item::before {
  background: linear-gradient(180deg, var(--accent) 0%, var(--warm) 100%);
  border-radius: 999px;
  content: "";
  height: calc(100% - 44px);
  left: 0;
  position: absolute;
  top: 22px;
  width: 4px;
}

.timeline-item-header {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 16px;
}

.timeline-headline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.timeline-period {
  background: var(--warm-soft);
  border-radius: 999px;
  color: #9f561a;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 8px 12px;
}

.timeline-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline-body {
  display: grid;
  gap: 14px;
  padding-left: 16px;
}

.list-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 249, 243, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.list-item-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.list-item-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.list-item-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.list-item-text {
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.quote-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 248, 241, 0.95) 100%),
    linear-gradient(135deg, rgba(18, 108, 104, 0.08) 0%, rgba(217, 127, 49, 0.12) 100%);
  position: relative;
}

.quote-card::before {
  color: rgba(18, 108, 104, 0.16);
  content: "“";
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 8px;
}

.quote-text {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.9;
  margin: 0;
  max-width: 58rem;
  position: relative;
  z-index: 1;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 2px;
  text-align: center;
}

@media (max-width: 1040px) {
  .topbar {
    border-radius: 28px;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

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

  .toolbar {
    justify-content: flex-end;
  }

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

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

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 14px 56px;
  }

  .topbar {
    gap: 14px;
    padding: 14px;
    top: 12px;
  }

  .brand {
    justify-content: space-between;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar .button {
    flex: 1 1 0;
  }

  .hero,
  .profile-card,
  .stats-card,
  .section,
  .quote-card {
    padding: 18px;
  }

  .hero-main {
    padding: 22px 18px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
    max-width: none;
  }

  .profile-top {
    flex-direction: column;
    gap: 10px;
  }

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

  .timeline-headline,
  .list-item-title-row,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item::before {
    height: 4px;
    left: 18px;
    top: 0;
    width: calc(100% - 36px);
  }

  .timeline-item-header,
  .timeline-body {
    padding-left: 0;
  }

  .quote-card::before {
    font-size: 5rem;
    right: 18px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page-bg,
  .topbar,
  .hero-actions {
    display: none !important;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .panel,
  .hero-main,
  .profile-card,
  .stats-card,
  .section,
  .quote-card,
  .timeline-item,
  .content-card,
  .list-item {
    backdrop-filter: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0;
  }
}
