/* ============================================================
   搭建网站.中国 — 设计系统
   风格：深藏青 + 纯白 + 琥珀金 / 专业克制 / 移动端优先
   ============================================================ */

/* ---------- 1. 配色变量 ---------- */
:root {
  /* 主色 / 强调色 */
  --color-primary: #0F172A;      /* 深藏青：文字/导航/footer */
  --color-accent:  #D97706;      /* 琥珀金：按钮/链接/重点 */
  --color-accent-hover: #B45309; /* hover 加深 */
  --color-accent-soft: rgba(217,119,6,0.10); /* 强调色 10% 底 */

  /* 中性色阶 */
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white:    #FFFFFF;

  /* 语义 */
  --bg: var(--white);
  --bg-subtle: var(--gray-50);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.12);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 间距尺度（4px 基准） */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* 容器 */
  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- 2. 排版系统 ---------- */
:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
               "Inter", "Roboto", system-ui, -apple-system, sans-serif;

  --fs-hero: 52px;   /* 移动端降级见响应式 */
  --fs-h2:   34px;
  --fs-h3:   24px;
  --fs-body: 16px;
  --fs-sm:   14px;
  --fs-xs:   12px;

  --lh-tight: 1.25;
  --lh-body:  1.75;
  --ls-tight: -0.02em;
  --ls-wide:  0.05em;
}

/* ---------- 3. Reset / Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }
h1,h2,h3,h4 { margin: 0; line-height: var(--lh-tight); font-weight: 700; letter-spacing: var(--ls-tight); }
p { margin: 0 0 var(--sp-4); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }

/* 区块通用 */
.section { padding: var(--sp-20) 0; }
.section--subtle { background: var(--bg-subtle); }
.section__head { max-width: 640px; margin: 0 auto var(--sp-12); text-align: center; }
.section__head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.section__head p { color: var(--text-muted); }

/* ---------- 4. 组件：按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-size: var(--fs-body); font-weight: 600; letter-spacing: var(--ls-wide);
  padding: 12px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; line-height: 1; transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn--primary { background: var(--color-accent); color: var(--white); }
.btn--primary:hover { background: var(--color-accent-hover); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--outline:hover { background: var(--color-accent); color: var(--white); }
.btn--ghost { background: transparent; color: var(--color-accent); padding: 12px 0; }
.btn--ghost .arrow { transition: transform .2s ease; }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn--block { width: 100%; }
.btn--invert { background: var(--white); color: var(--color-primary); }
.btn--invert:hover { background: var(--gray-100); color: var(--color-primary); }

/* ---------- 5. 组件：卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--color-accent-soft); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* 网格 */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 6. 组件：输入框 / 表单 ---------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-2); }
.input, .textarea, select.input {
  width: 100%; height: 44px; padding: 0 var(--sp-3);
  font-size: var(--fs-body); font-family: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { height: auto; padding: var(--sp-3); min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

/* ---------- 7. 组件：标签 / Badge ---------- */
.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-wide);
  padding: 3px 10px; border-radius: 999px;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.tag {
  display: inline-block; font-size: var(--fs-xs); color: var(--gray-600);
  background: var(--gray-100); padding: 3px 10px; border-radius: var(--radius-sm);
}

/* ---------- 8. 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-weight: 700; font-size: 18px; color: var(--color-primary); display: flex; align-items: center; gap: var(--sp-2); }
.nav__logo .cn-tag {
  font-size: 10px; font-weight: 600; color: var(--color-accent);
  border: 1px solid var(--color-accent); border-radius: 4px; padding: 1px 5px; letter-spacing: 0;
}
.nav__menu { display: flex; align-items: center; gap: var(--sp-8); list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: var(--gray-700); font-weight: 500; position: relative; padding: var(--sp-2) 0; }
.nav__menu a:hover { color: var(--color-primary); }
.nav__menu a.active { color: var(--color-primary); }
.nav__menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent);
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--sp-2); }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--color-primary); margin: 4px 0; transition: .3s; }

/* 移动端菜单 */
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: var(--sp-4) var(--sp-5);
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-sm);
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; padding: var(--sp-3) 0; border-bottom: 1px solid var(--gray-100); }
}

/* ---------- 9. 浮动微信按钮 ---------- */
.float-wechat {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 40;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--color-accent); color: var(--white); font-weight: 600; font-size: var(--fs-sm);
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.float-wechat:hover { color: var(--white); transform: translateY(-2px); }

/* ---------- 10. 页脚 ---------- */
.footer { background: var(--color-primary); color: var(--gray-400); padding: var(--sp-16) 0 var(--sp-8); }
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer__brand { color: var(--white); font-weight: 700; font-size: 18px; margin-bottom: var(--sp-3); }
.footer h4 { color: var(--white); font-size: var(--fs-sm); margin-bottom: var(--sp-4); letter-spacing: var(--ls-wide); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--sp-10); padding-top: var(--sp-6); font-size: var(--fs-xs); }

/* ---------- 11. 数据条 / 信任条 ---------- */
.trustbar { background: var(--gray-50); border-bottom: 1px solid var(--border); padding: var(--sp-5) 0; }
.trustbar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: center; color: var(--gray-600); font-size: var(--fs-sm); }
.trustbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-400); }

/* 大数字 */
.stat { text-align: center; }
.stat__num { font-size: 48px; font-weight: 700; color: var(--color-accent); line-height: 1; }
.stat__label { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); }

/* 案例卡片 */
.case-card { overflow: hidden; padding: 0; }
.case-card__shot { aspect-ratio: 16/10; background: var(--gray-100); border-bottom: 1px solid var(--border); overflow: hidden; }
.case-card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.case-card:hover .case-card__shot img { transform: scale(1.04); }
.case-card__body { padding: var(--sp-5); }
.case-card__body h3 { font-size: 18px; margin: var(--sp-2) 0; }
.case-card__data { color: var(--color-accent); font-weight: 600; font-size: var(--fs-sm); }

/* 评价 */
.quote { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-8); }
.quote__mark { font-size: 56px; color: var(--gray-200); line-height: .5; font-family: Georgia, serif; }
.quote__text { font-style: italic; color: var(--gray-700); font-size: 18px; margin: var(--sp-3) 0 var(--sp-5); }
.quote__author { display: flex; align-items: center; gap: var(--sp-3); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-200); }
.quote__name { font-weight: 600; color: var(--color-primary); }
.quote__meta { font-size: var(--fs-sm); color: var(--text-muted); }

/* 文章列表 */
.post { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--gray-100); }
.post__title { font-weight: 600; color: var(--color-primary); font-size: 17px; }
.post__meta { font-size: var(--fs-xs); color: var(--gray-400); margin-top: var(--sp-1); }

/* ---------- 12. 动效 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: fadeUp .6s ease forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --fs-hero: 32px; --fs-h2: 28px; --fs-h3: 22px; }
  .section { padding: var(--sp-12) 0; }
  .section__head { margin-bottom: var(--sp-8); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .nav__cta { display: none; }
  /* Hero 在移动端单栏、标题缩小、按钮全宽 */
  .hero { text-align: center; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .stat__num { font-size: 40px; }
  .float-wechat { bottom: var(--sp-4); right: var(--sp-4); padding: 10px 14px; }
}

/* ---------- 14. 可访问性 ---------- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 15. 首页内联网格（桌面双栏 / 移动单栏） ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); align-items: center; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.blog-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-8); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
@media (max-width: 768px) {
  .hero-grid, .why-grid, .blog-feature { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero { min-height: auto; padding-top: var(--sp-12); }
  .why-grid .section__head { margin-bottom: var(--sp-6); }
  .contact-grid, .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ---------- 16. 案例筛选 / 文章搜索 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.filters__btn { border: 1px solid var(--border); background: var(--white); color: var(--gray-600); padding: 8px 16px; border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; transition: .15s; }
.filters__btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filters__btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--white); }
.search { display: flex; max-width: 440px; margin-bottom: var(--sp-8); }
.search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-size: var(--fs-sm); outline: none; }
.search input:focus { border-color: var(--color-accent); }
.search button { padding: 10px 18px; border: 1px solid var(--color-accent); border-left: none; background: var(--color-accent); color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; font-size: var(--fs-sm); white-space: nowrap; }
.is-hidden { display: none !important; }
.empty-note { color: var(--gray-400); font-size: var(--fs-sm); text-align: center; padding: var(--sp-12) 0; }

/* ---------- 17. 左侧悬浮栏（微信名片 / 邮箱 / 一键到顶） ---------- */
.float-side { position: fixed; left: var(--sp-4); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: var(--sp-3); }
.float-side a, .float-side button { width: 52px; height: 52px; border: 1px solid var(--border); background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gray-600); cursor: pointer; font-size: 11px; text-decoration: none; transition: transform .2s ease, color .2s, background .2s, border-color .2s; }
.float-side a:hover, .float-side button:hover { color: var(--white); background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); }
.float-side svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .float-side { left: var(--sp-2); gap: var(--sp-2); }
  .float-side a, .float-side button { width: 44px; height: 44px; font-size: 10px; border-radius: 12px; }
}

/* ============================================================
   V2 组件：全链路服务
   ============================================================ */

/* ---------- 18. 导航下拉（服务全景） ---------- */
.nav__menu .has-dropdown { position: relative; }
.nav__menu .caret { vertical-align: middle; margin-left: 2px; transition: transform .2s; }
.nav__dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 208px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--sp-2); margin-top: 8px; z-index: 60;
}
.nav__dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav__dropdown li { list-style: none; }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; }
.nav__dropdown a:hover { background: var(--color-accent-soft); color: var(--color-accent); }
.has-dropdown:hover .nav__dropdown { display: block; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
@media (max-width: 768px) {
  .nav__dropdown { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0 var(--sp-4); margin: 0; }
  .nav__dropdown a { font-size: var(--fs-sm); padding: var(--sp-3) 0; }
}

/* ---------- 19. 一条龙流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-3); position: relative; }
.flow__step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-3); text-align: center; position: relative; cursor: default;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.flow__num { position: absolute; top: 10px; left: 12px; font-size: var(--fs-xs); color: var(--gray-400); font-weight: 700; }
.flow__icon {
  width: 54px; height: 54px; margin: 0 auto var(--sp-3); border-radius: 50%;
  background: var(--color-accent-soft); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.flow__title { font-weight: 600; margin-bottom: var(--sp-1); font-size: 15px; }
.flow__desc { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.flow__detail {
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: .2s ease;
  position: absolute; bottom: calc(100% + 10px); left: 50%; width: 210px;
  background: var(--color-primary); color: #fff; font-size: var(--fs-sm); line-height: 1.7;
  padding: var(--sp-4); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 30; text-align: left;
}
.flow__step:hover .flow__detail { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.flow__detail strong { color: var(--color-accent); }
.flow__note { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-8); }
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .flow { grid-template-columns: 1fr; gap: var(--sp-3); padding-left: var(--sp-6); position: relative; }
  .flow::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--gray-200); }
  .flow__step { display: flex; gap: var(--sp-4); text-align: left; align-items: center; padding: var(--sp-4); }
  .flow__step:hover .flow__detail { display: none; }
  .flow__num { position: static; min-width: 18px; }
  .flow__icon { margin: 0; flex: 0 0 auto; }
}

/* ---------- 20. 服务卡片「包含」列表 ---------- */
.card__list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; font-size: var(--fs-sm); color: var(--gray-600); }
.card__list li { padding: 5px 0; border-top: 1px dashed var(--gray-100); }

/* ---------- 21. 套餐 / 价格卡片 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-8); display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--featured { border-color: var(--color-accent); box-shadow: var(--shadow-lg); }
.plan__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 20px; font-weight: 700; }
.plan__price { font-size: 38px; font-weight: 700; color: var(--color-accent); margin: var(--sp-3) 0 var(--sp-1); line-height: 1; }
.plan__price small { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 500; }
.plan__price s { font-size: var(--fs-sm); color: var(--gray-400); font-weight: 500; margin-right: 6px; }
.plan__list { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); flex: 1; }
.plan__list li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--gray-100); font-size: var(--fs-sm); color: var(--gray-700); display: flex; gap: var(--sp-2); }
.plan__list li::before { content: "✓"; color: var(--color-accent); font-weight: 700; flex: 0 0 auto; }
.plan .btn { margin-top: auto; }
@media (max-width: 768px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 22. 状态徽章 ---------- */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.status--new { background: rgba(5,150,105,0.10); color: #059669; } .status--new .dot { background: #059669; }
.status--soon { background: rgba(217,119,6,0.12); color: #B45309; } .status--soon .dot { background: #D97706; }
.status--ok { background: rgba(37,99,235,0.10); color: #2563EB; } .status--ok .dot { background: #2563EB; }
.status--exp { background: rgba(220,38,38,0.10); color: #DC2626; } .status--exp .dot { background: #DC2626; }

/* ---------- 23. 证书状态指示 ---------- */
.cert { display: inline-flex; align-items: center; gap: 10px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
.cert .led { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.led--ok { background: #059669; } .led--warn { background: #D97706; } .led--err { background: #DC2626; }

/* ---------- 24. 双栏特性（加速安全 / 域名服务器） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.split__visual { background: linear-gradient(135deg, var(--color-primary), #1E293B); border-radius: var(--radius-lg); padding: var(--sp-8); color: #fff; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); }
.split__visual .topo { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: var(--fs-sm); line-height: 2; color: var(--gray-400); }
.split__visual .topo b { color: #fff; }
.split__list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.split__list li { display: flex; gap: var(--sp-3); padding: var(--sp-2) 0; color: var(--gray-700); }
.split__list li::before { content: "✓"; color: var(--color-accent); font-weight: 700; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* ---------- 25. 双卡片（域名 + 服务器） ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.duo__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-8); }
.duo__card h3 { font-size: 20px; margin-bottom: var(--sp-4); }
.duo__list { list-style: none; padding: 0; margin: 0; }
.duo__list li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--gray-100); font-size: var(--fs-sm); color: var(--gray-700); }
@media (max-width: 768px) { .duo { grid-template-columns: 1fr; } }

/* ---------- 26. 悬浮微信二维码弹层 ---------- */
.float-qr { position: relative; display: flex; }
.float-qr__pop {
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(-8px);
  width: 172px; padding: var(--sp-3); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); text-align: center;
  opacity: 0; visibility: hidden; transition: .2s ease; z-index: 70;
}
.float-qr__pop img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.float-qr__pop p { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.float-qr:hover .float-qr__pop,
.float-qr:focus-within .float-qr__pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
@media (max-width: 768px) {
  .float-qr:hover .float-qr__pop { opacity: 0; visibility: hidden; }
  .float-qr.open .float-qr__pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
}

/* ---------- 27. 知识库文章列表 ---------- */
.post-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.post-item {
  display: flex; align-items: center; gap: var(--sp-5);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.post-item .badge { flex: 0 0 auto; }
.post-item__body { flex: 1; min-width: 0; }
.post-item__body h3 { font-size: 17px; color: var(--color-primary); }
.post-item__body p { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); }
.post-item__more { flex: 0 0 auto; color: var(--color-accent); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.post-item.is-body-hit .post-item__more::after { content: " · 正文匹配"; color: var(--color-accent); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.post-item.is-hidden { display: none; }
@media (max-width: 768px) {
  .post-item { flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4); }
  .post-item__more { display: none; }
}

/* ---------- 28. 文章详情排版 ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { line-height: 1.35; }
.article h2 { font-size: 21px; margin: var(--sp-8) 0 var(--sp-3); }
.article p { color: var(--gray-700); line-height: 1.9; margin: var(--sp-3) 0; }
.article ul { margin: var(--sp-3) 0; padding-left: 1.4em; color: var(--gray-700); line-height: 1.9; }
.article li { margin: var(--sp-1) 0; }
.article strong { color: var(--color-primary); }
.article blockquote { border-left: 3px solid var(--color-accent); background: var(--color-accent-soft); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--sp-4) 0; color: var(--gray-700); }
.article__meta { font-size: var(--fs-sm); color: var(--gray-400); margin-top: var(--sp-3); }
.article__crumb a { color: inherit; }
.article__crumb a:hover { color: var(--color-accent); }

/* ---------- 29. 微信二维码大图弹窗 ---------- */
.qr-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.qr-modal.open { display: block; }
.qr-modal__backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.55); }
.qr-modal__card {
  position: relative; width: min(680px, calc(100% - 32px));
  margin: min(10vh, 80px) auto 0; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-8); max-height: 86vh; overflow: auto;
}
.qr-modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; color: var(--gray-400); cursor: pointer; line-height: 1; padding: 4px; }
.qr-modal__close:hover { color: var(--gray-700); }
.qr-modal__card h3 { font-size: 20px; text-align: center; margin-bottom: var(--sp-5); }
.qr-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.qr-modal__grid figure { margin: 0; text-align: center; }
.qr-modal__grid img { width: 100%; height: auto; max-width: 280px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-md); display: block; margin: 0 auto; }
.qr-modal__grid figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--gray-700); }
@media (max-width: 640px) { .qr-modal__grid { grid-template-columns: 1fr; } }

/* ---------- 30. 价格明细表 ---------- */
.price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.price-table caption { caption-side: top; text-align: left; font-weight: 700; font-size: 18px; padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.price-table th, .price-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table thead th { background: var(--color-primary); color: var(--white); font-weight: 600; white-space: nowrap; }
.price-table tbody tr:nth-child(even):not(.mod-row) { background: #f6f7f9; }
.price-table .mod { font-weight: 700; color: var(--color-accent); white-space: nowrap; text-align: center; }
.price-table .mod-row td { background: var(--color-accent-soft); color: var(--color-accent); font-weight: 700; font-size: 15px; }
.price-table .price { color: var(--color-accent); font-weight: 700; white-space: nowrap; }
.note-box { background: var(--color-accent-soft); border: 1px solid var(--color-accent); border-radius: var(--radius-md); padding: var(--sp-5) var(--sp-6); }
.note-box pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.8; color: var(--gray-700); }
.price-faq { margin: 0; }
.price-faq dt { font-weight: 600; margin-top: var(--sp-5); color: var(--color-accent); }
.price-faq dd { margin: var(--sp-1) 0 0; color: var(--text-muted); line-height: 1.7; }
