/* ============================================================
   国宇股份 · 集团总站样式（视觉体系 v3 — 靛蓝 + 暖金 · 全面提质）
   设计令牌驱动；集团主色 = 靛蓝 #1E3A5F，暖金 #C8A24B 仅作点缀。
   兼容原有全部类名；新增：暗色模式 / 汉堡导航 / 面包屑 / 博客体系。
   ============================================================ */

:root {
  /* —— 集团主色：靛蓝 —— */
  --brand: #1E3A5F;
  --brand-dark: #142A41;
  --brand-soft: #EAF0F6;
  --brand-soft-2: #F4F8FC;

  /* —— 暖金（仅点缀） —— */
  --gold: #C8A24B;
  --gold-dark: #A9882F;
  --gold-soft: #FAF4E4;

  /* —— 三板块强调色（同族不同调） —— */
  --health: #1E3A5F;
  --health-soft: #EEF2F8;
  --network: #2F6CA8;
  --network-soft: #E8F0F8;
  --telecom: #B5482F;
  --telecom-soft: #FBEDE9;

  /* —— 中性 —— */
  --ink: #161C24;
  --muted: #586472;
  --line: rgba(20, 40, 63, 0.10);
  --line-strong: rgba(20, 40, 63, 0.16);
  --bg: #ffffff;
  --bg-soft: #F5F8FB;
  --surface: #ffffff;
  --surface-2: var(--bg-soft);

  /* —— 形状 / 阴影 / 节奏 —— */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 63, 0.06), 0 2px 6px rgba(20, 40, 63, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 40, 63, 0.10);
  --shadow-lg: 0 22px 56px rgba(20, 40, 63, 0.14);
  --maxw: 1180px;

  /* —— 排版尺度 —— */
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(32px, 5vw, 48px);
  --fs-h2: clamp(24px, 3.4vw, 32px);
  --fs-h3: 21px;
  --fs-lead: clamp(16px, 2vw, 19px);

  /* —— 头部 / 动效 —— */
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===================== 暗色模式 ===================== */
[data-theme="dark"] {
  --brand: #6FA8DC;
  --brand-dark: #9CC3E6;
  --brand-soft: #16242F;
  --brand-soft-2: #101A23;
  --gold: #D9B45E;
  --gold-dark: #E7C977;
  --gold-soft: #2A2414;

  --health-soft: #16242F;
  --network: #5B9BD6;
  --network-soft: #142433;
  --telecom: #E07355;
  --telecom-soft: #2C1A14;

  --ink: #E9EFF6;
  --muted: #9FB0C0;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bg: #0D1520;
  --bg-soft: #131E2A;
  --surface: #16222F;
  --surface-2: #1B2836;

  --header-bg: rgba(13, 21, 32, 0.88);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: none; color: var(--gold-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===================== 滚动揭示动画 ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #2A4F7A);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand strong { font-size: 17px; letter-spacing: .3px; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1.5px; }

.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links > li { list-style: none; position: relative; }
.nav-links > li > a {
  color: var(--ink); padding: 10px 14px; border-radius: 9px; font-size: 15px;
  display: inline-flex; align-items: center; gap: 5px; transition: background .15s, color .15s;
}
.nav-links > li > a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand); }
.nav-links > li > a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.tag-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.tag-dot.health { background: var(--gold); }
.tag-dot.network { background: var(--network); }
.tag-dot.telecom { background: var(--telecom); }

/* mega-dropdown */
.mega {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 480px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 20px; display: none; z-index: 60;
}
.nav-links > li:hover .mega,
.nav-links > li:focus-within .mega { display: grid; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega h5 { margin: 4px 0 10px; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 1.5px; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li { margin: 4px 0; }
.mega a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.mega a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand); }
.mega .grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega.health { border-top: 3px solid var(--gold); }
.mega.network { border-top: 3px solid var(--network); }
.mega.telecom { border-top: 3px solid var(--telecom); }

/* 头部右侧工具：暗色切换 + 汉堡 */
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; margin-left: 4px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--brand); text-decoration: none; font-weight: 700;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.nav-tel:hover {
  color: var(--brand-dark); border-color: var(--brand); background: var(--brand-soft);
  transform: translateY(-1px);
}
.nav-tel svg { width: 16px; height: 16px; flex: none; }
.nav-tel .tel-text { font-size: 15px; letter-spacing: .3px; }
@media (max-width: 900px) {
  .nav-tel { padding: 8px; gap: 0; }
  .nav-tel .tel-text { display: none; }
}
.theme-toggle, .nav-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s, transform .12s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.theme-toggle:active, .nav-toggle:active { transform: scale(.94); }
.theme-toggle svg, .nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle .bar + .bar { margin-top: 4px; }
.site-header.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; padding: 92px 0 64px; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 80%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72)); }
.hero > .container { position: relative; z-index: 2; }
.hero-deco { position: absolute; top: -40px; right: -48px; width: 460px; height: 460px; opacity: .12; pointer-events: none; z-index: 1; }
.hero-deco svg { width: 100%; height: 100%; display: block; }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.22; margin: 0 0 18px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--brand-dark);
}
.hero h1 strong { color: var(--brand); font-weight: 800; }
.hero p.lead { font-size: var(--fs-lead); color: var(--muted); margin: 0 0 30px; max-width: 760px; line-height: 1.8; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 14px; color: var(--brand); font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, color .15s;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* 板块 hero 主题色 */
.hero.health { background: linear-gradient(180deg, var(--health-soft), var(--bg) 80%); }
.hero.health h1 strong { color: var(--brand); }
.hero.network { background: linear-gradient(180deg, var(--network-soft), var(--bg) 80%); }
.hero.network h1 strong { color: var(--network); }
.hero.telecom { background: linear-gradient(180deg, var(--telecom-soft), var(--bg) 80%); }
.hero.telecom h1 strong { color: var(--telecom); }
.hero.health .pill { color: var(--brand); border-color: var(--gold); }
.hero.network .pill { color: var(--network); border-color: var(--network); }
.hero.telecom .pill { color: var(--telecom); border-color: var(--telecom); }

/* ===================== Sections ===================== */
section.block { padding: 72px 0; }
.section-head { margin-bottom: 42px; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin: 0 0 12px; letter-spacing: -0.3px; color: var(--brand-dark); }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 720px; }
.section-head.left { text-align: left; }
.section-head.left p { margin: 0; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  font-weight: 700; color: var(--gold-dark); margin-bottom: 10px;
  text-transform: uppercase;
}
.eyebrow.health { color: var(--brand); }
.eyebrow.network { color: var(--network); }
.eyebrow.telecom { color: var(--telecom); }
.soft { background: var(--bg-soft); }
.soft.health { background: var(--health-soft); }
.soft.gold { background: var(--gold-soft); }
.soft.network { background: var(--network-soft); }
.soft.telecom { background: var(--telecom-soft); }

/* ===================== 板块入口大卡 ===================== */
.division {
  display: block; padding: 32px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  color: var(--ink);
}
.division:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: var(--line-strong); }
.division .ic {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.division .ic svg { width: 30px; height: 30px; display: block; }
.division.health .ic { background: linear-gradient(135deg, var(--brand), #2A4F7A); }
.division.network .ic { background: linear-gradient(135deg, var(--network), #3E84C4); }
.division.telecom .ic { background: linear-gradient(135deg, var(--telecom), #CE5C42); }
.division h3 { margin: 0 0 12px; font-size: 22px; color: var(--brand-dark); }
.division .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.division .links a {
  display: inline-block; margin-right: 14px; margin-bottom: 6px;
  font-size: 14px; color: var(--brand); font-weight: 600;
}
.division.health .links a { color: var(--brand); }
.division.network .links a { color: var(--network); }
.division.telecom .links a { color: var(--telecom); }

/* ===================== cards ===================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .tag { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: .5px; }
.card h3 { font-size: var(--fs-h3); margin: 8px 0 10px; color: var(--brand-dark); }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.card .more { font-weight: 600; font-size: 15px; color: var(--brand); }

.card.health { border-top: 3px solid var(--brand); }
.card.health .tag { color: var(--brand); }
.card.network { border-top: 3px solid var(--network); }
.card.network .tag { color: var(--network); }
.card.telecom { border-top: 3px solid var(--telecom); }
.card.telecom .tag { color: var(--telecom); }

/* ===================== 商城区 ===================== */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 16px 0; margin-bottom: 8px;
}
.shop-toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-toolbar .chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 13px; color: var(--ink); cursor: pointer;
}
.shop-toolbar .chip.active { background: var(--network); color: #fff; border-color: var(--network); }

.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product .pic {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f3f5f8, #e6ebf1);
  display: grid; place-items: center; position: relative;
}
.product .pic .laptop { width: 75%; max-width: 280px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1)); }
.product .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--network); color: #fff; font-size: 11px;
  padding: 4px 10px; border-radius: 4px; font-weight: 600; letter-spacing: 1px;
}
.product .badge.gold { background: var(--gold); color: #fff; }
.product .info { padding: 18px 20px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product .series { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 4px; }
.product h4 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.product .specs { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.product .fit {
  background: var(--bg-soft); border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: var(--network); margin: auto 0 14px;
  display: flex; align-items: center; gap: 6px;
}
.product .fit::before { content: "👤"; font-size: 14px; }
.product .cta { display: flex; gap: 8px; }
.product .cta a { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; font-size: 14px; font-weight: 600; }
.product .cta .primary { background: var(--network); color: #fff; }
.product .cta .primary:hover { background: #245a8c; }
.product .cta .ghost { background: var(--surface); color: var(--network); border: 1px solid var(--network); }
.product .cta .ghost:hover { background: var(--network-soft); }

.shop-note {
  background: var(--network-soft); border-left: 3px solid var(--network);
  padding: 14px 18px; border-radius: 8px; font-size: 14px;
  color: #245a8c; margin: 24px 0;
}

/* ===================== steps ===================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.steps.health .step .num { background: var(--brand); }
.steps.network .step .num { background: var(--network); }
.steps.telecom .step .num { background: var(--telecom); }
.step h4 { margin: 6px 0 6px; font-size: 16px; color: var(--brand-dark); }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ===================== callout ===================== */
.callout {
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 20px 0;
}
.callout.gold { border-color: var(--gold); background: var(--gold-soft); }
.callout.health { border-color: var(--brand); background: var(--health-soft); }
.callout.network { border-color: var(--network); background: var(--network-soft); }
.callout.telecom { border-color: var(--telecom); background: var(--telecom-soft); }

/* 醒目入口横幅（首页 / 总览页通用） */
.feature-banner { display:flex; align-items:center; gap:24px; flex-wrap:wrap; text-decoration:none;
  background:linear-gradient(120deg, var(--network-soft), var(--bg));
  border:1px solid var(--line); border-left:4px solid var(--network);
  border-radius:16px; padding:28px 32px; box-shadow:var(--shadow-lg); }
.feature-banner .fb-text { flex:1 1 320px; }
.feature-banner .eyebrow { color:var(--network); }
.feature-banner h2 { margin:6px 0 8px; font-size:26px; color:var(--brand-dark); }
.feature-banner p { color:var(--muted); margin:0; max-width:62ch; }
.feature-banner .fb-action { flex:0 0 auto; }
@media (max-width:720px){ .feature-banner{ padding:18px; } .feature-banner h2{ font-size:21px; } }

/* ===================== pricing / table ===================== */
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.price .amt { font-size: 30px; font-weight: 800; color: var(--brand); }
.price .amt.none { color: var(--muted); font-size: 18px; font-weight: 500; }
.price .per { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
th { background: var(--bg-soft); font-weight: 600; color: var(--brand-dark); }

/* ===================== article（通用正文） ===================== */
.article { max-width: 820px; margin: 0 auto; padding: 52px 20px 64px; }
.article h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.28; margin: 0 0 12px; color: var(--brand-dark); letter-spacing: -0.3px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 24px; margin: 36px 0 12px; color: var(--brand-dark); }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 6px 0; }

/* ===================== breadcrumb（新增） ===================== */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb nav { max-width: var(--maxw); margin: 0 auto; padding: 11px 20px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ===================== 博客体系（新增） ===================== */
.blog-head { padding: 56px 0 12px; }
.blog-head .eyebrow { margin-bottom: 8px; }
.blog-head h1 { font-size: var(--fs-hero); margin: 0 0 10px; color: var(--brand-dark); letter-spacing: -0.5px; }
.blog-head p.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 720px; margin: 0; }

.blog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding: 20px 0 8px; margin-bottom: 4px;
}
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 14px; color: var(--ink); cursor: pointer; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-chip:hover { border-color: var(--line-strong); }
.cat-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-chip .count { opacity: .6; margin-left: 4px; font-size: 12px; }

.blog-tools { display: flex; align-items: center; gap: 10px; }
.blog-search {
  width: 240px; max-width: 56vw; padding: 9px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.blog-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rss-link {
  font-size: 13px; font-weight: 600; color: var(--brand);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.rss-link:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 相关文章 */
.related { padding-top: 8px; }
.related-title { font-size: 22px; color: var(--brand-dark); margin: 0 0 18px; }
@media (max-width: 600px) {
  .blog-tools { width: 100%; }
  .blog-search { flex: 1; width: auto; max-width: none; }
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); text-decoration: none; }
.post-thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--brand), #2A4F7A); color: #fff;
  overflow: hidden;
}
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb .post-cat { z-index: 1; }
.post-thumb .glyph { font-size: 40px; opacity: .9; }
.post-thumb .post-cat {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); color: var(--brand-dark);
}
.post-cat.news { background: var(--telecom); color: #fff; }
.post-cat.consult { background: var(--gold); color: #fff; }
.post-cat.blog { background: var(--brand); color: #fff; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-body .post-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.post-body h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; color: var(--brand-dark); }
.post-body .post-excerpt { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex-grow: 1; }
.post-body .post-read { font-weight: 600; font-size: 14px; color: var(--brand); }
.post-card:hover .post-read { color: var(--gold-dark); }

/* 文章详情页 */
.article-header { max-width: 820px; margin: 0 auto; padding: 40px 20px 0; }
.article-header .post-cat {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--radius-pill); margin-bottom: 14px;
}
.article-header h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.26; margin: 0 0 14px; color: var(--brand-dark); letter-spacing: -0.4px; }
.article-header .meta { color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.article-cover { max-width: 820px; margin: 24px auto 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand), #2A4F7A); display: grid; place-items: center; color: #fff; font-size: 48px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; }
.article-body h2 { font-size: 24px; margin: 34px 0 12px; color: var(--brand-dark); scroll-margin-top: 90px; }
.article-body h3 { font-size: 19px; margin: 24px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.article-body pre { background: var(--bg-soft); padding: 16px; border-radius: 12px; overflow: auto; }
.article-body pre code { background: none; padding: 0; }
.article-footer { max-width: 820px; margin: 0 auto; padding: 0 20px 64px; }
.article-footer .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.article-footer .back:hover { color: var(--gold-dark); }

/* ===================== qr ===================== */
.qr {
  width: 140px; height: 140px; border: 2px dashed var(--brand);
  border-radius: 12px; display: grid; place-items: center;
  color: var(--brand); font-size: 13px; text-align: center; background: var(--brand-soft);
}

/* ===================== 联系信息 ===================== */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow-sm);
}
.tel-big { display: grid; gap: 6px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tel-big .eyebrow { color: var(--gold); }
.tel-big a {
  font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: .5px;
  color: var(--brand); text-decoration: none; line-height: 1.1;
}
.tel-big a:hover { color: var(--brand-dark); }
.contact-meta .tag { display: inline-block; margin-bottom: 8px; }
.contact-meta p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .contact-card { padding: 22px; }
}

/* ===================== 联系表单（FormSubmit） ===================== */
.contact-form { display: grid; gap: 16px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* ===================== 板块子导航 ===================== */
.subnav {
  background: var(--bg-soft); border-radius: 12px; padding: 14px 18px;
  margin: 0 0 32px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px;
}
.subnav.health { background: var(--health-soft); }
.subnav.network { background: var(--network-soft); }
.subnav.telecom { background: var(--telecom-soft); }
.subnav a { padding: 6px 12px; border-radius: var(--radius-pill); color: var(--ink); background: rgba(255,255,255,0.6); }
.subnav a.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.subnav.health a.active { color: var(--brand); }
.subnav.network a.active { color: var(--network); }
.subnav.telecom a.active { color: var(--telecom); }

/* ===================== footer ===================== */
.site-footer { background: var(--brand-dark); color: #C7D2DE; padding: 48px 0 28px; margin-top: 56px; }
[data-theme="dark"] .site-footer { background: #0A111A; }
.site-footer a { color: #A9C2DC; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; letter-spacing: .5px; }
.site-footer p, .site-footer li { font-size: 14px; color: #C7D2DE; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 16px; font-size: 13px; color: #8FA3B8; }

/* ===================== 返回顶部（新增） ===================== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 80;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .15s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ===================== responsive ===================== */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 30px; }

  /* 汉堡抽屉 */
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s var(--ease), opacity .2s;
  }
  .site-header.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > li > a { padding: 12px 14px; font-size: 16px; }
  .mega { position: static; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px 14px; display: none; }
  .site-header.nav-open .mega, .nav-links > li:focus-within .mega { display: grid; }
  .mega .grid-mini { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
}
