/* =========================================================
   电磁阀.cn  官网样式表
   结构：变量 / 基础 / 布局 / 组件 / 页面 / 响应式
   ========================================================= */

:root {
  --navy: #0b2f52;
  --blue: #12558f;
  --blue-dark: #0d3f6c;
  --blue-soft: #eaf2fa;
  --accent: #e2621b;
  --accent-dark: #c44f10;
  --ink: #172532;
  --muted: #5d6c7b;
  --line: #dde5ee;
  --bg: #f6f8fb;
  --white: #fff;
  --shadow: 0 4px 20px rgba(11, 47, 82, .07);
  --shadow-lg: 0 12px 36px rgba(11, 47, 82, .13);
  --radius: 10px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(23px, 2.8vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 68px 0; }
.section--soft { background: var(--bg); }
.section--navy { background: var(--navy); color: #d7e5f3; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .12em; font-weight: 700;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section--navy .section-head p { color: #b9cfe4; }

.text-center { text-align: center; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.4; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 顶部条 / 导航 ---------- */
.topbar { background: var(--navy); color: #cfe0ef; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #eaf3fb; }
.topbar a:hover { color: #ffb27a; }
.topbar-tag { opacity: .85; }
.topbar-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-contact strong { color: #fff; }
.topbar-domain { color: #ffcf9e !important; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--blue);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -1px;
}
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.logo-sub { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; color: #33475c; font-size: 15px; font-weight: 600; border-radius: 6px; }
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.nav a.is-active { color: var(--blue); background: var(--blue-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 6px; width: 42px; height: 40px; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  background-image: linear-gradient(100deg, rgba(9,39,68,.97) 0%, rgba(9,39,68,.88) 48%, rgba(9,39,68,.35) 100%), url("../images/scene-factory.webp");
  background-size: cover; background-position: center;
}
.hero-inner { padding: 84px 0 90px; max-width: 720px; }
.hero .eyebrow { color: #ffb47c; font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero-lead { font-size: 17px; color: #cfe1f0; max-width: 620px; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: #dce9f4; }
.hero-points span::before { content: "✓"; color: #ffb47c; font-weight: 800; margin-right: 8px; }

.page-hero { background: var(--blue-soft); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 760px; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; opacity: .6; }

/* ---------- 通用卡片 / 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #c7d8e9; }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue); font-size: 21px; font-weight: 800; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip div { padding: 24px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip strong { display: block; color: var(--blue); font-size: 17px; }
.stat-strip small { color: var(--muted); font-size: 13px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-card__img picture { display: block; width: 100%; height: 100%; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.product-card__body h3 { font-size: 17px; margin: 6px 0 8px; }
.product-card__body h3 a { color: var(--navy); }
.product-card__body h3 a:hover { color: var(--blue); }
.product-card__body p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; }
.product-card__foot .price-note { color: var(--muted); }
.product-card__foot .btn { padding: 8px 14px; font-size: 13px; }

/* ---------- 筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: #40566c; padding: 9px 18px;
  border-radius: 30px; font-size: 14px; cursor: pointer; font-weight: 600;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.filter-search input { border: 0; outline: 0; padding: 9px 6px; font-size: 14px; min-width: 200px; font-family: inherit; }
.filter-empty { text-align: center; padding: 50px 0; color: var(--muted); }

/* ---------- 产品详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-photo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail-photo picture { display: block; }
.detail-photo img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.photo-note { font-size: 12.5px; color: var(--muted); background: var(--bg); padding: 10px 16px; }
.detail-info h1 { font-size: clamp(25px, 3vw, 34px); }
.detail-info .series { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.detail-info .lead { color: var(--muted); font-size: 16px; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 22px 0; }
.key-specs div { border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 14px; }
.key-specs span { display: block; color: var(--muted); font-size: 12px; }
.detail-info .btn-row { margin-top: 22px; }
.detail-buy { background: var(--blue-soft); border: 1px solid #cfdff0; border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; font-size: 14px; }
.detail-buy strong { color: var(--navy); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.spec-table th { width: 28%; background: var(--bg); color: var(--navy); font-weight: 700; }
.spec-table td { color: #3d4f60; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.check-list li { position: relative; padding-left: 26px; color: #3d4f60; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { background: var(--blue-soft); color: var(--blue); border: 1px solid #d3e3f3; border-radius: 30px; padding: 6px 16px; font-size: 14px; font-weight: 600; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step h3 { margin-top: 10px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.section--navy .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.section--navy .step p { color: #b9cfe4; }

/* ---------- 联系方式 / CTA ---------- */
.cta-band { background: linear-gradient(110deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 38px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 25px; }
.cta-band p { color: #c9dfef; margin: 0; }
.cta-mail { font-size: 20px !important; font-weight: 800; color: #fff !important; letter-spacing: .02em; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card .big-mail { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; color: var(--blue); word-break: break-all; }
.contact-card .big-mail:hover { color: var(--accent); }
.contact-label { font-size: 13px; color: var(--muted); letter-spacing: .06em; font-weight: 600; }
.contact-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; outline: none;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,85,143,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: 12.5px; color: var(--muted); }
.form-agree { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); }
.form-agree input { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.faq summary { padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- 域名出售页 ---------- */
.domain-hero { background: linear-gradient(125deg, #092642, #12558f); color: #fff; padding: 70px 0 76px; text-align: center; }
.domain-hero h1 { color: #fff; }
.domain-hero p { color: #cbdff0; max-width: 720px; margin: 0 auto; }
.domain-hero .eyebrow { color: #ffb47c; font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.domain-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.domain-badges span { border: 1px solid rgba(255,255,255,.32); border-radius: 30px; padding: 7px 18px; font-size: 14px; color: #eaf3fb; }

.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.domain-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.domain-card__top { background: var(--blue-soft); padding: 30px 28px 24px; border-bottom: 1px solid var(--line); }
.domain-card__status { display: inline-block; background: #e6f5ec; color: #147a44; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.domain-card__name { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--navy); line-height: 1.2; word-break: break-all; }
.domain-card__punycode { font-size: 13px; color: var(--muted); margin-top: 6px; }
.domain-card__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.domain-price { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.domain-price .label { font-size: 14px; color: var(--muted); }
.domain-price .value { font-size: 26px; font-weight: 800; color: var(--accent); }
.domain-price .hint { font-size: 13px; color: var(--muted); }
.domain-card ul { margin: 0 0 22px; padding-left: 1.1em; color: #3d4f60; font-size: 14.5px; }
.domain-card ul li { margin-bottom: 7px; }
.domain-card .btn-row { margin-top: auto; }

.price-policy { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 24px 28px; }
.price-policy h3 { margin-top: 0; }
.price-policy ul { margin-bottom: 0; color: #3d4f60; }

.buy-block { background: var(--navy); color: #fff; border-radius: 14px; padding: 40px; text-align: center; }
.buy-block h2 { color: #fff; }
.buy-block p { color: #c9dfef; }
.buy-block .big-mail { color: #fff; font-size: clamp(20px, 3vw, 30px); font-weight: 800; word-break: break-all; }
.buy-block .btn-row { justify-content: center; margin-top: 22px; }

.advantage-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.advantage-num .card { border-top: 3px solid var(--blue); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a243d; color: #a9c1d6; padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #a9c1d6; }
.site-footer a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-mail { font-size: 17px; font-weight: 700; color: #fff !important; word-break: break-all; }
.footer-brand p { max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: #87a2ba; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 移动端底部快捷条 / 提示 ---------- */
.mobile-bar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 30px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .stat-strip, .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(2) { border-right: 0; }
  .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { gap: 30px; }
  .nav a { padding: 9px 10px; font-size: 14px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav-cta { margin: 8px 0 0; }
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo { max-width: 520px; margin-inline: auto; }
  .grid-3, .advantage-num { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 26px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -3px 14px rgba(0,0,0,.07);
  }
  .mobile-bar a { flex: 1; text-align: center; padding: 12px 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar a.primary { background: var(--accent); color: #fff; }
  body { padding-bottom: 52px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 46px 0; }
  .hero-inner { padding: 58px 0 64px; }
  .hero-lead { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .product-grid, .steps, .stat-strip, .advantage-num, .key-specs { grid-template-columns: 1fr; }
  .stat-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-strip div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { flex: 1; min-width: 0; }
  .section-head { margin-bottom: 28px; }
  .buy-block { padding: 28px 20px; }
  .spec-table th { width: 38%; }
  .spec-table th, .spec-table td { padding: 9px 10px; font-size: 14px; }
  .cta-band h2 { font-size: 21px; }
  .topbar-inner { flex-wrap: wrap; justify-content: center; padding: 5px 0; }
  .topbar-contact { gap: 8px; font-size: 12px; justify-content: center; }
  .topbar-contact .sep, .topbar-contact .topbar-qq { display: none; }
  .topbar-contact .topbar-domain { flex-basis: 100%; text-align: center; }
  .hero-lead, .hero-points { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   技术指南栏目 / 长文详情页
   ========================================================= */
.guide-hero { background: var(--blue-soft); border-bottom: 1px solid var(--line); padding: 48px 0 44px; }
.guide-hero .eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.guide-hero h1 { margin-bottom: 10px; }
.guide-hero__lead { color: var(--muted); margin: 0; max-width: 800px; font-size: 16px; }

.article-hero { background: linear-gradient(135deg, #0b2f52 0%, #12558f 100%); color: #dbe9f6; padding: 46px 0 42px; }
.article-hero .breadcrumb, .article-hero .breadcrumb a { color: #b9cfe4; }
.article-hero .breadcrumb a:hover { color: #fff; }
.article-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); max-width: 920px; margin-bottom: 14px; }
.article-tag { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #ffcda6; border-radius: 30px; padding: 4px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.article-deck { color: #d7e5f3; font-size: 16px; max-width: 920px; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #b9cfe4; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }

.article-section { padding-top: 46px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; align-items: start; }
.article-toc { position: sticky; top: 118px; }
.toc-inner { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px 18px; box-shadow: var(--shadow); }
.toc-title { font-weight: 700; color: var(--navy); font-size: 15px; margin: 0 0 12px; }
.article-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd9e8 transparent; }
.article-toc ol::-webkit-scrollbar { width: 6px; }
.article-toc ol::-webkit-scrollbar-thumb { background: #cbd9e8; border-radius: 6px; }
.article-toc li { counter-increment: toc; margin: 0; }
.article-toc li a { display: block; position: relative; padding: 6px 6px 6px 26px; font-size: 13.2px; line-height: 1.5; color: var(--muted); border-radius: 5px; }
.article-toc li a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 2px; top: 6px; font-size: 11px; color: #9aa9b8; font-weight: 700; }
.article-toc li a:hover, .article-toc li a.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.article-toc li a.is-current::before { color: var(--accent); }
.toc-top { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.article-body { min-width: 0; max-width: 820px; font-size: 16px; line-height: 1.9; color: #2b3b4a; }
.article-body > h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 52px 0 18px; padding-left: 14px; border-left: 4px solid var(--accent); scroll-margin-top: 120px; }
.article-body > h2:first-child { margin-top: 0; }
.article-body > h3 { font-size: 18.5px; color: var(--navy); margin: 30px 0 12px; scroll-margin-top: 120px; }
.article-body > p { margin: 0 0 18px; }
.article-body a { color: var(--blue); border-bottom: 1px solid #c7dcf0; }
.article-body a:hover { color: var(--accent); border-color: var(--accent); }
.article-body strong { color: var(--navy); }
.article-body code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 22px 0 26px; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.65; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--blue-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.article-body td { color: #3d4f60; }
.faq--article { max-width: none; margin: 18px 0 26px; }
.faq--article details p { font-size: 15px; line-height: 1.85; }
.article-footnote { margin-top: 40px; padding: 16px 20px; background: var(--bg); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

.guide-list { display: grid; gap: 20px; max-width: 980px; margin-inline: auto; }
.guide-card { display: grid; grid-template-columns: 1fr 190px; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.guide-card__tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 30px; padding: 4px 12px; margin-bottom: 12px; }
.guide-card h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
.guide-card h2 a { color: var(--navy); }
.guide-card h2 a:hover { color: var(--accent); }
.guide-card__main p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 16px; }
.guide-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.guide-card__side { display: grid; gap: 12px; }
.guide-card__side .btn { width: 100%; }
.topic-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 960px; margin-inline: auto; }
.topic-chip { display: inline-block; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--navy); }
.topic-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; margin-top: 30px; font-size: 14.5px; font-weight: 600; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .guide-card { grid-template-columns: 1fr 170px; padding: 24px; }
}
@media (max-width: 820px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { position: static; margin-bottom: 30px; }
  .article-toc ol { max-height: 240px; overflow-y: auto; }
  .guide-card { grid-template-columns: 1fr; gap: 20px; }
  .guide-card__side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .guide-hero, .article-hero { padding: 34px 0 30px; }
  .article-deck { font-size: 14.5px; }
  .article-meta { gap: 6px 14px; font-size: 12px; }
  .article-section { padding-top: 32px; }
  .article-body { font-size: 15.5px; line-height: 1.85; }
  .article-body > h2 { margin-top: 38px; }
  .article-toc ol { max-height: 240px; }
  .article-body table { min-width: 520px; font-size: 13.5px; }
  .article-body th, .article-body td { padding: 8px 10px; }
  .guide-card__side { grid-template-columns: 1fr; }
  .topic-chip { padding: 8px 14px; font-size: 13px; }
}
