/* ===================================================================
   n.射频连接器.公司 —— 商业科技风 · 简约大气
   配色：深海军蓝 + 信号青；留白克制、数据表清晰、无 AI 渐变堆砌
   =================================================================== */
:root{
  --navy:#0A1B3D; --navy2:#13315C; --navy3:#1E4A82;
  --ink:#16202E; --muted:#5A6B82; --line:#E3EAF3; --line2:#D2DEEC;
  --bg:#FFFFFF; --bg-alt:#F5F8FC; --bg-deep:#0C2147;
  --accent:#2E7DD1; --accent2:#2EA8DF; --cyan:#7FD3F2;
  --warn:#B8740E; --ok:#1E8A5B;
  --radius:14px; --radius-sm:10px;
  --maxw:1180px; --shadow:0 10px 30px rgba(13,32,68,.08);
  --shadow-lg:0 18px 50px rgba(13,32,68,.14);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
*{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;
}
img{max-width:100%; display:block}
a{color:var(--accent); text-decoration:none}
a:hover{color:var(--navy2)}
h1,h2,h3,h4,p,li,td,th{overflow-wrap:anywhere; word-break:break-word}
h1,h2,h3,h4{color:var(--navy); line-height:1.3; font-weight:700; letter-spacing:.2px}
h1{font-size:34px; margin:0 0 .5em}
h2{font-size:26px; margin:1.6em 0 .6em}
h3{font-size:20px; margin:1.3em 0 .5em}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 22px}

/* ---------- Header ---------- */
.site-header{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(10px); border-bottom:1px solid var(--line)}
.header-inner{max-width:var(--maxw); margin:0 auto; padding:12px 22px; display:flex; align-items:center; justify-content:space-between; gap:18px}
.brand{display:flex; align-items:center; gap:11px; color:var(--navy)}
.brand img{width:36px; height:36px; border-radius:9px; box-shadow:var(--shadow)}
.brand-text strong{display:block; font-size:16px; color:var(--navy)}
.brand-text em{font-style:normal; font-size:12px; color:var(--muted)}
.main-nav ul{list-style:none; display:flex; gap:6px; margin:0; padding:0}
.main-nav a{display:block; padding:8px 13px; border-radius:999px; color:var(--ink); font-weight:600; font-size:14.5px; transition:.18s}
.main-nav a:hover{background:var(--bg-alt); color:var(--navy2)}
.nav-toggle{display:none; flex-direction:column; gap:4px; background:none; border:0; cursor:pointer; padding:8px}
.nav-toggle span{width:22px; height:2px; background:var(--navy); border-radius:2px}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:13.5px; color:var(--muted); margin:18px 0 0}
.breadcrumb ol{list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0}
.breadcrumb li:not(:last-child)::after{content:"›"; margin-left:8px; color:var(--line2)}
.breadcrumb .current{color:var(--navy2); font-weight:600}

/* ---------- Layout (article / product / list) ---------- */
.main{padding:8px 0 60px}
.layout{display:grid; grid-template-columns:minmax(0,1fr) 248px; gap:44px; align-items:start; max-width:var(--maxw); margin:0 auto; padding:0 22px}
.article-body{max-width:780px; margin:0 auto; width:100%}
.toc-aside{position:sticky; top:84px; max-height:calc(100vh - 104px); overflow:auto}
.toc-title{font-size:13px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin:0 0 10px; font-weight:700}
#toc ul{list-style:none; margin:0; padding:0; border-left:2px solid var(--line)}
#toc li a{display:block; padding:7px 14px; font-size:14px; color:var(--muted); border-left:2px solid transparent; margin-left:-2px}
#toc li a:hover, #toc li a.active{color:var(--navy2); border-left-color:var(--accent)}
.update-line{color:var(--muted); font-size:13.5px; margin:0 0 18px}

/* ---------- Hero (home) ---------- */
.hero{position:relative; background:radial-gradient(1200px 480px at 70% -10%, #16407e 0%, var(--bg-deep) 55%, #07142e 100%); color:#EAF2FB; overflow:hidden}
.hero-bg{position:absolute; inset:0; opacity:.5}
.wave-svg{position:absolute; bottom:-2px; width:100%; height:60%}
.wave-svg path{fill:none; stroke:var(--cyan); stroke-width:2; opacity:.45; stroke-dasharray:6 10}
.hero-inner{position:relative; max-width:var(--maxw); margin:0 auto; padding:84px 22px 72px}
.hero-eyebrow{display:inline-block; font-size:13px; letter-spacing:2px; color:var(--cyan); border:1px solid rgba(127,211,242,.4); padding:5px 12px; border-radius:999px; margin:0 0 18px}
.hero-title{color:#fff; font-size:clamp(28px,4.4vw,46px); line-height:1.2; margin:0 0 18px; max-width:18em}
.hero-sub{font-size:17px; color:#C7D8EE; max-width:42em; margin:0 0 28px}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border-radius:999px; font-weight:700; font-size:15px; transition:.2s; cursor:pointer; border:1px solid transparent}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; box-shadow:0 10px 24px rgba(46,125,209,.35)}
.btn-primary:hover{color:#fff; transform:translateY(-1px); box-shadow:0 14px 30px rgba(46,125,209,.45)}
.btn-ghost{background:rgba(255,255,255,.08); color:#EAF2FB; border-color:rgba(255,255,255,.28)}
.btn-ghost:hover{background:rgba(255,255,255,.16); color:#fff}
.hero-stats{list-style:none; display:flex; flex-wrap:wrap; gap:30px; margin:40px 0 0; padding:0}
.hero-stats li{display:flex; flex-direction:column}
.hero-stats strong{font-size:24px; color:#fff}
.hero-stats span{font-size:13px; color:#9FB8D6}
.hero-simple{background:var(--bg-deep); color:#EAF2FB; text-align:center}
.hero-simple .hero-inner{padding:70px 22px}

/* ---------- Bands ---------- */
.band{padding:60px 0}
.band-alt{background:var(--bg-alt)}
.band-inner{max-width:var(--maxw); margin:0 auto; padding:0 22px}
.band-h{font-size:clamp(22px,3vw,30px); margin:0 0 10px}
.band-lead{color:var(--muted); max-width:46em; margin:0 0 26px; font-size:16px}
.band-note{font-size:14.5px; color:var(--muted); background:#fff; border:1px solid var(--line); border-left:3px solid var(--accent); padding:14px 18px; border-radius:var(--radius-sm)}
.band-position{background:linear-gradient(180deg,#fff,#F2F7FD)}
.band-position .band-lead{font-size:18px; color:var(--ink)}

/* ---------- Cards ---------- */
.card-grid{display:grid; gap:20px}
.product-tree{grid-template-columns:repeat(5,1fr)}
.pcard{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; transition:.2s; position:relative; overflow:hidden}
.pcard:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--line2)}
.pcard-tag{position:absolute; top:16px; right:16px; width:30px; height:30px; border-radius:8px; background:var(--bg-deep); color:var(--cyan); display:grid; place-items:center; font-weight:800; font-size:15px}
.pcard h3{margin:0 0 8px; font-size:18px}
.pcard p{margin:0; font-size:14px; color:var(--muted)}

.svc-grid{grid-template-columns:repeat(4,1fr)}
.svc{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.svc h3{margin:0 0 8px; font-size:17px}
.svc p{margin:0; font-size:14px; color:var(--muted)}

.why-grid{grid-template-columns:repeat(4,1fr)}
.why{background:linear-gradient(180deg,#fff,#F7FAFE); border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.why h3{margin:0 0 8px; font-size:17px; color:var(--navy2)}
.why p{margin:0; font-size:14px; color:var(--muted)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow)}
table.data{width:100%; border-collapse:collapse; font-size:14px; min-width:760px}
table.data th, table.data td{border-bottom:1px solid var(--line); padding:11px 14px; text-align:left; vertical-align:top}
table.data thead th{background:var(--bg-deep); color:#EAF2FB; font-weight:700; position:sticky; top:0}
table.data tbody tr:nth-child(even){background:#F7FAFE}
table.data tbody tr:hover{background:#EAF2FB}
.article-body table.data{min-width:0}

/* ---------- Scenario list ---------- */
.scenario-list{counter-reset:s; list-style:none; margin:0; padding:0; display:grid; gap:14px}
.scenario-list li{counter-increment:s; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px 16px 56px; position:relative; font-size:15px}
.scenario-list li::before{content:counter(s); position:absolute; left:16px; top:16px; width:26px; height:26px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-weight:800; font-size:14px}
.scenario-list b{color:var(--navy2)}

/* ---------- Lists (category / archive) ---------- */
.list-layout{grid-template-columns:230px minmax(0,1fr)}
.cat-side{position:sticky; top:84px; align-self:start}
.cat-side-title{font-size:13px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin:0 0 12px; font-weight:700}
ul.category-list{list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff}
ul.category-list li a{display:block; padding:12px 16px; color:var(--ink); font-weight:600; border-bottom:1px solid var(--line); font-size:15px}
ul.category-list li:last-child a{border-bottom:0}
ul.category-list li a:hover{background:var(--bg-alt); color:var(--navy2)}
ul.category-list li.active a{background:var(--bg-deep); color:#fff}
.list-h1{font-size:30px; margin:0 0 6px}
.list-intro{color:var(--muted); margin:0 0 22px}
.item-list{list-style:none; margin:0; padding:0; display:grid; gap:14px}
.item-row{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px; transition:.18s}
.item-row:hover{border-color:var(--line2); box-shadow:var(--shadow)}
.item-title{font-size:17px; font-weight:700; color:var(--navy2)}
.item-summary{margin:6px 0 4px; color:var(--muted); font-size:14.5px}
.item-meta{margin:0; font-size:12.5px; color:var(--accent); font-weight:600}
.archive-h2{font-size:22px; margin:30px 0 12px}

/* ---------- Details / FAQ ---------- */
details{border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 16px; margin:12px 0; background:#fff}
details[open]{background:#F7FAFE}
summary{cursor:pointer; font-weight:700; color:var(--navy2); font-size:15.5px}
details p{margin:10px 0 2px; color:var(--muted); font-size:14.5px}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--navy2),var(--bg-deep)); color:#EAF2FB}
.cta-inner{text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:#C7D8EE; max-width:40em; margin:0 auto 22px}
.cta-band .hero-cta{justify-content:center}

/* ---------- Sibling links ---------- */
.sibling-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.sibling{display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px; font-weight:600; color:var(--navy2); transition:.18s}
.sibling:hover{box-shadow:var(--shadow); border-color:var(--accent); transform:translateY(-2px)}

/* ---------- Footer ---------- */
.site-footer{background:var(--bg-deep); color:#C7D8EE; margin-top:30px}
.footer-inner{max-width:var(--maxw); margin:0 auto; padding:48px 22px 30px; display:grid; grid-template-columns:2fr 1fr 1fr 1.2fr; gap:30px}
.footer-brand{font-size:15px; color:#fff; font-weight:700; margin:10px 0 8px}
.footer-brand span{font-weight:400; color:#9FB8D6; font-size:12.5px}
.footer-desc{font-size:13.5px; color:#9FB8D6; max-width:30em}
.footer-col h4{color:#fff; font-size:15px; margin:0 0 14px}
.footer-col ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.footer-col a{color:#C7D8EE; font-size:14px}
.footer-col a:hover{color:var(--cyan)}
.footer-bottom{max-width:var(--maxw); margin:0 auto; padding:18px 22px 30px; border-top:1px solid rgba(255,255,255,.1); display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center}
.filing{display:flex; gap:18px; flex-wrap:wrap}
.filing-item{display:inline-flex; align-items:center; gap:7px; color:#C7D8EE; font-size:13px; background:rgba(255,255,255,.06); padding:6px 12px; border-radius:999px}
.filing-icon{width:16px; height:16px; border-radius:3px}
.copyright{margin:0; font-size:12.5px; color:#9FB8D6}

/* ---------- Float capsule (微信名片 + 回到顶部) ---------- */
.float-capsule{position:fixed; right:18px; top:50%; transform:translateY(-50%); z-index:60; display:flex; flex-direction:column; gap:10px}
.cap-btn{display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--navy2); border:1px solid var(--line2); border-radius:999px; padding:10px 16px; font-size:14px; font-weight:700; cursor:pointer; box-shadow:var(--shadow); transition:.18s}
.cap-btn:hover{color:#fff; background:var(--accent); border-color:var(--accent); transform:scale(1.04)}
.cap-btn svg{color:var(--accent)}
.cap-btn:hover svg{color:#fff}

/* ---------- WeChat modal ---------- */
.modal-overlay{position:fixed; inset:0; background:rgba(7,20,46,.72); z-index:80; display:flex; align-items:center; justify-content:center; padding:20px}
.modal-overlay[hidden]{display:none}
.modal-box{background:#fff; border-radius:var(--radius); max-width:380px; width:100%; padding:22px; position:relative; text-align:center; box-shadow:var(--shadow-lg)}
.modal-close{position:absolute; top:10px; right:14px; background:none; border:0; font-size:26px; line-height:1; color:var(--muted); cursor:pointer}
.modal-title{font-weight:700; color:var(--navy); margin:0 0 14px}
.modal-box img{width:100%; border:1px solid var(--line); border-radius:var(--radius-sm)}
.modal-note{font-size:13px; color:var(--muted); margin:12px 0 0}

/* ---------- Page body ---------- */
.page-body{max-width:820px; margin:0 auto}
.page-body h2{border-left:4px solid var(--accent); padding-left:14px}
.tag-text{display:inline-block; background:var(--bg-alt); color:var(--navy2); border:1px solid var(--line); border-radius:999px; padding:2px 10px; font-size:12.5px; margin:2px 4px 2px 0}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .layout{grid-template-columns:1fr; gap:24px}
  .toc-aside{display:none}
  .cat-side{position:static; margin-bottom:18px}
  .list-layout{grid-template-columns:1fr}
  .product-tree{grid-template-columns:repeat(2,1fr)}
  .svc-grid,.why-grid{grid-template-columns:repeat(2,1fr)}
  .sibling-grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  h1{font-size:26px}
  h2{font-size:22px}
  .main-nav ul{display:none; position:absolute; top:64px; right:14px; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:8px; box-shadow:var(--shadow-lg); min-width:180px}
  .main-nav ul.open{display:flex}
  .nav-toggle{display:flex}
  .product-tree,.svc-grid,.why-grid,.sibling-grid,.footer-inner{grid-template-columns:1fr}
  .hero-stats{gap:18px}
  .float-capsule{right:10px}
  .cap-btn{padding:9px 12px; font-size:13px}
}
