/* 星海官网 · 大胆、明亮、贴纸感的现代视觉（参考 37signals/Fizzy 家风格）
   原则：厚描边 + 硬投影 + 高饱和点缀 + 大字标题；信息密度不降，气质更外放。 */

:root {
  /* 墨与纸 */
  --ink: #101a2c;
  --ink-2: #2a3a55;
  --ink-soft: #33415c;
  --muted: #65718c;
  --paper: #fdf8ef;
  --paper-2: #f7efe1;
  --surface: #fffdf8;
  --line: #e6dac6;
  --edge: #101a2c;

  /* 星海品牌色：海青 / 星橙 / 珊瑚 / 柠檬 */
  --sea: #0f9aa8;
  --sea-deep: #0a6b76;
  --sea-bright: #1cc6d8;
  --sea-mist: #d6f4f2;
  --star: #ff8a2b;
  --star-soft: #ffe7d1;
  --coral: #ff5d73;
  --coral-soft: #ffe1e6;
  --lemon: #ffd93d;
  --lemon-soft: #fff3c6;
  --mint-soft: #d9f7e8;
  --sky-soft: #ddeaff;
  --grape: #7c5cff;
  --grape-soft: #eae4ff;

  --ok: #15803d;
  --no-bg: #f7ece4;

  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 4px 4px 0 var(--edge);
  --shadow-lg: 8px 8px 0 var(--edge);

  --font-display: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-latin: "Instrument Serif", Georgia, serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sea-bright); color: #06222b; }
a { color: var(--sea-deep); }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 区块骨架：色块分明 ---------- */
.section { scroll-margin-top: 72px; padding: 64px 0; }
.section-tint { background: var(--paper-2); }
.section-ink {
  background:
    radial-gradient(110% 90% at 12% 0%, rgba(28, 198, 216, 0.22), transparent 58%),
    linear-gradient(155deg, #0a2233 0%, #0d3a4a 55%, #0a5563 100%);
  color: #e9f7fb;
}
.section-ink .eyebrow { background: var(--lemon); color: #5c3a00; border-color: #b8892f; }
.section-ink h2 { color: #fff; }
.section-ink .lede { color: #b6d3da; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 14px 44px;
  align-items: end;
  margin-bottom: 34px;
}
.sec-head .lede { margin: 0; max-width: none; }
.sec-head > div:only-child { grid-column: 1 / -1; }
@media (max-width: 780px) {
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 13px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a4600;
  background: var(--lemon-soft);
  border: 1.5px solid var(--edge);
  border-radius: var(--pill);
  font-weight: 800;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--edge);
}
.topbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 2px solid var(--edge);
  background: #fff;
}
.brand-zh {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
}
.brand-en {
  font-family: var(--font-latin);
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--pill);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--sea-deep); background: var(--sea-mist); }
.nav-cta {
  margin-left: 10px;
  background: var(--sea-bright) !important;
  color: #06222b !important;
  border: 2px solid var(--edge);
  box-shadow: 3px 3px 0 var(--edge);
  font-weight: 800 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
.menu-btn {
  display: none;
  margin-left: auto;
  border: 2px solid var(--edge);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--edge);
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 2px solid var(--edge);
    padding: 12px 20px 18px;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero：大字 + 亮色 + 贴纸面板 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(90% 80% at 88% 6%, rgba(28, 198, 216, 0.5), transparent 56%),
    radial-gradient(70% 60% at 2% 100%, rgba(255, 138, 43, 0.32), transparent 58%),
    linear-gradient(150deg, #071c2b 0%, #0b3341 50%, #09515f 100%);
  color: #eaf9ff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 62%;
  background: radial-gradient(closest-side, rgba(255, 217, 61, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 40px 56px;
  align-items: center;
  padding: 72px 0 52px;
}
.hero-copy { min-width: 0; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-pill b { color: var(--lemon); font-weight: 800; }
.hero-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sea-bright);
  box-shadow: 0 0 0 3px rgba(28, 198, 216, 0.25);
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #8fd8e2;
}
.brand-mark span {
  font-family: var(--font-latin);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: #6fb6c2;
  margin-left: 6px;
  text-transform: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: #fff;
}
.hero h1 .hl {
  color: var(--lemon);
  text-decoration: underline;
  text-decoration-color: var(--star);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.1em;
}
.hero-sub {
  margin: 0;
  color: #bcd9e0;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 32em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--pill);
  border: 2px solid var(--edge);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--sea-bright); color: #06222b; }
.btn-primary:hover { background: #35d6e6; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  color: #eaf9ff;
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; box-shadow: none; }

.hero-visual { min-width: 0; }
.visual-panel {
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
}
.visual-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--ink);
  color: #a9c2cf;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-bottom: 2px solid var(--edge);
}
.visual-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}
.visual-bar span:nth-child(1) { background: var(--coral); }
.visual-bar span:nth-child(2) { background: var(--lemon); }
.visual-bar span:nth-child(3) { background: var(--sea-bright); }
.visual-bar em {
  margin-left: auto;
  font-style: normal;
  color: #8fb0be;
}
.visual-body { padding: 16px 18px 18px; }
.visual-term {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.visual-term .cmd { color: var(--sea-deep); font-weight: 700; }
.visual-term .ok { color: #15803d; font-weight: 700; }
.visual-term .dim { color: var(--muted); }
.visual-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 16px;
}
.visual-steps span {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 2px;
  background: var(--sea-mist);
  color: var(--sea-deep);
  border: 1.5px solid var(--edge);
  border-radius: var(--pill);
}
.visual-steps span:last-child { background: var(--lemon-soft); color: #7a4600; }
.visual-foot {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* 指标条：四张贴纸 */
.proof {
  position: relative;
  z-index: 1;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 0 40px;
}
.proof-grid > div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
}
.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.proof-grid span {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: #a9c9d2;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 0 40px;
  }
  .hero-visual { max-width: 460px; }
  .visual-panel { transform: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 能力模块：厚边卡片 + 彩色小标 ---------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mod {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.mod:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.mod::before {
  content: "";
  display: block;
  width: 40px;
  height: 7px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: var(--dash, var(--sea));
}
.mod:nth-child(1)::before { --dash: var(--sea-bright); }
.mod:nth-child(2)::before { --dash: var(--star); }
.mod:nth-child(3)::before { --dash: var(--grape); }
.mod:nth-child(4)::before { --dash: var(--coral); }
.mod:nth-child(5)::before { --dash: var(--lemon); }
.mod:nth-child(6)::before { --dash: #34c98a; }
.mod h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
}
.mod p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 860px) { .mod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .mod-grid { grid-template-columns: 1fr; } }

/* ---------- 定位：深色四格 ---------- */
.promise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.promise-grid li {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.promise-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lemon);
  color: #5c3a00;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.promise-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}
.promise-grid p {
  margin: 0;
  color: #b6d3da;
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 940px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- 闭环 ---------- */
.flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.flow {
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.flow:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.flow h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
}
.flow-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.flow-steps li {
  position: relative;
  padding: 7px 14px;
  background: var(--sea-mist);
  border: 1.5px solid var(--edge);
  border-radius: var(--pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sea-deep);
}
.flow-steps li:nth-child(2) { background: var(--sky-soft); color: #234a80; }
.flow-steps li:nth-child(3) { background: var(--grape-soft); color: #4a34a8; }
.flow-steps li:nth-child(4) { background: var(--lemon-soft); color: #7a4600; }
.flow p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) { .flows { grid-template-columns: 1fr; } }

/* ---------- 部署 ---------- */
.deploy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 880px) { .deploy-layout { grid-template-columns: 1fr; } }

.docker-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.docker-note code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface);
  border: 1.5px solid var(--edge);
  border-radius: 7px;
  padding: 1px 6px;
  color: var(--ink);
}
.codeblock {
  background: #0c1826;
  color: #dbe7f2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--edge);
  box-shadow: var(--shadow);
}
.codeblock header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 2px solid var(--edge);
  background: #132639;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9fb6c8;
}
.codeblock pre {
  margin: 0;
  padding: 18px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
}
.codeblock .c { color: #8296a8; }
.codeblock .k { color: var(--lemon); }
.codeblock .s { color: #7fe0a8; }
.copybtn {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7f2;
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.copybtn:hover { border-color: var(--sea-bright); color: #fff; background: rgba(28, 198, 216, 0.18); }

.env {
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.env > div {
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border-bottom: 1.5px dashed var(--line);
  font-size: 0.9rem;
}
.env > div:last-child { border-bottom: none; }
.env dt { margin: 0; color: var(--ink); font-weight: 800; font-family: var(--font-mono); font-size: 0.86rem; }
.env dd { margin: 0; color: var(--muted); }

/* ---------- 场景 ---------- */
.recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.recipe {
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.recipe:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.recipe-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #7a4600;
  background: var(--lemon-soft);
  border: 1.5px solid var(--edge);
  border-radius: var(--pill);
  font-weight: 800;
}
.recipe:nth-child(2) .recipe-tag { background: var(--sky-soft); color: #234a80; }
.recipe:nth-child(3) .recipe-tag { background: var(--mint-soft); color: #166534; }
.recipe h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 900;
}
.recipe p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 820px) { .recipes { grid-template-columns: 1fr; } }

/* ---------- 自动过账：链路 + 分录示例 ---------- */
.linkage {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.linkage li {
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.linkage-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sea-bright);
  color: #06222b;
  border: 1.5px solid var(--edge);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.linkage li:nth-child(2) .linkage-idx { background: var(--grape); color: #fff; }
.linkage li:nth-child(3) .linkage-idx { background: var(--lemon); color: #5c3a00; }
.linkage h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
}
.linkage p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.entry {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.entry header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: var(--ink);
  border-bottom: 2px solid var(--edge);
}
.entry-tag {
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--sea-bright);
  color: #06222b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.entry header b { color: #cfe9ee; font-size: 0.82rem; font-weight: 700; }
.entry table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.entry th, .entry td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1.5px dashed var(--line);
}
.entry tr:last-child th, .entry tr:last-child td { border-bottom: none; }
.entry th {
  font-weight: 700;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.entry td {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.entry td.dr { color: var(--sea-deep); }
.entry td.cr { color: #9f1239; }
.entry-note {
  margin: 0;
  padding: 12px 18px;
  background: var(--paper-2);
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .linkage { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
}

/* ---------- 对比 / 边界 ---------- */
.honest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.9fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 920px) { .honest-layout { grid-template-columns: 1fr; } }

.compare-wrap {
  overflow-x: auto;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare th, .compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid var(--edge);
}
.compare thead th:nth-child(2) { background: var(--sea-deep); color: #fff; }
.compare tbody th {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  width: 4.5em;
}
.compare tbody tr:nth-child(odd) { background: rgba(247, 239, 225, 0.5); }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }

.bounds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bound {
  padding: 20px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bound.do { background: var(--mint-soft); }
.bound.dont { background: var(--coral-soft); }
.bound h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 900;
}
.bound.do h3 { color: #14532d; }
.bound.dont h3 { color: #9f1239; }
.bound ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}
.bound li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.faq details {
  border-bottom: 2px solid var(--line);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 30px 16px 0;
  list-style: none;
  font-family: var(--font-display);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border: 1.5px solid var(--edge);
  border-radius: 50%;
  background: var(--lemon-soft);
  color: #7a4600;
  font-size: 15px;
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; background: var(--sea-mist); color: var(--sea-deep); }
.faq details p {
  margin: 0 0 18px;
  padding-right: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }

/* ---------- 收尾 CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sea-deep) 0%, var(--sea) 55%, #12a7b6 100%);
  color: #fff;
  border-top: 2px solid var(--edge);
  border-bottom: 2px solid var(--edge);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 48px 0;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 6px;
}
.cta-band p { margin: 0; color: #d5f4f8; font-size: 1rem; }
.cta-band .btn-primary { background: var(--lemon); color: #4a2f00; }
.cta-band .btn-primary:hover { background: #ffe066; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: #9fb0c4;
  padding: 52px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}
.footer-brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-brand span {
  font-family: var(--font-latin);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  margin-left: 6px;
  color: #6fb6c2;
}
.footer-tag { margin: 0; font-size: 0.9rem; }
.footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer a {
  display: block;
  color: #9fb0c4;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 6px 0;
}
.footer a:hover { color: var(--sea-bright); }
.footer-fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1.5px solid #2b3a52;
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--edge);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  z-index: 30;
}
.totop.show { display: block; }
.totop:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.hero-copy .reveal:nth-child(1) { transition-delay: 0.03s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.13s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.18s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.23s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .mod:hover, .flow:hover, .recipe:hover, .totop:hover { transform: none; }
}
