:root {
  --sky: #eef9ff;
  --sky-2: #dff2ff;
  --blue: #5eb8ec;
  --blue-deep: #2f8fd8;
  --blue-soft: #a9dcf5;
  --blue-pale: #e8f6ff;
  --ink: #28527a;
  --ink-soft: #3f6d95;
  --muted: #6d93b3;
  --line: #cfe8fa;
  --white: #ffffff;
  --mint: #bdeee3;
  --peach: #ffe1cf;
  --lemon: #fff0b8;
  --shadow: 0 10px 0 rgba(94, 184, 236, .08), 0 18px 34px rgba(80, 150, 200, .14);
  --shadow-sm: 0 6px 0 rgba(94, 184, 236, .07), 0 10px 22px rgba(80, 150, 200, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(169, 220, 245, .55), transparent 24%),
    radial-gradient(circle at 90% 16%, rgba(189, 238, 227, .48), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 225, 207, .40), transparent 32%),
    linear-gradient(180deg, #f6fcff 0%, var(--sky) 52%, #f8fdff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(94, 184, 236, .16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* 顶部进度与小装饰 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 100;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--lemon));
  transition: width .08s linear;
}

.sky-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.cloud {
  position: absolute;
  width: 96px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(94, 184, 236, .08);
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 42px; height: 42px; left: 16px; top: -20px; }
.cloud::after { width: 30px; height: 30px; right: 14px; top: -14px; }
.cloud-a { top: 130px; left: 4%; animation: float 7s ease-in-out infinite; }
.cloud-b { top: 420px; right: 3%; transform: scale(.8); animation: float 9s ease-in-out infinite reverse; }
.cloud-c { bottom: 120px; left: 8%; transform: scale(.65); animation: float 8s ease-in-out infinite; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.star {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--lemon);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: .8;
}
.star-a { top: 210px; right: 12%; }
.star-b { top: 560px; left: 5%; background: var(--mint); transform: scale(.7); }
.star-c { bottom: 260px; right: 8%; background: var(--blue-soft); transform: scale(.9); }

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(169, 220, 245, .25);
}
.bubble-a { width: 26px; height: 26px; top: 320px; left: 12%; }
.bubble-b { width: 16px; height: 16px; top: 120px; right: 24%; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 252, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255,255,255,.9);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-face {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(94,184,236,.22);
}
.brand-text strong { display: block; font-size: 15px; color: var(--ink); }
.brand-text small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.top-nav { display: flex; gap: 8px; }
.top-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}
.top-nav a:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--blue-soft); background: var(--blue-pale); }

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; }

/* Hero */
.hero {
  min-height: 430px;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px;
  align-items: center;
}

.hello-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px dashed var(--blue-soft);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-deep);
  background: linear-gradient(transparent 62%, #cdeeff 62%);
}

.hero-lead { max-width: 590px; margin: 0 0 12px; font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.hero-source { font-size: 11px; color: var(--muted); margin-bottom: 24px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  min-width: 112px;
  padding: 13px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.stat:nth-child(2) { transform: rotate(-1.5deg); }
.stat:nth-child(4) { transform: rotate(1.5deg); }
.stat b { display: block; font-size: 24px; color: var(--blue-deep); line-height: 1; }
.stat span { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted); }

.mascot-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mascot { width: min(100%, 280px); filter: drop-shadow(0 14px 18px rgba(94,184,236,.18)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.mascot-note {
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* 通用区块 */
.section { scroll-margin-top: 86px; margin: 20px 0 46px; }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 24px; color: var(--ink); }
.section-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.bubble-num {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(94,184,236,.22);
}

.goal-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.goal-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  transition: .2s ease;
}
.goal-pill:hover { transform: translateY(-3px) rotate(-.4deg); }
.goal-pill i {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

/* 图表卡片 */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.chart-card {
  position: relative;
  scroll-margin-top: 86px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  transition: .25s cubic-bezier(.2,.8,.2,1);
}
.chart-card::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--blue-pale);
  opacity: .75;
}
.chart-card:nth-child(even)::before { background: #e4f8f2; }
.chart-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 14px 0 rgba(94,184,236,.09), 0 24px 40px rgba(80,150,200,.18); }

.card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; }
.card-num {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(94,184,236,.22);
}
.card-titles { flex: 1; min-width: 0; }
.card-titles h3 { margin: 0; font-size: 17px; color: var(--ink); }
.card-titles .case { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.card-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 8px; }
.tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 10.5px;
  font-weight: 700;
}
.tag.fn { background: #e4f8f2; color: #2f8f83; font-family: Consolas, Monaco, monospace; }
.tag.ref { background: #fff4e6; color: #b4783f; }

.mini-chart {
  position: relative;
  z-index: 1;
  height: 220px;
  margin: 6px 0 12px;
  border-radius: 20px;
  border: 2px solid var(--blue-pale);
  background: linear-gradient(180deg, #ffffff, #f6fcff);
}

.insight {
  position: relative;
  z-index: 1;
  padding: 11px 13px 11px 15px;
  border-radius: 18px;
  background: #f0f9ff;
  border-left: 5px solid var(--blue-soft);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.insight b { display: block; margin-bottom: 3px; font-size: 10px; letter-spacing: .08em; color: var(--blue-deep); }

.chart-fallback { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 11px; }

/* 小结 */
.summary-card {
  padding: 26px;
  border-radius: 34px;
  background: rgba(255,255,255,.94);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.summary-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--blue-pale);
  opacity: .55;
}
.section-head.compact { margin-bottom: 14px; }
.summary-text { position: relative; z-index: 1; margin: 0; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }
.summary-text em { font-style: normal; color: var(--blue-deep); font-weight: 800; background: #e6f5ff; padding: 0 4px; border-radius: 6px; }
.chip-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(94,184,236,.10);
}

/* 页脚与回顶 */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(94,184,236,.25), 0 12px 24px rgba(80,150,200,.20);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px) rotate(8deg); }

.noscript { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: #fff; color: var(--ink); }

.reveal { opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.reveal.show { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 40px 0 28px; }
  .mascot-wrap { order: -1; }
  .mascot { width: 200px; }
  .goal-pills { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar-inner { padding: 10px 16px; flex-wrap: wrap; }
  .top-nav { width: 100%; justify-content: center; }
  .top-nav a { padding: 7px 12px; font-size: 11px; }
  main { padding: 0 16px 30px; }
  .hero h1 { font-size: 36px; }
  .stat-row { gap: 9px; }
  .stat { min-width: calc(50% - 5px); }
  .goal-pills { grid-template-columns: 1fr; }
  .chart-card { padding: 15px; border-radius: 24px; }
  .mini-chart { height: 210px; }
  .footer { padding: 18px 16px 28px; flex-direction: column; }
  .section-head h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
