/* ===== 内容页（定价 / 会员 / 法务）—— 沿用首页设计系统 ===== */

/* 让开固定两行页眉 */
/* 固定页眉总高：46+52+30 */
/* 页眉高度：与 .nav 实测高度对齐的初值（避免 JS 生效前首屏跳一下）
   实际值由 main.js 的 watchNavHeight() 用 ResizeObserver 持续校正 */
:root { --nav-h: 153px; }
@media (max-width: 768px) {
  /* 108px 对应「本地化释义占两行」的页眉高度 */
  :root { --nav-h: 108px; }
  /* 释义行预留两行高度，让页眉总高在首屏就确定下来。
     否则首屏是 1 行、字体与文本落定后变 2 行，在 JS 校正到位之前
     有约 1~2 秒的偏差窗口（慢网实测），期间价格声明条会被固定页眉压住 15px。 */
  .nav__tagline { min-height: 2.8em; }
}

/* ---------- 矮视口兜底（手机横屏 / 低分辨率矮屏）----------
   只按宽度做断点认不出横屏手机：iPhone 横屏宽 812px > 768px，会被判定为桌面，
   于是套上三行固定页眉（153px）——在仅 375px 高的屏幕上吃掉 37% 可视区，
   且 hero 取 min-height:100vh、标语字号按 8vw 冲到 64px 上限，完全不成比例。
   这里按「视口高度」再兜一层，不删减任何内容：
     · 页眉改为随文档滚动，把高度还给正文（品牌/释义/资质/导航全部保留）
     · 压缩首屏 hero 上下留白，并让标题字号同时受视口高度约束
   实测：812×375 页眉占屏 37% → 修复后降到 0（不再固定，随页面滚走） */
@media (max-height: 520px) {
  .nav { position: static; }
  .price-note { margin-top: 0; }
  .hero { min-height: auto; padding: 28px 0 36px; }
  .hero__slogan { font-size: clamp(28px, min(8vw, 12vh), 64px); }
  .hero__slogan-en { font-size: clamp(15px, min(3vw, 5vh), 28px); }
  .hero__kicker { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 0; }
  .hero__lead + .hero__lead { margin-bottom: 14px; }
  .hero__scroll-indicator { display: none; }
  section { padding: 56px 0; }
}

.page { padding-top: 0; }

.page-hero {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, #EDF2F8 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border-soft);
}
.page-hero__kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.page-hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-text-secondary);
  line-height: 1.85;
  max-width: 52em;
  margin-bottom: 28px;
}

.page-section { padding: 72px 0; }
.page-section--alt { background: var(--c-bg-white); }
.page-section .section-title { text-align: left; margin-bottom: 26px; }
.page-section .section-subtitle { text-align: left; }

.page-note {
  font-size: 13px;
  color: var(--c-text-tertiary);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 62em;
}
.page-linkline { margin-bottom: 26px; }
.page-linkline a { color: var(--c-accent); font-size: 15px; text-decoration: none; }
.page-linkline a:hover { text-decoration: underline; }

/* ---------- 套餐卡 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft);
  border-top: 4px solid var(--c-accent);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.price-card__name { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.price-card__price {
  font-size: 26px;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.price-card__lines { list-style: none; margin: 0; padding: 0; }
.price-card__lines li {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  line-height: 1.65;
  padding: 7px 0;
  border-top: 1px dashed var(--c-border-soft);
}
.price-card__lines li:first-child { border-top: none; }

/* ---------- 数据表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-bg-white);
  font-size: 14.5px;
  min-width: 560px;
}
.data-table th {
  background: #16202e;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  vertical-align: top;
  color: var(--c-text-secondary);
}
.data-table tbody tr:nth-child(even) td { background: var(--c-bg); }
.data-table td:first-child { color: var(--c-text); font-weight: 500; }

/* ---------- 会员方案卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.plan-card__name { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.plan-card__price {
  font-size: 30px;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.plan-card__price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-tertiary);
  margin-left: 6px;
}
.plan-card__cta { margin-top: 20px; text-align: center; }

/* ---------- 通用列表 ---------- */
.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14.5px;
  color: var(--c-text-secondary);
  line-height: 1.65;
  border-bottom: 1px dashed var(--c-border-soft);
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ---------- 双栏信息卡 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-size: 15.5px; font-weight: 600; }
.faq p { margin-top: 10px; color: var(--c-text-secondary); font-size: 14.5px; line-height: 1.85; }

/* ---------- RTL ---------- */
[dir="rtl"] .bullet-list li { padding: 9px 22px 9px 0; }
[dir="rtl"] .bullet-list li::before { left: auto; right: 3px; }
[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td { text-align: right; }
[dir="rtl"] .page-section .section-title,
[dir="rtl"] .page-section .section-subtitle,
[dir="rtl"] .page-hero { text-align: right; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page { padding-top: 0; }
  .page-hero { padding: 46px 0 32px; }
  .page-section { padding: 52px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px 20px; }
}

/* 页脚快速链接（首页 + 子页共用） */
.footer__quick { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 4px; }
.footer__quick a {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--transition), border-color .2s var(--transition);
}
.footer__quick a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* ---------- 结账页 ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }

.plan-summary { padding: 4px 0 14px; border-bottom: 1px dashed var(--c-border-soft); margin-bottom: 14px; }
.plan-summary__group {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-tertiary); font-weight: 500; margin-bottom: 6px;
}
.plan-summary__name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.plan-summary__price {
  font-size: 30px; font-weight: 600; color: var(--c-accent); font-variant-numeric: tabular-nums;
}
.plan-summary__price small { font-size: 14px; font-weight: 400; color: var(--c-text-tertiary); margin-left: 6px; }

.co-tabs { display: inline-flex; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.co-tab {
  background: none; border: none; padding: 8px 18px; font: inherit; font-size: 14px;
  color: var(--c-text-secondary); cursor: pointer; transition: background .2s var(--transition), color .2s var(--transition);
}
.co-tab.is-active { background: var(--c-accent); color: #fff; font-weight: 600; }
.co-tab:not(.is-active):hover { background: var(--c-breathe-bg); }

.co-form { display: flex; flex-direction: column; gap: 14px; }
.co-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--c-text-secondary); }
.co-form input {
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-bg-white); color: var(--c-text); width: 100%;
}
.co-form input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0, 102, 204, .12); }
.co-form .btn { align-self: flex-start; }

.co-user { font-size: 15px; color: var(--c-text-secondary); margin-bottom: 18px; }
.co-user strong { color: var(--c-text); }
.co-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .co-form .btn { align-self: stretch; text-align: center; }
  .co-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- 法律文件页 ---------- */
.legal-doc { max-width: 880px; }
.legal-doc__meta {
  font-size: 13.5px;
  color: var(--c-text-tertiary);
  line-height: 1.75;
  max-width: 62em;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border-soft);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text-secondary);
  margin-bottom: 14px;
}
.legal-doc ul { list-style: none; margin: 0 0 18px; padding: 0; }
.legal-doc li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-secondary);
  border-bottom: 1px dashed var(--c-border-soft);
}
.legal-doc li:last-child { border-bottom: none; }
.legal-doc li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
[dir="rtl"] .legal-doc li { padding: 9px 20px 9px 0; }
[dir="rtl"] .legal-doc li::before { left: auto; right: 2px; }
@media (max-width: 768px) {
  .legal-doc h2 { margin-top: 30px; font-size: 18px; }
  .legal-doc p, .legal-doc li { font-size: 14.5px; }
}

/* ---------- 网站地图 ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sitemap-col h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sitemap-col a {
  display: block;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--c-text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--c-border-soft);
}
.sitemap-col a:hover { color: var(--c-accent); }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: 1fr; } }

/* ---------- 资质前置横条（品牌手册 3.1，位于页眉内 → 所有页自动继承） ---------- */
.trustbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 11.5px;
  color: var(--c-text-tertiary);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.trustbar::-webkit-scrollbar { display: none; }
.trustbar__badge { font-weight: 600; color: var(--c-accent); letter-spacing: 0.02em; }
.trustbar__sep { opacity: 0.45; }
.trustbar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--c-text-secondary);
}
@media (max-width: 768px) { .trustbar { padding: 0 20px; height: 28px; font-size: 10.5px; } }

/* ---------- 价格透明声明（品牌手册 3.2） ---------- */
.price-note {
  margin-top: var(--nav-h);
  background: var(--c-breathe-bg);
  border-bottom: 1px solid var(--c-border-soft);
}
.price-note p {
  margin: 0;
  padding: 9px 0;
  font-size: 13px;
  color: var(--c-text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) { .price-note p { font-size: 12px; padding: 8px 0; } }

/* ---------- 服务边界清单（品牌手册 1.2 / 2.3） ---------- */
.scope { padding: 84px 0; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.scope-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.scope-card--yes { border-top: 4px solid #1f9d55; }
.scope-card--no { border-top: 4px solid #c0563f; }
.scope-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.scope-card--yes h3 { color: #1f7a45; }
.scope-card--no h3 { color: #a8462f; }
.scope-card ul { list-style: none; margin: 0; padding: 0; }
.scope-card li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-text-secondary);
  border-bottom: 1px dashed var(--c-border-soft);
}
.scope-card li:last-child { border-bottom: none; }
.scope-card li::before { position: absolute; left: 0; top: 10px; font-size: 14px; }
.scope-card--yes li::before { content: '✅'; }
.scope-card--no li::before { content: '❌'; }
[dir="rtl"] .scope-card li { padding: 10px 26px 10px 0; }
[dir="rtl"] .scope-card li::before { left: auto; right: 0; }
@media (max-width: 900px) { .scope-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .scope { padding: 56px 0; } .scope-card { padding: 24px 20px; } }

/* ---------- 页眉品牌块：标识在上 · 本地化功能释义在下（品牌手册 2.1） ---------- */
.nav__inner--top {
  height: auto;
  gap: 0;
  padding-top: 10px;
  padding-bottom: 9px;
  justify-content: flex-start;
}
.nav__brandblock {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
/* 手册要求「必须呈现」→ 允许换行，不得用省略号截断 */
.nav__tagline {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-text-tertiary);
  letter-spacing: 0.01em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  flex: 0 1 auto;
  margin: 0;
  max-width: 100%;
}
.nb-phon {
  margin-left: 0.45em;
  font-size: 0.76em;
  font-weight: 400;
  color: var(--c-text-tertiary);
  white-space: nowrap;
}

/* 页眉高度动态：移动端下拉面板与偏移量都跟随 --nav-h */
@media (max-width: 768px) {
  .nav__inner--top { height: auto; padding-top: 9px; padding-bottom: 8px; justify-content: flex-start; border-bottom: none; }
  /* 手册要求「必须呈现」：手机端也必须显示、不得截断、允许自然换行 */
  .nav__tagline {
    display: block;          /* 覆盖主 CSS 的 display:none */
    font-size: 11px;
    line-height: 1.4;
    -webkit-line-clamp: none;
    max-height: none;
  }
  .nav__links { top: var(--nav-h); }
  .nav__menu-btn { top: 11px; }
}

/* ---------- 管理后台 ---------- */
.adm-top { background: #16202e; color: #fff; }
.adm-top__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 13px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.adm-top__brand { font-size: 14px; letter-spacing: .02em; }
.adm-top__brand em { font-style: normal; opacity: .62; margin-left: .5em; }
.adm-top__right { display: flex; align-items: center; gap: 12px; }
.adm-who { font-size: 12.5px; opacity: .7; }
.adm-top .btn--ghost { border-color: rgba(255,255,255,.38); color: #fff; font-size: 13px; padding: 6px 14px; }
.adm-top .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.adm { max-width: var(--max-width); margin: 0 auto; padding: 40px 32px 80px; }
.adm-gate { max-width: 520px; margin: 48px auto 0; }
.adm-gate__title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 12px; }

.adm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 30px; }
.adm-stat {
  background: var(--c-bg-white); border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md); padding: 18px 16px; text-align: center;
}
.adm-stat b { display: block; font-size: 26px; font-weight: 600; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.adm-stat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--c-text-tertiary); }

.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.adm-tabs button {
  background: var(--c-bg-white); border: 1px solid var(--c-border); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-size: 13.5px; color: var(--c-text-secondary); cursor: pointer;
  transition: background .2s var(--transition), color .2s var(--transition), border-color .2s var(--transition);
}
.adm-tabs button.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 600; }
.adm-tabs button:not(.is-active):hover { background: var(--c-breathe-bg); }

.adm-flags { display: grid; gap: 12px; }
.adm-flag {
  display: flex; align-items: center; gap: 12px; background: var(--c-bg-white);
  border: 1px solid var(--c-border-soft); border-radius: var(--radius-md); padding: 16px 18px; cursor: pointer;
}
.adm-flag input { width: 18px; height: 18px; accent-color: var(--c-accent); cursor: pointer; }
.adm-flag code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--c-text); }
.adm-flag em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--c-text-tertiary); }

@media (max-width: 1024px) { .adm-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .adm-top__inner, .adm { padding-left: 20px; padding-right: 20px; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-flag { flex-wrap: wrap; }
  .adm-flag em { margin-left: 0; width: 100%; }
}
