/* 由 首页模板设计稿 style.css 生成，全部规则限定在 .tpl-mag 内，不影响站点共用页头/页脚/弹窗 */
:root{--wrap:1600px;
  --bg:#f5f5f7;
  --card:#fff;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --line:#e6e6ea;
  --blue:#0071e3;
  --price:#ff3b30;
  --r-lg:28px;
  --r-md:20px;
  --r-sm:14px;
  --shadow:0 2px 10px rgba(0,0,0,.04),0 18px 44px rgba(0,0,0,.07);}
.tpl-mag,
.tpl-mag *{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
.tpl-mag{background:var(--bg);color:var(--ink);line-height:1.5;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  /* 两行是有意留的：hidden 会让 overflow-y 变成 auto，本层就成了滚动容器，
     左分类树的 position:sticky 只对这层生效、对浏览器窗口失效（实测侧栏跟着页面滚走）。
     clip 同样横向裁切但不生成滚动容器；不认识 clip 的老浏览器退回 hidden。 */
  overflow-x:hidden;
  overflow-x:clip;}
.tpl-mag img{display:block;max-width:100%}
.tpl-mag a{color:inherit;text-decoration:none}
.tpl-mag button{font:inherit;cursor:pointer;border:0;background:none}
.tpl-mag .wrap{max-width:var(--wrap);margin:0 auto;padding:0 40px}
/* 左分类树：跟本模板的 1600px 版心走。原来写在这下面的 .tpl-mag .site-header/.nav/
   .search-box 等一堆规则是死代码——页头由 site_header.php 出，位置在 .tpl-mag 之外，
   永远匹配不到，所以删掉；新页头的宽度对齐交给文件末尾那两条无前缀规则。 */
.tpl-mag{--ct-w:250px;--ct-gap:32px;--ct-r:20px;--ct-line:#e6e6ea;--ct-card:#fff;
  --ct-ink:#1d1d1f;--ct-ink2:#424245;--ct-mut:#86868b;--ct-hov:#f0f0f2;
  --ct-blue:#0071e3;--ct-on:rgba(0,113,227,.1)}
.tpl-mag .hero{position:relative;background:#fff;overflow:hidden;padding:88px 0 76px}
.tpl-mag .hero::before,
.tpl-mag .hero::after{content:"";position:absolute;border-radius:50%;filter:blur(80px);opacity:.5;pointer-events:none}
.tpl-mag .hero::before{width:520px;height:520px;background:radial-gradient(circle,#cfe4ff,transparent 70%);top:-140px;right:-60px}
.tpl-mag .hero::after{width:420px;height:420px;background:radial-gradient(circle,#ffe3d6,transparent 70%);bottom:-180px;left:-100px}
.tpl-mag .hero-grid{position:relative;display:grid;grid-template-columns:1.02fr .98fr;gap:72px;align-items:center}
.tpl-mag .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--blue)}
.tpl-mag .eyebrow::before{content:"";width:26px;height:2px;background:var(--blue);border-radius:2px}
.tpl-mag .hero h1{margin:20px 0 22px;font-size:clamp(40px,5.2vw,76px);font-weight:800;line-height:1.05;letter-spacing:-.03em}
.tpl-mag .hero h1 em{font-style:normal;background:linear-gradient(100deg,var(--blue),#64a8ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.tpl-mag .hero .lead{font-size:19px;line-height:1.75;color:var(--muted);max-width:32em}
.tpl-mag .hero-cta{display:flex;gap:14px;margin:34px 0 24px;flex-wrap:wrap}
.tpl-mag .cta-main{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:#fff;padding:16px 34px;border-radius:999px;font-size:16px;font-weight:600;transition:.25s}
.tpl-mag .cta-main:hover{background:var(--blue);transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,113,227,.28)}
.tpl-mag .cta-alt{display:inline-flex;align-items:center;gap:10px;border:1px solid #d2d2d7;padding:16px 30px;border-radius:999px;font-size:16px;font-weight:600;color:var(--ink);transition:.25s}
.tpl-mag .cta-alt:hover{border-color:var(--ink);background:#fafafa}
.tpl-mag .hero-micro{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#86868b}
.tpl-mag .hero-micro span{display:inline-flex;align-items:center;gap:6px}
.tpl-mag .hero-micro span+span::before{content:"·";margin-right:12px;color:#c7c7cc}
.tpl-mag .hero-figure{position:relative}
.tpl-mag .hero-figure .shot{position:relative;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:4/4.4;box-shadow:0 30px 70px rgba(0,0,0,.18)}
.tpl-mag .hero-figure .shot img{width:100%;height:100%;object-fit:cover}
.tpl-mag .hero-float{position:absolute;left:-34px;bottom:44px;background:#fff;border-radius:var(--r-md);padding:16px 20px;box-shadow:var(--shadow);display:flex;align-items:center;gap:14px}
.tpl-mag .hero-float img{width:52px;height:52px;border-radius:12px;object-fit:cover}
.tpl-mag .hero-float .t{font-size:12px;color:#86868b}
.tpl-mag .hero-float .p{font-size:22px;font-weight:800;color:var(--price);letter-spacing:-.5px}
.tpl-mag .hero-chip{position:absolute;right:-16px;top:34px;background:var(--ink);color:#fff;font-size:12px;font-weight:700;padding:9px 16px;border-radius:999px;box-shadow:0 10px 26px rgba(0,0,0,.22)}
.tpl-mag .stats{margin-top:-38px;position:relative;z-index:2}
.tpl-mag .stats-card{background:#fff;border-radius:var(--r-md);box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(4,1fr);padding:30px 0}
.tpl-mag .stat{text-align:center;padding:0 20px;border-left:1px solid var(--line)}
.tpl-mag .stat:first-child{border-left:0}
.tpl-mag .stat b{display:block;font-size:40px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.tpl-mag .stat span{font-size:13px;color:#86868b}
.tpl-mag section.blk{padding:86px 0}
.tpl-mag section.blk.alt{background:#fff}
.tpl-mag .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:38px}
.tpl-mag .sec-head .kicker{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--blue)}
.tpl-mag .sec-head h2{font-size:38px;font-weight:800;letter-spacing:-.02em;margin-top:10px}
.tpl-mag .sec-head p{font-size:15px;color:var(--muted);margin-top:8px}
.tpl-mag .sec-link{font-size:14px;font-weight:600;color:var(--blue);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.tpl-mag .sec-link:hover{gap:10px}
.tpl-mag .edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.tpl-mag .edit-card{background:var(--card);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);transition:.3s}
.tpl-mag .edit-card:hover{transform:translateY(-5px)}
.tpl-mag .edit-card .ph{aspect-ratio:16/10;overflow:hidden;background:#eee}
.tpl-mag .edit-card .ph img{width:100%;height:100%;object-fit:cover;transition:.6s}
.tpl-mag .edit-card:hover .ph img{transform:scale(1.05)}
.tpl-mag .edit-card .bd{padding:30px 32px 34px}
.tpl-mag .edit-card .k{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.tpl-mag .edit-card h3{font-size:25px;font-weight:700;letter-spacing:-.01em;margin:10px 0 12px;line-height:1.35}
.tpl-mag .edit-card p{font-size:15px;color:var(--muted);line-height:1.75}
.tpl-mag .edit-card .row{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.tpl-mag .edit-card .price{font-size:26px;font-weight:800;color:var(--price)}
.tpl-mag .edit-card .price i{font-style:normal;font-size:14px;font-weight:600;margin-right:2px}
.tpl-mag .edit-card .go{font-size:14px;font-weight:600;color:#fff;background:var(--ink);padding:11px 22px;border-radius:999px;transition:.2s}
.tpl-mag .edit-card .go:hover{background:var(--blue)}
/* 商品架左边让出一列分类树，卡片最小宽从设计稿的 288 收到 260：
   这样 1200～1440 的屏在树旁边还能排满 3 列，而不是缩成 2 张超宽卡。 */
.tpl-mag .goods-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:26px}
.tpl-mag .g-card{background:var(--card);border-radius:var(--r-md);overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.04);transition:.3s;position:relative;display:block}
.tpl-mag .g-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.tpl-mag .g-img{position:relative;aspect-ratio:1/1;background:#f5f5f7;overflow:hidden}
.tpl-mag .g-img img{width:100%;height:100%;object-fit:cover;transition:.55s}
.tpl-mag .g-card:hover .g-img img{transform:scale(1.06)}
.tpl-mag .g-tag{position:absolute;left:14px;top:14px;background:rgba(29,29,31,.88);color:#fff;font-size:11px;font-weight:700;padding:5px 11px;border-radius:999px;backdrop-filter:blur(6px)}
.tpl-mag .g-acts{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:8px;opacity:0;transform:translateX(8px);transition:.28s}
.tpl-mag .g-card:hover .g-acts{opacity:1;transform:none}
.tpl-mag .g-acts button{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(0,0,0,.14);display:grid;place-items:center;transition:.2s}
.tpl-mag .g-acts button svg{width:17px;height:17px;stroke:#424245}
.tpl-mag .g-acts button:hover{background:var(--blue)}
.tpl-mag .g-acts button:hover svg{stroke:#fff}
.tpl-mag .g-bd{padding:18px 20px 22px}
.tpl-mag .g-name{font-size:15px;font-weight:600;line-height:1.5;height:45px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tpl-mag .g-meta{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
.tpl-mag .g-price{font-size:23px;font-weight:800;color:var(--price);letter-spacing:-.6px}
.tpl-mag .g-price i{font-style:normal;font-size:13px;font-weight:600;margin-right:1px}
.tpl-mag .g-ship{font-size:11px;color:#86868b;background:var(--bg);padding:3px 9px;border-radius:6px}
.tpl-mag .g-spec{margin-top:12px;font-size:12px;color:#86868b;display:flex;align-items:center;gap:6px}
.tpl-mag .g-spec b{color:var(--ink);font-weight:600}
.tpl-mag .video-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:52px;align-items:center}
.tpl-mag .video-wrap{position:relative;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/9;background:#000;box-shadow:var(--shadow)}
.tpl-mag .video-wrap video{width:100%;height:100%;object-fit:cover;display:block}
.tpl-mag .video-note{position:absolute;left:20px;bottom:18px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:7px 14px;border-radius:999px;backdrop-filter:blur(8px)}
.tpl-mag .vlist{list-style:none;margin:26px 0 30px;display:grid;gap:16px}
.tpl-mag .vlist li{display:flex;gap:14px;align-items:flex-start;font-size:15px;color:var(--muted);line-height:1.7}
.tpl-mag .vlist li svg{width:20px;height:20px;stroke:var(--blue);flex:none;margin-top:2px}
.tpl-mag .vlist li b{color:var(--ink);font-weight:600}
.tpl-mag .trust{background:var(--ink);color:#fff}
.tpl-mag .trust .wrap{padding-top:64px;padding-bottom:64px}
.tpl-mag .trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:36px}
.tpl-mag .trust-item{display:flex;gap:16px;align-items:flex-start}
.tpl-mag .trust-item svg{width:26px;height:26px;stroke:#6cb2ff;flex:none}
.tpl-mag .trust-item h4{font-size:16px;font-weight:600;margin-bottom:6px}
.tpl-mag .trust-item p{font-size:13px;color:rgba(255,255,255,.6);line-height:1.7}
/* 页脚与页头一样在 .tpl-mag 之外（index.php 在模板之后才 include site_footer.php），
   原来这里的 .tpl-mag .footer-* 一组规则同样匹配不到，删掉。 */
@media(max-width:1500px){
:root{--wrap:1240px}
.tpl-mag .wrap{padding-left:32px;padding-right:32px}
}
@media(max-width:1180px){
.tpl-mag .hero-grid{grid-template-columns:1fr;gap:48px}
.tpl-mag .hero{padding:60px 0 56px}
.tpl-mag .hero-figure{max-width:520px}
.tpl-mag .hero-float{left:auto;right:16px;bottom:-20px}
.tpl-mag .hero-chip{right:16px;top:16px}
.tpl-mag .edit-grid,
.tpl-mag .video-grid{grid-template-columns:1fr}
.tpl-mag .trust-grid{grid-template-columns:repeat(2,1fr);gap:28px}
}
@media(max-width:860px){
.tpl-mag .hero-chip{display:none}
.tpl-mag .wrap{padding-left:20px;padding-right:20px}
.tpl-mag section.blk{padding:56px 0}
.tpl-mag .sec-head{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:26px}
.tpl-mag .sec-head h2{font-size:28px}
.tpl-mag .stats-card{grid-template-columns:repeat(2,1fr);gap:22px 0;padding:24px 0}
.tpl-mag .stat{border-left:0}
.tpl-mag .stat:nth-child(odd){border-right:1px solid var(--line)}
.tpl-mag .stat b{font-size:30px}
.tpl-mag .goods-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:14px}
.tpl-mag .g-bd{padding:14px 14px 18px}
.tpl-mag .g-name{font-size:13px;height:39px}
.tpl-mag .g-price{font-size:19px}
.tpl-mag .g-acts{opacity:1;transform:none}
.tpl-mag .hero .lead{font-size:16px}
.tpl-mag .hero-cta{gap:10px}
.tpl-mag .cta-main,
.tpl-mag .cta-alt{padding:14px 24px;font-size:15px;flex:1;justify-content:center}
}
@media(max-width:420px){
.tpl-mag .hero-float{padding:12px 14px;gap:10px}
.tpl-mag .hero-float img{width:40px;height:40px}
.tpl-mag .hero-float .p{font-size:18px}
}


/* ===== 对齐共用页头与「全球会员分布」地图到本模板版心 =====
   这几条故意不加模板前缀：页头与地图区块本就在模板作用域之外（index.php 先 include
   site_header.php，模板只出中段），所以只能用无前缀选择器命中它们。
   只收最大宽度与左右内边距，让页头内容和 1600px 版心对齐；配色、结构、链接一律不碰。 */
.site-unified-header .header-inner,.site-unified-header .header-search-inner{max-width:var(--wrap);padding-left:40px;padding-right:40px}
.global-map-header,.global-map-container{max-width:var(--wrap)}
@media(max-width:1500px){
.site-unified-header .header-inner,.site-unified-header .header-search-inner{padding-left:32px;padding-right:32px}
}
@media(max-width:860px){
.site-unified-header .header-inner,.site-unified-header .header-search-inner{padding-left:20px;padding-right:20px}
}
