/* ===== JUNYUAN BAGS 中文站 · 全站样式 ===== */
:root{
  --ink:#14181d; --paper:#ffffff; --bg:#f5f6f8;
  --brand:#0a4d68; --brand-dark:#083a4f; --accent:#b3201c;
  --line:#dde1e6; --muted:#5c6672; --ok:#2e8b57;
  --warn-bg:#fff8e6; --warn-line:#b7791f;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;color:var(--ink);background:var(--paper);line-height:1.65;font-size:15px}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.35}
.container{max-width:1160px;margin:0 auto;padding:0 20px}
.section{padding:56px 0}
.section.alt{background:var(--bg)}
.eyebrow{font-size:12px;letter-spacing:2px;color:var(--accent);font-weight:700;text-transform:uppercase;margin-bottom:8px}
/* On the dark hero the accent red sits at roughly 1.6:1 against the navy
   gradient -- effectively unreadable.  Lighten it there only. */
.hero .eyebrow{color:#f0b7b4}
h1.page-title{font-size:34px;margin-bottom:10px}
h2.sec-title{font-size:26px;margin-bottom:6px}
p.lead{font-size:17px;color:var(--muted);max-width:820px}
.muted{color:var(--muted)}
.small{font-size:13px}
.center{text-align:center}
.mt16{margin-top:16px}.mt24{margin-top:24px}.mt32{margin-top:32px}

/* 顶部通知条 */
.topbar{background:var(--brand-dark);color:#fff;font-size:13px;padding:8px 0}
.topbar .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px}
.topbar a{color:#fff;font-weight:600}

/* 导航 */
header.main{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-size:19px;font-weight:800;color:var(--ink)}
.logo b{color:var(--brand)}
.logo small{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:400}
.nav-menu{display:flex;gap:4px;align-items:center}
.nav-menu a{padding:8px 12px;color:var(--ink);font-size:14px;font-weight:600;border-radius:6px}
.nav-menu a:hover{background:var(--bg);text-decoration:none;color:var(--brand)}
.nav-menu a.cta{background:var(--accent);color:#fff}
.nav-menu a.cta:hover{background:#8e1a17}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:14px;cursor:pointer}

/* Hero */
.hero{background:linear-gradient(135deg,#0a4d68 0%,#083a4f 60%,#0d2233 100%);color:#fff;padding:64px 0 72px}
.hero h1{font-size:40px;margin:12px 0 14px}
.hero p{font-size:18px;opacity:.92;max-width:840px}
.hero .actions{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:12px 26px;border-radius:8px;font-weight:700;font-size:15px;cursor:pointer;border:none;transition:.2s}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:#8e1a17;text-decoration:none}
.btn-outline{border:1.5px solid #fff;color:#fff;background:transparent}
.btn-outline:hover{background:rgba(255,255,255,.12);text-decoration:none}
.btn-dark{background:var(--brand);color:#fff}
.btn-dark:hover{background:var(--brand-dark);text-decoration:none}
.hero-stats{margin-top:36px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.hero-stats .stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:14px 16px}
.hero-stats .num{font-size:24px;font-weight:800}
.hero-stats .lbl{font-size:12px;opacity:.85}

/* 网格 */
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px}
.card h3{font-size:17px;margin-bottom:8px}
.card p{font-size:13.5px;color:var(--muted)}
.card .tag{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;margin-bottom:10px}
.tag.p1{background:#fdecec;color:var(--accent)}
.tag.p2{background:#e8f2f6;color:var(--brand)}
.tag.st{background:#eef1f5;color:var(--muted)}

/* 表格 */
table{border-collapse:collapse;width:100%;margin:14px 0;font-size:14px}
th,td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}
th{background:var(--bg);font-weight:700}
table.spec td:first-child{font-weight:700;width:220px;background:#fafbfc}

/* 提示框 */
.note{border-radius:8px;padding:14px 18px;margin:16px 0;font-size:14px}
.note.warn{background:var(--warn-bg);border-left:4px solid var(--warn-line)}
.note.ok{background:#eaf7ee;border-left:4px solid var(--ok)}
.note.red{background:#fdecec;border-left:4px solid var(--accent)}

/* 步骤 */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}
.step{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px}
.step .n{font-size:26px;font-weight:800;color:var(--brand)}
.step h4{margin:6px 0 4px}

/* 页脚 */
footer{background:#0d2233;color:#c7d2da;padding:44px 0 26px;font-size:13.5px}
.foot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:26px}
footer h4{color:#fff;font-size:15px;margin-bottom:12px}
footer a{color:#c7d2da}
footer a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:16px;font-size:12px;color:#8fa0ab}
footer .no-sns{font-size:12px;color:#8fa0ab}

/* 表单 */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-family:inherit}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.field .req{color:var(--accent)}
.checkbox-row{display:flex;gap:10px;align-items:flex-start;font-size:13.5px}
.consent-box{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:12px;font-size:13px}
.form-step{display:none}
.form-step.active{display:block}
.step-nav{display:flex;gap:10px;margin-top:18px}

/* 面包屑 */
.crumb{font-size:13px;color:var(--muted);margin-bottom:14px}
.crumb a{color:var(--brand)}

/* 阶段标签 */
.stage{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;border-radius:20px;padding:4px 12px;margin-bottom:12px}
.stage.demand{background:#f3f0e8;color:#7a6a2a}
.stage.dev{background:#e8f2f6;color:var(--brand)}
.stage.sample{background:#eaf7ee;color:var(--ok)}
.stage.prod{background:#fdecec;color:var(--accent)}

/* ===== 配图 =====
   The <img> tags carry width/height attributes so the browser reserves space
   and the page does not jump while images load.  Those attributes act as a
   presentational height hint, which BEATS aspect-ratio unless height is
   explicitly reset -- hence height:auto below.  Without it the hero image
   renders at its full 766px attribute height and the column turns into a
   tall strip. */
.hero-split{display:grid;grid-template-columns:1.12fr .88fr;gap:36px;align-items:center}
.hero-media{border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.2);box-shadow:0 18px 42px rgba(0,0,0,.3);background:#0d3a4d}
.hero-media img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.figure{margin:24px 0}
.figure img{width:100%;height:auto;border-radius:10px;border:1px solid var(--line);background:#fff}
.figure figcaption{font-size:12.5px;color:var(--muted);margin-top:8px;line-height:1.65}
.fig-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
/* one photograph only: centre it, otherwise the empty right half reads as a broken grid */
.fig-grid.single{grid-template-columns:1fr;max-width:860px;margin-left:auto;margin-right:auto}
.fig-grid .figure{margin:0}
.fig-grid .figure img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.card-media{margin:-22px -22px 14px;overflow:hidden;border-radius:10px 10px 0 0;background:#eef1f4}
.card-media img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.cat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:22px}
.cat-strip a{display:block;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#fff;position:relative}
.cat-strip img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;transition:.25s}
.cat-strip a:hover img{transform:scale(1.04)}
.cat-strip span{display:block;padding:10px 12px;font-size:13.5px;font-weight:700;color:var(--ink);text-align:center}

/* 响应式 */
@media(max-width:900px){
  .nav-menu{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;padding:12px 16px;gap:8px;align-items:stretch}
  .nav-menu.open{display:flex}
  .nav-toggle{display:block}
  .hero h1{font-size:30px}
  .hero-split{grid-template-columns:1fr;gap:24px}
  .cat-strip{grid-template-columns:repeat(2,1fr)}
  .g4,.g3,.g2,.steps,.foot-grid{grid-template-columns:1fr 1fr}
  .hero-stats{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .g4,.g3,.g2,.steps,.foot-grid,.hero-stats{grid-template-columns:1fr}
  .fig-grid{grid-template-columns:1fr}
  .section{padding:40px 0}
  .hero{padding:48px 0 56px}
}

/* ============================================================
   P0 转化增强组件（2026-10-27）
   ============================================================ */
/* 联系三件套：手机 / 微信 / 邮箱 */
.contact-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}
.contact-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.contact-item .k{font-size:11.5px;letter-spacing:1.5px;color:var(--accent);font-weight:700}
.contact-item .v{font-size:17px;font-weight:800;margin-top:6px;word-break:break-all;line-height:1.4}
.contact-item .v a{color:var(--brand)}
.contact-item .h{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.5}

/* 页脚二维码 */
.foot-qr{display:flex;gap:12px;align-items:center;margin:12px 0 8px;text-decoration:none}
.foot-qr img{width:100px;height:100px;border-radius:8px;background:#fff;padding:5px;flex:0 0 auto}
.foot-qr em{font-style:normal;font-size:12.5px;color:#c7d2da;line-height:1.55}
.foot-qr:hover em{color:#fff}
.foot-qr:hover{text-decoration:none}

/* 微信卡片（联系页 / 感谢页） */
.wechat-card{display:flex;gap:24px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
.wechat-card img{width:200px;height:auto;border-radius:10px;border:1px solid var(--line);flex:0 0 auto}
.wechat-card .txt{flex:1;min-width:210px}
.wechat-card .txt h3{margin-bottom:8px}
.wechat-card .txt p{font-size:14px;color:var(--muted);margin-bottom:6px}

/* 费用透明表：打样费 / 开模费 / 抵大货 */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:18px;border:1px solid var(--line);border-radius:10px}
.fee-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;min-width:640px}
.fee-table th,.fee-table td{border-bottom:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top}
.fee-table th{background:#eef2f5;font-weight:700;font-size:13.5px;border-bottom:2px solid var(--line);white-space:nowrap}
.fee-table tr:last-child td{border-bottom:none}
.fee-table td.num{font-weight:800;color:var(--brand);white-space:nowrap}
.fee-table .sub{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}

/* 自制 / 外协边界 */
.scope-box{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.scope-box>div{border-radius:12px;padding:18px 20px;border:1px solid var(--line);background:#fff}
.scope-box .in{border-left:4px solid var(--ok)}
.scope-box .out{border-left:4px solid var(--warn-line);background:#fffdf7}
.scope-box h4{margin-bottom:8px;font-size:15px}
.scope-box ul{margin:0;padding-left:18px}
.scope-box li{margin-bottom:5px;font-size:13.5px;line-height:1.6}

/* 下载清单 */
.dl-list{list-style:none;margin-top:18px;padding:0}
.dl-list li{border:1px solid var(--line);border-radius:10px;background:#fff;padding:15px 17px;margin-bottom:10px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dl-list .meta{flex:1;min-width:210px}
.dl-list .meta b{display:block;font-size:15px;margin-bottom:3px}
.dl-list .meta span{font-size:12.5px;color:var(--muted);line-height:1.55}
.dl-btn{white-space:nowrap;background:var(--brand);color:#fff;padding:9px 18px;border-radius:8px;font-size:13.5px;font-weight:700;display:inline-block}
.dl-btn:hover{background:var(--brand-dark);text-decoration:none;color:#fff}

/* 样品实拍卡 */
.sample-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.sample-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.sample-card .body{padding:16px 18px}
.sample-card .body h3{font-size:16px;margin-bottom:6px}
.sample-card .body p{font-size:13.5px;color:var(--muted)}
.sample-card .tag-line{margin-top:10px}

/* 文章页 */
.post-head{padding:34px 0 10px}
.post-meta{font-size:13px;color:var(--muted);margin-top:10px;display:flex;gap:14px;flex-wrap:wrap}
.post-body{font-size:16px;line-height:1.85;color:#22282f;max-width:820px}
.post-body h2{font-size:23px;margin:34px 0 12px;padding-top:6px}
.post-body h3{font-size:18px;margin:24px 0 8px}
.post-body p{margin-bottom:14px}
.post-body ul,.post-body ol{margin:0 0 16px 22px}
.post-body li{margin-bottom:7px}
.post-body table{width:100%;border-collapse:collapse;font-size:14px;margin:18px 0;background:#fff}
.post-body th,.post-body td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}
.post-body th{background:#eef2f5;font-weight:700}
.post-body blockquote{border-left:4px solid var(--brand);background:#f5f8fa;padding:14px 18px;margin:18px 0;font-size:14.5px;color:#39424b}
.post-body .answer-box{background:#eef6f9;border:1px solid #cfe1e8;border-radius:10px;padding:16px 20px;margin:18px 0}
.post-body .answer-box b{color:var(--brand)}
.post-body .answer-box p{margin-bottom:6px}
.post-body .answer-box p:last-child{margin-bottom:0}
.post-tags{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.post-tags a{font-size:12.5px;background:#eef2f5;color:var(--brand);padding:5px 11px;border-radius:20px}
/* 文章底部 RFQ 转化条 */
.cta-band{background:var(--brand);color:#fff;border-radius:14px;padding:26px 28px;margin:34px 0;display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.cta-band .t{flex:1;min-width:230px}
.cta-band h3{color:#fff;font-size:19px;margin-bottom:6px}
.cta-band p{font-size:13.5px;color:#cfe0e8}
.cta-band .acts{display:flex;gap:10px;flex-wrap:wrap}
.cta-band .btn-light{background:#fff;color:var(--brand);padding:11px 20px;border-radius:8px;font-weight:700;font-size:14px}
.cta-band .btn-light:hover{text-decoration:none;background:#eef6f9}
.cta-band .btn-ghost{border:1.5px solid rgba(255,255,255,.6);color:#fff;padding:10px 18px;border-radius:8px;font-weight:600;font-size:14px}
.cta-band .btn-ghost:hover{text-decoration:none;background:rgba(255,255,255,.12)}
/* 文章列表 */
.post-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:24px}
.post-item{border:1px solid var(--line);border-radius:12px;padding:18px 20px;background:#fff;display:block}
.post-item:hover{border-color:var(--brand);text-decoration:none}
.post-item .cat{font-size:11.5px;color:var(--accent);font-weight:700;letter-spacing:1px}
.post-item h3{font-size:16.5px;margin:6px 0 6px;color:var(--ink);line-height:1.5}
.post-item p{font-size:13px;color:var(--muted);line-height:1.6}

@media(max-width:900px){
  .contact-strip{grid-template-columns:1fr}
  .scope-box{grid-template-columns:1fr}
  .post-list{grid-template-columns:1fr}
  .wechat-card img{width:170px}
}


/* ===== 采购指南：专栏导航 / 三出口内链（350 篇量级索引） ===== */
.col-nav{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.col-nav a{font-size:13px;color:var(--brand);background:#f4f8fa;border:1px solid var(--line);border-radius:20px;padding:5px 13px;text-decoration:none;white-space:nowrap}
.col-nav a:hover{background:var(--brand);color:#fff;text-decoration:none}
.col-sec{padding:26px 0;border-bottom:1px dashed var(--line)}
.col-sec:last-of-type{border-bottom:0}
.col-sec .sec-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.col-sec .cnt{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:0}
.exit-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:18px 0 4px}
.exit-item{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f7f9fb;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:8px;padding:12px 14px;font-size:14px;font-weight:600;color:var(--brand);text-decoration:none}
.exit-item span{opacity:.55;font-weight:400}
.exit-item:hover{background:#eef4f8;text-decoration:none}
@media(max-width:640px){
  .exit-list{grid-template-columns:1fr}
  .col-nav{gap:6px}
  .col-nav a{font-size:12px;padding:4px 11px}
}


/* ===== 文章表格：窄屏横向滚动（390px 实测 21 篇被宽表撑破） ===== */
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:18px 0;border-radius:8px}
.tbl-wrap table{margin:0}
.tbl-wrap::-webkit-scrollbar{height:8px}
.tbl-wrap::-webkit-scrollbar-thumb{background:#c9d4dc;border-radius:4px}
