/* ============ 星浩节能 · 电子说明书 ============ */
:root{
  --navy:#0e2a47; --navy2:#173d61; --gold:#c8a24b; --red:#c8102e;
  --bg:#f2f5f8; --card:#fff; --ink:#16202e; --sub:#6b7a8d; --line:#e3e8ee;
  --maxw:760px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{overflow-x:hidden;margin:0;padding:0;}
body{
  background:var(--bg); color:var(--ink);
  font-family:system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px; line-height:1.6;
  -webkit-text-size-adjust:100%;
  padding-bottom:env(safe-area-inset-bottom);
}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 14px;}

/* ---------- 顶部 ---------- */
.top{
  background:linear-gradient(160deg,#0e2a47 0%,#173d61 100%);
  color:#fff; padding:26px 0 30px; position:relative; overflow:hidden;
}
.top::after{
  content:""; position:absolute; right:-70px; top:-90px; width:260px; height:260px;
  border:1.5px solid rgba(200,162,75,.45); border-radius:50%;
  box-shadow:0 0 0 26px rgba(200,162,75,.06),0 0 0 62px rgba(200,162,75,.04);
}
.brand{display:flex;align-items:center;gap:10px;position:relative;z-index:1;}
.brand .lg{height:34px;width:auto;background:#fff;border-radius:5px;padding:3px 6px;}
.brand .bt{font-size:13px;line-height:1.35;color:#dbe4ee;}
.brand .bt b{display:block;font-size:15px;color:#fff;letter-spacing:.5px;font-weight:600;}
.top h1{
  margin:22px 0 6px; font-size:27px; line-height:1.25; font-weight:700;
  letter-spacing:1px; position:relative; z-index:1;
}
.top h1 em{font-style:normal;color:var(--gold);}
.top p{margin:0;font-size:14px;color:#a8bacd;letter-spacing:.3px;position:relative;z-index:1;}
.top .goldline{width:52px;height:3px;background:var(--gold);margin:14px 0 0;position:relative;z-index:1;}

/* ---------- 搜索 ---------- */
.search{margin:-16px 14px 0;position:relative;z-index:2;max-width:calc(var(--maxw) - 28px);margin-left:auto;margin-right:auto;}
.search input{
  width:100%; border:0; border-radius:12px; padding:14px 16px 14px 44px;
  font-size:16px; color:var(--ink); background:#fff;
  box-shadow:0 6px 20px rgba(14,42,71,.12); outline:none;
  font-family:inherit;
}
.search input::placeholder{color:#9aa8b8;}
.search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);opacity:.45;}

/* ---------- 分类 ---------- */
.chips{display:flex;gap:8px;overflow-x:auto;padding:16px 14px 6px;max-width:var(--maxw);margin:0 auto;
  scrollbar-width:none;}
.chips::-webkit-scrollbar{display:none;}
.chip{
  flex:0 0 auto;padding:7px 15px;border-radius:20px;background:#fff;color:var(--sub);
  font-size:14px;border:1px solid var(--line);cursor:pointer;transition:.18s;white-space:nowrap;
}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:500;}

/* ---------- 产品网格 ---------- */
.grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;
  padding:12px 14px 8px;max-width:var(--maxw);margin:0 auto;
}
@media(min-width:620px){.grid{grid-template-columns:repeat(3,1fr);}}
.card{
  background:var(--card);border-radius:14px;overflow:hidden;
  box-shadow:0 2px 10px rgba(20,40,70,.07);transition:.2s;position:relative;
}
.card:active{transform:scale(.97);}
.card .ph{aspect-ratio:1/1.15;background:#f7f9fb;overflow:hidden;position:relative;}
.card .ph::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;background:linear-gradient(rgba(255,255,255,0),#f7f9fb 82%);pointer-events:none;}
.card .ph img{width:100%;height:100%;object-fit:cover;object-position:top center;}
.card .ct{padding:10px 11px 12px;}
.card .ct h3{margin:0;font-size:15px;font-weight:600;line-height:1.35;min-height:41px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.card .ct .md{margin-top:3px;font-size:12px;color:var(--sub);height:18px;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.card .badge{
  position:absolute;top:8px;left:8px;z-index:3;box-shadow:0 1px 6px rgba(0,0,0,.12);background:rgba(14,42,71,.86);color:#fff;
  font-size:11px;padding:3px 8px;border-radius:5px;letter-spacing:.3px;backdrop-filter:blur(4px);
}
.card .badge.v{background:rgba(200,16,46,.9);}
.card .badge.v::before{content:"▶";font-size:9px;margin-right:3px;}

/* ---------- 页脚 ---------- */
footer{
  margin-top:24px;padding:26px 14px 34px;background:#0b2238;color:#93a6b9;
  font-size:13px;line-height:1.9;text-align:center;
}
footer b{color:#fff;font-weight:500;font-size:14px;letter-spacing:.5px;}
footer .hr{width:36px;height:2px;background:var(--gold);margin:12px auto;opacity:.7;}
footer a{color:var(--gold);}

/* ---------- 详情页 ---------- */
.bar{
  position:sticky;top:0;z-index:30;background:rgba(14,42,71,.97);
  backdrop-filter:blur(10px);color:#fff;height:52px;display:flex;align-items:center;
  padding:0 12px;gap:10px;
}
.bar .bk{
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:24px;line-height:1;background:rgba(255,255,255,.1);flex:0 0 auto;margin-left:-4px;
}
.bar .tt{font-size:15px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bar .dlv{font-size:12.5px;color:var(--gold);border:1px solid rgba(200,162,75,.5);
  padding:5px 10px;border-radius:14px;flex:0 0 auto;}

.phead{background:#fff;padding:18px 14px 20px;}
.phead .row{display:flex;gap:14px;align-items:flex-start;max-width:var(--maxw);margin:0 auto;}
.phead .pic{flex:0 0 132px;width:132px;border-radius:10px;overflow:hidden;background:#f7f9fb;}
.phead .pic img{width:100%;aspect-ratio:1/1.15;object-fit:cover;}
.phead .info{flex:1;min-width:0;}
.phead h1{margin:0 0 5px;font-size:21px;line-height:1.3;font-weight:700;}
.phead .mdl{font-size:13px;color:var(--sub);line-height:1.5;word-break:break-word;}
.phead .tags{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap;}
.phead .tags i{
  font-style:normal;font-size:11.5px;color:var(--navy);background:#edf2f8;
  padding:3px 9px;border-radius:4px;letter-spacing:.2px;
}
.pdesc{max-width:var(--maxw);margin:14px auto 0;padding:0 14px;font-size:14.5px;color:#3d4a5c;line-height:1.75;}
.specs{
  display:flex;max-width:var(--maxw);margin:16px auto 0;padding:0 14px;gap:8px;
}
.specs div{
  flex:1;background:var(--bg);border-radius:10px;padding:10px 6px;text-align:center;
}
.specs b{display:block;font-size:15px;color:var(--navy);font-weight:700;line-height:1.3;}
.specs span{font-size:11.5px;color:var(--sub);}

/* ---------- Tab ---------- */
.tabs{
  display:flex;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin-top:18px;position:sticky;top:52px;z-index:20;
}
.tabs button{
  flex:1;border:0;background:none;font-family:inherit;font-size:15px;color:var(--sub);
  padding:14px 6px 12px;position:relative;cursor:pointer;
}
.tabs button.on{color:var(--navy);font-weight:600;}
.tabs button.on::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;
  width:38px;height:3px;background:var(--red);border-radius:2px;
}
.panel{padding:14px;max-width:var(--maxw);margin:0 auto;}

/* ---------- 说明书阅读 ---------- */
.tip{overflow-wrap:anywhere;word-break:break-word;
  background:#fff8ec;border:1px solid #f2dfb8;border-radius:10px;padding:10px 13px;
  font-size:13px;color:#8a6520;line-height:1.6;margin-bottom:14px;
}
.tip b{color:#6d4d10;}
.pages{display:flex;flex-direction:column;gap:10px;}
.pages .pg{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(20,40,70,.07);
  position:relative;}
.pages .pg img{width:100%;height:auto;cursor:zoom-in;}
.pages .pg .no{
  position:absolute;right:8px;bottom:8px;background:rgba(20,30,45,.62);color:#fff;
  font-size:11px;padding:2px 7px;border-radius:9px;backdrop-filter:blur(3px);
}
.pdfbtn{
  display:flex;align-items:center;justify-content:center;gap:8px;margin:16px 0 4px;
  background:var(--navy);color:#fff;border-radius:11px;padding:14px;font-size:15px;font-weight:500;
}

/* ---------- 视频 ---------- */
.vcard{
  background:#fff;border-radius:12px;overflow:hidden;margin-bottom:12px;
  box-shadow:0 2px 8px rgba(20,40,70,.07);display:flex;align-items:center;
  gap:12px;padding:12px;cursor:pointer;
}
.vcard:active{background:#f8fafc;}
.vcard .th{
  flex:0 0 108px;width:108px;aspect-ratio:16/10;background:#1a2330;border-radius:8px;
  position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.vcard .th::before{
  content:"";width:0;height:0;border-left:15px solid #fff;border-top:9px solid transparent;
  border-bottom:9px solid transparent;opacity:.92;margin-left:3px;
}
.vcard .th span{
  position:absolute;right:5px;bottom:4px;font-size:10px;color:#dfe6ee;
  background:rgba(0,0,0,.55);padding:1px 5px;border-radius:3px;
}
.vcard .vi{flex:1;min-width:0;}
.vcard .vi h4{margin:0 0 4px;font-size:15px;font-weight:600;line-height:1.4;}
.vcard .vi p{margin:0;font-size:12px;color:var(--sub);}
.sec-h{
  display:flex;align-items:center;gap:9px;margin:20px 0 12px;font-size:14px;
  color:var(--navy);font-weight:600;letter-spacing:.3px;
}
.sec-h::before{content:"";width:3px;height:15px;background:var(--red);border-radius:2px;}
.sec-h:first-child{margin-top:2px;}

/* ---------- 视频弹层 ---------- */
.mask{
  position:fixed;inset:0;background:#000;z-index:100;display:none;
  align-items:center;justify-content:center;
}
.mask.on{display:flex;}
.mask video{width:100%;max-height:100%;background:#000;}
.mask .cls{
  position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.16);color:#fff;font-size:22px;line-height:40px;text-align:center;
  z-index:2;
}
.mask .vtt{
  position:absolute;left:0;right:0;bottom:0;padding:14px 18px 22px;color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.72));font-size:14px;
}

/* ---------- 放大看图 ---------- */
.zoom{position:fixed;inset:0;background:#111;z-index:110;display:none;overflow:auto;
  -webkit-overflow-scrolling:touch;}
.zoom.on{display:block;touch-action:pan-x pan-y pinch-zoom;}
.zoom img{width:265%;max-width:none;margin:0 auto;}
.zoom .close{position:fixed;right:14px;top:14px;width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.18);color:#fff;font-size:22px;line-height:40px;text-align:center;z-index:2;}

.empty{text-align:center;color:var(--sub);font-size:14px;padding:36px 16px;background:#fff;
  border-radius:12px;line-height:1.8;}
.empty b{display:block;color:var(--ink);font-size:15px;margin-bottom:4px;}

/* ---------- 二维码页 ---------- */
.qrwrap{max-width:var(--maxw);margin:0 auto;padding:18px 14px 10px;}
.qrgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(min-width:620px){.qrgrid{grid-template-columns:repeat(3,1fr);}}
.qrc{background:#fff;border-radius:12px;padding:12px 10px;text-align:center;
  box-shadow:0 2px 8px rgba(20,40,70,.07);}
.qrc img{width:100%;max-width:150px;margin:0 auto 8px;image-rendering:pixelated;}
.qrc b{display:block;font-size:13px;font-weight:600;line-height:1.35;}
.qrc span{font-size:11px;color:var(--sub);}
.bigqr{background:#fff;border-radius:14px;padding:20px;text-align:center;margin-bottom:16px;}
.bigqr img{width:210px;margin:0 auto 10px;}
.bigqr b{font-size:16px;}
.bigqr p{margin:4px 0 0;font-size:12.5px;color:var(--sub);}

/* 占位封面 */
.ph .noimg{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;color:#b3bfcc;background:
  repeating-linear-gradient(45deg,#fafcfe,#fafcfe 8px,#f4f7fa 8px,#f4f7fa 16px);
}
.ph .noimg svg{opacity:.55;}
.ph .noimg em{font-style:normal;font-size:11.5px;letter-spacing:.5px;}
