/* ===== 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}
}
