/* ===========================================================
   Apipost 单机版 — design tokens
   Palette pulled from the product mark: deep vault brown +
   bronze/gold, evoking an offline safe rather than a SaaS app.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700;900&family=Noto+Sans+SC:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  --bg:            #17120d;
  --bg-elevated:   #1f1811;
  --bg-elevated-2: #251d15;
  --line:          rgba(197, 165, 114, 0.16);
  --line-strong:   rgba(197, 165, 114, 0.32);

  --gold:          #b49461;
  --gold-light:    #dcc190;
  --gold-dim:      #8a6f47;
  --espresso:      #3a2921;
  --espresso-deep: #2a1c16;

  --cream:         #f4ecdd;
  --cream-dim:     #c9bda9;
  --cream-faint:   #8f8474;

  --ok:            #8fae7c;

  --serif: 'Noto Serif SC', 'Source Han Serif SC', serif;
  --sans:  'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --content-w: 1120px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
}

body{
  background-image:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(180,148,97,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 20%, rgba(180,148,97,0.08), transparent 55%);
  background-repeat: no-repeat;
}

img{ max-width: 100%; display: block; }

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

::selection{ background: var(--gold); color: var(--espresso-deep); }

:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
  color: var(--cream);
}

p{ margin: 0; }

.eyebrow-none{ /* placeholder to avoid stray class errors */ }

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-download-icon{ margin-left: 8px; flex: none; }

.btn-primary{
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a10;
  box-shadow: 0 10px 24px -10px rgba(180,148,97,0.55);
}
.btn-primary:hover{
  box-shadow: 0 14px 28px -10px rgba(180,148,97,0.7);
  transform: translateY(-1px);
}

.btn-ghost{
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn-ghost:hover{
  border-color: var(--gold);
  background: rgba(180,148,97,0.08);
}

.btn-block{ width: 100%; }

.btn-sm{ height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- nav ---------- */

.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(23, 18, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand img{
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-name{
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.brand-name b{
  position: relative;
  color: var(--gold-light);
  font-weight: 700;
}

.brand-mcp{
  position: absolute;
  top: -12px;
  right: -43px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 253, 248, .45);
  border-radius: 5px;
  background: var(--gold);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a{
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--cream-dim);
  transition: color .15s ease, background-color .15s ease;
}

.nav-links a:hover{ color: var(--cream); background: rgba(244,236,221,0.05); }

.nav-links a.active{
  color: var(--espresso-deep);
  background: var(--gold);
  font-weight: 600;
}

.nav-cta{ display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.theme-toggle{
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(244, 236, 221, 0.05);
  color: var(--gold-light);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.theme-toggle:hover{
  border-color: var(--gold);
  background: rgba(180, 148, 97, 0.13);
  transform: translateY(-1px);
}
.theme-toggle:focus-visible{ outline: 2px solid var(--gold-light); outline-offset: 3px; }
.theme-icon-moon{ display: none; }

.nav-toggle{
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .nav-cta .btn-ghost{ display: none; }
}

/* mobile drawer */
.mobile-drawer{
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 39;
  background: rgba(15, 11, 8, 0.98);
  padding: 28px 24px;
}
.mobile-drawer.open{ display: block; }
.mobile-drawer a{
  display: block;
  padding: 16px 4px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--cream-dim);
}
.mobile-drawer a.active{ color: var(--gold-light); }
.mobile-drawer .btn{ margin-top: 24px; }

/* ---------- section scaffolding ---------- */

section{ position: relative; }

.section-pad{ padding: 59px 0 0 0; }
@media (max-width: 760px){ .section-pad{ padding: 72px 0; } }

.section-head{
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head h2{
  font-size: clamp(28px, 3.6vw, 38px);
}

.section-head p{
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-dim);
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.kicker::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(180,148,97,0.25);
}

hr.rule{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- hero ---------- */

.hero{
  padding: 76px 0 40px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 26px;
}
.hero-eyebrow img{ width: 20px; height: 20px; border-radius: 6px; }

.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.01em;
}

.hero h1 .accent{ color: var(--gold-light); }

.hero-tagline{
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

.hero-sub{
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--cream-dim);
  max-width: 54ch;
}

.hero-mcp-card{
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 570px;
  margin-top: 24px;
  padding: 14px 17px;
  border: 1px solid rgba(220, 193, 144, .48);
  border-radius: var(--radius-m);
  background: linear-gradient(110deg, rgba(180, 148, 97, .17), rgba(43, 30, 21, .34));
  box-shadow: 0 15px 30px -22px rgba(0, 0, 0, .64), inset 0 1px 0 rgba(244, 236, 221, .06);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-mcp-card:hover{
  border-color: var(--gold-light);
  box-shadow: 0 20px 34px -21px rgba(0, 0, 0, .72), 0 0 22px -15px rgba(220, 193, 144, .82);
  transform: translateY(-2px);
}
.hero-mcp-icon{
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(220, 193, 144, .45);
  border-radius: 12px;
  background: rgba(180, 148, 97, .16);
  color: var(--gold-light);
}
.hero-mcp-copy{ display: grid; min-width: 0; gap: 3px; }
.hero-mcp-kicker{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-mcp-kicker > span{ width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px rgba(220, 193, 144, .85); }
.hero-mcp-copy strong{ color: var(--cream); font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.hero-mcp-copy small{ color: var(--cream-dim); font-size: 12px; line-height: 1.45; }
.hero-mcp-arrow{ margin-left: auto; color: var(--gold-light); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hero-mcp-arrow b{ margin-left: 4px; font-size: 16px; transition: transform .2s ease; }
.hero-mcp-card:hover .hero-mcp-arrow b{ display: inline-block; transform: translateX(3px); }

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-meta{
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-meta div{ font-size: 13.5px; color: var(--cream-faint); }
.hero-meta strong{
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 2px;
}

/* hero visual: local vault diagram */

.hero-visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.vault-panel{
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated) 60%, var(--bg));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(244,236,221,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vault-panel::before{
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 38%, rgba(180,148,97,0.25), transparent 62%);
  pointer-events: none;
}

.vault-mark{
  position: relative;
  width: 46%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

.vault-ring{
  position: absolute;
  inset: 0;
}

.orbit-node{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-dim);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.5);
}

.orbit-node .dot{ width: 6px; height: 6px; border-radius: 50%; }
.orbit-node.ok .dot{ background: var(--ok); }
.orbit-node.off .dot{ background: #c98a6f; }
.orbit-node.mcp{
  padding: 11px 16px;
  color: var(--gold-light);
  border-color: rgba(220,193,144,.58);
  background: linear-gradient(135deg, rgba(180,148,97,.28), rgba(58,41,33,.88));
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.65), 0 0 20px -10px rgba(220,193,144,.8);
  font-size: 12.5px;
}
.orbit-node.mcp .dot{ background: var(--gold-light); box-shadow: 0 0 9px rgba(220,193,144,.9); }

.orbit-1{ top: 6%; left: 4%; }
.orbit-2{ bottom: 10%; left: 3%; }
.orbit-3{ top: 12%; right: 3%; }
.orbit-4{ bottom: 4%; right: 4%; }

@media (max-width: 520px){
  .orbit-node{ font-size: 10.5px; padding: 7px 10px; }
  .orbit-node.mcp{ font-size: 10.5px; padding: 8px 11px; }
  .orbit-1{ left: -6px; }
  .orbit-3{ right: -6px; }
  .hero-mcp-card{ align-items: flex-start; padding: 13px; }
  .hero-mcp-arrow{ display: none; }
}

/* ---------- product preview ---------- */

.product-preview{
  padding: 42px 0 0;
}

.product-preview-head{
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
}

.product-preview-kicker{
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold-light);
}

.product-preview h2{
  font-size: clamp(28px, 3.6vw, 38px);
}

.product-preview p{
  margin-top: 14px;
  color: var(--cream-dim);
  font-size: 16px;
}

.product-preview-frame{
  position: relative;
  margin: 0;
}

.theme-compare{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--bg-elevated);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .9), 0 0 0 7px rgba(180, 148, 97, .045);
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.theme-compare img{
  width: 100%;
  height: auto;
}

.theme-compare-dark{ display: block; }

.theme-compare-light{
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.theme-label{
  position: absolute;
  top: 50%;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

.theme-label-light{
  left: 12px;
  color: #604b2b;
  background: rgba(255, 250, 240, .82);
  border: 1px solid rgba(112, 86, 42, .2);
}

.theme-label-dark{
  right: 12px;
  color: var(--cream);
  background: rgba(23, 18, 13, .74);
  border: 1px solid rgba(244, 236, 221, .18);
}

.theme-compare-handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  z-index: 3;
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  transform: translateX(-50%);
}

.theme-compare-handle::before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(23, 18, 13, .2), 0 0 18px rgba(0, 0, 0, .38);
}

.theme-compare-handle span{
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--gold);
  color: #241a10;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  transition: transform .16s ease, background-color .16s ease;
}

.theme-compare-handle:hover span,
.theme-compare-handle:focus-visible span{
  background: var(--gold-light);
  transform: translate(-50%, -50%) scale(1.08);
}

.theme-compare-handle:focus-visible{ outline: none; }

.theme-compare.is-revealing .theme-compare-light{
  animation: theme-light-reveal 1.5s cubic-bezier(.22, .8, .28, 1) both;
}

.theme-compare.is-revealing .theme-compare-handle{
  animation: theme-handle-reveal 1.5s cubic-bezier(.22, .8, .28, 1) both;
}

.theme-compare.is-revealing .theme-label{
  animation: theme-label-reveal 1.5s ease both;
}

@keyframes theme-light-reveal{
  0%, 18%{ clip-path: inset(0 50% 0 0); }
  62%{ clip-path: inset(0 22% 0 0); }
  100%{ clip-path: inset(0 50% 0 0); }
}

@keyframes theme-handle-reveal{
  0%, 18%{ left: 50%; }
  62%{ left: 78%; }
  100%{ left: 50%; }
}

@keyframes theme-label-reveal{
  0%, 18%{ opacity: .55; transform: translateY(-4px); }
  34%, 100%{ opacity: 1; transform: translateY(0); }
}

.product-preview-frame figcaption{
  margin-top: 16px;
  color: var(--cream-faint);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px){
  .product-preview{ padding: 18px 0 62px; }
  .theme-compare{ border-radius: var(--radius-m); }
  .product-preview p{ font-size: 15px; line-height: 1.6; }
  .theme-label{ top: 9px; padding: 4px 7px; font-size: 10px; transform: none; writing-mode: horizontal-tb; }
  .theme-label-light{ left: 9px; }
  .theme-label-dark{ right: 9px; }
}

@media (prefers-reduced-motion: reduce){
  .theme-compare.is-revealing .theme-compare-light,
  .theme-compare.is-revealing .theme-compare-handle,
  .theme-compare.is-revealing .theme-label{ animation: none; }
}

/* ---------- audience split ---------- */

.split{
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-elevated);
}

.split-col{
  padding: 48px 44px;
}

.split-div{ background: var(--line); }

@media (max-width: 820px){
  .split{ grid-template-columns: 1fr; }
  .split-div{ height: 1px; width: 100%; }
  .split-col{ padding: 36px 28px; }
}

.split-tag{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}

.split-col h3{
  font-size: 23px;
  margin-bottom: 14px;
}

.split-col p{
  color: var(--cream-dim);
  line-height: 1.85;
  font-size: 15.5px;
}

.split-col ul{
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-col li{
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--cream-dim);
}
.split-col li svg{ flex: none; margin-top: 3px; color: var(--gold); }

/* ---------- feature bento ---------- */

.bento{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.bento .card{ grid-column: span 2; }
.bento .card.wide{ grid-column: span 4; }
.bento .card.tall{ grid-row: span 2; }

@media (max-width: 900px){
  .bento{ grid-template-columns: repeat(2, 1fr); }
  .bento .card{ grid-column: span 2; }
  .bento .card.wide{ grid-column: span 2; }
}

.card{
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.card:hover{
  border-color: var(--line-strong);
  background: var(--bg-elevated-2);
}

.card-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.card h3{
  font-size: 18.5px;
  margin-bottom: 10px;
}

.card p{
  color: var(--cream-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream-dim);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 7px;
  padding: 6px 10px;
}

/* ---------- trust strip ---------- */

.trust-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-top: 59px;
}

.trust-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item{
  background: var(--bg-elevated);
  padding: 40px 40px;
  display: flex;
  gap: 16px;
}

@media (max-width: 760px){
  .trust-grid{ grid-template-columns: 1fr; }
}

.trust-item svg{ flex: none; color: var(--gold); margin-top: 2px; }
.trust-item h4{ font-size: 16px; margin-bottom: 6px; }
.trust-item p{ font-size: 14px; color: var(--cream-dim); line-height: 1.7; }

/* ---------- CTA banner ---------- */

.cta-banner{
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--espresso-deep), var(--espresso) 55%, #4a3524);
  border: 1px solid var(--line-strong);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after{
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(220,193,144,0.25), transparent 70%);
  pointer-events: none; /* 纯装饰光晕,不拦截点击(否则盖住 .cta-actions 按钮) */
}

.cta-banner h2{ font-size: clamp(24px, 3vw, 32px); max-width: 480px; }
.cta-banner p{ color: var(--cream-dim); margin-top: 12px; font-size: 15.5px; max-width: 460px; }
.cta-actions{ display: flex; gap: 14px; position: relative; z-index: 1; flex: none; }

@media (max-width: 760px){
  .cta-banner{ flex-direction: column; align-items: flex-start; padding: 44px 28px; }
}

/* ---------- footer ---------- */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-grid{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand{ max-width: 320px; }
.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ color: var(--cream-faint); font-size: 13.5px; line-height: 1.8; }

.footer-cols{ display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5{
  font-size: 13px;
  color: var(--cream-faint);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--sans);
}
.footer-col a, .footer-col span{
  display: block;
  font-size: 14px;
  color: var(--cream-dim);
  padding: 6px 0;
}
.footer-col a:hover{ color: var(--gold-light); }

.footer-bottom{
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--cream-faint);
}

/* ===========================================================
   Pricing page
   =========================================================== */

.price-hero{
  padding: 72px 0 20px;
  text-align: center;
}
.price-hero .kicker{ justify-content: center; }
.price-hero h1{
  font-size: clamp(30px, 4.4vw, 44px);
  max-width: 720px;
  margin: 0 auto;
}
.price-hero p{
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--cream-dim);
  font-size: 16.5px;
  line-height: 1.8;
}

.license-note{
  max-width: 760px;
  margin: 40px auto 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  text-align: left;
}
.license-note svg{ flex: none; color: var(--gold); margin-top: 3px; }
.license-note p{ font-size: 14px; color: var(--cream-dim); line-height: 1.75; }
.license-note strong{ color: var(--cream); }

.plans{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 960px){
  .plans{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.plan{
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured{
  background: linear-gradient(165deg, #26200a 0%, var(--bg-elevated) 55%);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(180,148,97,0.4);
  transform: translateY(-8px);
}
@media (max-width: 960px){ .plan.featured{ transform: none; } }

.plan-badge{
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--gold);
  color: var(--espresso-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan-name{ font-size: 15px; color: var(--cream-dim); margin-bottom: 18px; }

.plan-price{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  margin-bottom: 6px;
}
.plan-price .amount{ font-size: 42px; font-weight: 700; color: var(--cream); }
.plan-price .cycle{ font-size: 14px; color: var(--cream-faint); font-family: var(--sans); }

.plan-subprice{ font-size: 13px; color: var(--gold-light); margin-bottom: 26px; min-height: 18px; }

.plan-cta{ margin-bottom: 28px; }

.plan-features{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-features li{
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.6;
}
.plan-features li svg{ flex: none; margin-top: 3px; color: var(--gold); }
.plan-features li.muted{ color: var(--cream-faint); }
.plan-features li.muted svg{ color: var(--cream-faint); }
.plan-features li.mcp-plan-feature{
  align-items: center;
  color: var(--gold-light);
  font-weight: 600;
}
.mcp-feature-mark{
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(220,193,144,.55);
  border-radius: 4px;
  background: rgba(180,148,97,.16);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
}

.plan-foot{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--cream-faint);
}

/* ---------- how it works ---------- */

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } }

.step{ position: relative; padding-left: 4px; }
.step-num{
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-light);
  border: 1px solid var(--line-strong);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h4{ font-size: 16.5px; margin-bottom: 8px; }
.step p{ font-size: 14px; color: var(--cream-dim); line-height: 1.75; }

.step-connector{
  display: none;
}
@media (min-width: 821px){
  .steps{ position: relative; }
}

/* ---------- order demo ---------- */

.order-panel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-elevated);
}
@media (max-width: 860px){
  .order-panel{ grid-template-columns: 1fr; }
}

.order-form{ padding: 44px; border-right: 1px solid var(--line); }
.order-preview{ padding: 44px; background: var(--bg-elevated-2); display: flex; flex-direction: column; }
@media (max-width: 860px){ .order-form{ border-right: none; border-bottom: 1px solid var(--line); } }

.order-summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.order-summary .os-label{
  display: block;
  font-size: 12px;
  color: var(--cream-faint);
  margin-bottom: 4px;
}
.order-summary .os-plan{
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}
.order-summary .os-price{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin-right: auto;
  margin-left: 18px;
}
.order-summary .os-change{
  font-size: 13px;
  color: var(--cream-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.order-summary .os-change:hover{ border-color: var(--gold); color: var(--gold-light); }

@media (max-width: 480px){
  .order-summary{ flex-wrap: wrap; }
  .order-summary .os-price{ margin-left: 0; }
}

.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: 13.5px;
  color: var(--cream-dim);
  margin-bottom: 8px;
}
.field .hint{
  font-size: 12px;
  color: var(--cream-faint);
  margin-top: 7px;
  line-height: 1.6;
}

.field input, .field select{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14.5px;
}
.field input::placeholder{ color: var(--cream-faint); }
.field input:focus, .field select:focus{ border-color: var(--gold); }

.field input.mono{ font-family: var(--mono); letter-spacing: 0.02em; }

.order-preview h3{ font-size: 16px; margin-bottom: 4px; }
.order-preview .sub{ font-size: 13px; color: var(--cream-faint); margin-bottom: 24px; }

.license-card{
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--espresso-deep), #1c130d);
  padding: 26px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.license-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(180,148,97,0.28), transparent 55%);
}

.license-empty{
  position: relative;
  text-align: center;
  color: var(--cream-faint);
  font-size: 13.5px;
  line-height: 1.8;
}
.license-empty svg{ color: var(--gold-dim); margin-bottom: 14px; }

.license-filled{ display: none; position: relative; }
.license-filled.show{ display: block; animation: rise .5s ease; }

@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.license-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.license-top .l-label{ font-size: 12px; color: var(--gold-light); font-family: var(--mono); }
.license-top .l-status{
  font-size: 11.5px;
  background: rgba(143,174,124,0.18);
  color: var(--ok);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143,174,124,0.35);
}

.license-key{
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
  word-break: break-all;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.license-meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.license-meta div.span-2{ grid-column: 1 / -1; }
.license-meta div span{ display: block; font-size: 11.5px; color: var(--cream-faint); margin-bottom: 4px; }
.license-meta div strong{ font-family: var(--mono); font-size: 13px; color: var(--cream); font-weight: 500; }

.license-sent{
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--cream-dim);
  display: flex;
  gap: 8px;
  align-items: center;
}
.license-sent svg{ color: var(--ok); flex: none; }

/* 锚点定位留出吸顶导航高度,避免标题被盖住 */
#plans, #faq, #enterprise{ scroll-margin-top: 84px; }

/* ---------- FAQ ---------- */

.faq-list{
  border-top: 1px solid var(--line);
}
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  text-align: left;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}
.faq-q .plus{
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  transition: transform .2s ease;
}
.faq-item.open .plus{ transform: rotate(45deg); }

.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p{
  padding: 0 4px 24px;
  color: var(--cream-dim);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 72ch;
}

/* ---------- misc utility ---------- */

.text-center{ text-align: center; }
.mt-56{ margin-top: 56px; }

/* ---- order form: submit error hint + long license string ---- */
.order-error{
  font-size: 13px;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px;
}

.license-key.long{
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: left;
}

/* ---- order: paying state + copy license ---- */
.license-paying{
  display: none;
  position: relative;
  text-align: center;
  color: var(--cream-faint);
}
.license-paying.show{ display: block; animation: rise .5s ease; }

.lp-spinner{
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--line-strong);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: lp-spin 1s linear infinite;
  margin: 4px auto 16px;
}
@keyframes lp-spin{ to{ transform: rotate(360deg); } }

.lp-title{
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}
.lp-sub{ font-size: 13px; line-height: 1.7; margin-bottom: 18px; }

.lp-order{
  font-size: 12px;
  margin-top: 14px;
  color: var(--cream-faint);
}
.lp-order .mono{
  font-family: var(--mono);
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.license-copy{
  font-size: 12px;
  font-family: var(--mono);
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  margin-bottom: 18px;
  transition: border-color .2s ease, background .2s ease;
}
.license-copy:hover{
  border-color: var(--gold);
  background: rgba(180, 148, 97, 0.1);
}

/* ---- pay modal ---- */
.pay-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.pay-modal.open{ display: block; }

.pm-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 7, 0.74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pm-dialog{
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 40px));
  margin: 9vh auto 0;
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 30px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  max-height: 82vh;
  overflow: auto;
  animation: rise .4s ease;
}

.pm-close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.pm-close:hover{ color: var(--cream); border-color: var(--gold); }

.pm-kicker{
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-family: var(--mono);
}
.pm-title{
  font-size: 20px;
  color: var(--cream);
  margin: 6px 0 22px;
}

.pm-body{
  display: grid;
  grid-template-columns: 208px 1fr;
  gap: 28px;
  align-items: start;
}

.pm-qr-wrap{ text-align: center; }
.pm-qr{
  background: #fdfbf7;
  border-radius: 12px;
  padding: 10px;
  width: 188px;
  height: 188px;
  margin: 0 auto;
}
.pm-qr svg{ display: block; width: 100%; height: 100%; }
.pm-qr-hint{
  font-size: 12px;
  line-height: 1.7;
  color: var(--cream-faint);
  margin-top: 10px;
}

.pm-amount{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--cream-faint);
}
.pm-amount strong{
  font-size: 26px;
  color: var(--gold-light);
  font-family: var(--mono);
}

.pm-rows{ list-style: none; }
.pm-rows li{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--cream-faint);
}
.pm-rows strong{
  color: var(--cream);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.pm-rows .mono{ font-family: var(--mono); letter-spacing: 0.02em; }

.pm-status{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold-light);
}
.pm-status-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pm-pulse 1.2s ease infinite;
}
@keyframes pm-pulse{ 50%{ opacity: .25; } }

.pm-open-link{
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pm-open-link:hover{ color: var(--gold-light); }

/* ---- enterprise contact card ---- */
.enterprise-contact{ position: relative; }
.cta-banner:has(.enterprise-contact[open]){ overflow: visible; z-index: 3; }
.enterprise-contact summary{ list-style: none; }
.enterprise-contact summary::-webkit-details-marker{ display: none; }
.enterprise-contact summary::marker{ content: ''; }
.enterprise-contact-detail{
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  z-index: 60;
  width: 244px;
  padding: 19px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--bg-elevated-2);
  box-shadow: 0 22px 48px -20px rgba(0,0,0,.78);
  animation: rise .22s ease;
  text-align: center;
}
.enterprise-contact-detail strong{ display: block; color: var(--cream); font-family: var(--serif); font-size: 17px; }
.enterprise-contact-detail p{ margin: 7px 0 13px; color: var(--cream-faint); font-size: 11px; line-height: 1.55; }
.enterprise-contact-detail img{ width: 184px; height: 184px; margin: 0 auto; border-radius: 8px; background: #fff; }
.enterprise-contact-detail small{ display: block; margin-top: 11px; color: var(--gold-light); font-size: 10.5px; line-height: 1.45; }

/* ---- community QR entry ---- */
.community-float{
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 50;
  transform: translateY(-50%);
}
.community-float summary{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 54px;
  padding: 16px 11px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(160deg, rgba(54, 38, 25, .98), rgba(31, 22, 15, .98));
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .58), 0 0 24px -14px rgba(180, 148, 97, .5);
  color: var(--gold-light);
  cursor: pointer;
  list-style: none;
  transition: transform .2s ease, border-color .2s ease;
}
.community-float summary::-webkit-details-marker{ display: none; }
.community-float summary::marker{ content: ''; }
.community-float summary:hover{ border-color: var(--gold); transform: translateX(-3px); }
.community-float summary svg{ flex: none; }
.community-float summary span{
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.15;
  writing-mode: vertical-rl;
}
.community-float-detail{
  position: absolute;
  top: 50%;
  right: 66px;
  z-index: 2;
  width: 244px;
  padding: 19px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--bg-elevated-2);
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, .78);
  transform: translateY(-50%);
  animation: rise .22s ease;
  text-align: center;
}
.community-float-detail strong{ display: block; color: var(--cream); font-family: var(--serif); font-size: 17px; }
.community-float-detail p{ margin: 7px 0 13px; color: var(--cream-faint); font-size: 11px; line-height: 1.55; }
.community-float-detail img{ width: 184px; height: 184px; margin: 0 auto; border-radius: 8px; background: #fff; }
.community-float-detail small{ display: block; margin-top: 11px; color: var(--gold-light); font-size: 10.5px; line-height: 1.45; }
.community-float:not([open]) .community-float-detail{ display: none; }
.community-float:not([open]):hover .community-float-detail{ display: block; }

@media (max-width: 760px){
  .community-float{ top: auto; right: 14px; bottom: 18px; transform: none; }
  .community-float summary{ width: auto; min-height: 46px; flex-direction: row; padding: 10px 14px; border-right: 1px solid var(--line-strong); border-radius: 12px; }
  .community-float summary span{ font-size: 13px; writing-mode: horizontal-tb; }
  .community-float-detail{ top: auto; right: 0; bottom: calc(100% + 12px); transform: none; }
}

/* ---------- MCP page ---------- */

.mcp-hero{
  position: relative;
  overflow: hidden;
  padding: 110px 0 92px;
  background: radial-gradient(ellipse 700px 460px at 78% 44%, rgba(180,148,97,.16), transparent 70%);
}

.mcp-hero-grid{
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 72px;
  align-items: center;
}

.mcp-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mcp-kicker > span{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(143,174,124,.12);
}

.mcp-hero h1{
  margin-top: 20px;
  font-size: clamp(40px, 5.3vw, 62px);
  letter-spacing: -.03em;
}

.mcp-hero h1 span{ color: var(--gold-light); }

.mcp-hero-copy > p{
  max-width: 520px;
  margin-top: 23px;
  color: var(--cream-dim);
  font-size: 18px;
  line-height: 1.85;
}

.mcp-client-list{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 36px;
}

.mcp-client-list span{
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cream-faint);
  font-family: var(--mono);
  font-size: 11px;
}

.mcp-hero-visual{ position: relative; min-height: 355px; }

.mcp-visual-glow{
  position: absolute;
  inset: 6% 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(180,148,97,.22), transparent 68%);
}

.mcp-bridge-card{
  position: absolute;
  inset: 26px 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, rgba(37,29,21,.96), rgba(23,18,13,.92));
  box-shadow: 0 36px 70px -32px rgba(0,0,0,.9), inset 0 1px 0 rgba(244,236,221,.05);
}

.mcp-bridge-head{ display: flex; align-items: center; gap: 9px; color: var(--cream-dim); font-size: 14px; }
.mcp-bridge-head strong{ margin-left: auto; color: var(--ok); font-size: 12px; font-weight: 600; }
.mcp-status-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px rgba(143,174,124,.8); }

.mcp-bridge-flow{ display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 10px; }
.mcp-bridge-flow > div{ display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.mcp-bridge-flow b{ color: var(--cream); font-family: var(--serif); font-size: 16px; }
.mcp-bridge-flow small{ color: var(--cream-faint); font-size: 11px; }
.mcp-bridge-icon, .mcp-bridge-flow img{ display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; }
.mcp-bridge-icon{ border: 1px solid rgba(180,148,97,.42); background: rgba(180,148,97,.12); color: var(--gold-light); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.mcp-bridge-flow img{ padding: 8px; background: var(--espresso); }
.mcp-flow-line{ color: var(--gold-light); font-size: 26px; text-align: center; }
.mcp-bridge-note{ padding-top: 18px; border-top: 1px solid var(--line); color: var(--cream-faint); font-size: 12px; text-align: center; }

.mcp-intro{ padding-bottom: 84px; }
.mcp-scenarios{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcp-scenario{ padding: 31px 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-elevated); }
.mcp-scenario-num{ color: var(--gold-light); font-family: var(--mono); font-size: 12px; }
.mcp-scenario h3{ margin-top: 19px; font-size: 22px; }
.mcp-scenario p{ margin-top: 13px; color: var(--cream-dim); font-size: 14.5px; line-height: 1.8; }
.mcp-prompt{ margin-top: 22px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.14); color: var(--cream-faint); font-size: 12px; line-height: 1.65; }
.mcp-prompt::before{ content: '示例'; display: block; margin-bottom: 4px; color: var(--gold-dim); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }

.mcp-tools-section{ padding: 96px 0; background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcp-tools-head, .mcp-screenshot-head{ display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.mcp-tools-head h2, .mcp-screenshot-head h2{ margin-top: 14px; font-size: clamp(28px, 3.6vw, 38px); }
.mcp-tools-head > p, .mcp-screenshot-head > p{ max-width: 380px; color: var(--cream-dim); font-size: 15px; line-height: 1.8; }
.mcp-tool-table{ overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg); }
.mcp-tool-row{ display: grid; grid-template-columns: 1.18fr 1.35fr .9fr; gap: 28px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.mcp-tool-row:first-child{ border-top: 0; }
.mcp-tool-title{ padding-top: 13px; padding-bottom: 13px; background: var(--bg-elevated-2); color: var(--cream-faint); font-size: 12px; }
.mcp-tool-row code{ color: var(--gold-light); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.mcp-tool-row p{ color: var(--cream-dim); font-size: 14px; line-height: 1.55; }
.mcp-tool-row small{ color: var(--cream-faint); font-size: 13px; line-height: 1.55; }

.mcp-steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.mcp-steps li{ position: relative; display: flex; gap: 18px; }
.mcp-steps li:not(:last-child)::after{ content: ''; position: absolute; top: 19px; left: 51px; right: -15px; border-top: 1px dashed var(--line-strong); }
.mcp-steps > li > span{ position: relative; z-index: 1; display: grid; flex: none; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg-elevated); color: var(--gold-light); font-family: var(--mono); font-size: 13px; }
.mcp-steps h3{ font-size: 19px; }
.mcp-steps p{ margin-top: 10px; color: var(--cream-dim); font-size: 14px; line-height: 1.75; }

.mcp-screenshot-section{ padding: 94px 0; background: linear-gradient(180deg, var(--bg), var(--bg-elevated)); }
.mcp-screenshot{ margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: #f5efe3; box-shadow: 0 34px 80px -40px rgba(0,0,0,.9); }
.mcp-screenshot img{ width: 100%; height: auto; }
.mcp-screenshot figcaption{ padding: 14px 20px; background: var(--bg-elevated); color: var(--cream-faint); font-size: 12px; text-align: center; }

.mcp-safety{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; padding: 44px 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: linear-gradient(135deg, rgba(58,41,33,.68), var(--bg-elevated)); }
.mcp-safety h2{ margin-top: 15px; font-size: clamp(27px, 3vw, 36px); }
.mcp-safety ul{ display: grid; grid-template-columns: 1fr 1fr; gap: 25px 30px; margin: 0; padding: 0; list-style: none; }
.mcp-safety li b{ display: block; margin-bottom: 7px; color: var(--cream); font-family: var(--serif); font-size: 17px; }
.mcp-safety li span{ color: var(--cream-dim); font-size: 14px; line-height: 1.65; }

@media (max-width: 900px){
  .mcp-hero-grid, .mcp-safety{ grid-template-columns: 1fr; gap: 48px; }
  .mcp-scenarios, .mcp-steps{ grid-template-columns: 1fr; }
  .mcp-steps{ gap: 25px; }
  .mcp-steps li:not(:last-child)::after{ display: none; }
  .mcp-hero-visual{ max-width: 620px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px){
  .mcp-hero{ padding: 70px 0 62px; }
  .mcp-hero-copy > p{ font-size: 16px; }
  .mcp-hero-visual{ min-height: 295px; }
  .mcp-bridge-card{ inset: 14px 0; padding: 20px; }
  .mcp-bridge-flow{ grid-template-columns: 1fr 36px 1fr; }
  .mcp-flow-line{ font-size: 20px; }
  .mcp-tools-section, .mcp-screenshot-section{ padding: 68px 0; }
  .mcp-tools-head, .mcp-screenshot-head{ display: block; margin-bottom: 28px; }
  .mcp-tools-head > p, .mcp-screenshot-head > p{ margin-top: 16px; }
  .mcp-tool-table{ overflow-x: auto; }
  .mcp-tool-row{ min-width: 690px; padding: 17px; gap: 18px; }
  .mcp-safety{ padding: 32px 26px; }
  .mcp-safety ul{ grid-template-columns: 1fr; gap: 19px; }
}

@media (max-width: 640px){
  .pm-body{ grid-template-columns: 1fr; }
  .pm-qr-wrap{ margin: 0 auto; }
}


/* ---------- download dropdown（免费开始：点击直接下载 / 悬浮下拉全部安装包） ---------- */

.dl-wrap{
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.dl-menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 210px;
  max-width: calc(100vw - 32px);
  background: var(--bg-elevated-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}
.dl-group{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-faint);
  padding: 7px 8px 2px;
}
.dl-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  text-decoration: none;
}
.dl-item:hover{ background: rgba(180, 148, 97, 0.1); }
.dl-item .dl-name{ font-size: 12.5px; font-weight: 500; color: var(--cream); white-space: nowrap; }
.dl-item .dl-meta{ font-family: var(--mono); font-size: 10.5px; color: var(--cream-faint); white-space: nowrap; }
.dl-item.disabled{ cursor: not-allowed; }
.dl-item.disabled .dl-name{ color: var(--cream-faint); }
.dl-soon{
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--cream-faint);
  vertical-align: 1px;
}

/* ---------- light theme ---------- */
:root[data-theme="light"]{
  color-scheme: light;
  --bg: #faf8f3;
  --bg-elevated: #fffdf8;
  --bg-elevated-2: #f3ecdf;
  --line: rgba(108, 81, 41, .17);
  --line-strong: rgba(108, 81, 41, .35);
  --gold: #9b783f;
  --gold-light: #76582a;
  --gold-dim: #947750;
  --espresso: #e7d9c2;
  --espresso-deep: #d9c4a2;
  --cream: #2b241b;
  --cream-dim: #65594a;
  --cream-faint: #897b6b;
  --ok: #4d8062;
}
:root[data-theme="light"] body{
  background-image:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(180, 148, 97, .20), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 20%, rgba(180, 148, 97, .10), transparent 55%);
}
:root[data-theme="light"] .site-nav{ background: rgba(250, 248, 243, .86); }
:root[data-theme="light"] .mobile-drawer{ background: rgba(250, 248, 243, .98); }
:root[data-theme="light"] .nav-links a:hover{ background: rgba(108, 81, 41, .08); }
:root[data-theme="light"] .theme-toggle{ background: rgba(108, 81, 41, .07); color: var(--gold); }
:root[data-theme="light"] .theme-icon-sun{ display: none; }
:root[data-theme="light"] .theme-icon-moon{ display: block; }
:root[data-theme="light"] .btn-primary{ color: #fff; }
:root[data-theme="light"] .hero-mcp-card{
  background: linear-gradient(110deg, rgba(180, 148, 97, .16), rgba(255, 253, 248, .92));
  box-shadow: 0 15px 30px -22px rgba(70, 50, 25, .26), inset 0 1px 0 rgba(255, 255, 255, .84);
}
:root[data-theme="light"] .hero-mcp-card:hover{ box-shadow: 0 20px 34px -21px rgba(70, 50, 25, .3), 0 0 22px -15px rgba(180, 148, 97, .72); }
:root[data-theme="light"] .hero-mcp-icon{ background: rgba(180, 148, 97, .14); }
:root[data-theme="light"] .vault-panel{
  box-shadow: 0 30px 70px -32px rgba(70, 50, 25, .24), inset 0 1px 0 rgba(255, 255, 255, .75);
}
:root[data-theme="light"] .vault-mark{ filter: drop-shadow(0 18px 32px rgba(87, 61, 26, .20)); }
:root[data-theme="light"] .orbit-node{ box-shadow: 0 12px 24px -12px rgba(70, 50, 25, .18); }
:root[data-theme="light"] .orbit-node.mcp{
  background: linear-gradient(135deg, rgba(180, 148, 97, .25), rgba(255, 253, 248, .96));
  box-shadow: 0 14px 28px -12px rgba(70, 50, 25, .20), 0 0 20px -10px rgba(180, 148, 97, .70);
}
:root[data-theme="light"] .theme-label-dark{
  color: #fffdf8;
  background: rgba(31, 22, 15, .88);
  border-color: rgba(255, 253, 248, .42);
}
:root[data-theme="light"] .theme-compare-handle::before{
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 253, 248, .76), 0 0 18px rgba(70, 50, 25, .28);
}
:root[data-theme="light"] .theme-compare-handle span{
  border-color: var(--gold);
  background: #fffdf8;
  color: #5c431f;
  box-shadow: 0 5px 18px rgba(70, 50, 25, .28);
}
:root[data-theme="light"] .theme-compare-handle:hover span,
:root[data-theme="light"] .theme-compare-handle:focus-visible span{ background: #f1e4ce; }
:root[data-theme="light"] .cta-banner{ background: linear-gradient(135deg, #eadcc7, #e0caa8 55%, #d6b889); }
:root[data-theme="light"] .cta-banner::after{ background: radial-gradient(circle, rgba(255, 255, 255, .72), transparent 70%); }
:root[data-theme="light"] .featured{ background: linear-gradient(165deg, #f7edd5 0%, var(--bg-elevated) 55%); }
:root[data-theme="light"] .license-card{ background: linear-gradient(160deg, #efe2cf, var(--bg-elevated)); }
:root[data-theme="light"] .license-card::before{ background: radial-gradient(circle at 85% 0%, rgba(180, 148, 97, .23), transparent 55%); }
:root[data-theme="light"] .mcp-hero{ background: radial-gradient(ellipse 700px 460px at 78% 44%, rgba(180, 148, 97, .18), transparent 70%); }
:root[data-theme="light"] .mcp-bridge-card{
  background: linear-gradient(150deg, rgba(255, 253, 248, .98), rgba(243, 236, 223, .96));
  box-shadow: 0 30px 65px -32px rgba(70, 50, 25, .24), inset 0 1px 0 rgba(255, 255, 255, .9);
}
:root[data-theme="light"] .mcp-prompt{ background: rgba(108, 81, 41, .06); }
:root[data-theme="light"] .mcp-safety{ background: linear-gradient(135deg, rgba(231, 217, 194, .82), var(--bg-elevated)); }
:root[data-theme="light"] .community-float summary{
  background: linear-gradient(160deg, rgba(180, 148, 97, .32), rgba(255, 253, 248, .98) 58%);
  box-shadow: 0 20px 40px -14px rgba(70, 50, 25, .25), 0 0 24px -14px rgba(180, 148, 97, .55);
}
:root[data-theme="light"] .community-float-detail,
:root[data-theme="light"] .enterprise-contact-detail{ box-shadow: 0 22px 48px -20px rgba(70, 50, 25, .28); }

/* ---------- help center ---------- */
.help-hero{
  padding: 88px 0 52px;
  background: radial-gradient(ellipse 680px 330px at 78% 36%, rgba(180, 148, 97, .18), transparent 72%);
}
.help-hero h1{ margin-top: 16px; font-size: clamp(38px, 5vw, 56px); }
.help-hero p{ max-width: 720px; margin-top: 16px; color: var(--cream-dim); font-size: 18px; line-height: 1.8; }
.help-content{ padding: 26px 0 112px; }
.help-layout{ display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
.help-toc{ position: sticky; top: 102px; display: grid; gap: 6px; padding: 22px 0; }
.help-toc strong{ margin: 0 0 10px 16px; color: var(--cream); font-family: var(--serif); font-size: 19px; }
.help-toc a{ padding: 11px 16px; border-radius: 9px; color: var(--cream-dim); font-size: 16px; line-height: 1.45; transition: background-color .16s ease, color .16s ease; }
.help-toc a:hover{ background: rgba(180, 148, 97, .1); color: var(--cream); }
.help-toc a.active{ background: rgba(180, 148, 97, .15); color: var(--gold-light); font-weight: 700; }
.help-article{ max-width: 920px; }
.help-article section{ padding: 28px 0 72px; scroll-margin-top: 94px; }
.help-article section:first-child{ padding-top: 28px; }
.help-index{ display: block; margin-bottom: 10px; color: var(--gold-light); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.help-article h2{ font-size: clamp(31px, 3vw, 40px); }
.help-article h3{ margin-top: 34px; font-size: 23px; }
.help-article p{ max-width: 880px; margin-top: 18px; color: var(--cream-dim); font-size: 17px; line-height: 1.9; }
.help-article p.help-mcp-highlight{ color: var(--gold-light); }
.help-chip-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.help-chip-row span{ padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-elevated); color: var(--gold-light); font-family: var(--mono); font-size: 11px; }
.help-screenshot{ margin: 28px 0 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg-elevated); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .74); }
.help-screenshot.narrow{ max-width: 760px; }
.help-screenshot img{ width: 100%; }
.help-screenshot figcaption{ padding: 13px 16px; border-top: 1px solid var(--line); color: var(--cream-faint); font-size: 13px; line-height: 1.55; }
.help-mcp-tools{ margin-top: 24px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg-elevated); }
.help-mcp-tools div{ display: grid; grid-template-columns: minmax(250px, .9fr) 1.1fr; gap: 24px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.help-mcp-tools div:last-child{ border-bottom: 0; }
.help-mcp-tools code{ color: var(--gold-light); font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.help-mcp-tools span{ color: var(--cream-dim); font-size: 15px; line-height: 1.6; }
.help-tool-table-wrap{ margin-top: 28px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg-elevated); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .74); }
.help-tool-table{ width: 100%; table-layout: fixed; border-collapse: collapse; }
.help-tool-table th, .help-tool-table td{ padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.help-tool-table th{ background: rgba(180, 148, 97, .14); color: var(--cream); font-family: var(--serif); font-size: 17px; }
.help-tool-table td{ color: var(--cream-dim); font-size: 14px; line-height: 1.6; }
.help-tool-table tr:last-child td{ border-bottom: 0; }
.help-tool-table th:first-child, .help-tool-table td:first-child{ width: 34%; }
.help-tool-table th:nth-child(2), .help-tool-table td:nth-child(2){ width: 38%; }
.help-tool-table th:nth-child(3), .help-tool-table td:nth-child(3){ width: 28%; }
.help-tool-table code{ color: var(--gold-light); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.help-steps{ display: grid; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: help-step; }
.help-steps li{ position: relative; padding-left: 40px; color: var(--cream-dim); font-size: 16px; line-height: 1.85; counter-increment: help-step; }
.help-steps li::before{ content: counter(help-step); position: absolute; top: 2px; left: 0; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(180, 148, 97, .16); color: var(--gold-light); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.help-steps b{ color: var(--cream); }

/* Help articles keep one title in the reading area. */
body:has(.help-layout) .help-hero{ display: none; }
body:has(.help-layout) .help-content{ padding-top: 68px; }
body:has(.help-layout) .help-index{ display: none; }
body:has(.help-toc a.active[href="/help/projects/"]) .help-article section::before,
body:has(.help-toc a.active[href="/help/basics/"]) .help-article section::before,
body:has(.help-toc a.active[href="/help/git/"]) .help-article section::before,
body:has(.help-toc a.active[href="/help/mcp/"]) .help-article section::before,
body:has(.help-toc a.active[href="/help/license/"]) .help-article section::before{
  display: block;
  margin-bottom: 18px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.28;
}
body:has(.help-toc a.active[href="/help/projects/"]) .help-article section::before{ content: "创建项目文件/本地文件管理"; }
body:has(.help-toc a.active[href="/help/basics/"]) .help-article section::before{ content: "基础功能使用"; }
body:has(.help-toc a.active[href="/help/git/"]) .help-article section::before{ content: "Git 协同"; }
body:has(.help-toc a.active[href="/help/mcp/"]) .help-article section::before{ content: "MCP 连接"; }
body:has(.help-toc a.active[href="/help/license/"]) .help-article section::before{ content: "软件序列号和 License"; }


:root[data-theme="light"] .help-hero{ background: radial-gradient(ellipse 680px 330px at 78% 36%, rgba(180, 148, 97, .22), transparent 72%); }
:root[data-theme="light"] .help-screenshot,
:root[data-theme="light"] .help-mcp-tools,
:root[data-theme="light"] .help-tool-table-wrap{ box-shadow: 0 24px 48px -32px rgba(70, 50, 25, .2); }

@media (max-width: 900px){
  .help-layout{ grid-template-columns: 1fr; gap: 22px; }
  .help-toc{ position: static; grid-template-columns: repeat(3, max-content); overflow-x: auto; padding: 12px 0; }
  .help-toc strong{ grid-column: 1 / -1; margin-left: 0; }
  .help-toc a{ padding: 7px 10px; white-space: nowrap; }
  .help-article{ max-width: none; }
}
@media (max-width: 640px){
  .help-hero{ padding: 74px 0 46px; }
  .help-content{ padding-bottom: 68px; }
  .help-article section{ padding: 42px 0; }
  .help-mcp-tools div{ grid-template-columns: 1fr; gap: 6px; padding: 13px; }
  .help-screenshot figcaption{ font-size: 11px; }
}
