/* ==========================================================
   农业碳汇大揭秘 · 主样式 V5
   自然科技风 / 稻田碳汇 · 更温润、更透气、更有层次
   ========================================================== */

:root {
  /* 主色：温润稻田金绿（从 teal 转向更暖的金绿色） */
  --acc: #1A7A52;            /* 主色：温润稻田绿 */
  --acc-hover: #145C3E;      /* 主色深 */
  --acc-soft: #EEF8F2;       /* 主色浅底 */
  --acc-line: #B8D9C8;       /* 主色边框 */
  --acc-light: #2D9B6A;      /* 鲜翠点缀 */

  /* 强调色：暖金 = 收益（更柔和） */
  --amber: #C97810;
  --amber-deep: #9A5B0B;
  --amber-soft: #FDF6ED;
  --amber-light: #E4A020;

  /* 碳蓝：用于数据/图表 */
  --carbon: #2563EB;
  --carbon-soft: #EFF6FF;

  /* 中性色：偏暖的墨绿灰 */
  --bg: #F6F8F4;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #FBFDFB;
  --ink: #1A2E22;
  --ink-2: #536256;
  --ink-3: #8A9A8C;
  --line: #DFE7DC;
  --line-soft: #EDF2EA;

  /* 形态 */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --shadow-xs: 0 1px 2px rgba(18, 36, 24, .04);
  --shadow-sm: 0 2px 4px rgba(18, 36, 24, .04), 0 4px 12px rgba(18, 36, 24, .05);
  --shadow-md: 0 4px 8px rgba(18, 36, 24, .04), 0 12px 32px rgba(18, 36, 24, .07);
  --shadow-lg: 0 8px 24px rgba(18, 36, 24, .06), 0 24px 60px rgba(18, 36, 24, .08);
  --shadow-glow: 0 0 0 1px rgba(26, 122, 82, .12), 0 8px 30px rgba(26, 122, 82, .18);

  /* 兼容旧变量名 */
  --green: var(--acc);
  --green-deep: var(--acc-hover);
  --green-light: var(--acc-soft);
  --orange: var(--amber);
  --orange-deep: var(--amber-deep);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 90% 0%, rgba(45, 155, 106, .06), transparent 55%),
    radial-gradient(900px 500px at 10% 0%, rgba(201, 120, 16, .04), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, transparent 2%, var(--acc-light) 35%, var(--acc) 65%, transparent 98%);
  opacity: .75;
  pointer-events: none;
}

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: url('../images/section-pattern.jpg') center top / 520px fixed;
  opacity: .06;
}

a { color: var(--acc-hover); text-decoration: none; }
a:hover { text-decoration: none; }

.k-title, .m-name, .chip, .faq-item summary, .tbl td,
.glossary-item > div:first-child {
  overflow-wrap: break-word;
}

img { max-width: 100%; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) {
  .container { padding: 0 14px; }
}
.container.narrow, .article-wrap { max-width: 1040px; }

.num, .big-num .n, .stat-card .num, .m-badge2, .mrow .m-sub b,
.bill .b-row span:last-child, .bill .b-total span:last-child,
.eq-box .e-n, .detail-list .d-row span:last-child, .tbl td.num,
.book .bk .v, .num-input {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ---------- 顶部导航：玻璃悬浮 ---------- */
.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(221, 232, 227, .8);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(221, 232, 227, .95);
  box-shadow: 0 8px 30px rgba(18, 36, 24, .08);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none !important; transition: transform .2s; }
.brand:hover { transform: translateY(-1px); }
.brand svg { display: block; filter: drop-shadow(0 2px 4px rgba(26,122,82,.18)); transition: filter .2s; }
.brand:hover svg { filter: drop-shadow(0 4px 8px rgba(26,122,82,.28)); }
.brand-name { font-weight: 800; font-size: 17.5px; color: var(--ink); letter-spacing: .01em; line-height: 1.25; }
.brand-name i {
  display: block; font-style: normal; font-weight: 500; font-size: 9.5px;
  color: var(--ink-3); letter-spacing: 3.5px; margin-top: 2px; text-transform: uppercase;
}
/* 品牌旁版本徽标 */
.brand-ver {
  flex: none; align-self: flex-start; margin-top: 1px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: var(--acc-hover); padding: 2px 7px; border-radius: 999px;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
}
@media (max-width: 760px) { .brand-ver { display: none; } }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; transition: all .18s;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.site-nav a:hover { color: var(--ink); background: rgba(26, 122, 82, .06); }
.site-nav a.on { color: var(--acc-hover); font-weight: 700; background: rgba(26, 122, 82, .08); }
.site-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%) scaleX(0);
  width: 16px; height: 3px; border-radius: 2px; background: var(--acc);
  transition: transform .2s;
}
.site-nav a.on::after { transform: translateX(-50%) scaleX(1); }
.site-nav a.nav-cta::after,
.site-nav a.nav-topic::after { display: none !important; }

.site-nav a.nav-topic { background: rgba(201,120,16,.08); color: var(--amber-deep); }
.site-nav a.nav-topic:hover { background: rgba(201,120,16,.14); }
.site-nav a.nav-topic .nav-new {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 2px; font-size: 9px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: var(--amber); border-radius: 4px; padding: 1px 5px;
  vertical-align: middle; animation: pulse-badge 2.2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 120, 16, .35); }
  50% { box-shadow: 0 0 0 4px rgba(201, 120, 16, 0); }
}

.site-nav a.nav-cta {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-light) 100%);
  box-shadow: 0 4px 14px rgba(26, 122, 82, .28);
  transition: transform .15s, box-shadow .15s;
}
.site-nav a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 122, 82, .35); background: linear-gradient(135deg, var(--acc-hover) 0%, var(--acc) 100%); }
.site-nav a.nav-cta.on { background: var(--acc-hover); color: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,.12); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--ink); border-radius: 10px; padding: 10px; cursor: pointer;
  transition: all .25s; position: relative; width: 42px; height: 42px;
}
.nav-toggle:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.nav-toggle .nt-bar {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); position: absolute; left: 10px;
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle .nt-bar:nth-child(1) { top: 13px; }
.nav-toggle .nt-bar:nth-child(2) { top: 19px; }
.nav-toggle .nt-bar:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nt-bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nt-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nt-bar:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line); gap: 2px;
    box-shadow: 0 20px 40px rgba(18,36,24,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 10px; font-size: 15px; border-radius: 10px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a::after { display: none !important; }
  .site-nav a.on { background: var(--acc-soft); color: var(--acc-hover); }
  .site-nav a.nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }
}

/* ---------- 通用 ---------- */
.section { padding: 84px 0; position: relative; }
.section.tight { padding: 44px 0; }

/* 章节波浪分隔线 */
.section-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,45 C288,90 576,0 864,45 C1152,90 1296,22 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  opacity: 1;
  filter: drop-shadow(0 -4px 12px rgba(18,36,24,.03));
}
.section-wave.wave-soft {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F8F6' d='M0,0 C360,90 720,0 1080,45 C1260,67 1350,67 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.section-wave.wave-hero {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F8F6' d='M0,60 C240,90 480,30 720,60 C960,90 1200,30 1440,60 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.section-wave.wave-top {
  top: -1px; bottom: auto; transform: rotate(180deg);
}
@media (max-width: 760px) { .section-wave { height: 56px; } }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(24px, 2.6vw + 12px, 34px);
  font-weight: 800; color: var(--ink); letter-spacing: -0.025em; line-height: 1.25;
}
.section-head p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 3px;
  color: var(--acc-hover); text-transform: uppercase; margin-bottom: 16px;
  font-weight: 700;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none !important;
  padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  font-family: inherit; letter-spacing: .01em;
  transition: transform .14s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-light) 100%);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 14px rgba(26, 122, 82, .28);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(26, 122, 82, .35); transform: translateY(-1px); }
.btn-orange {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 120, 16, .26);
}
.btn-orange:hover { box-shadow: 0 6px 20px rgba(201, 120, 16, .32); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-2); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc-hover); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.flash { margin: 14px 0; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; border: 1px solid; }
.flash-ok { background: var(--acc-soft); color: var(--acc-hover); border-color: var(--acc-line); }
.flash-err { background: #FDF0EF; color: #B3261E; border-color: #F2C9C4; }

.toast {
  position: fixed; left: 50%; bottom: 38px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #F4FAF6; border: 1px solid #2A3B31;
  padding: 12px 24px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.16, 1, .3, 1); z-index: 999;
  box-shadow: 0 12px 40px rgba(18,36,24,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-err { background: #7F1D1D; border-color: #9B2C2C; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
  padding: 100px 0 120px;
  background:
    radial-gradient(1100px 540px at 78% -10%, rgba(45, 155, 106, .12), transparent 60%),
    radial-gradient(700px 420px at 8% 100%, rgba(201, 120, 16, .08), transparent 55%),
    linear-gradient(180deg, rgba(237, 246, 243, .70) 0%, rgba(244, 248, 246, .75) 80%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18, 36, 24, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(900px 520px at 60% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(900px 520px at 60% 40%, #000 0%, transparent 72%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 980px; text-align: center; margin: 0 auto; }

/* 紧凑版 Hero（用于专题详情等内页） */
.hero-compact { min-height: auto; padding: 76px 0 96px; }
.hero-compact .hero-desc { color: var(--ink-2); font-size: 15px; max-width: 620px; margin: 12px auto 0; }
.hero-compact .hero-btns { margin-top: 24px; }

.hero-orbit { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 480px; height: 480px; pointer-events: none; opacity: .85; }
.hero-orbit .ring { position: absolute; inset: 0; border: 1.5px solid var(--line); border-radius: 50%; }
.hero-orbit .ring.r2 { inset: 60px; border-color: var(--acc-line); animation: spin 42s linear infinite; }
.hero-orbit .ring.r3 { inset: 130px; animation: spin 68s linear infinite reverse; border-color: var(--acc-line); opacity: .6; }
.hero-orbit .dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.hero-orbit .ring.r2 .dot { top: -5px; left: 50%; }
.hero-orbit .ring.r3 .dot { bottom: -5px; left: 30%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .hero-orbit { display: none; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 3px;
  color: var(--acc-hover); border: 1px solid var(--acc-line); border-radius: 999px;
  padding: 8px 22px; margin-bottom: 28px; background: rgba(255,255,255,.88);
  box-shadow: 0 4px 14px rgba(26,122,82,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc-light)); animation: blink 2.2s ease-in-out infinite; box-shadow: 0 0 10px rgba(26,122,82,.45); }
.hero-badge::after { content: "✦"; font-size: 9px; color: var(--amber); margin-left: -2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 {
  font-size: clamp(36px, 6.5vw, 66px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.04em; color: var(--ink);
  text-shadow: 0 2px 0 rgba(255,255,255,.7), 0 10px 30px rgba(18,36,24,.08);
}
.hero h1 em { font-style: normal; color: var(--acc-hover); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 16px; background: linear-gradient(120deg, rgba(26,122,82,.22), rgba(45,155,106,.10)); z-index: -1; border-radius: 6px; transform: skewX(-8deg); }
.hero .sub { color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); margin: 26px 0 10px; max-width: 640px; margin-inline: auto; }
.hero-sub-en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 4px; color: var(--ink-3); margin-bottom: 38px; text-transform: uppercase; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-primary { min-width: 180px; padding: 15px 32px; font-size: 16px; }
.hero-btns .btn-ghost { min-width: 180px; padding: 15px 32px; font-size: 16px; background: rgba(255,255,255,.78); }

/* 悬浮统计卡 */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1060px; margin: -72px auto 0; position: relative; z-index: 5;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px 18px; text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--acc-line); box-shadow: var(--shadow-glow); }
.stat-card .stat-icon { font-size: 18px; opacity: .9; width: 42px; height: 42px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: var(--acc-soft); border-radius: 12px; }
.stat-card.hot .stat-icon { background: var(--amber-soft); }
.stat-card .num {
  font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--ink);
  line-height: 1.2;
}
.stat-card.hot .num { color: var(--amber-deep); }
.stat-card .num small { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.stat-card .lab { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* 流程图 */
.flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin: 20px 0; padding: 26px 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.flow-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.flow-box.lit { border-color: var(--acc); box-shadow: 0 0 16px rgba(5,150,105,.2); }
.flow i { color: var(--ink-3); font-style: normal; font-family: var(--font-mono); }

/* CO₂ 粒子：沿流程图流动的绿点 */
.flow-carbon-dot {
  position: absolute; top: 50%; left: -10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px rgba(5,150,105,.7);
  pointer-events: none; z-index: 2;
  animation: carbonTravel 4s ease-in-out infinite;
}
@keyframes carbonTravel {
  0%   { left: -10px; opacity: 0; top: 50%; }
  8%   { opacity: 1; }
  25%  { top: 30%; }
  50%  { top: 55%; }
  75%  { top: 35%; }
  92%  { opacity: 1; }
  100% { left: calc(100% + 10px); opacity: 0; top: 45%; }
}

/* 措施卡交替滑入 */
.measure-card.slide-l { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.measure-card.slide-r { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.measure-card.slide-in { opacity: 1; transform: translateX(0); }

/* ---------- 卡片系统 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.measure-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .2s, background .2s, box-shadow .25s;
}
.measure-card:hover { transform: translateY(-7px); border-color: var(--acc); background: var(--card-hover); box-shadow: var(--shadow-glow); text-decoration: none; }
.measure-card:hover .m-icon { transform: scale(1.08); border-color: var(--acc-line); }
.measure-card:hover .m-go { color: var(--acc); transform: translateX(4px); }
.measure-card .m-go { display: inline-flex; align-items: center; transition: transform .2s, color .2s; }
.measure-card .m-icon { transition: transform .25s, border-color .2s; }
.measure-card .m-icon {
  font-size: 22px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--bg-2)); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.measure-card .m-name { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.45; }
.measure-card .m-badge {
  display: inline-block; align-self: flex-start;
  color: var(--acc-hover); background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  border-radius: 8px; padding: 4px 12px; font-size: 13px; font-weight: 700;
}
.measure-card .m-badge.hot { color: var(--amber-deep); background: var(--amber-soft); border-color: #EBD9C0; }
.measure-card .m-note { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.measure-card .m-go { font-size: 13px; color: var(--acc-hover); font-weight: 600; }

/* 知识卡片 */
.k-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .2s, background .2s, box-shadow .25s;
}
.k-card:hover { transform: translateY(-7px); border-color: var(--acc); background: var(--card-hover); box-shadow: var(--shadow-glow); text-decoration: none; }
.k-card:hover .k-icon { transform: scale(1.08); border-color: var(--acc-line); }
.k-card:hover .k-title { color: var(--acc-hover); }
.k-card .k-icon { transition: transform .25s, border-color .2s; }
.k-card .k-title { transition: color .2s; }
.k-card .k-top { padding: 22px 22px 14px; display: flex; gap: 14px; align-items: flex-start; }
.k-card .k-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--bg-2)); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.k-card .k-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.k-card .k-title:hover { color: var(--acc-hover); }
.k-card .k-cat {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 9px; margin-top: 8px;
}
.k-card .k-sum { padding: 0 22px; color: var(--ink-2); font-size: 14.5px; flex: 1; line-height: 1.65; }
.k-card .k-points { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; }
.kp {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 6px 12px; font-size: 12.5px; color: var(--ink-2);
}
.kp b { color: var(--acc-hover); font-size: 13.5px; margin-right: 3px; font-family: var(--font-mono); }
.kp.hot b { color: var(--amber-deep); }
.k-card .k-meta {
  display: flex; justify-content: space-between; padding: 12px 22px;
  border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3);
}

/* 分类 Tab */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tabs a {
  padding: 9px 20px; border-radius: 999px;
  background: var(--bg-2); border: 1.5px solid var(--line);
  color: var(--ink-2); font-size: 14px; font-weight: 500; transition: all .18s;
}
.tabs a:hover { border-color: var(--acc-line); color: var(--acc-hover); background: var(--acc-soft); }
.tabs a.on { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(26,122,82,.22); }

/* ---------- 文章页 ---------- */
.article-head { text-align: center; margin-bottom: 12px; }
.article-head h1 {
  font-size: clamp(26px, 4vw, 38px); margin-top: 16px; line-height: 1.35;
  font-weight: 800; letter-spacing: -0.025em; color: var(--ink);
}
.article-head .meta { color: var(--ink-3); font-size: 13px; margin-top: 14px; font-family: var(--font-mono); }

.big-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 32px 0; }
.big-point {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center; padding: 26px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.big-point:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: var(--acc-line); }
.big-point .n { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: var(--acc-hover); }
.big-point .n small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.big-point .l { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 600px) { .big-points { grid-template-columns: 1fr; } }

.article-body {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: clamp(26px, 5vw, 48px); font-size: 17px; color: #1A2E22;
  line-height: 1.85;
}
.article-body h3 {
  margin: 34px 0 14px; font-size: 20px; color: var(--ink); font-weight: 700;
  letter-spacing: -0.015em; padding-left: 16px; border-left: 4px solid var(--acc); line-height: 1.4;
}
.article-body h3:first-child { margin-top: 0; }
.article-body p { margin: 14px 0; }
.article-body b { color: var(--acc-hover); font-weight: 700; }

.article-body ul.plain { list-style: none; margin: 16px 0; }
.article-body ul.plain li { padding: 10px 0 10px 4px; border-bottom: 1px solid var(--line-soft); }
.article-body ul.plain li:last-child { border-bottom: none; }

.tip {
  background: var(--amber-soft); border: 1px solid #EBD9C0;
  border-radius: 12px; padding: 16px 20px; margin: 22px 0; font-size: 15px; color: #7A5612;
}
.tip a { color: var(--amber-deep); font-weight: 700; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
@media (max-width: 600px) { .vs { grid-template-columns: 1fr; } }
.vs > div { border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.vs-bad { background: #FDF0EF; border: 1px solid #F2C9C4; }
.vs-good { background: var(--acc-soft); border: 1px solid var(--acc-line); }
.vs > div b { display: block; margin-bottom: 6px; font-size: 16px; }
.vs-bad b { color: #B3261E; }
.vs-good b { color: var(--acc-hover); }
.vs > div p { margin: 0; color: var(--ink-2); font-size: 14px; }

.formula {
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); border-radius: 12px; padding: 18px 22px; margin: 16px 0;
  text-align: center; font-size: 15.5px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: 0;
}

details.deep {
  margin-top: 38px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--bg); padding: 0;
  box-shadow: var(--shadow-xs);
}
details.deep summary {
  cursor: pointer; padding: 16px 22px; font-weight: 700; color: var(--ink-2);
  font-size: 14.5px; list-style: none; user-select: none;
}
details.deep summary::before { content: "＋ "; font-family: var(--font-mono); color: var(--acc); }
details.deep[open] summary { border-bottom: 1px solid var(--line-soft); color: var(--ink); }
details.deep .deep-body { padding: 10px 22px 20px; font-size: 14.5px; color: var(--ink-2); }
details.deep .deep-body p { margin: 10px 0; }

.article-foot { text-align: center; margin: 38px 0 12px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 演算器 ---------- */
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 28px; align-items: start; }
@media (max-width: 1100px) { .calc-wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 20px; } }
@media (max-width: 960px) { .calc-wrap { grid-template-columns: 1fr; } }

.step-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px; margin-bottom: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.step-card:hover { box-shadow: var(--shadow-glow); border-color: var(--acc-line); transform: translateY(-3px); }
.step-card { transition: transform .25s, box-shadow .25s, border-color .2s; }
.step-card .step-tag {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
  color: var(--ink); font-size: 17px; margin-bottom: 8px; letter-spacing: -0.015em;
}
.step-tag .no {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--acc-soft), #fff); border: 1.5px solid var(--acc-line); color: var(--acc-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: var(--font-mono);
}
.step-help { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 18px; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
.pick {
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-2); cursor: pointer;
  padding: 16px 10px; text-align: center; position: relative;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: border-color .18s, background .18s, color .18s, transform .18s, box-shadow .18s;
}
.pick:hover { border-color: var(--acc); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pick:hover .p-icon { transform: scale(1.12); }
.pick .p-icon { font-size: 26px; display: block; margin-bottom: 6px; transition: transform .18s; }
.pick.on {
  border-color: var(--acc); border-width: 2px; background: var(--acc-soft);
  color: var(--acc-hover); font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.pick.on .p-icon { transform: scale(1.12); }
.pick .p-check {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
  font-family: var(--font-mono);
  opacity: 0; transform: scale(.4); transition: all .18s;
}
.pick.on .p-check { opacity: 1; transform: scale(1); }
.pick.scenario { border-style: dashed; border-color: #EBD9B8; }
.pick.scenario.on { border-style: solid; border-color: var(--amber); background: var(--amber-soft); color: var(--amber-deep); font-weight: 700; box-shadow: 0 0 0 1px rgba(201,120,16,.12), 0 8px 30px rgba(201,120,16,.18); }
.pick.scenario .p-check { background: var(--amber); top: auto; bottom: 8px; }
.pick .p-star {
  position: absolute; top: -10px; right: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-light)); color: #fff;
  border-radius: 6px; font-size: 10.5px; padding: 2px 9px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(201,120,16,.25);
}

.slider-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slider-row input[type="range"] {
  flex: 1; min-width: 200px; accent-color: var(--acc); height: 30px; cursor: pointer;
}
.num-input {
  width: 120px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 17px; font-weight: 700; text-align: right;
  color: var(--ink); background: var(--bg-2);
  transition: border-color .15s, box-shadow .15s;
}
.num-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.hint-line { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.hint-line b { color: var(--amber-deep); font-family: var(--font-mono); }

.mlist { display: flex; flex-direction: column; gap: 12px; }
.mrow {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: all .18s; background: var(--bg-2);
}
.mrow:hover { border-color: var(--acc); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.mrow:hover .m-icon { transform: scale(1.08); border-color: var(--acc-line); }
.mrow .m-icon { transition: transform .2s, border-color .2s; }
.mrow.on { border-color: var(--acc); background: var(--acc-soft); box-shadow: var(--shadow-glow); }
.mrow.dis { opacity: .4; cursor: not-allowed; }
.mrow .m-icon {
  font-size: 20px; width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--bg-2)); border: 1px solid var(--line);
}
.mrow .m-info { flex: 1; min-width: 0; }
.mrow .m-name { font-weight: 700; font-size: 15.5px; }
.mrow .m-sub { font-size: 12.5px; color: var(--ink-3); }
.mrow .m-sub b.good { color: var(--acc-hover); }
.mrow .m-sub b.cost { color: var(--amber-deep); }
.mrow .m-badge2 {
  flex: none; font-weight: 700; font-size: 13px; color: var(--acc-hover);
  background: var(--bg-2); border: 1.5px solid var(--acc-line);
  border-radius: 8px; padding: 4px 10px; white-space: nowrap;
}
.mrow.dis .m-badge2 { border-color: var(--line); color: var(--ink-3); }
.switch { flex: none; width: 44px; height: 24px; border-radius: 999px; background: #D5DFD8; position: relative; transition: background .2s; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: all .2s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.mrow.on .switch { background: var(--acc); }
.mrow.on .switch::after { left: 23px; }

/* 结果面板 */
.result-panel {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; position: sticky; top: 84px;
}
@media (max-width: 1020px) { .result-panel { position: static; } }
.rp-head { border-bottom: 1px solid var(--line); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(180deg, #EEF8F2, var(--bg-2)); }
.rp-head .rp-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px; color: var(--acc-hover); font-weight: 700; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: blink 1.8s ease-in-out infinite; }
.rp-sub { font-size: 13px; color: var(--ink-2); padding: 10px 22px 4px; }
.rp-body { padding: 20px 22px 16px; }

/* 面板内分区标题（📋 措施明细 等）：上间距加大形成分隔 */
.rp-body .chart-title { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.rp-body .chart-title:first-of-type { margin-top: 4px; padding-top: 0; border-top: none; }

.big-num { text-align: center; padding: 8px 0 14px; }
.big-num .n { font-size: clamp(36px, 5vw, 48px); font-weight: 800; color: var(--acc-hover); line-height: 1.1; }
.big-num .n small { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.big-num .l { color: var(--ink-2); font-size: 13px; margin-top: 6px; }

.eq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.eq-note { font-size: 12px; color: var(--ink-3); text-align: center; margin: -4px 0 10px; line-height: 1.6; }

/* 微型场景条：措施→排放源 因果可视化 */
.scene-bar {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 12px 8px; margin: 10px 0 14px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--line-soft);
}
.scene-node {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: 10px; min-width: 52px;
  transition: all .4s ease; position: relative;
}
.scene-node .s-ico { font-size: 20px; filter: grayscale(1); opacity: .35; transition: all .4s ease; }
.scene-node .s-lab { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); transition: color .4s; }
.scene-node.on { background: var(--acc-soft); border: 1px solid var(--acc-line); }
.scene-node.on .s-ico { filter: none; opacity: 1; }
.scene-node.on .s-lab { color: var(--acc-hover); font-weight: 700; }
.scene-node .s-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--acc); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-mono); animation: sTagPop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes sTagPop {
  0% { opacity: 0; transform: translateX(-50%) scale(.5); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
.scene-link {
  flex: 1; max-width: 24px; height: 1.5px;
  background: var(--line); position: relative; overflow: hidden;
}
.scene-node.on ~ .scene-link::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--acc); animation: linkFlow 1.5s ease infinite;
}
@keyframes linkFlow { to { left: 100%; } }
.eq-box {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 12px; text-align: center; padding: 14px 8px;
}
.eq-box .e-n { font-size: 19px; font-weight: 800; color: var(--ink); }
.eq-box .e-l { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.chart-box { height: 240px; margin: 8px 0; }
.chart-box.tall { height: 260px; }
.chart-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 20px 0 6px; display: flex; align-items: center; gap: 6px; }
.rp-body > .chart-title:first-child { margin-top: 0; }
.rp-body > .chart-title:not(:first-child) { padding-top: 18px; border-top: 1px solid var(--line-soft); }
.chart-title span { font-weight: 400; color: var(--ink-3); font-size: 12px; }

.bill { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 16px 0 20px; background: var(--bg); }
.bill .b-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.bill .b-row span:first-child { flex: 1; min-width: 0; }
.bill .b-row span:last-child { font-weight: 700; white-space: nowrap; margin-left: 12px; }
.bill .b-row.plus span:last-child { color: var(--acc-hover); }
.bill .b-row.minus span:last-child { color: var(--amber-deep); }
.bill .b-total {
  border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 12px;
  display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; color: var(--ink);
}
.bill .b-total span:last-child { color: var(--amber-deep); }

.detail-list { font-size: 13.5px; color: var(--ink-2); }
.detail-list .d-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list .d-row:last-child { border-bottom: none; }

.d-item { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.d-item:last-child { border-bottom: none; }
.d-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.d-top .d-name { font-weight: 700; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; overflow-wrap: break-word; }
.d-top .d-carbon { flex: none; font-weight: 800; font-size: 13.5px; color: var(--acc-hover); font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding-left: 24px; }
.d-tag { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-hover); font-family: var(--font-mono); font-weight: 600; }
.d-tag-cost { background: var(--amber-soft); color: var(--amber-deep); }

.d-base { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-2); }
.d-base span:last-child { font-family: var(--font-mono); color: var(--acc-hover); font-weight: 700; white-space: nowrap; }
.d-note { font-size: 12px; color: var(--ink-3); padding: 8px 0 2px; }

.rp-actions { display: flex; gap: 10px; padding: 0 22px 20px; flex-wrap: wrap; }
.rp-actions .btn { flex: 1; min-width: 130px; }

.nickname-row { display: flex; gap: 8px; padding: 0 22px 16px; }
.nickname-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--bg-2);
  transition: border-color .15s, box-shadow .15s;
}
.nickname-row input::placeholder { color: var(--ink-3); }
.nickname-row input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }

.price-ref { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.price-ref b { color: var(--acc-hover); font-family: var(--font-mono); }

/* ---------- 案例页 ---------- */
.case-hero {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 20px;
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
.case-hero:hover { transform: translateY(-7px); box-shadow: var(--shadow-glow); border-color: var(--acc); }
.case-hero.flagship:hover { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(201,120,16,.12), 0 12px 40px rgba(201,120,16,.18); }
.case-hero.flagship {
  border-color: #EBD9C0;
  background:
    radial-gradient(560px 240px at 90% -20%, rgba(201, 120, 16, .08), transparent 60%),
    var(--card);
  box-shadow: var(--shadow-md);
}
.flag-badge {
  margin-left: auto; align-self: flex-start;
  background: linear-gradient(135deg, var(--amber), var(--amber-light)); color: #fff;
  font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 14px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(201,120,16,.2);
}
.ch-tech { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 26px 14px; font-size: 14px; }
.ch-tech b { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.chip {
  background: var(--bg); color: var(--ink); font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 14px; font-size: 13px;
  transition: all .15s;
}
.chip:hover { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc-hover); }
.chip-btn { cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, transform .15s; }
.chip-btn:hover { border-color: var(--acc); background: var(--acc-soft); transform: translateY(-1px); }
.case-hero .ch-head { padding: 28px 28px 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.case-hero .ch-icon {
  font-size: 24px; width: 56px; height: 56px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--bg-2)); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.case-hero h2 { font-size: 22px; color: var(--ink); font-weight: 800; letter-spacing: -0.015em; }
.case-hero .ch-tag { font-size: 13.5px; color: var(--ink-2); }
.case-hero .ch-body { padding: 8px 28px 14px; color: var(--ink-2); font-size: 15px; }
.case-hero .ch-body b { color: var(--acc-hover); }
.case-hero .ch-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 4px 28px 22px; }
@media (max-width: 640px) { .case-hero .ch-points { grid-template-columns: 1fr; } .flag-badge { margin-left: 0; } }
.case-hero .ch-cta { padding: 0 28px 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 碳价页 ---------- */
.price-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 24px; }
@media (max-width: 720px) { .price-hero { grid-template-columns: 1fr; } }

.ms-period {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; font-family: var(--font-mono); font-size: 14px; font-weight: 800;
  color: var(--acc-hover); letter-spacing: 1px;
}
.ms-period span { font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.book { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 22px 0; }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } }
.book .bk { border-radius: var(--radius); padding: 24px; text-align: center; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.book .bk:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--acc); }
.book .bk .t { font-size: 14px; opacity: .9; font-weight: 700; }
.book .bk .v { font-size: 28px; font-weight: 800; margin-top: 8px; }
.book .bk .d { font-size: 12.5px; opacity: .85; margin-top: 10px; line-height: 1.6; }
.bk-green { background: linear-gradient(135deg, var(--acc-soft), #fff); color: #065F46; border-color: var(--acc-line); }
.bk-orange { background: linear-gradient(135deg, var(--amber-soft), #fff); color: #7A4A08; border-color: #EBD9C0; }
.bk-blue { background: linear-gradient(135deg, #EBF4FB, #fff); color: #0C4A6E; border-color: #C9E3F3; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { box-shadow: var(--shadow-glow); border-color: var(--acc-line); transform: translateY(-2px); }
.faq-item summary {
  padding: 18px 24px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 16px; color: var(--ink); transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--ink-3); font-size: 20px; font-weight: 400; font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "－"; color: var(--acc); }
.faq-item[open] { border-color: var(--acc); box-shadow: var(--shadow-glow); }
.faq-item[open] summary { color: var(--acc-hover); }
.faq-item .fa-body { padding: 0 24px 20px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tbl th { color: var(--ink-2); font-weight: 700; white-space: nowrap; font-size: 12.5px; letter-spacing: .05em; background: #F1F5EF; }
.tbl tr:hover td { background: #F8FAF7; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.num, .tbl th.num { text-align: right; }

/* ---------- 页脚 ---------- */
.site-footer {
  background:
    radial-gradient(900px 340px at 12% 100%, rgba(26,122,82,.07), transparent 52%),
    radial-gradient(700px 280px at 88% 0%, rgba(201,120,16,.04), transparent 48%),
    linear-gradient(180deg, #E8EDE5, #E1E7DE);
  border-top: 1px solid var(--line);
  color: var(--ink-2); margin-top: 90px; padding: 64px 0 30px; font-size: 14px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.foot-about { display: flex; flex-direction: column; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .02em;
  text-decoration: none !important; margin-bottom: 12px; transition: transform .15s;
}
.foot-brand:hover { transform: translateY(-1px); }
.foot-brand .foot-logo { font-size: 22px; line-height: 1; }
.foot-slogan { margin: 0 0 16px; color: var(--ink-2); }
.foot-contact { margin-top: auto; padding-top: 6px; }
/* 用 .foot-col a.foot-mail 提高优先级，避免被 .foot-col a 的列表样式覆盖 */
.foot-col a.foot-mail {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start; width: fit-content;
  font-size: 13.5px; font-weight: 600; color: var(--acc-hover);
  padding: 7px 16px 7px 7px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--acc-line);
  box-shadow: var(--shadow-xs); text-decoration: none !important;
  transition: all .18s;
}
.foot-mail .fm-ico {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px;
  background: var(--acc-soft);
  transition: background .18s;
}
.foot-col a.foot-mail:hover {
  background: var(--acc); color: #fff; border-color: var(--acc);
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
}
.foot-col a.foot-mail:hover .fm-ico { background: rgba(255,255,255,.18); }
.foot-col b { display: block; color: var(--ink); margin-bottom: 14px; font-size: 13.5px; font-weight: 700; }
.foot-col a { display: block; color: var(--ink-2); padding: 5px 0; transition: color .15s, transform .15s; }
.foot-col a:hover { color: var(--acc-hover); transform: translateX(3px); }
.foot-note { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 24px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.foot-note p { margin: 6px 0; }
.foot-companies a { color: var(--ink-2); padding: 0 1px; border-bottom: 1px dotted var(--line); transition: color .15s, border-color .15s; }
.foot-companies a:hover { color: var(--acc-hover); border-bottom-color: var(--acc-line); }
.foot-filing { color: var(--ink-3); }
/* 页脚版本徽标 */
.foot-ver {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .5px; padding: 1px 7px; border-radius: 999px; margin: 0 1px;
  color: var(--acc-hover); background: var(--acc-soft); border: 1px solid var(--acc-line);
  vertical-align: 1px;
}
.foot-filing a { color: var(--ink-2); padding: 0 3px; }
.foot-filing a:hover { color: var(--acc-hover); }

/* 回到顶部 */
.back-to-top {
  position: fixed; right: 22px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--acc-line); background: var(--bg-2);
  color: var(--acc-hover); font-size: 20px; font-weight: 700;
  cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none;
  box-shadow: var(--shadow-md); transition: all .25s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top:hover {
  background: var(--acc); color: #fff; border-color: var(--acc);
  transform: translateY(0) scale(1.05);
  box-shadow: 0 8px 24px rgba(26, 122, 82, .35);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 760px) {
  .back-to-top { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 42px; height: 42px; font-size: 18px; }
}

/* ---------- 其他 ---------- */
.empty { text-align: center; color: var(--ink-2); padding: 70px 0; font-size: 15px; }
.breadcrumb { font-size: 13px; color: var(--ink-3); margin: 22px 0; }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--ink-2); transition: color .15s; }
.breadcrumb a:hover { color: var(--acc-hover); }
.breadcrumb .bc-sep { color: var(--line); font-weight: 400; }
.breadcrumb .bc-current { color: var(--ink); font-weight: 600; }
.breadcrumb + .section { padding-top: 64px; }
.breadcrumb + .section.tight { padding-top: 44px; }

.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.error-page { text-align: center; padding: 100px 0; }
.error-page .big { font-size: 60px; }
.error-page h1 { color: var(--ink); margin: 14px 0; }

@media print {
  .site-header, .site-footer, .rp-actions, .article-foot { display: none; }
  body { background: #fff; }
}

/* ==========================================================
   📱 竖屏适配层
   ========================================================== */
#resultPanel { scroll-margin-top: 80px; }
.jump-result { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .brand-name i { display: none; }
  .site-nav a { padding: 14px 10px; font-size: 16px; }
  .site-nav a.nav-cta { text-align: center; margin-top: 12px; }
  .btn { min-height: 48px; }
  .nickname-row input { font-size: 16px; }
  .section { padding: 56px 0; }

  .hero { min-height: auto; padding: 60px 0 72px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .stat-strip { grid-template-columns: 1fr; gap: 12px; margin-top: -52px; }
  .stat-card { display: flex; align-items: center; text-align: left; gap: 14px; padding: 16px 18px; }
  .stat-card .stat-icon { font-size: 22px; margin: 0; }
  .stat-card > div:not(.stat-icon) { flex: 1; }
  .stat-card .num { margin-top: 0; font-size: 24px; }
  .stat-card .num small { display: inline; }

  .jump-result {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--acc-light)); color: #fff; text-decoration: none !important;
    box-shadow: 0 6px 22px rgba(26, 122, 82, .4);
    font-size: 20px; font-weight: 800; z-index: 90;
  }
  .jump-result span { font-size: 10px; font-weight: 700; letter-spacing: 1px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  #scenPick { grid-column: 1 / -1; }
  .mrow { gap: 10px; }
  .mrow .m-badge2 { white-space: normal; text-align: center; font-size: 11.5px; }
  .chart-box, .chart-box.tall { height: 220px; }
  .rp-actions { flex-direction: column; }
  .rp-actions .btn { width: 100%; min-width: 0; }
  .result-panel { position: static; }

  .article-body { font-size: 17px; line-height: 1.85; padding: 24px 18px; }
  .article-body h3 { font-size: 19px; }
  .formula { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow i { display: block; text-align: center; transform: rotate(90deg); }
  .flow-box { text-align: center; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; }

  .table-wrap { position: relative; }
  .table-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 26px;
    background: linear-gradient(90deg, transparent, var(--bg-2)); pointer-events: none;
  }

  .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; max-width: 100%; }
  .step-card .table-wrap table.tbl, .table-wrap table.tbl { min-width: 0 !important; }
  .tbl td, .tbl th { overflow-wrap: break-word; }
  .tbl td[style*="nowrap"] { white-space: normal !important; }
  .ms-period { flex-wrap: wrap; row-gap: 2px; }
  body { overflow-x: hidden; }

  /* 所有表格竖屏紧凑化：压 padding、字号 */
  .tbl th, .tbl td { padding: 7px 8px !important; font-size: 12.5px !important; }
  .tbl th { white-space: normal !important; }
  .tbl td[style*="font-size"] { font-size: 11px !important; }
  .tbl td b { font-size: 12.5px; }
  .tbl td.num b { font-size: 13px; }

  /* 备注列（最后一列）另起一行，缩小字号 */
  .table-wrap table.tbl td:last-child:not(.num) {
    display: block; width: 100%; padding-top: 0; padding-bottom: 6px;
    border-bottom: none; font-size: 11px; color: var(--ink-3);
  }
  .table-wrap table.tbl th:last-child { width: auto; }

  .step-card .table-wrap::after { display: none; }
  .grid .table-wrap table.tbl td:nth-child(3) { display: block; width: 100%; padding-top: 0; border-bottom: none; color: var(--ink-3); font-size: 11.5px; }
  .grid .table-wrap table.tbl td:nth-child(1), .grid .table-wrap table.tbl td:nth-child(2) { display: inline-block; width: auto; }
  .grid .table-wrap table.tbl td:nth-child(2) { float: right; text-align: right; }
  .grid .table-wrap table.tbl tr { display: block; padding: 6px 0; }
  .grid .table-wrap table.tbl tbody { display: block; }
  .grid .table-wrap table.tbl tr::after { content: ""; display: block; clear: both; }
  .grid .table-wrap table.tbl tr { border-bottom: 1px solid var(--line-soft); }

  .measure-card { padding: 16px; gap: 8px; }
  .measure-card .m-icon { width: 38px; height: 38px; font-size: 18px; }
  .measure-card .m-name { font-size: 15px; }
  .measure-card .m-note { font-size: 12.5px; }
  .measure-card .m-go { font-size: 12px; }

  .case-hero .ch-head { padding: 22px 18px 0; gap: 12px; }
  .case-hero .ch-icon { width: 46px; height: 46px; font-size: 20px; }
  .case-hero h2 { font-size: 18px; }
  .case-hero .ch-body { padding: 6px 18px 10px; font-size: 13.5px; }
  .case-hero .ch-tech { padding: 2px 18px 10px; }
  .chip { font-size: 12px; padding: 3px 10px; }
  .case-hero .ch-points { padding: 2px 18px 16px; }
  .case-hero .ch-cta { padding: 0 18px 20px; flex-direction: column; }
  .case-hero .ch-cta .btn { width: 100%; }

  .k-card .k-top { padding: 16px 16px 10px; gap: 10px; }
  .k-card .k-icon { width: 40px; height: 40px; font-size: 18px; }
  .k-card .k-title { font-size: 15.5px; }
  .k-card .k-sum { padding: 0 16px; font-size: 13.5px; }
  .k-card .k-points { padding: 12px 16px; }
  .k-card .k-meta { padding: 10px 16px; }

  .big-point { padding: 18px 12px; }
  .big-point .n { font-size: 22px; }
  .big-point .l { font-size: 12.5px; }
  .big-points { gap: 12px; margin: 22px 0; }
  .article-head h1 { font-size: 24px; }

  .step-card { padding: 18px 16px; margin-bottom: 16px; }
  .step-card .step-tag { font-size: 16px; }
  .step-tag .no { width: 26px; height: 26px; font-size: 12px; }
  .step-help { font-size: 12.5px; }
  .pick { padding: 11px 6px; font-size: 13.5px; }
  .pick .p-icon { font-size: 22px; margin-bottom: 3px; }
  .pick .p-check { width: 16px; height: 16px; font-size: 10px; line-height: 16px; top: 5px; right: 5px; }
  .slider-row { flex-wrap: wrap; gap: 8px; }
  .slider-row input[type="range"] { flex: 1 1 100%; }
  .num-input { width: 100%; text-align: center; }
  .mrow { padding: 11px 12px; gap: 8px; }
  .mrow .m-icon { width: 36px; height: 36px; font-size: 16px; }
  .mrow .m-info { min-width: 0; }
  .mrow .m-name { font-size: 14px; }
  .mrow .m-sub { font-size: 11px; }
  .switch { width: 38px; height: 20px; }
  .switch::after { width: 14px; height: 14px; }
  .mrow.on .switch::after { left: 20px; }

  .rp-head { padding: 12px 16px; flex-wrap: wrap; gap: 6px; }
  .rp-sub { padding: 8px 16px 2px; }
  .rp-body { padding: 16px 16px; }
  .big-num .n { font-size: 34px; }
  .eq-row { gap: 8px; }
  .eq-box { padding: 11px 4px; }
  .eq-box .e-n { font-size: 16px; }
  .eq-box .e-l { font-size: 11px; }
  .eq-note { font-size: 10.5px; line-height: 1.5; }
  .bill { padding: 12px 14px; }
  .bill .b-row { font-size: 13px; }
  .bill .b-total { font-size: 15px; }
  .detail-list { font-size: 12px; }
  .rp-actions { padding: 0 16px 14px; }
  .nickname-row { padding: 0 16px 12px; }

  #presetChips { padding: 8px 0 0; }
  #presetChips .chip-btn { font-size: 12px; padding: 3px 10px; }

  .price-hero { gap: 12px; }
  .stat-card { padding: 14px 12px; }
  .stat-card .num { font-size: 22px; }
  .stat-card .lab { font-size: 11.5px; }
  .book { gap: 12px; }
  .book .bk { padding: 18px 14px; }
  .book .bk .v { font-size: 22px; }

  .sp-hero { padding: 44px 0 40px; }
  .sp-hero h1 { font-size: 26px; }
  .sp-sub { font-size: 14px; padding: 0 16px; }
  .sp-hero-points { gap: 12px; margin: 22px auto 0; padding: 0 16px; }
  .sp-hp { padding: 16px 12px; }
  .sp-hp .n { font-size: 22px; }
  .sp-hp .l { font-size: 12px; }
  .sp-econ { padding: 14px 12px; }
  .sp-econ .b-row { font-size: 13px; padding: 4px 0; }
  .sp-econ .b-total { font-size: 15px; }

  .quiz-q { font-size: 16px; margin-bottom: 12px; }
  .quiz-opt { padding: 11px 14px; font-size: 14px; }
  .quiz-explain { font-size: 13px; padding: 10px 14px; }

  .glossary-item { padding: 14px 16px !important; }
  .glossary-item > div:first-child { font-size: 15px !important; }

  .snippet { font-size: 12.5px; }

  .flag-badge { font-size: 11px; padding: 2px 8px; }

  .faq-item summary { padding: 14px 18px; font-size: 14.5px; }
  .faq-item .fa-body { padding: 0 18px 16px; font-size: 13.5px; }

  .site-footer { padding: 14px 0 14px; margin-top: 28px; }
  .foot-grid { display: none; }
  .foot-note { border: none; margin: 0; padding: 0; text-align: center; font-size: 11px; line-height: 1.6; }
  .foot-note > p:first-of-type { display: none; }
  .foot-companies { display: none; }
  .foot-filing { display: none; }
}

/* ==========================================================
   📱 底部导航栏 + 阅读增强
   ========================================================== */
.tabbar, .tabbar-more, .read-progress { display: none; }

@media (max-width: 760px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: flex-end;
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 10.5px; color: var(--ink-2); text-decoration: none !important; padding: 3px 0;
    transition: color .15s;
  }
  .tabbar a .t-ico { font-size: 21px; line-height: 1.25; }
  .tabbar a.on { color: var(--acc-hover); font-weight: 700; }
  .tabbar a.t-center { flex: 0 0 92px; }
  .tabbar a.t-center .t-ico {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--acc-light)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin-top: -28px;
    box-shadow: 0 6px 18px rgba(26, 122, 82, .4); border: 4px solid var(--bg);
  }
  .tabbar a.t-center span.t-lab { margin-top: 1px; }
  body { padding-bottom: 78px; }
  .jump-result { bottom: calc(90px + env(safe-area-inset-bottom)); }

  .tabbar-more {
    position: fixed; left: 14px; right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 12px; z-index: 96;
  }
  .tabbar-more.open { display: block; }
  .tabbar-more a {
    display: inline-flex; justify-content: center; width: calc(33.33% - 8px);
    padding: 11px 0; margin: 4px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 13px; color: var(--ink); text-decoration: none !important; background: var(--bg);
  }
}

.read-progress { display: block; position: fixed; top: 64px; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--acc), var(--acc-light)); z-index: 99; }

.art-tools { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.art-tools button {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px;
  padding: 4px 14px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
  transition: all .15s;
}
.art-tools button:hover { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc-hover); }

.search-box { width: 100%; max-width: 640px; }
.snippet { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.snippet b { color: var(--acc-hover); background: var(--acc-soft); padding: 0 3px; border-radius: 3px; }

/* ==========================================================
   🌟 主题专题
   ========================================================== */
.topic-wdr  { --sp-acc: #9A5B0B; --sp-soft: #FDF6ED; --sp-line: #EBD9C0; }
.topic-drone{ --sp-acc: #1565C0; --sp-soft: #E8F1FB; --sp-line: #C4DAF2; }

.sp-hero {
  padding: 64px 0 52px;
  background:
    radial-gradient(1000px 380px at 85% -10%, var(--sp-soft, var(--acc-soft)), transparent 65%),
    radial-gradient(700px 300px at 8% 110%, var(--acc-soft), transparent 60%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.sp-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--sp-line, var(--acc-line)); background: var(--bg-2);
  color: var(--sp-acc, var(--acc-hover)); font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.sp-hero h1 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.sp-sub { color: var(--ink-2); max-width: 760px; margin: 16px auto 0; font-size: 16px; text-align: center; }

.sp-anchors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.sp-anchors a {
  font-size: 13px; color: var(--ink-2); border: 1px dashed var(--line);
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.7);
}
.sp-anchors a:hover { color: var(--sp-acc, var(--acc-hover)); border-color: var(--sp-acc, var(--acc)); }

.sp-hero-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 920px; margin: 32px auto 0; }
.sp-hp {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 16px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.sp-hp:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sp-hp .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--sp-acc, var(--acc-hover)); }
.sp-hp .l { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.sp-legend { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.sp-legend b { color: var(--ink-2); }

.src { cursor: help; font-size: 10px; font-weight: 800; margin-left: 2px; padding: 1px 5px; border-radius: 999px; vertical-align: super; line-height: 1.4; }
.src-a { background: var(--acc-soft); color: var(--acc-hover); border: 1px solid var(--acc-line); }
.src-b { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid #EBD9C0; }
.src-c { background: #EEF1F0; color: var(--ink-2); border: 1px solid var(--line); }

.sp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* 专题首页入口 */
.sp-home-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.sp-entry {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .2s;
  text-decoration: none !important;
}
.sp-entry:hover { transform: translateY(-7px); box-shadow: var(--shadow-glow); border-color: var(--acc); }
.sp-entry:hover .sp-entry-ico { transform: scale(1.1) rotate(-3deg); }
.sp-entry .sp-entry-ico { transition: transform .25s; }
.sp-entry.topic-wdr:hover { border-color: var(--sp-line); }
.sp-entry.topic-drone:hover { border-color: var(--sp-line); }
.sp-entry-top { display: flex; align-items: center; gap: 10px; }
.sp-entry-ico { font-size: 24px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--acc-soft); border-radius: 12px; }
.sp-entry.topic-wdr .sp-entry-ico { background: var(--amber-soft); }
.sp-entry.topic-drone .sp-entry-ico { background: var(--carbon-soft); }
.sp-entry-tag { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; }
.sp-entry b { font-size: 20px; font-weight: 800; color: var(--ink); }
.sp-entry p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.sp-entry-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.sp-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--ink-2); }
.sp-stat i { display: block; font-size: 17px; font-weight: 800; color: var(--acc-hover); font-family: var(--font-mono); font-style: normal; }
.sp-entry.topic-wdr .sp-stat i { color: var(--amber-deep); }
.sp-entry.topic-drone .sp-stat i { color: var(--carbon); }
.sp-entry-go { color: var(--acc-hover); font-weight: 700; font-size: 14px; margin-top: 4px; }
.sp-entry.topic-wdr .sp-entry-go { color: var(--amber-deep); }
.sp-entry.topic-drone .sp-entry-go { color: var(--carbon); }

/* ==========================================================
   ✨ 动画层：数字过渡 / 飘字反馈 / 粒子流动 / 弹入 / 进度条
   ========================================================== */

/* 飘字反馈：措施开关时弹出 +X 吨 */
.float-tag {
  position: absolute; top: 50%; right: 16px; z-index: 200;
  background: var(--acc); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-family: var(--font-mono);
  pointer-events: none;
  animation: floatUp 1.2s ease-out forwards;
}
.float-tag-neg { background: var(--amber); }
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(8px) scale(.85); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; transform: translateY(-24px); }
  100% { opacity: 0; transform: translateY(-36px); }
}

/* 增收率进度条 */
.rate-bar {
  height: 8px; border-radius: 4px; background: var(--line-soft);
  overflow: hidden; margin: 6px auto 4px; max-width: 280px;
}
.rate-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--acc));
  border-radius: 4px; transition: width .8s cubic-bezier(.16, 1, .3, 1);
}

/* 明细行闪烁（措施切换时引导视线） */
.d-flash { animation: dFlash .4s ease; }
@keyframes dFlash {
  0% { background: var(--acc-soft); }
  100% { background: transparent; }
}

/* 碳去哪儿了：CO₂ 粒子流动 */
.flow-particle {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px rgba(5,150,105,.6);
  pointer-events: none;
  animation: flowDot 3s ease-in-out infinite;
}
@keyframes flowDot {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 流程图箭头流动虚线 */
.flow-arrow-line {
  position: relative; height: 2px; flex: 1; min-width: 20px;
  background: var(--line); overflow: hidden; border-radius: 1px;
}
.flow-arrow-line::after {
  content: ""; position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--acc); border-radius: 1px;
  animation: arrowFlow 2s linear infinite;
}
@keyframes arrowFlow { to { left: 100%; } }

/* 大数字弹入 */
.big-point { opacity: 0; transform: translateY(12px) scale(.95); transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.big-point.big-in { opacity: 1; transform: translateY(0) scale(1); }

/* 统计数字弹跳到位 */
.stat-num-done { animation: statPop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* 专题账本逐行构建 */
.topic-econ-row {
  opacity: 0; transform: translateX(-12px);
  animation: rowSlide .4s ease forwards;
}
@keyframes rowSlide { to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .float-tag, .flow-particle, .flow-arrow-line::after, .big-point, .topic-econ-row { animation: none !important; transition: none !important; }
}


/* ==========================================================
   📖 滚动叙事：碳的旅程
   粘性视窗 + 滚动轨道；五幕场景用 grid 同格叠放
   （全部保留在文档流中，容器按最高场景撑开，不会塌陷）
   ========================================================== */

.journey {
  position: relative;
  height: 500vh;  /* 5 幕 × 100vh 滚动空间 */
  /* 浅色留边：深色叙事区是一张圆角"幕布"，圆角+留白即过渡，不做装饰粘合 */
  padding: clamp(22px, 4vh, 44px) 14px 14px;
  box-sizing: border-box;
}
.journey-stage {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(64px, 9vh, 96px) 24px clamp(64px, 9vh, 104px);
  box-sizing: border-box;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(6, 26, 16, .28);
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(16,74,46,.55) 0%, rgba(10,31,20,0) 70%),
    linear-gradient(180deg, #0B2417 0%, #0D2818 55%, #081A11 100%);
  color: #E8F5E9;
  overflow: hidden;
}

/* 背景：缓缓上浮的碳泡 */
.jw-bg { position: absolute; inset: 0; pointer-events: none; }
.jw-bg i {
  position: absolute; bottom: -24px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(74,222,128,.35);
  box-shadow: 0 0 10px rgba(74,222,128,.3);
  animation: jwFloat linear infinite;
}
.jw-bg i:nth-child(1) { left: 6%;  width: 5px; height: 5px; animation-duration: 17s; }
.jw-bg i:nth-child(2) { left: 16%; animation-duration: 13s; animation-delay: -4s; }
.jw-bg i:nth-child(3) { left: 27%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: -9s; }
.jw-bg i:nth-child(4) { left: 41%; animation-duration: 12s; animation-delay: -2s; }
.jw-bg i:nth-child(5) { left: 58%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: -7s; }
.jw-bg i:nth-child(6) { left: 71%; animation-duration: 14s; animation-delay: -11s; }
.jw-bg i:nth-child(7) { left: 84%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -5s; }
.jw-bg i:nth-child(8) { left: 93%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: -13s; }
@keyframes jwFloat {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* 头部 */
.jw-head { position: relative; z-index: 1; text-align: center; }
.jw-eyebrow {
  display: inline-block; font-family: var(--font-mono, monospace);
  font-size: 11px; letter-spacing: 3px; color: rgba(74,222,128,.8);
  padding: 5px 14px; border: 1px solid rgba(74,222,128,.28); border-radius: 999px;
  background: rgba(74,222,128,.08);
}
.jw-head h2 {
  margin: 14px 0 4px; font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.jw-head p { margin: 0; font-size: 14px; color: rgba(232,245,233,.55); }

/* 场景层 */
.jw-scenes {
  position: relative; z-index: 1;
  flex: 1; width: 100%; max-width: 900px; min-height: 0;
  display: grid; place-content: center; justify-items: center;
}
.jw-scene {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px;
  opacity: 0; transform: translateY(26px) scale(.97);
  visibility: hidden; pointer-events: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1), visibility 0s linear .65s;
}
.jw-scene.jw-active {
  opacity: 1; transform: none;
  visibility: visible; pointer-events: auto;
  transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1), visibility 0s;
}

/* 大图标 + 辉光环 */
.jw-ico {
  position: relative; display: block;
  font-size: clamp(56px, 8vw, 84px); line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.5));
}
.jw-ico::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 150px; height: 150px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74,222,128,.22) 0%, rgba(74,222,128,0) 68%);
}
.jw-scene.jw-active .jw-ico { animation: jwIcoIn .8s cubic-bezier(.34,1.4,.5,1) both; }
@keyframes jwIcoIn {
  0%   { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 场景文字 */
.jw-txt { max-width: 620px; }
.jw-kicker {
  font-family: var(--font-mono, monospace); font-size: 12px;
  letter-spacing: 2px; color: rgba(74,222,128,.85); margin-bottom: 8px;
}
.jw-scene h3 {
  margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.jw-scene p {
  margin: 0 auto; font-size: clamp(14px, 1.6vw, 16.5px);
  color: rgba(232,245,233,.75); line-height: 1.9; max-width: 560px;
}
.jw-scene p b { color: #4ADE80; font-weight: 700; }
.jw-txt .btn { margin-top: 20px; }

/* 第 3 幕：天平小图（排放 VS 固碳） */
.jw-balance {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; width: min(560px, 100%);
}
.jwb-side {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.22);
}
.jwb-emis { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.3); }
.jwb-t { font-size: 11px; letter-spacing: 3px; margin-bottom: 2px; color: rgba(232,245,233,.5); }
.jwb-emis .jwb-t { color: rgba(252,211,77,.95); }
.jwb-sink .jwb-t { color: rgba(74,222,128,.95); }
.jwb-i {
  font-size: 13px; color: rgba(232,245,233,.85);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06);
}
.jwb-vs {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 700;
  color: rgba(232,245,233,.65);
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  background: rgba(0,0,0,.3);
}

/* 底部进度轨道 */
.jw-rail { position: relative; z-index: 1; width: min(680px, 100%); }
.jw-rail-line {
  position: relative; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
.jw-rail-fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0%;
  background: linear-gradient(90deg, rgba(74,222,128,.45), #4ADE80);
  border-radius: 2px;
  transition: width .25s ease-out;
}
.jw-rail-steps { display: flex; justify-content: space-between; margin-top: 10px; }
.jw-rs {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-mono, monospace);
  color: rgba(255,255,255,.3);
  transition: color .4s, text-shadow .4s;
}
.jw-rs b { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.jw-rs em { font-style: normal; font-size: 11px; letter-spacing: 2px; opacity: .85; }
.jw-rs.jw-done { color: rgba(110,231,183,.9); }
.jw-rs.jw-done em { opacity: 1; }
.jw-rs.jw-on  { color: #4ADE80; text-shadow: 0 0 14px rgba(74,222,128,.55); }
#jwSub { transition: opacity .35s ease; }

/* 移动端 */
@media (max-width: 760px) {
  .journey { height: 420vh; padding: 12px 10px 10px; }
  .journey-stage { border-radius: 24px; padding: calc(76px + 6px) 20px calc(96px + env(safe-area-inset-bottom)); }
  .jw-head h2 { font-size: 24px; }
  .jw-head p { font-size: 12.5px; }
  .jw-ico { font-size: 60px; margin-bottom: 14px; }
  .jw-ico::before { width: 118px; height: 118px; }
  .jw-scene h3 { font-size: 22px; }
  .jw-scene p { font-size: 14px; line-height: 1.85; }
  .jw-balance { gap: 10px; margin-top: 18px; }
  .jwb-side { padding: 10px 11px; gap: 5px; }
  .jwb-i { font-size: 12px; padding: 5px 8px; }
  .jwb-vs { width: 30px; height: 30px; font-size: 10px; }
  .jw-rs em { letter-spacing: 1px; }
}

/* 无动画偏好：取消粘性，五幕垂直平铺 */
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .journey-stage { position: relative; height: auto; padding: 48px 20px; }
  .jw-bg, .jw-rail { display: none; }
  .jw-scenes { display: block; }
  .jw-scene {
    grid-area: auto; margin: 0 auto 40px;
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: none;
  }
  .jw-scene.jw-active .jw-ico { animation: none; }
  .jw-rail-fill { transition: none; }
}

