/* ==========================================================================
   VPNEH · components.css
   Hero(centered-minimal)· 线路中继台装置 · 台账卖点区 · tab · 目录条 ·
   FAQ · 套餐卡 · 线路表 · 平台卡 · 文章卡 · 窗口栏卡 · callout ·
   文末推广块 · 缓滚带 · 风格预览页示例类
   ========================================================================== */

/* ==========================================================================
   1. Hero(居中式) —— 与用户拍板首屏稿逐条一致
   ========================================================================== */
.hero{
  position:relative;
  overflow-x:clip;
  max-width:100%;
  padding-block:28px 32px;
  background:linear-gradient(180deg,var(--bg-top) 0%,var(--bg) 44%,var(--bg-bottom) 100%);
}

/* 签名元素 2:满幅噪点星空 → 浅色星尘点阵 */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle,var(--dust-a) 0.9px,transparent 1.1px),
    radial-gradient(circle,var(--dust-b) 1.3px,transparent 1.5px);
  background-size:52px 52px,97px 97px;
  background-position:6px 12px,40px 58px;
  pointer-events:none;
}

/* 装置后方的宽椭圆氛围光,不落在标题正后方 */
.hero::after{
  content:"";
  position:absolute;
  left:50%;
  top:60%;
  width:min(1180px,100%);
  height:480px;
  transform:translateX(-50%);
  background:radial-gradient(46% 50% at 50% 50%,var(--accent-a08),transparent 74%);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  width:100%;
}

.hero-copy{
  max-width:820px;
  margin:0 auto;
  text-align:center;
}

/* 状态徽章(胶囊只留给徽章) */
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 15px 6px 11px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  font-size:12.5px;
  color:var(--text-muted);
  letter-spacing:.01em;
  box-shadow:0 1px 2px var(--ink-a04);
}

.hero-badge .pulse{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px var(--ok-a16);
  flex:none;
}

.hero-title{
  margin:16px 0 0;
  font-family:var(--font-display);
  font-size:clamp(34px,4.6vw,64px);
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--text);
}

.hero-title .brand-ink{
  display:inline-block;
  margin-right:.16em;
}

/* 签名元素 1:关键词彩色点缀 + 手绘感下划线 */
.hero-title .hl{
  position:relative;
  display:inline-block;
  color:var(--accent);
}

.hero-title .hl::after{
  content:"";
  position:absolute;
  left:-.03em;
  right:-.03em;
  bottom:-.07em;
  height:.07em;
  border-radius:var(--r-pill);
  background:linear-gradient(90deg,var(--accent-a00),var(--accent) 14%,var(--accent) 86%,var(--accent-a00));
  opacity:.5;
  transform:rotate(-.7deg);
}

/* 签名元素 5:直角小圆角矩形按钮组 */
.cta-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:22px;
}

.hero-lede{
  max-width:760px;
  margin:16px auto 0;
  font-size:15.5px;
  line-height:1.65;
  color:var(--text-muted);
}

.hero-lede strong{
  color:var(--text);
  font-weight:600;
}

.trust-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:0;
  margin:12px 0 0;
  padding:0;
  list-style:none;
  font-size:12.5px;
  color:var(--text-muted);
}

.trust-row li{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}

.trust-row li + li::before{
  content:"";
  display:inline-block;
  width:3px;
  height:3px;
  margin:0 12px;
  border-radius:50%;
  background:var(--border);
  vertical-align:middle;
}

/* ==========================================================================
   2. 线路中继台装置
   ========================================================================== */
.relay{
  position:relative;
  width:min(780px,100%);
  margin:30px auto 0;
  padding-block:26px 30px;
}

.relay-grid{
  position:relative;
  display:grid;
  grid-template-columns:168px minmax(0,1fr) 168px;
  gap:24px;
  align-items:center;
}

.client-wrap{
  position:relative;
  z-index:2;
  min-width:0;
}

/* 下沉托板 */
.relay-plate{
  position:absolute;
  inset:14px -13px -15px -13px;
  border-radius:var(--r-lg);
  background:var(--bg-panel-2);
  box-shadow:inset 0 1px 0 var(--white-a90),0 20px 40px -28px var(--ink-a35);
  z-index:0;
}

/* 客户端窗口 */
.client{
  position:relative;
  z-index:1;
  overflow:hidden;
  background:var(--bg-panel);
  border:1px solid var(--accent);
  border-radius:var(--r-md);
  box-shadow:var(--sh-panel);
}

.client-bar{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,var(--bg-panel),var(--bg-panel-soft));
}

.dots{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:none;
}

.dots i{
  display:block;
  width:6px;
  height:6px;
  border-radius:50%;
}

.dots i:nth-child(1){background:var(--accent);}
.dots i:nth-child(2){background:var(--warn);}
.dots i:nth-child(3){background:var(--success);}

.client-title{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--text);
}

.client-meta{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:10.5px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.client-body{padding:10px 12px 12px;}

.node-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.node{
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px 8px;
  border-radius:var(--r-sm);
  font-size:12px;
  color:var(--text);
}

.node.is-current{
  background:var(--accent-a06);
  box-shadow:inset 3px 0 0 var(--accent);
}

.node-badge{
  display:inline-flex;
  width:16px;
  height:16px;
  flex:none;
  color:var(--text-muted);
}

.node-badge svg{
  display:block;
  width:16px;
  height:16px;
}

.node.is-current .node-badge{color:var(--accent);}

.node-city{
  font-weight:600;
  letter-spacing:.01em;
  flex:none;
}

.node.is-current .node-city{color:var(--accent);}

.node-dash{
  flex:1 1 auto;
  min-width:10px;
  height:0;
  border-top:1px dashed var(--border);
}

.node-type{
  flex:none;
  padding:2px 6px;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  background:var(--bg);
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--text-muted);
  white-space:nowrap;
}

.node-id{
  flex:none;
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.node-dot{
  flex:none;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px var(--ok-a12);
}

.proto-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}

.chip{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:3px 10px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  font-size:10.5px;
  color:var(--text-muted);
  white-space:nowrap;
}

.chip.is-on{
  border-color:var(--accent-a30);
  background:var(--accent-a06);
  color:var(--accent);
  font-weight:600;
}

.plan-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid var(--accent-a18);
  border-radius:var(--r-sm);
  background:linear-gradient(90deg,var(--accent-a06),var(--accent-a00));
}

.plan-price{
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--accent);
}

.plan-meta{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-muted);
}

.plan-tag{
  margin-left:auto;
  font-size:10px;
  color:var(--text-muted);
  white-space:nowrap;
}

.state-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:8px;
  font-size:10.5px;
  color:var(--text-muted);
}

.state-row span{
  display:inline-flex;
  align-items:center;
}

/* ---- 两侧彩描边线路卡(签名元素 3) ---- */
.line-card{
  position:relative;
  z-index:1;
  min-width:0;
  padding:12px;
  border-radius:var(--r-md);
  background:var(--bg-panel);
  box-shadow:var(--sh-card);
}

.line-card--warn{border:1px solid var(--warn);}
.line-card--ok{border:1px solid var(--success);}

.lc-tag{
  display:inline-block;
  padding:2px 8px;
  border-radius:var(--r-xs);
  background:var(--warn-a12);
  font-family:var(--font-mono);
  font-size:9.5px;
  letter-spacing:.04em;
  color:var(--warn);
  white-space:nowrap;
}

.lc-tag--ok{
  background:var(--ok-a12);
  color:var(--success);
}

.lc-route{
  margin:8px 0 0;
  font-size:12px;
  font-weight:600;
  color:var(--text);
  letter-spacing:.01em;
}

.lc-arrow{
  color:var(--text-muted);
  font-weight:400;
  padding:0 2px;
}

.lc-steps{
  display:flex;
  gap:4px;
  margin-top:9px;
}

.lc-steps span{
  flex:1;
  height:4px;
  border-radius:2px;
  background:var(--bg-panel-2);
}

.lc-steps span.is-done{background:var(--warn);}

.lc-note{
  margin:7px 0 0;
  font-family:var(--font-mono);
  font-size:9.5px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.lc-ok{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:9px;
  padding:3px 9px 3px 7px;
  border-radius:var(--r-pill);
  background:var(--ok-a12);
  font-size:10px;
  font-weight:600;
  color:var(--success);
}

.lc-ok svg{
  display:block;
  width:10px;
  height:10px;
}

/* 签名元素 4:光束把三者连成一体 */
.line-card--warn::after{
  content:"";
  position:absolute;
  right:-24px;
  top:50%;
  width:24px;
  height:2px;
  margin-top:-1px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--warn),var(--accent-a45));
  box-shadow:0 0 10px var(--warn-a50);
}

.line-card--ok::before{
  content:"";
  position:absolute;
  left:-24px;
  top:50%;
  width:24px;
  height:2px;
  margin-top:-1px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--accent-a45),var(--ok-a50));
  box-shadow:0 0 10px var(--ok-a50);
}

/* ---- 装置外围漂浮辅助元素 ---- */
.relay-float{
  position:absolute;
  z-index:3;
  padding:6px 13px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  box-shadow:var(--sh-float);
  font-size:11.5px;
  color:var(--text);
  white-space:nowrap;
}

.relay-float--refund{
  left:0;
  top:4px;
}

.relay-float--facts{
  right:0;
  bottom:8px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.01em;
}

.relay-float--facts b{
  color:var(--accent);
  font-weight:700;
}

/* ---- 签名元素 6:平台行与国旗行平铺,无卡片包裹 ---- */
.hero-furniture{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-top:24px;
}

.platform-row,
.flag-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 24px;
  margin:0;
  padding:0;
  list-style:none;
}

.platform-row li,
.flag-row li{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:12.5px;
  color:var(--text-muted);
  white-space:nowrap;
}

.platform-row svg{
  display:block;
  flex:none;
  color:var(--text-muted);
  transition:color .18s ease;
}

.platform-row li:hover svg,
.platform-row li:hover{color:var(--text);}

.flag{
  display:inline-flex;
  width:22px;
  height:15px;
  flex:none;
  border-radius:3px;
  overflow:hidden;
  box-shadow:0 0 0 1px var(--border),0 1px 2px var(--ink-a08);
}

.flag svg{
  display:block;
  width:22px;
  height:15px;
}

@media (max-width:820px){
  .hero{padding-block:22px 26px;}
  .relay{width:100%;padding-block:34px;}
  .relay-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .client-wrap{grid-column:1 / -1;order:-1;}
  .line-card--warn{grid-column:1;}
  .line-card--ok{grid-column:2;}
  .line-card--warn::after,
  .line-card--ok::before{display:none;}
  .relay-float--refund{left:0;top:0;}
  .relay-float--facts{right:0;bottom:0;}
  .relay-plate{inset:12px -10px -12px -10px;}
}

@media (max-width:640px){
  .hero-title{font-size:clamp(30px,8.4vw,38px);}
  .cta-row{
    flex-direction:column;
    align-items:stretch;
    max-width:300px;
    margin-left:auto;
    margin-right:auto;
  }
  .cta-row .btn{width:100%;}
  .trust-row{font-size:11.5px;}
  .trust-row li + li::before{margin:0 8px;}
  .relay-grid{grid-template-columns:1fr;}
  .line-card--warn,
  .line-card--ok{grid-column:1 / -1;}
  .client-bar{padding:8px 10px;}
  .client-body{padding:8px 9px 10px;}
  .node{gap:6px;padding:5px 6px;font-size:11.5px;}
  .node-id{display:none;}
  .state-row{gap:12px;}
  .platform-row,
  .flag-row{gap:8px 16px;}
}

/* ==========================================================================
   3. 区块标题
   ========================================================================== */
.sec-head{
  max-width:720px;
  margin-bottom:var(--space-6);
}

.sec-head--center{
  margin-inline:auto;
  text-align:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.14em;
  color:var(--accent);
}

.kicker::before{
  content:"";
  width:16px;
  height:2px;
  border-radius:2px;
  background:var(--accent);
  flex:none;
}

.sec-title{
  font-family:var(--font-display);
  font-size:clamp(24px,2.8vw,36px);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.02em;
  color:var(--text);
}

.sec-lede{
  margin:12px 0 0;
  max-width:66ch;
  font-size:15.5px;
  line-height:1.7;
  color:var(--text-muted);
}

/* ==========================================================================
   4. 徽章 / 标签
   ========================================================================== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:4px 11px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  font-size:12px;
  color:var(--text-muted);
  white-space:nowrap;
}

.badge--accent{
  border-color:var(--accent-a30);
  background:var(--accent-a06);
  color:var(--accent);
  font-weight:600;
}

.badge--ok{
  border-color:var(--ok-a50);
  background:var(--ok-a12);
  color:var(--success);
}

.badge--warn{
  border-color:var(--warn-a30);
  background:var(--warn-a12);
  color:var(--warn);
}

.badge .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  flex:none;
}

.tag{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:2px 8px;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  background:var(--bg-panel-soft);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.04em;
  color:var(--text-muted);
  white-space:nowrap;
}

.tag--accent{
  border-color:var(--accent-a30);
  background:var(--accent-a06);
  color:var(--accent);
}

/* ==========================================================================
   5. 台账式卖点区(左索引 + 右详情)
   ========================================================================== */
.ledger{
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  gap:var(--space-5);
  align-items:start;
}

.ledger-index{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
  min-width:0;
}

.ledger-item{
  display:flex;
  align-items:baseline;
  gap:12px;
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border:0;
  border-left:3px solid transparent;
  border-radius:0 var(--r-sm) var(--r-sm) 0;
  background:transparent;
  font-family:var(--font-body);
  font-size:14px;
  color:var(--text-muted);
  text-align:left;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}

.ledger-item:hover{
  background:var(--bg-panel-soft);
  color:var(--text);
}

.ledger-item.is-active{
  background:var(--bg-panel);
  border-left-color:var(--accent);
  color:var(--text);
  font-weight:600;
  box-shadow:0 1px 2px var(--ink-a04);
}

.ledger-num{
  flex:none;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.06em;
  color:var(--text-muted);
}

.ledger-item.is-active .ledger-num{color:var(--accent);}

.ledger-name{min-width:0;}

.ledger-stage{
  min-width:0;
  padding:var(--space-5) var(--space-6);
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--sh-card);
}

.ledger-panel{display:none;}

.ledger-panel.is-active{display:block;}

.ledger-title{
  margin:0 0 10px;
  font-size:19px;
  font-weight:700;
  letter-spacing:-.01em;
}

.ledger-body{
  margin:0;
  font-size:14.5px;
  line-height:1.8;
  color:var(--text-muted);
}

.ledger-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:var(--space-4);
}

.ledger-note{
  margin:var(--space-4) 0 0;
  padding-top:var(--space-3);
  border-top:1px dashed var(--border);
  font-size:13px;
  color:var(--text-muted);
}

.ledger-note a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}

@media (max-width:820px){
  .ledger{grid-template-columns:minmax(0,1fr);}
  .ledger-index{
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .ledger-index::-webkit-scrollbar{display:none;}
  .ledger-item{
    flex:none;
    width:auto;
    border-left:0;
    border-bottom:3px solid transparent;
    border-radius:var(--r-sm) var(--r-sm) 0 0;
    white-space:nowrap;
  }
  .ledger-item.is-active{border-bottom-color:var(--accent);}
  .ledger-stage{padding:var(--space-5);}
  /* 窄屏不做切换:六个详情全部展开,内容永不被脚本藏起来 */
  .ledger-panel{display:block;}
  .ledger-panel + .ledger-panel{
    margin-top:var(--space-5);
    padding-top:var(--space-5);
    border-top:1px solid var(--border);
  }
}

/* ==========================================================================
   6. Tab 切换(role=tablist)
   ========================================================================== */
.ui-tabs{
  display:flex;
  gap:4px;
  width:max-content;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding:4px;
  background:var(--bg-panel-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  scrollbar-width:none;
}

.ui-tabs::-webkit-scrollbar{display:none;}

.ui-tab{
  flex:none;
  min-height:36px;
  padding:8px 16px;
  border:1px solid transparent;
  border-radius:var(--r-xs);
  background:transparent;
  font-family:var(--font-body);
  font-size:13.5px;
  font-weight:600;
  color:var(--text-muted);
  white-space:nowrap;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}

.ui-tab:hover{color:var(--text);}

.ui-tab[aria-selected="true"]{
  background:var(--bg-panel);
  border-color:var(--border);
  color:var(--text);
  box-shadow:0 1px 2px var(--ink-a04);
}

.ui-panel[hidden]{display:none;}

.ui-panel{
  margin-top:var(--space-5);
  min-width:0;
}

/* ==========================================================================
   7. 长页目录条(吸顶跟随由 reveal.js 负责)
   ========================================================================== */
.toc-tabs{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  gap:6px;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding:10px 0;
  margin:0 0 var(--space-5);
  background:var(--bg);
  border-bottom:1px solid var(--border);
  scrollbar-width:none;
}

.toc-tabs::-webkit-scrollbar{display:none;}

.toc-tabs a{
  display:inline-flex;
  align-items:center;
  flex:none;
  min-height:34px;
  padding:6px 12px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  font-size:12.5px;
  color:var(--text-muted);
  text-decoration:none;
  white-space:nowrap;
}

.toc-tabs a:hover{color:var(--text);}

.toc-tabs a.is-current,
.toc-tabs a[aria-current="true"]{
  border-color:var(--accent);
  background:var(--accent-a06);
  color:var(--accent);
  font-weight:600;
}

body:has(.toc-tabs) section[id]{scroll-margin-top:96px;}

/* ==========================================================================
   8. FAQ 折叠
   ========================================================================== */
.faq{
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--bg-panel);
  overflow:hidden;
}

.faq-item + .faq-item{border-top:1px solid var(--border);}

.faq-item > summary{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:14px 18px;
  font-size:15px;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  list-style:none;
}

.faq-item > summary::-webkit-details-marker{display:none;}

.faq-item > summary::after{
  content:"";
  flex:none;
  margin-left:auto;
  width:9px;
  height:9px;
  border-right:2px solid var(--text-muted);
  border-bottom:2px solid var(--text-muted);
  transform:rotate(45deg);
  transition:transform .2s ease;
}

.faq-item[open] > summary::after{transform:rotate(-135deg);}

.faq-item[open] > summary{color:var(--accent);}

.faq-a{
  padding:0 18px 18px;
  font-size:14.5px;
  line-height:1.8;
  color:var(--text-muted);
}

.faq-a p:last-child{margin-bottom:0;}

/* ==========================================================================
   9. 套餐卡
   ========================================================================== */
.price-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.price-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:26px 22px 22px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:0 2px 6px var(--ink-a04);
}

.price-card--featured{
  border-color:var(--accent);
  box-shadow:var(--sh-panel);
}

.price-card.is-selected{
  border-color:var(--accent);
  background:linear-gradient(180deg,var(--accent-a06),var(--bg-panel) 58%);
}

.price-badge{
  position:absolute;
  top:-11px;
  left:22px;
  padding:3px 11px;
  border-radius:var(--r-pill);
  background:var(--accent);
  color:var(--text-on-accent);
  font-size:11px;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
}

.price-name{
  margin:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--text-muted);
}

.price-value{
  display:flex;
  align-items:baseline;
  gap:4px;
  margin:10px 0 0;
  font-family:var(--font-mono);
  font-size:34px;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.1;
  color:var(--text);
}

.price-value small{
  font-family:var(--font-body);
  font-size:13px;
  font-weight:500;
  color:var(--text-muted);
}

.price-traffic{
  margin:6px 0 0;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--text-muted);
  letter-spacing:.01em;
}

.price-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:var(--space-4) 0 var(--space-5);
  padding:0;
  list-style:none;
  font-size:13.5px;
  color:var(--text-muted);
}

.price-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
}

.price-list li::before{
  content:"✓";
  flex:none;
  width:15px;
  height:15px;
  margin-top:2px;
  border-radius:50%;
  background:var(--ok-a12);
  color:var(--success);
  font-size:10px;
  font-weight:700;
  line-height:15px;
  text-align:center;
}

.price-cta{margin-top:auto;}

@media (max-width:900px){
  .price-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:640px){
  .price-grid{grid-template-columns:minmax(0,1fr);}
  .price-card{padding:22px 18px 18px;}
}

/* ==========================================================================
   10. 宽表格与线路表(窄屏横滑,绝不撑破 body)
   ========================================================================== */
.table-scroll{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--bg-panel);
}

.data-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  font-size:14px;
}

.data-table th,
.data-table td{
  padding:11px 14px;
  text-align:left;
  border-bottom:1px solid var(--border);
  word-break:keep-all;
  vertical-align:middle;
}

.data-table th{
  background:var(--bg-panel-soft);
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--text-muted);
  white-space:nowrap;
}

.data-table tbody tr:last-child td{border-bottom:0;}

.data-table td:first-child{font-weight:600;}

.data-table .cell-mono{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--text-muted);
  letter-spacing:.01em;
}

.data-table tr.is-current{background:var(--accent-a06);}

/* 博客正文里可能出现的裸表格,就地兜底 */
.prose > .data-table{
  display:block;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.region-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:var(--space-6) 0 var(--space-3);
}

.region-head h3{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:0;
}

.region-head .region-count{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-muted);
  letter-spacing:.04em;
}

/* ==========================================================================
   11. 平台卡
   ========================================================================== */
.platform-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.platform-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:22px 14px 18px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.platform-card:hover{
  transform:translateY(-2px);
  border-color:var(--border-strong);
  box-shadow:var(--sh-card);
}

.platform-card .pi{
  display:block;
  width:26px;
  height:26px;
  color:var(--text-muted);
  flex:none;
}

.platform-card .platform-name{
  font-size:13.5px;
  font-weight:600;
  color:var(--text);
}

.platform-card .platform-note{
  font-size:11.5px;
  line-height:1.5;
  color:var(--text-muted);
}

.platform-card .btn{margin-top:4px;}

@media (max-width:900px){
  .platform-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media (max-width:560px){
  .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .platform-card{padding:18px 10px 16px;}
}

/* ==========================================================================
   12. 文章卡
   ========================================================================== */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.post-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:20px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  text-decoration:none;
  color:var(--text);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.post-card:hover{
  transform:translateY(-2px);
  border-color:var(--border-strong);
  box-shadow:var(--sh-card);
}

.post-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.post-tag{
  padding:2px 8px;
  border:1px solid var(--accent-a30);
  border-radius:var(--r-xs);
  background:var(--accent-a06);
  color:var(--accent);
  font-family:var(--font-body);
  font-size:11px;
  font-weight:600;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.post-title{
  margin:10px 0 0;
  font-family:var(--font-display);
  font-size:16.5px;
  font-weight:700;
  line-height:1.42;
  letter-spacing:-.01em;
  color:var(--text);
}

.post-excerpt{
  margin:8px 0 0;
  font-size:13.5px;
  line-height:1.7;
  color:var(--text-muted);
}

.post-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  padding-top:var(--space-4);
  font-size:13px;
  font-weight:600;
  color:var(--accent);
}

@media (max-width:900px){
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:600px){
  .post-grid{grid-template-columns:minmax(0,1fr);}
}

/* ==========================================================================
   13. 窗口栏卡(博客 Hero / 装置复用)
   ========================================================================== */
.win-card{
  min-width:0;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--sh-card);
  overflow:hidden;
}

.win-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,var(--bg-panel),var(--bg-panel-soft));
}

.win-dots{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:none;
}

.win-dots i{
  display:block;
  width:7px;
  height:7px;
  border-radius:50%;
}

.win-dots i:nth-child(1){background:var(--accent);}
.win-dots i:nth-child(2){background:var(--warn);}
.win-dots i:nth-child(3){background:var(--success);}

.win-name{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.win-body{padding:var(--space-5);}

/* ==========================================================================
   14. 引用块
   ========================================================================== */
.callout{
  display:flex;
  gap:12px;
  margin:var(--space-4) 0;
  padding:16px 18px;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--r-sm);
  background:var(--bg-panel-soft);
  font-size:14px;
  line-height:1.75;
  color:var(--text-muted);
}

.callout strong{color:var(--text);}

.callout > svg{
  flex:none;
  width:18px;
  height:18px;
  margin-top:2px;
  color:var(--accent);
}

.callout--warn{
  border-left-color:var(--warn);
  background:var(--warn-a12);
}

.callout--warn > svg{color:var(--warn);}

.callout--ok{
  border-left-color:var(--success);
  background:var(--ok-a12);
}

.callout--ok > svg{color:var(--success);}

.callout p:last-child{margin-bottom:0;}

/* ==========================================================================
   15. 文末推广块
   ========================================================================== */
.promo-block{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px;
  margin-top:var(--space-6);
  padding:24px;
  border:1px solid var(--accent-a30);
  border-radius:var(--r-md);
  background:linear-gradient(120deg,var(--accent-a06),var(--bg-panel) 62%);
  box-shadow:0 2px 8px var(--ink-a04);
}

.promo-block .promo-text{
  flex:1 1 280px;
  min-width:0;
}

.promo-block .promo-brand{
  display:block;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--accent);
}

.promo-block .promo-title{
  margin:6px 0 0;
  font-family:var(--font-display);
  font-size:19px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--text);
}

.promo-block .promo-desc{
  margin:6px 0 0;
  font-size:13.5px;
  line-height:1.7;
  color:var(--text-muted);
}

.promo-block .btn{
  flex-shrink:0;
  white-space:nowrap;
}

/* ==========================================================================
   16. 横向缓滚带(motion.js 的 ticker-loop 目标)
   ========================================================================== */
.ticker{
  position:relative;
  max-width:100%;
  overflow:hidden;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg-panel-soft);
}

.ticker-track{
  display:flex;
  align-items:center;
  width:max-content;
  will-change:transform;
}

.ticker-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-right:1px solid var(--border);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.02em;
  color:var(--text-muted);
  white-space:nowrap;
}

.ticker-item b{
  color:var(--text);
  font-weight:600;
}

.ticker-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--success);
  flex:none;
}

/* SVG 描线容器(motion.js 的 draw-lines 目标) */
.draw-lines{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  color:var(--border-strong);
}

/* ==========================================================================
   17. 风格预览页(design-preview.html)专用示例类
   ========================================================================== */
.ds-section{
  padding-block:var(--space-8);
  border-top:1px solid var(--border);
}

.ds-section:first-of-type{border-top:0;}

.ds-label{
  display:block;
  margin:0 0 var(--space-4);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--text-muted);
}

.ds-note{
  margin:var(--space-3) 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-muted);
}

.ds-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}

.ds-stack{
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
}

.ds-cols{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-5);
}

@media (max-width:820px){
  .ds-cols{grid-template-columns:minmax(0,1fr);}
}

.swatch-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:12px;
}

.swatch{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  overflow:hidden;
  background:var(--bg-panel);
}

.swatch-chip{
  height:64px;
  border-bottom:1px solid var(--border);
}

.swatch-meta{
  padding:8px 10px;
  font-family:var(--font-mono);
  font-size:10.5px;
  line-height:1.6;
  color:var(--text-muted);
  overflow-wrap:anywhere;
}

.swatch-meta b{
  display:block;
  font-family:var(--font-body);
  font-size:12.5px;
  font-weight:600;
  color:var(--text);
}

.sw-bg{background:var(--bg);}
.sw-top{background:var(--bg-top);}
.sw-bottom{background:var(--bg-bottom);}
.sw-panel{background:var(--bg-panel);}
.sw-panel-soft{background:var(--bg-panel-soft);}
.sw-panel-2{background:var(--bg-panel-2);}
.sw-border{background:var(--border);}
.sw-accent{background:var(--accent);}
.sw-accent-dark{background:var(--accent-dark);}
.sw-text{background:var(--text);}
.sw-muted{background:var(--text-muted);}
.sw-ok{background:var(--success);}
.sw-warn{background:var(--warn);}
.sw-error{background:var(--error);}

.type-row{
  display:flex;
  align-items:baseline;
  gap:16px;
  padding:14px 0;
  border-bottom:1px dashed var(--border);
}

.type-row:last-child{border-bottom:0;}

.type-spec{
  flex:none;
  width:104px;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-muted);
  letter-spacing:.02em;
}

.type-sample{min-width:0;}