/* ============================================================
   液冷连接器检漏与可靠性验证平台 —— 原创「明亮科技风」样式
   Bright Tech · Glassmorphism · Gradient Glow · Micro-animation
   站点级原创，禁止复制/复用至其他站点。
   ============================================================ */

:root {
  --primary: #0A6CFF;
  --primary-2: #00C2FF;
  --primary-deep: #1E3A8A;
  --bg: #F5F8FF;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-soft: #475569;
  --ok: #10B981;
  --warn: #F59E0B;
  --err: #EF4444;
  --line: #E2E8F0;
  --radius: 18px;
  --h2-inset: 16px;            /* 面包屑与正文 H2 左缘对齐基准 */
  --shadow-sm: 0 4px 16px rgba(10, 108, 255, .08);
  --shadow-md: 0 12px 40px rgba(10, 108, 255, .14);
  --glow: radial-gradient(1200px 600px at 80% -10%, rgba(0, 194, 255, .25), transparent 60%),
          radial-gradient(900px 500px at -10% 10%, rgba(10, 108, 255, .18), transparent 55%);
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: var(--glow);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; height: auto; }

/* ---------- 容器 / 栅格 ---------- */
.container { width: min(1180px, 92vw); margin: 0 auto; }
.article-layout { width: min(1180px, 92vw); margin: 0 auto; padding: 0 24px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 36px;
  align-items: start;
}
.article-body { min-width: 0; padding-left: var(--h2-inset); }
.list-layout { width: min(1180px, 92vw); margin: 0 auto; padding: 0 24px; }
.page-wrap { width: min(920px, 92vw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部固定导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 2px 20px rgba(15, 23, 42, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 0 14px var(--primary-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  color: var(--text-soft); font-weight: 500; font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(10, 108, 255, .08); }
.has-sub > a::after { content: "▾"; font-size: 10px; margin-left: 4px; opacity: .6; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 168px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px; display: none;
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 12px; border-radius: 9px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---------- 面包屑（与 H2 左缘严格对齐） ---------- */
.breadcrumb {
  grid-column: 1 / -1;
  padding: 22px 0 6px var(--h2-inset);
  font-size: 13px; color: var(--text-soft);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: #CBD5E1; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Hero（首页） ---------- */
.hero { position: relative; padding: 120px 0 64px; text-align: center; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(10, 108, 255, .1); color: var(--primary-deep);
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.2; margin: 0 0 18px; font-weight: 700; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--text-soft); max-width: 760px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .25s;
}
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 玻璃卡片 ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; margin: 0 0 10px; font-weight: 700; }
.section-head p { color: var(--text-soft); margin: 0; }

.glass {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.glass:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(10, 108, 255, .35); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { padding: 24px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(10,108,255,.12), rgba(0,194,255,.16)); margin-bottom: 14px; }
.card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--primary); }

/* ---------- 数据条（行业基线） ---------- */
.baseline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.baseline .stat { padding: 22px; text-align: center; }
.baseline .stat b { display: block; font-size: 30px; font-weight: 800; background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.baseline .stat span { font-size: 13px; color: var(--text-soft); }

/* ---------- 场景四卡 ---------- */
.scene .tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(16,185,129,.12); color: #047857; margin-bottom: 10px; }

/* ---------- 文章正文排版 ---------- */
.article-body h1 { font-size: 32px; font-weight: 700; margin: 0 0 18px; line-height: 1.3; }
.article-body h2 { font-size: 23px; font-weight: 700; margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.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-radius: 12px;
  background: rgba(10,108,255,.06); border-left: 4px solid var(--primary-2); color: var(--text-soft);
}
.summary-block {
  background: linear-gradient(120deg, rgba(10,108,255,.07), rgba(0,194,255,.07));
  border: 1px solid rgba(10,108,255,.18); border-radius: 14px; padding: 18px 20px; margin: 0 0 18px;
  font-size: 15.5px; color: var(--text);
}
.keywords-line { margin: 0 0 16px; font-size: 14px; color: var(--text-soft); }
.keywords-line .tag-text { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.update-time { font-size: 13px; color: #94A3B8; margin: 0 0 20px; }

/* 参数表 */
table.data { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: #F8FBFF; }
table.data tbody tr:hover { background: rgba(0,194,255,.06); }

.conclusion { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 22px 0; }
.conclusion h3 { margin-top: 0; }
.conclusion ol { margin: 0; padding-left: 22px; }
.conclusion li { margin: 8px 0; }

/* FAQ 裸 details */
.article-body details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 12px 0; background: #fff; }
.article-body details[open] { box-shadow: var(--shadow-sm); }
.article-body summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; }
.article-body summary::-webkit-details-marker { display: none; }
.article-body summary::before { content: "＋"; color: var(--primary); margin-right: 8px; font-weight: 700; }
.article-body details[open] summary::before { content: "－"; }
.article-body details p { margin: 6px 0 12px; color: var(--text-soft); }

.related { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--line); }
.related h3 { font-size: 18px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.related li span { display: block; font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* 实践经验 callout */
.case-study { margin: 22px 0; padding: 16px 18px; border-radius: 12px; background: rgba(245,158,11,.1); border-left: 4px solid var(--warn); font-size: 14.5px; }
.case-study b { color: #B45309; }

/* ---------- 右侧 TOC（sticky，禁 fixed） ---------- */
.toc-aside { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-top: 90px; }
.toc-aside .toc-title { font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.toc-aside ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-aside li a { display: block; padding: 6px 12px; font-size: 13.5px; color: var(--text-soft); border-left: 2px solid transparent; margin-left: -2px; }
.toc-aside li a:hover, .toc-aside li a.active { color: var(--primary); border-left-color: var(--primary); }

/* ---------- 列表页左分类 ---------- */
.list-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 20px; }
.cat-side { position: sticky; top: 90px; }
.cat-toggle { display: none; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li a {
  display: block; padding: 11px 16px; border-radius: 11px; color: var(--text-soft);
  border: 1px solid transparent; font-weight: 500;
}
.category-list li a:hover, .category-list li a.active { background: rgba(10,108,255,.08); color: var(--primary); border-color: rgba(10,108,255,.2); }
.cat-content .post { display: block; padding: 20px; margin-bottom: 16px; color: var(--text); }
.cat-content .post h3 { margin: 0 0 8px; font-size: 19px; }
.cat-content .post p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.cat-content .post .meta { margin-top: 10px; font-size: 12.5px; color: #94A3B8; }
.cat-content .post .chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(10,108,255,.1); color: var(--primary-deep); font-size: 12px; margin-right: 8px; }

/* ---------- 悬浮工具胶囊 ---------- */
.capsule {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px; border-radius: 999px;
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(10,108,255,.45);
}
.capsule button {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 13.5px;
  transition: .2s;
}
.capsule button:hover { background: rgba(255,255,255,.34); }
.capsule button .ico { font-size: 16px; line-height: 1; }
.capsule button .label { white-space: nowrap; letter-spacing: .5px; }
.capsule .sep { height: 1px; background: rgba(255,255,255,.3); margin: 2px 8px; }

/* 名片弹窗 */
.wecom-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; place-items: center; z-index: 100; backdrop-filter: blur(4px); }
.wecom-modal.open { display: grid; }
.wecom-modal .box { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-md); }
.wecom-modal img { width: 300px; height: 500px; object-fit: contain; display: block; border-radius: 8px; }
.wecom-modal .close { position: absolute; top: 18px; right: 22px; font-size: 26px; color: #fff; cursor: pointer; background: none; border: 0; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 60px; background: #0B1220; color: #CBD5E1; padding: 44px 0 28px; }
.site-footer a { color: #93C5FD; }
.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 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; font-size: 14px; }
.site-footer .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #64748B; }
.site-footer .email-dyn { color: #93C5FD; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc-aside { display: none; }
  .grid-4, .baseline { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-9 { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: 1fr; }
  .cat-side { position: static; }
  .cat-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 12px 16px; border-radius: 11px; cursor: pointer;
    border: 1px solid rgba(10,108,255,.2); background: rgba(10,108,255,.08);
    color: var(--primary); font-weight: 600; font-size: 15px;
  }
  .cat-toggle .arrow { transition: transform .2s; }
  .cat-side.open .cat-toggle .arrow { transform: rotate(180deg); }
  .category-list { display: none; margin-top: 8px; }
  .cat-side.open .category-list { display: block; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 64px; right: 0; width: 78vw; max-width: 320px; height: calc(100vh - 64px);
    background: #fff; box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; padding: 16px;
    transform: translateX(110%); transition: transform .28s; gap: 4px; }
  .nav-links.open { transform: translateX(0); }
  .nav-links .has-sub .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding-left: 12px; }
  .nav-links .has-sub.open .sub-menu { display: block; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .grid-9, .baseline { grid-template-columns: 1fr; }
  .article-body { padding-left: 0; }
  :root { --h2-inset: 0px; }
  .hero { padding: 100px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
