/* 诗璐涂料 · 古雲水性EAU标线漆 · 全站设计系统
   作用：统一导航、版面与响应式。文案内容不改，只调结构与视觉。 */

:root{
  /* 品牌色：深蓝=结构 / 金=强调 / 红=行动 / 绿=客服 */
  --navy:#0b1a2d;
  --navy-2:#10233c;
  --navy-3:#16304e;
  --card:#152a42;
  --card-2:#1b3350;
  --gold:#f0b42d;
  --gold-2:#ffc95e;
  --red:#e2593f;
  --red-2:#c9442c;
  --green:#3fae7a;
  --txt:#ffffff;
  --sub:#a9bacd;
  --faint:#7b8ea6;
  --line:rgba(255,255,255,.12);
  --line-2:rgba(255,255,255,.20);
  --r-sm:10px;
  --r-md:14px;
  --r-lg:20px;
  --r-xl:28px;
  --shadow:0 18px 50px rgba(0,0,0,.32);
  --shadow-sm:0 8px 24px rgba(0,0,0,.24);
  --maxw:1180px;
  --nav-h:64px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 16px)}
body{
  font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
  background:var(--navy);color:var(--txt);line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

/* ============ 顶部导航（全站统一） ============ */
.nav{
  position:sticky;top:0;z-index:100;height:var(--nav-h);
  background:rgba(11,26,45,.86);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:100%;gap:16px}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brand-mark{
  width:34px;height:34px;border-radius:9px;flex-shrink:0;
  background:linear-gradient(140deg,var(--gold),#e8a516);
  display:grid;place-items:center;
  font-weight:900;font-size:15px;color:#2a1c00;
}
.brand-txt{font-size:15px;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.brand-txt em{font-style:normal;color:var(--gold)}

.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{
  font-size:14px;color:var(--sub);padding:9px 15px;border-radius:9px;
  transition:color .2s,background .2s;white-space:nowrap;
}
.nav-links a:hover{color:var(--txt);background:rgba(255,255,255,.07)}
.nav-links a.on{color:#2a1c00;background:var(--gold);font-weight:700}
.nav-cta{
  font-size:13.5px;font-weight:700;padding:9px 18px;border-radius:9px;
  background:var(--red);color:#fff;white-space:nowrap;transition:background .2s,transform .2s;
}
.nav-cta:hover{background:var(--red-2);transform:translateY(-1px)}

/* 移动端汉堡 */
.nav-toggle{
  display:none;width:42px;height:42px;border:0;background:rgba(255,255,255,.08);
  border-radius:10px;cursor:pointer;padding:0;place-items:center;
}
.nav-toggle span{display:block;width:19px;height:2px;background:var(--txt);border-radius:2px;transition:.25s;position:relative}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:19px;height:2px;background:var(--txt);border-radius:2px;transition:.25s
}
.nav-toggle span::before{top:-6px}
.nav-toggle span::after{top:6px}
.nav-toggle.open span{background:transparent}
.nav-toggle.open span::before{top:0;transform:rotate(45deg)}
.nav-toggle.open span::after{top:0;transform:rotate(-45deg)}

/* ============ 页脚 ============ */
.foot{border-top:1px solid var(--line);padding:56px 0 32px;background:var(--navy-2)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:44px;margin-bottom:38px}
.foot h4{font-size:14px;font-weight:700;margin-bottom:16px;color:var(--txt)}
.foot p,.foot a{font-size:13.5px;color:var(--sub);line-height:2}
.foot a:hover{color:var(--gold)}
.foot-bot{
  border-top:1px solid var(--line);padding-top:22px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  font-size:12.5px;color:var(--faint);
}
.foot-bot .nm{color:var(--sub)}

/* ============ 通用组件 ============ */
.sec{padding:88px 0;border-top:1px solid var(--line)}
.sec:first-of-type{border-top:0}
.sec-head{margin-bottom:44px;max-width:760px}
.sec-head .eyebrow{
  display:inline-block;font-size:12px;letter-spacing:2.5px;color:var(--gold);
  font-weight:700;margin-bottom:14px;text-transform:uppercase;
}
.sec-head .bar{width:44px;height:4px;background:var(--gold);border-radius:2px;margin-bottom:18px}
.sec-head h2{font-size:32px;font-weight:800;line-height:1.3;letter-spacing:-.3px;margin-bottom:12px}
.sec-head p{font-size:15px;color:var(--sub);line-height:1.85}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 30px;border-radius:11px;font-size:15px;font-weight:700;
  transition:.22s;border:0;cursor:pointer;
}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-2);transform:translateY(-2px);box-shadow:0 10px 26px rgba(226,89,63,.34)}
.btn-ghost{border:1px solid var(--line-2);color:var(--txt);background:rgba(255,255,255,.05)}
.btn-ghost:hover{background:rgba(255,255,255,.11);transform:translateY(-2px)}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:#358f64;transform:translateY(-2px)}

.tag{
  display:inline-flex;align-items:center;gap:7px;font-size:12.5px;
  padding:6px 14px;border-radius:20px;border:1px solid var(--line-2);
  color:var(--sub);background:rgba(255,255,255,.04);
}
.tag .dot{width:5px;height:5px;border-radius:50%;background:var(--gold)}

/* 二维码卡片 */
.qr-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:26px;text-align:center;transition:.24s;
}
.qr-card:hover{border-color:rgba(240,180,45,.42);transform:translateY(-3px)}
.qr-card img{
  width:100%;max-width:230px;margin:0 auto 16px;border-radius:var(--r-sm);
  background:#fff;padding:9px;
}
.qr-card .t{font-size:15px;font-weight:700;margin-bottom:5px}
.qr-card .d{font-size:12.5px;color:var(--faint);line-height:1.7}

/* 通用返回顶部 */
.to-top{
  position:fixed;right:22px;bottom:22px;width:44px;height:44px;border-radius:12px;
  background:var(--card);border:1px solid var(--line-2);color:var(--txt);
  display:grid;place-items:center;cursor:pointer;z-index:90;
  opacity:0;visibility:hidden;transition:.24s;
}
.to-top.show{opacity:1;visibility:visible}
.to-top:hover{background:var(--gold);color:#2a1c00;border-color:var(--gold)}

/* 移动端底部操作条 */
.mbar{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:95;
  background:rgba(11,26,45,.95);backdrop-filter:blur(14px);
  border-top:1px solid var(--line);padding:10px 14px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
  gap:8px;
}
.mbar a{
  flex:1;text-align:center;font-size:13.5px;font-weight:700;
  padding:12px 6px;border-radius:10px;
}
.mbar .m1{background:rgba(255,255,255,.08);color:var(--txt)}
.mbar .m2{background:var(--red);color:#fff}

/* ============ 响应式：平板 ============ */
@media(max-width:1024px){
  :root{--nav-h:60px}
  .wrap{padding:0 24px}
  .sec{padding:66px 0}
  .sec-head h2{font-size:27px}
  .foot-grid{grid-template-columns:1fr 1fr;gap:32px}
}

/* ============ 响应式：手机 ============ */
@media(max-width:768px){
  :root{--nav-h:58px}
  body{line-height:1.75}
  .wrap{padding:0 18px}
  .sec{padding:52px 0}
  .sec-head{margin-bottom:32px}
  .sec-head h2{font-size:23px;line-height:1.35}
  .sec-head p{font-size:14.5px}
  .sec-head .bar{margin-bottom:14px}

  /* 汉堡菜单 */
  .nav-toggle{display:grid}
  .nav-links{
    position:absolute;top:var(--nav-h);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:2px;
    background:rgba(11,26,45,.99);backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    padding:12px 18px 18px;
    max-height:0;overflow:hidden;opacity:0;
    transition:max-height .3s,opacity .25s,padding .3s;
  }
  .nav-links.open{max-height:340px;opacity:1}
  .nav-links a{padding:13px 14px;font-size:15px;border-radius:10px}
  .nav-cta{text-align:center;margin-top:6px}
  .brand-txt{font-size:14px}

  /* 按钮全宽更好点 */
  .btn{width:100%;padding:15px 24px}
  .btn-row{display:flex;flex-direction:column;gap:11px;width:100%}

  .foot{padding:40px 0 26px}
  .foot-grid{grid-template-columns:1fr;gap:26px;margin-bottom:28px}
  .foot-bot{flex-direction:column;text-align:center;gap:8px}

  .to-top{right:14px;bottom:78px;width:40px;height:40px}
  .mbar{display:flex}
  body{padding-bottom:68px}
}

@media(max-width:400px){
  .sec-head h2{font-size:21px}
  .wrap{padding:0 15px}
  .btn{padding:14px 18px;font-size:14.5px}
}

/* ===== 全站导航注入样式（与页面原有样式共存） ===== */
.nav{
  position:sticky;top:0;z-index:100;height:64px;
  background:rgba(11,26,45,.90);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.nav .wrap{
  max-width:1180px;margin:0 auto;padding:0 28px;
  display:flex;align-items:center;justify-content:space-between;height:100%;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;text-decoration:none;color:#fff}
.brand-mark{
  width:34px;height:34px;border-radius:9px;flex-shrink:0;
  background:linear-gradient(140deg,#f0b42d,#e8a516);
  display:grid;place-items:center;font-weight:900;font-size:15px;color:#2a1c00;
}
.brand-txt{font-size:15px;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.brand-txt em{font-style:normal;color:#f0b42d}
.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{
  font-size:14px;color:#a9bacd;padding:9px 15px;border-radius:9px;
  text-decoration:none;transition:color .2s,background .2s;white-space:nowrap;
}
.nav-links a:hover{color:#fff;background:rgba(255,255,255,.07)}
.nav-links a.on{color:#2a1c00;background:#f0b42d;font-weight:700}
.nav-cta{
  font-size:13.5px;font-weight:700;padding:9px 18px;border-radius:9px;
  background:#e2593f;color:#fff;text-decoration:none;white-space:nowrap;
}
.nav-cta:hover{background:#c9442c}
.nav-toggle{
  display:none;width:42px;height:42px;border:0;background:rgba(255,255,255,.08);
  border-radius:10px;cursor:pointer;padding:0;place-items:center;
}
.nav-toggle span{display:block;width:19px;height:2px;background:#fff;border-radius:2px;transition:.25s;position:relative}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:19px;height:2px;background:#fff;border-radius:2px;transition:.25s
}
.nav-toggle span::before{top:-6px}
.nav-toggle span::after{top:6px}
.nav-toggle.open span{background:transparent}
.nav-toggle.open span::before{top:0;transform:rotate(45deg)}
.nav-toggle.open span::after{top:0;transform:rotate(-45deg)}

.foot{
  border-top:1px solid rgba(255,255,255,.12);padding:56px 0 32px;
  background:#10233c;
}
.foot .wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:44px;margin-bottom:38px}
.foot h4{font-size:14px;font-weight:700;margin-bottom:16px;color:#fff}
.foot p,.foot a{font-size:13.5px;color:#a9bacd;line-height:2;text-decoration:none}
.foot a:hover{color:#f0b42d}
.foot-bot{
  border-top:1px solid rgba(255,255,255,.12);padding-top:22px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  font-size:12.5px;color:#7b8ea6;
}
.foot-bot .nm{color:#a9bacd}

.to-top{
  position:fixed;right:22px;bottom:22px;width:44px;height:44px;border-radius:12px;
  background:#152a42;border:1px solid rgba(255,255,255,.2);color:#fff;
  display:grid;place-items:center;cursor:pointer;z-index:90;
  opacity:0;visibility:hidden;transition:.24s;border:0;
}
.to-top.show{opacity:1;visibility:visible}
.to-top:hover{background:#f0b42d;color:#2a1c00}

.mbar{display:none}
@media(max-width:768px){
  .nav{height:58px}
  .nav .wrap{padding:0 18px}
  .nav-toggle{display:grid}
  .nav-links{
    position:absolute;top:58px;left:0;right:0;flex-direction:column;align-items:stretch;gap:2px;
    background:rgba(11,26,45,.99);backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,.12);padding:12px 18px 18px;
    max-height:0;overflow:hidden;opacity:0;transition:max-height .3s,opacity .25s,padding .3s;
  }
  .nav-links.open{max-height:340px;opacity:1}
  .nav-links a{padding:13px 14px;font-size:15px;border-radius:10px}
  .brand-txt{font-size:14px}
  .foot{padding:40px 0 26px}
  .foot .wrap{padding:0 18px}
  .foot-grid{grid-template-columns:1fr;gap:26px;margin-bottom:28px}
  .foot-bot{flex-direction:column;text-align:center;gap:8px}
  .to-top{right:14px;bottom:78px;width:40px;height:40px}
  .mbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95;
    background:rgba(11,26,45,.96);backdrop-filter:blur(14px);
    border-top:1px solid rgba(255,255,255,.12);padding:10px 14px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom));gap:8px;
  }
  .mbar a{
    flex:1;text-align:center;font-size:13.5px;font-weight:700;
    padding:12px 6px;border-radius:10px;text-decoration:none;
  }
  .mbar .m1{background:rgba(255,255,255,.08);color:#fff}
  .mbar .m2{background:#e2593f;color:#fff}
  body{padding-bottom:68px}
}
/* 订单页客服二维码换成真实图片 */
.kf-qr{
  background:#fff!important;border-radius:12px;padding:10px;
  display:grid;place-items:center;min-height:auto;
}
.kf-qr img{width:100%;max-width:190px;display:block;border-radius:6px}
.kf-qr svg,.kf-qr span{display:none}

/* ============================================================
   移动端横向溢出修复（2026-10-15）
   根因：三个页面原有样式里残留固定像素宽度
     - brand.html  body{width:750px}  ← 老代码，最大元凶
     - order.html  页内元素固定宽度
     - brochure.html .sheet 用 216mm 印刷尺寸，手机必然溢出
   策略：只在移动端断点内覆盖，不影响 PC 与印刷版式。
   ============================================================ */
@media(max-width:768px){
  /* 1) 兜底：任何元素都不许撑破视口 */
  html,body{
    max-width:100vw;overflow-x:hidden;
  }
  /* 覆盖遗留的固定 body 宽度 */
  body{width:auto!important;min-width:0!important;max-width:100vw!important}

  /* 2) 图片/表格/SVG 永不溢出 */
  img,svg,video,canvas,table{max-width:100%!important}
  img,svg{height:auto}

  /* 3) brand 页：解除 750px 固定宽与横向排列 */
  .wrap{width:auto!important;max-width:100%!important}
  .prod-grid{grid-template-columns:1fr!important}
  .foot-grid{grid-template-columns:1fr!important}

  /* 4) order 页：页内固定宽元素改为流式 */
  .hero,.page,.brandbar,.sticky{width:auto!important;max-width:100%!important}
  .sticky{position:static!important;max-height:none!important}
  .g-grid,.grounds,.g5,.cards,.calc,.kf{grid-template-columns:1fr!important}

  /* 5) 宣传册：A4 印刷尺寸改为手机可读宽度，横向不溢出 */
  .sheet{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
  }
  .sheet .inner{
    position:static!important;
    inset:auto!important;
    padding:22px 18px!important;
    display:block!important;
  }
  /* 打印版式用的绝对定位元素回归文档流 */
  .sheet .photo,
  .sheet .qrbox,
  .sheet .p2foot,
  .sheet .copy{position:static!important;width:100%!important;max-width:100%!important}
  .sheet .photo{height:auto!important;aspect-ratio:auto!important}
  .sheet .photo img{width:100%;height:auto;object-fit:cover;border-radius:8px}
  .sheet .fade{display:none!important}
  .sheet .cap{position:static!important;display:block;margin-top:8px;
    background:none;border:0;padding:0;font-size:12px;color:#a9bacd}
  .sheet .qrbox img{width:150px!important;height:150px!important}

  /* 6) 强制不换行的元素允许换行 */
  .nowrap,.tn{white-space:normal!important}
}
