/*
Theme Name: 北京道普 Toptec
Theme URI: https://www.bjtoptec.com
Author: Beijing Toptec rebuild
Description: 北京道普新站主题 — 黑红 + 科技现代设计系统（定版样板 bjtoptec-com-3 的工程实现）。经典 PHP 模板 + 品牌/产品结构化条目。
Version: 0.1.0
Text Domain: toptec
*/

/* ============ design tokens (from approved mockup bjtoptec-com-3) ============
   The mockup ships dual-scheme tokens; the values below are its DARK scheme
   (prefers-color-scheme: dark block), which is the rendering PengJun
   approved and keeps referencing ("科技现代型红黑"). The whole page rhythm —
   hero, bands, tint bands, cards, footer — resolves through these tokens,
   exactly as in the mockup: bg #0C0C0E, tint #101012, surfaces #17171A. */
:root{
  --bg:#0C0C0E; --bg2:#101012; --surface:#17171A; --surface2:#1E1E22;
  --ink:#F3F1ED; --ink2:#CFCCC6; --muted:#A5A29B; --faint:#75726C;
  --line:#26262B; --line2:#34343B;
  --red:#C8102E; --deep:#8F0E22;
  --grad:linear-gradient(120deg,#F0433A 0%,#E0243A 52%,#B3122E 100%);
  --grad-soft:linear-gradient(120deg,rgba(200,16,46,.09),rgba(143,14,34,.09));
  --shadow-sm:0 2px 10px rgba(0,0,0,.3),0 10px 30px -18px rgba(0,0,0,.5);
  --shadow:0 6px 18px -6px rgba(0,0,0,.35),0 24px 48px -20px rgba(0,0,0,.6);
  --shadow-lg:0 12px 28px -10px rgba(0,0,0,.4),0 40px 80px -32px rgba(0,0,0,.7);
  --r:20px; --r-lg:28px;
  --header-h:72px;
  --blob1:rgba(200,16,46,.20); --blob2:rgba(255,255,255,.06); --blob3:rgba(143,14,34,.16);
  --glass:rgba(12,12,14,.78);
  --foot-bg:#08080A; --foot-ink:#E4E1DB; --foot-mut:#8B8880;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; cursor:pointer; background:none; border:0; color:inherit}
.wrap{max-width:1200px; margin:0 auto; padding:0 24px}
.grad-text{background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent}
::selection{background:rgba(200,16,46,.22)}

/* ============ buttons ============ */
.btn{display:inline-flex; align-items:center; gap:9px; padding:13px 26px; border-radius:999px;
  font-weight:600; font-size:15px; line-height:1.2; transition:transform .25s ease, box-shadow .25s ease, background .25s ease; white-space:nowrap}
.btn .arr{transition:transform .25s ease; font-weight:400}
.btn:hover .arr{transform:translateX(3px)}
.btn-grad{background:var(--grad); color:#fff; box-shadow:0 10px 24px -8px rgba(200,16,46,.55)}
.btn-grad:hover{transform:translateY(-2px); box-shadow:0 16px 32px -8px rgba(200,16,46,.6)}
.btn-soft{background:var(--surface); color:var(--ink); border:1px solid var(--line2); box-shadow:var(--shadow-sm)}
.btn-soft:hover{transform:translateY(-2px); border-color:var(--red); color:var(--red)}
.btn-white{background:#fff; color:#17171A; box-shadow:0 12px 26px -10px rgba(12,12,14,.4)}
.btn-white:hover{transform:translateY(-2px)}
.btn-ghostw{background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.45)}
.btn-ghostw:hover{background:rgba(255,255,255,.24)}
.btn-sm{padding:9px 18px; font-size:14px}
.more-link{display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:14.5px; color:var(--red)}
.more-link .arr{transition:transform .25s}
.more-link:hover .arr{transform:translateX(3px)}

/* ============ glass header ============ */
header.site{position:sticky; top:0; z-index:60; background:var(--glass);
  backdrop-filter:blur(16px) saturate(1.5); -webkit-backdrop-filter:blur(16px) saturate(1.5);
  border-bottom:1px solid var(--line)}
.header-in{display:flex; align-items:center; gap:20px; height:var(--header-h)}
.brand{display:flex; align-items:center; gap:10px; flex:none}
.brand .mark{width:42px; height:42px; border-radius:13px; flex:none; display:grid; place-items:center;
  background:var(--grad); color:#fff; font-weight:800; font-size:20px; line-height:1;
  box-shadow:0 8px 18px -6px rgba(200,16,46,.45)}
.brand .mark .mark-fallback{width:100%; height:100%; display:grid; place-items:center; background:var(--grad); color:#fff; font-weight:800; font-size:20px}
.brand .bname{display:flex; flex-direction:column; line-height:1.15}
.brand .bname strong{font-size:19px; letter-spacing:.06em}
.brand .bname small{font-size:10.5px; letter-spacing:.14em; color:var(--muted); text-transform:uppercase}
nav.main{display:flex; gap:2px; margin:0 auto}
nav.main ul{display:flex; gap:2px; list-style:none; margin:0; padding:0}
nav.main a{display:block; padding:9px 10px; border-radius:999px; font-size:15px; font-weight:500; color:var(--ink2); transition:.2s; white-space:nowrap}
nav.main a:hover{background:var(--surface2); color:var(--red)}
nav.main .current-menu-item a, nav.main .current_page_item a{background:var(--grad-soft); color:var(--red); font-weight:600}
.header-cta{display:flex; align-items:center; gap:12px; flex:none}
.lang{display:flex; background:var(--surface2); border:1px solid var(--line); border-radius:999px; padding:3px}
.lang a, .lang span{padding:5px 12px; border-radius:999px; font-size:13px; font-weight:600; color:var(--muted); transition:.2s}
.lang .on{background:var(--surface); color:var(--red); box-shadow:var(--shadow-sm)}
.burger{display:none; width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:var(--surface); place-items:center; flex-direction:column; gap:5px; position:relative; z-index:3; cursor:pointer; -webkit-tap-highlight-color:transparent}
.burger i{display:block; width:18px; height:2px; background:var(--ink); border-radius:2px}
.mobile-menu{display:none; flex-direction:column; padding:10px 24px 18px; gap:2px}
.mobile-menu.open{display:flex}
.mobile-menu ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px}
.mobile-menu a{display:block; padding:11px 14px; border-radius:12px; font-weight:500; color:var(--ink2)}
.mobile-menu a:hover{background:var(--surface2); color:var(--red)}

/* ============ decorative scene ============ */
.scene{position:relative; overflow:hidden}
.blob{position:absolute; border-radius:50%; filter:blur(70px); pointer-events:none; z-index:0}
.dots{position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:radial-gradient(circle, rgba(200,16,46,.16) 1.3px, transparent 1.4px);
  background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 70% 20%, #000 30%, transparent 75%);
          mask-image:radial-gradient(ellipse 70% 60% at 70% 20%, #000 30%, transparent 75%)}
.scene > .wrap{position:relative; z-index:1}

/* ============ hero ============ */
.hero{padding:72px 0 30px}
.hero-grid{display:grid; grid-template-columns:1.02fr .98fr; gap:56px; align-items:center}
.pill{display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow-sm);
  font-size:13px; font-weight:600; color:var(--ink2)}
.pill .dot{width:8px; height:8px; border-radius:50%; background:var(--grad)}
.hero h1{font-size:clamp(38px,4.6vw,58px); line-height:1.16; letter-spacing:.01em; margin:22px 0 18px; font-weight:800}
.hero .lede{font-size:17.5px; color:var(--muted); margin:0 0 30px; max-width:34em}
.cta-row{display:flex; gap:14px; flex-wrap:wrap}
.trust{display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:36px; padding-top:26px; border-top:1px dashed var(--line2)}
.trust span{display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--ink2); font-weight:500}
.trust svg{flex:none}
.hero-visual{position:relative; min-height:520px}
.hv-main{position:absolute; inset:0 37% 38% 0; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-lg); background:var(--surface2); margin:0}
.hv-main img{width:100%; height:100%; object-fit:cover}
.hv-main::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(12,12,14,.45),transparent 42%)}
.hv-cap{position:absolute; left:22px; top:18px; z-index:2; color:#fff}
.hv-cap b{display:block; font-size:17px; letter-spacing:.04em; margin-top:9px}
.hv-cap span{display:inline-block; background:#C8102E; padding:3px 11px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase}
.hv-card{position:absolute; z-index:3; background:var(--surface); border-radius:var(--r); box-shadow:var(--shadow-lg);
  border:1px solid var(--line); overflow:hidden; margin:0}
.hv-card .tx{padding:10px 14px 12px}
.hv-card .tx b{font-size:14.5px; display:block; line-height:1.35}
.hv-card .tx span{font-size:12px; color:var(--muted)}
.hv-card.c1{width:44%; right:-2%; top:5%}
.hv-card.c1 img{height:126px; width:100%; object-fit:cover}
.hv-card.c2{width:40%; right:0; bottom:1%}
.hv-card.c2 img{height:104px; width:100%; object-fit:cover}
.hv-card.c3{width:42%; left:2%; bottom:0}
.hv-card.c3 img{height:100px; width:100%; object-fit:cover}
.hv-badge{position:absolute; z-index:3; left:34%; top:45%; display:flex; align-items:center; gap:13px;
  background:#141416; border:1px solid #2A2A2F; border-radius:var(--r); box-shadow:var(--shadow-lg); padding:14px 18px; color:#fff}
.hv-badge .ic{width:44px; height:44px; border-radius:13px; background:var(--grad); display:grid; place-items:center; flex:none}
.hv-badge b{display:block; font-size:16px; line-height:1.3; color:#fff}
.hv-badge span{font-size:12.5px; color:#B9B6B0}
@keyframes floaty{0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)}}
.floaty{animation:floaty 6s ease-in-out infinite}
.floaty2{animation:floaty 7.5s ease-in-out infinite reverse}
@media (prefers-reduced-motion: reduce){.floaty,.floaty2{animation:none} html{scroll-behavior:auto}}

/* ============ stats bar ============ */
.stats{padding:44px 0 8px}
.stats-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.stat-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:26px 24px; box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease}
.stat-card:hover{transform:translateY(-5px); box-shadow:var(--shadow)}
.stat-card .num{font-size:36px; font-weight:800; line-height:1.1; letter-spacing:.01em}
.stat-card .num em{font-style:normal}
.stat-card .lbl{margin-top:6px; font-weight:600; font-size:15px}
.stat-card .sub{font-size:12px; color:var(--faint); letter-spacing:.14em; text-transform:uppercase; margin-top:2px}

/* ============ sections ============ */
section.band{padding:84px 0}
section.band.tint{background:var(--bg2)}
.sec-head{max-width:760px; margin-bottom:44px}
.sec-head.center{margin-inline:auto; text-align:center}
.sec-tag{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--red)}
.sec-tag::before{content:""; width:22px; height:2px; border-radius:2px; background:var(--grad)}
.sec-head.center .sec-tag::after{content:""; width:22px; height:2px; border-radius:2px; background:var(--grad)}
.sec-head h2{font-size:clamp(28px,3.2vw,40px); line-height:1.25; margin:14px 0 12px; font-weight:800}
.sec-head p{color:var(--muted); margin:0; font-size:16.5px}

/* ============ feature cards ============ */
.feat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.feat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px 30px;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; position:relative; overflow:hidden}
.feat::before{content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--grad); opacity:0; transition:.3s}
.feat:hover{transform:translateY(-6px); box-shadow:var(--shadow)}
.feat:hover::before{opacity:1}
.feat .ic{width:56px; height:56px; border-radius:17px; background:var(--grad-soft); display:grid; place-items:center; margin-bottom:20px}
.feat h3{margin:0 0 10px; font-size:20px}
.feat p{margin:0 0 18px; color:var(--muted); font-size:15px}

/* ============ product / brand cards ============ */
.brand-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.bcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; display:flex; flex-direction:column}
.bcard:hover{transform:translateY(-6px); box-shadow:var(--shadow)}
.bcard .ph{position:relative; height:172px; background:var(--surface2); overflow:hidden}
.bcard .ph img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.bcard:hover .ph img{transform:scale(1.05)}
.bcard .ph .fallback{position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient(135deg,#26262B,#17171A); color:#F0566E; font-size:40px; font-weight:800; padding:0 14px; text-align:center}
.bcard .bd{padding:20px 22px 22px; display:flex; flex-direction:column; gap:8px; flex:1}
.bcard .row1{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.bcard h3{margin:0; font-size:17.5px; line-height:1.35}
.chip{flex:none; font-size:11.5px; font-weight:700; letter-spacing:.05em; padding:4px 11px; border-radius:999px;
  background:var(--grad-soft); color:var(--red)}
.bcard p{margin:0; color:var(--muted); font-size:14px; flex:1}
.bcard .foot{display:flex; align-items:center; justify-content:space-between; margin-top:6px; gap:8px}
.bcard .cat{font-size:12px; color:var(--faint); letter-spacing:.08em; font-weight:600}
.bcard .go{width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--surface2);
  border:1px solid var(--line); color:var(--red); transition:.25s; flex:none}
.bcard:hover .go{background:var(--grad); color:#fff; border-color:transparent}
.hidden-card{display:none !important}

/* brand wall (logo-style cards) */
.wall-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.wcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; display:flex; flex-direction:column}
.wcard:hover{transform:translateY(-6px); box-shadow:var(--shadow)}
.wcard .ph{height:150px; background:var(--surface2); overflow:hidden; position:relative}
.wcard .ph img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.wcard:hover .ph img{transform:scale(1.05)}
.wcard .wordmark{height:150px; display:grid; place-items:center; padding:0 22px; text-align:center;
  background:linear-gradient(135deg,#26262B,#17171A); color:#F3F1ED; font-size:24px; font-weight:800; letter-spacing:.02em}
.wcard .bd{padding:18px 22px 20px; display:flex; flex-direction:column; gap:6px; flex:1}
.wcard .row1{display:flex; align-items:center; justify-content:space-between; gap:10px}
.wcard h3{margin:0; font-size:17px; line-height:1.35}
.wcard p{margin:0; color:var(--muted); font-size:13.5px; flex:1}

/* ============ featured rows ============ */
.feat-rows{display:flex; flex-direction:column; gap:26px}
.frow{display:grid; grid-template-columns:1fr 1fr; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); transition:box-shadow .3s ease}
.frow:hover{box-shadow:var(--shadow)}
.frow .ph{min-height:280px; background:var(--surface2)}
.frow .ph img{width:100%; height:100%; object-fit:cover}
.frow .bd{padding:42px 44px; display:flex; flex-direction:column; justify-content:center; gap:12px}
.frow.flip .ph{order:2}
.tag{display:inline-flex; align-self:flex-start; padding:5px 13px; border-radius:999px; font-size:12px; font-weight:700;
  letter-spacing:.08em; background:var(--grad-soft); color:var(--red); text-transform:uppercase}
.frow h3{margin:0; font-size:24px; line-height:1.3}
.frow p{margin:0; color:var(--muted)}

/* product mini-grid inside brand sections */
.prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:26px}
.pcard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; display:flex; flex-direction:column}
.pcard:hover{transform:translateY(-4px); box-shadow:var(--shadow)}
.pcard .ph{height:150px; background:var(--surface2); overflow:hidden}
.pcard .ph img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.pcard:hover .ph img{transform:scale(1.05)}
.pcard .bd{padding:13px 15px 15px; display:flex; flex-direction:column; gap:4px; flex:1}
.pcard h4{margin:0; font-size:14.5px; line-height:1.45}
.pcard .pdesc{margin:0; font-size:13px; line-height:1.7; color:var(--muted)}
.pcard .more-link{font-size:13px; margin-top:auto; padding-top:6px}
.prod-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.prod-grid.cols-5{grid-template-columns:repeat(5,1fr)}
.prod-grid.cols-6{grid-template-columns:repeat(6,1fr)}

/* ============ news ============ */
.news-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px}
.ncard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; display:flex; flex-direction:column}
.ncard:hover{transform:translateY(-6px); box-shadow:var(--shadow)}
.ncard .ph{height:160px; background:var(--surface2); overflow:hidden}
.ncard .ph img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}
.ncard:hover .ph img{transform:scale(1.05)}
.ncard .bd{padding:20px 22px 24px; display:flex; flex-direction:column; gap:9px; flex:1}
.ncard time{font-size:12.5px; font-weight:700; letter-spacing:.12em; color:var(--red); text-transform:uppercase}
.ncard h3{margin:0; font-size:16.5px; line-height:1.45}
.ncard p{margin:0; color:var(--muted); font-size:13.5px; flex:1}

/* ============ CTA band ============ */
.cta-sec{padding:20px 0 90px}
.cta-card{position:relative; overflow:hidden; border-radius:32px; background:#0C0C0E; color:#fff;
  border-top:3px solid #C8102E;
  padding:56px 60px; display:grid; grid-template-columns:1.4fr .6fr; gap:40px; align-items:center;
  box-shadow:0 30px 60px -24px rgba(12,12,14,.55)}
.cta-card::before{content:""; position:absolute; width:420px; height:420px; border-radius:50%;
  background:rgba(200,16,46,.34); filter:blur(60px); right:-120px; top:-160px}
.cta-card::after{content:""; position:absolute; width:300px; height:300px; border-radius:50%;
  background:rgba(200,16,46,.18); filter:blur(50px); left:32%; bottom:-200px}
.cta-card h2{margin:0 0 12px; font-size:clamp(26px,3vw,36px); line-height:1.3; position:relative; z-index:1}
.cta-card p{margin:0; opacity:.92; position:relative; z-index:1; max-width:36em}
.cta-acts{display:flex; flex-direction:column; gap:12px; position:relative; z-index:1}
.cta-acts .btn{justify-content:center}

/* ============ footer ============ */
footer.site{background:var(--foot-bg); color:var(--foot-ink); padding:70px 0 0; margin-top:0}
.foot-grid{display:grid; grid-template-columns:1.4fr .9fr .9fr 1fr; gap:44px; padding-bottom:52px}
footer .brand .bname small{color:var(--foot-mut)}
footer .brand .mark{width:40px; height:40px; font-size:19px}
footer h4{margin:0 0 18px; font-size:14px; letter-spacing:.16em; text-transform:uppercase; color:#fff}
footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px}
footer ul a{color:var(--foot-mut); font-size:14.5px; transition:.2s}
footer ul a:hover{color:#fff}
.fbrand p{color:var(--foot-mut); font-size:14px; margin:18px 0 0; max-width:32em}
.foot-contact li{display:flex; flex-direction:column; gap:1px}
.foot-contact b{font-size:11.5px; letter-spacing:.16em; color:#E85D75}
.foot-contact span,.foot-contact a{color:var(--foot-ink); font-size:14.5px}
footer .fw-col p{color:var(--foot-mut); font-size:14.5px; margin:0 0 10px}
footer .fw-col a{color:var(--foot-ink); transition:.2s}
footer .fw-col a:hover{color:#E85D75}
.foot-bottom{border-top:1px solid rgba(255,255,255,.09); padding:22px 0}
.foot-bottom .wrap{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--foot-mut)}
.foot-bottom .lat{letter-spacing:.2em}

/* ============ dark bands — black presence of the approved black-red identity
   (dark hero/pagehead scenes + dark brand-wall band; cards stay white,
   red discipline unchanged: red only on buttons/numbers/tags/keywords) ============ */
.scene-dark{background:
  radial-gradient(900px 480px at 78% -10%, rgba(200,16,46,.22), transparent 60%),
  linear-gradient(180deg,#0B0B0D 0%,#101012 58%,#0C0C0E 100%); color:#EDEBE7}
.scene-dark .hero h1{color:#fff}
.scene-dark .hero .lede{color:#B9B6B0}
.scene-dark .pill{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); color:#EDEBE7; box-shadow:none}
.scene-dark .btn-soft{background:rgba(255,255,255,.05); color:#fff; border:1px solid rgba(255,255,255,.35); box-shadow:none}
.scene-dark .btn-soft:hover{background:rgba(200,16,46,.15); border-color:var(--red); color:#fff}
.scene-dark .trust{border-top-color:rgba(255,255,255,.18)}
.scene-dark .trust span{color:#D8D5CF}
.scene-dark .hv-badge{background:#1C1C20; border-color:rgba(255,255,255,.16)}
.scene-dark .hv-card{background:#141416; border-color:rgba(255,255,255,.1)}
.scene-dark .hv-card .tx b{color:#fff}
.scene-dark .hv-card .tx span{color:#9B978F}
.scene-dark .stat-card{background:#141416; border-color:rgba(255,255,255,.09); box-shadow:0 24px 48px -20px rgba(0,0,0,.6)}
.scene-dark .stat-card .num{color:#fff}
.scene-dark .stat-card .lbl{color:#fff}
.scene-dark .stat-card .sub{color:#8F8C85}

/* dark glass header with the mockup's tile lockup (global) */
header.site{background:rgba(12,12,14,.85); border-bottom:1px solid rgba(255,255,255,.09); color:#EDEBE7}
header.site .bname strong{color:#fff}
header.site .bname small{color:#9B978F}
header.site nav.main a{color:#CFCBC4}
header.site nav.main a:hover{background:rgba(255,255,255,.08); color:#fff}
header.site nav.main .current-menu-item a, header.site nav.main .current_page_item a{background:rgba(200,16,46,.18); color:#fff}
header.site .lang{background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.14)}
header.site .lang a{color:#B9B6B0}
header.site .lang .on{background:#fff; color:var(--red)}
header.site .burger{border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.06)}
header.site .burger i{background:#fff}
header.site .mobile-menu a{color:#D8D5CF}
header.site .mobile-menu a:hover{background:rgba(255,255,255,.07); color:#fff}
.scene-dark .pagehead h1{color:#fff}
.scene-dark .pagehead p{color:#B9B6B0}
.band-dark{background:var(--bg2); color:#EDEBE7}
.band-dark .sec-head h2{color:#fff}
.band-dark .sec-head p{color:#9B978F}
.band-dark .wcard{box-shadow:0 24px 48px -24px rgba(0,0,0,.6)}

/* ============ inner pages ============ */
.pagehead{padding:58px 0 34px}
.crumbs{display:inline-flex; align-items:center; gap:9px; background:var(--surface); border:1px solid var(--line);
  border-radius:999px; padding:7px 16px; font-size:13.5px; box-shadow:var(--shadow-sm); color:var(--muted)}
.crumbs a{color:var(--ink2); font-weight:500}
.crumbs a:hover{color:var(--red)}
.crumbs .sep{color:var(--faint)}
.crumbs .cur{color:var(--red); font-weight:600}
.pagehead h1{font-size:clamp(32px,4vw,46px); margin:26px 0 12px; font-weight:800; line-height:1.2}
.pagehead p{color:var(--muted); max-width:46em; margin:0; font-size:16.5px}

/* agency filter bars */
.filterbar{position:sticky; top:var(--header-h); z-index:40; padding:14px 0;
  background:var(--glass); backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4);
  border-block:1px solid var(--line)}
.filter-in{display:flex; align-items:center; gap:9px; flex-wrap:wrap}
.filter-in .flabel{font-size:13px; font-weight:700; letter-spacing:.1em; color:var(--faint); text-transform:uppercase; margin-right:2px}
.fbtn{padding:10px 20px; border-radius:999px; font-size:14.5px; font-weight:600; color:var(--ink2);
  background:var(--surface); border:1px solid var(--line); transition:.22s}
.fbtn:hover{border-color:var(--red); color:var(--red); transform:translateY(-1px)}
.fbtn.on{background:var(--grad); color:#fff; border-color:transparent; box-shadow:0 8px 18px -6px rgba(200,16,46,.5)}
.fbtn.sm{padding:7px 15px; font-size:13.5px}
.count{margin-left:auto; font-size:13.5px; color:var(--muted)}
.subfilter{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0 20px}
.empty-note{display:none; text-align:center; color:var(--muted); padding:50px 0}
.empty-note.show{display:block}

/* agency brand sections */
.agency-sec{padding:56px 0}
.agency-sec + .agency-sec{border-top:1px solid var(--line)}
.agency-sec.tint{background:var(--bg2)}
.brand-intro{display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; margin-bottom:8px}
.brand-intro .tx h3{font-size:clamp(24px,2.6vw,32px); margin:12px 0 12px; line-height:1.3; font-weight:800}
.brand-intro .tx p{color:var(--muted); margin:0 0 20px; font-size:16px}
.brand-intro .ph{border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); background:var(--surface2)}
.brand-intro .ph img{width:100%; height:300px; object-fit:cover}
.group-label{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--red)}
.group-label::before{content:""; width:22px; height:2px; background:var(--grad); border-radius:2px}
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:26px}
.gallery-grid figure{margin:0; border-radius:var(--r); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); background:var(--surface2)}
.gallery-grid img{width:100%; height:190px; object-fit:cover}

/* ============ rich text (about / generic pages) ============ */
.rich{max-width:860px}
.rich h2{font-size:clamp(26px,3vw,34px); font-weight:800; line-height:1.3; margin:44px 0 16px}
.rich h2:first-child{margin-top:0}
.rich h3{font-size:20px; font-weight:700; margin:30px 0 10px}
.rich p{color:var(--ink2); margin:0 0 16px; font-size:16.5px}
.rich ul{margin:0 0 16px; padding-left:1.2em; color:var(--ink2)}
.rich li{margin-bottom:6px}
.rich strong{color:var(--ink)}
/* data tables in rich text (e.g. the 技术咨询及服务 performance table —
   structure/rowspans are the original's; presentation follows the design
   system, mirroring .detail-body tables, plus a first-row header treatment
   because the original markup uses <td> for its header row) */
.rich .table-scroll{overflow-x:auto; margin:26px 0; border:1px solid var(--line);
  border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow-sm)}
.rich table{border-collapse:collapse; width:100%; font-size:14.5px; min-width:640px}
.rich th, .rich td{border:1px solid var(--line); padding:11px 14px; text-align:left;
  color:var(--ink2); vertical-align:top; line-height:1.55}
.rich table tr:first-child td{color:var(--ink); font-weight:700; background:var(--surface2);
  letter-spacing:.03em; white-space:nowrap}
.rich table tbody tr:nth-child(even) td{background:rgba(255,255,255,.016)}
.rich table td[rowspan]{vertical-align:middle}
.info-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin:34px 0 8px}
.info-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px 26px; box-shadow:var(--shadow-sm)}
.info-card .ic{width:48px; height:48px; border-radius:14px; background:var(--grad-soft); display:grid; place-items:center; margin-bottom:16px}
.info-card h3{margin:0 0 8px; font-size:17.5px}
.info-card p{margin:0; color:var(--muted); font-size:14.5px}
.info-card a{color:var(--red); font-weight:600}

/* ============ contact ============ */
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:26px; align-items:start}
.contact-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px 32px; box-shadow:var(--shadow-sm)}
.contact-card h3{margin:0 0 18px; font-size:20px}
.contact-rows{display:flex; flex-direction:column; gap:16px}
.contact-rows .row{display:flex; gap:14px}
.contact-rows .ic{width:42px; height:42px; border-radius:12px; background:var(--grad-soft); display:grid; place-items:center; flex:none}
.contact-rows b{display:block; font-size:13px; letter-spacing:.1em; color:var(--faint); text-transform:uppercase; margin-bottom:2px}
.contact-rows span, .contact-rows a{font-size:15.5px; color:var(--ink2)}
.contact-rows a:hover{color:var(--red)}
/* location card (replaces the non-rendering Amap iframe embed — see
   page-contact.php note): dark panel in the contact design language */
.map-card{display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:26px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:30px 32px; box-shadow:var(--shadow-sm)}
.map-card .map-pin{width:56px; height:56px; border-radius:16px; background:var(--grad-soft);
  display:grid; place-items:center; flex:none}
.map-card .map-tx{flex:1; min-width:230px}
.map-card .map-tx h3{margin:0 0 6px; font-size:18px}
.map-card .map-tx p{margin:0; color:var(--muted); font-size:14.5px}
.map-card .map-tx .map-name{color:var(--ink); font-weight:600; font-size:15.5px; margin-bottom:2px}
.form-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px 32px; box-shadow:var(--shadow-sm)}
.form-card h3{margin:0 0 6px; font-size:20px}
.form-card .fsub{color:var(--muted); font-size:14.5px; margin:0 0 20px}
.fluentform .ff-el-input--label label{font-weight:600; font-size:14.5px}
.fluentform .ff-el-form-control{border-radius:12px; border:1px solid var(--line2); padding:12px 14px; font:inherit;
  background:var(--surface2); color:var(--ink)}
.fluentform .ff-el-form-control::placeholder{color:var(--faint)}
.fluentform .ff-el-form-control:focus{border-color:var(--red); box-shadow:0 0 0 3px rgba(200,16,46,.12); outline:none}
.fluentform .ff-btn-submit{background:var(--grad) !important; border-radius:999px !important; padding:13px 34px !important; font-weight:600; border:0; box-shadow:0 10px 24px -8px rgba(200,16,46,.55)}

/* ============ responsive ============ */
/* Header fit (batch-10 device pass): the full header (logo lockup + 8-item
   nav + language pill + CTA button) needs ~1,030px even with tightened
   padding, so below 1,150px viewport the nav folds into the burger menu
   (iPad portrait/landscape and small laptops); between 1,151–1,400px the
   header uses compact padding so nothing is clipped at 1,200px wrap. */
@media (max-width:1150px){
  nav.main{display:none}
  .burger{display:grid}
}
@media (max-width:1400px) and (min-width:1151px){
  .header-in{gap:16px}
  nav.main a{padding:9px 8px; font-size:14px}
  .header-cta{gap:8px}
  .lang a, .lang span{padding:5px 10px}
}
@media (max-width:1020px){
  .hero-grid{grid-template-columns:1fr; gap:64px}
  .hero-visual{min-height:420px; max-width:560px}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .feat-grid,.brand-grid,.wall-grid{grid-template-columns:repeat(2,1fr)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .prod-grid,.prod-grid.cols-5,.prod-grid.cols-6{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(3,1fr)}
  .frow{grid-template-columns:1fr}
  .frow .ph{min-height:230px}
  .frow.flip .ph{order:0}
  .brand-intro{grid-template-columns:1fr; gap:26px}
  .contact-grid{grid-template-columns:1fr}
  .cta-card{grid-template-columns:1fr; padding:44px 36px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .info-cards{grid-template-columns:1fr}
}
@media (max-width:620px){
  .wrap{padding:0 18px}
  .brand .mark{width:38px; height:38px; font-size:18px}
  .header-cta .btn{display:none}
  .hero{padding:44px 0 10px}
  .hero-visual{min-height:360px}
  .hv-card.c1{width:52%}
  .hv-card.c1 img{height:92px}
  .hv-badge{left:0; padding:11px 14px}
  .stats-grid{grid-template-columns:1fr 1fr; gap:14px}
  .stat-card{padding:20px 18px}
  .stat-card .num{font-size:29px}
  section.band{padding:58px 0}
  .feat-grid,.brand-grid,.wall-grid,.news-grid{grid-template-columns:1fr}
  .prod-grid,.prod-grid.cols-3,.prod-grid.cols-5,.prod-grid.cols-6{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .frow .bd{padding:28px 24px 32px}
  .cta-card{padding:38px 26px; border-radius:26px}
  .foot-grid{grid-template-columns:1fr; gap:34px}
  .count{margin-left:0; width:100%}
}

/* batch1 artifact fix synced back: brand names readable on dark band */
.band-dark .wcard h3{color:var(--ink)}

/* ============ batch 2: real logo, detail pages, news ============ */
/* Original 北京道普 emblem on black (PengJun: 原 logo 换黑色底) — the image is
   a near-square black tile; rounded corners make it sit as a deliberate
   lockup tile in the dark glass header/footer, complete and uncropped. */
.brand .brand-logo{height:40px; width:auto; display:block; flex:none; border-radius:12px;
  box-shadow:0 8px 18px -6px rgba(0,0,0,.55)}
footer .brand .brand-logo{height:40px; border-radius:11px}
@media (max-width:640px){ .brand .brand-logo{height:38px; border-radius:10px} }

/* converted original detail content */
.detail-body figure.dimg{margin:26px 0}
.detail-body figure.dimg img{width:100%; height:auto; display:block; border-radius:var(--r-lg);
  border:1px solid var(--line); box-shadow:var(--shadow-sm); background:var(--surface2)}
.detail-body figure.dimg figcaption{margin-top:10px; font-size:13.5px; color:var(--muted); text-align:center}
.detail-body .figcap{font-size:14px; color:var(--muted)}
.detail-body .table-scroll{overflow-x:auto; margin:26px 0; border:1px solid var(--line);
  border-radius:var(--r); background:var(--surface)}
.detail-body table{border-collapse:collapse; width:100%; font-size:14.5px; min-width:560px}
.detail-body th, .detail-body td{border:1px solid var(--line); padding:9px 12px; text-align:left;
  color:var(--ink2); vertical-align:top}
.detail-body th{color:var(--ink); font-weight:700; background:var(--surface2)}
.detail-body h4{font-size:17px; font-weight:700; margin:26px 0 10px}
.subcat-head{font-size:19px; font-weight:700; margin:30px 0 4px}
.subcat-head:first-of-type{margin-top:0}
div.ncard:hover{transform:none; box-shadow:var(--shadow-sm)}

/* The header already carries the 中文/EN pill on every page.
   Hide TranslatePress's floating switcher so it never paints over the header
   controls (it was covering the EN link at phone width).
   Folded into the theme 2026-10-17 — previously this rule existed only in the
   preview-snapshot copy, so a deploy from the local build would have lost it. */
nav.trp-floating-switcher{display:none!important}

/* ============ batch 7: hero collage (4 business-line tiles + badge) ============ */
/* The base rules above lay out the layered collage on desktop; below, the
   stacked single-column hero needs more vertical room and smaller tiles. */
@media (max-width:1020px){
  .hero-visual{min-height:560px}
}
@media (max-width:620px){
  .hero-visual{min-height:540px}
  .hv-main{inset:0 30% 40% 0}
  .hv-card.c1{width:48%}
  .hv-card.c1 img{height:92px}
  .hv-card.c2 img{height:80px}
  .hv-card.c3 img{height:76px}
  .hv-card .tx{padding:8px 11px 10px}
  .hv-card .tx b{font-size:13px}
  .hv-badge{left:auto; right:-2%; top:43%; padding:11px 14px}
  .hv-badge b{font-size:14px}
}

/* ============ batch 11: on-site search + favicon-era header fit ============
   The header search button (38px) joins .header-cta. To keep every width
   band overflow-free the base header paddings were tightened slightly
   above (header gap 20, nav link padding 10, lang pill 12, CTA button 18,
   brand lockup spacing); the <=620 / <=480 rules below carry the small-
   screen end (numbers verified with the batch-10 font-metrics method). */
.vh{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.hsearch{position:relative; width:38px; height:38px; flex:none; display:grid; place-items:center;
  border-radius:999px; border:1px solid var(--line); background:var(--surface2); color:var(--ink2); transition:.2s}
.hsearch:hover{color:var(--red); border-color:var(--red)}
header.site .hsearch{background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.14); color:#EDEBE7}
header.site .hsearch:hover{background:rgba(200,16,46,.25); border-color:rgba(200,16,46,.6); color:#fff}

.searchbox{max-width:820px; margin:0 auto; padding-bottom:26px}
.search-form{display:flex; gap:12px}
.search-form input{flex:1; min-width:0; padding:14px 22px; border-radius:999px; font:inherit; font-size:16px;
  color:var(--ink); background:var(--surface); border:1px solid var(--line2); outline:none; transition:.2s}
.search-form input:focus{border-color:var(--red); box-shadow:0 0 0 3px rgba(200,16,46,.22)}
.search-form input::placeholder{color:var(--faint)}
.search-form .btn{flex:none}
.search-count{margin:24px 2px 4px; color:var(--muted); font-size:14.5px}
.search-results{display:flex; flex-direction:column; gap:12px; margin-top:14px}
.sresult{display:flex; gap:14px; align-items:flex-start; background:var(--surface);
  border:1px solid var(--line); border-radius:16px; padding:16px 18px; transition:.2s}
.sresult:hover{border-color:rgba(200,16,46,.55); transform:translateY(-1px)}
.sresult-tag{flex:none; margin-top:2px; font-size:12px; font-weight:700; color:#F0617A;
  background:rgba(200,16,46,.13); padding:4px 10px; border-radius:999px; white-space:nowrap}
.sresult-body{min-width:0}
.sresult-body strong{display:block; font-size:16.5px; font-weight:700; color:var(--ink); line-height:1.45}
.sresult-body em{display:block; margin-top:3px; font-style:normal; font-size:14px; color:var(--muted); line-height:1.6}
.sresult-body mark{background:rgba(200,16,46,.38); color:#fff; padding:0 2px; border-radius:3px}
.sresult-arr{margin-left:auto; flex:none; color:var(--faint); font-size:18px; padding-top:2px}
.search-empty{margin-top:26px; padding:34px 22px; text-align:center; color:var(--muted);
  background:var(--surface); border:1px dashed var(--line2); border-radius:16px; font-size:15px}
@media (max-width:620px){
  .header-in{gap:16px}
  .header-cta{gap:8px}
  .lang a, .lang span{padding:5px 10px}
  .search-form{flex-direction:column}
  .search-form .btn{justify-content:center}
}
@media (max-width:480px){
  .header-in{gap:12px}
  .header-cta{gap:6px}
  .brand{gap:8px}
  .brand .bname small{display:none}
  .brand .brand-logo{height:34px; border-radius:9px}
  .hsearch{width:34px; height:34px}
}
