:root {
  --ink: #16161a;
  --muted: #6b6d75;
  --line: #e7e5ef;
  --bg: #ffffff;
  --soft: #f6f4fb;
  --navy: #25108a;
  --brand: #6a2be0;
  --brand-2: #ee1f8f;
  --print: #ff8a1a;
  --printer: #0ea5a4;
  --ok: #1f9d55;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Outfit", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.wrap { max-width: 1800px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* header */
.announce { background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, var(--print)); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 76px; }
.logo { justify-self: start; display: inline-flex; align-items: baseline; font-weight: 700; font-size: 29px; letter-spacing: -.5px; line-height: 1; color: var(--navy); }
.logo .oo { width: 1.22em; height: .61em; margin-left: .03em; }
.nav { display: flex; gap: 40px; font-weight: 500; font-size: 17px; }
.nav a { white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--brand); color: var(--brand); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.search { border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; width: 100%; background: var(--soft); font: inherit; }
.icon-btn { border: 0; background: none; font-size: 22px; position: relative; padding: 6px; }
.menu-btn { display: none; }
.icon-btn { flex: none; }
.icon-btn svg { width: 25px; height: 25px; max-width: none; display: block; }
.cur { flex: none; }
.icon-btn:hover { color: var(--brand); }
.logo-t i { font-style: normal; }
.logo-t i:nth-child(1) { color: #f0373f; }
.logo-t i:nth-child(2) { color: #ff8a1a; }
.logo-t i:nth-child(3) { color: #f2b200; }
.logo-t i:nth-child(4) { color: #22b26a; }
.logo-t i:nth-child(5) { color: #1e88e5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cur select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23222' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 4px center / 10px; padding: 6px 20px 6px 4px; font: inherit; font-weight: 500; cursor: pointer; }
.cur-m { display: none; }
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; background: #fff; }
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.deal { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
a.deal:hover { border-color: var(--brand); }
.deal-i { font-size: 28px; }
.deal h3 { margin: 4px 0 0; font-size: 19px; }
.deal p { margin: 0 0 10px; flex: 1; }
.acct { max-width: 420px; margin: 56px auto; display: grid; gap: 12px; text-align: center; }
.acct h1 { margin: 0; }
.acct p { margin: 0; }
.acct form { display: grid; gap: 12px; }
.acct input { border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font: inherit; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--brand-2); color: #fff; font-size: 11px; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; font-weight: 700; }

/* buttons */
.btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.brand { background: var(--brand); }
.btn.print { background: var(--print); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.block { width: 100%; justify-content: center; }

/* 首屏：品牌渐变 + 实拍图 + 双入口 */
.hero2-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; max-width: 1800px; margin: 0 auto; padding: 56px 24px; }
.hero2 { color: #fff; background: radial-gradient(circle at 90% 10%, #ff8a1a 0, transparent 42%), radial-gradient(circle at 65% 100%, #ee1f8f 0, transparent 50%), linear-gradient(120deg, var(--navy), var(--brand) 62%); }
.h-copy .kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; opacity: .85; }
.h-copy h1 { font-size: 68px; line-height: 1.02; margin: 12px 0 14px; letter-spacing: -1px; }
.h-copy em { font-style: normal; color: #ffc27a; }
.h-copy p { font-size: 19px; margin: 0 0 26px; max-width: 430px; opacity: .92; }
.h-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h-btns .btn { background: #fff; color: var(--navy); flex: 0 0 auto; white-space: nowrap; }
.h-btns .btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.h-art { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.45; }
.h-art a { background: #fff; border-radius: 18px; overflow: hidden; min-height: 0; }
.h-art img { width: 100%; height: 100%; object-fit: cover; }
.h-art .h-main { grid-row: span 2; }
.h-art .h-main img { object-fit: contain; padding: 6px; }

/* 五图标分类 */
.cat5 { display: grid; grid-template-columns: repeat(6, 1fr); margin: 20px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(40,20,90,.06); }
.cat5 a { display: grid; justify-items: center; gap: 10px; padding: 22px 8px; font-weight: 600; font-size: 15px; text-align: center; }
.cat5 a + a { border-left: 1px solid var(--line); }
.cat5 a:hover { color: var(--brand); }
.cat5 svg { width: 46px; height: 46px; }

/* 耗材横幅 */
.fil-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; padding: 32px; border-radius: 28px; background: linear-gradient(120deg, #efe9ff, #fff3e8); }
.fb-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fb-art a { background: #fff; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.fb-art img { width: 100%; height: 100%; object-fit: cover; }
.fb-copy h2 { font-size: 38px; line-height: 1.1; margin: 0 0 14px; color: var(--navy); }
.fb-copy em { font-style: normal; background: linear-gradient(90deg, var(--brand-2), var(--print)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb-copy ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.fb-copy li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }
.trust div { background: var(--soft); border-radius: var(--radius); padding: 18px; font-size: 14px; }
.trust b { display: block; font-size: 15px; }

/* sections */
.section { padding: 48px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 32px; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-head a { font-weight: 600; color: var(--brand); white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #efe9ff; color: var(--brand); }
.pill.print { background: #fff0e2; color: #c25a00; }
.pill.printer { background: #dff7f6; color: #0b7f7e; }
.btn.printer { background: var(--printer); }

/* 打印机三档 */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s, transform .2s; }
.tier:hover { box-shadow: 0 12px 32px rgba(10,80,80,.1); transform: translateY(-3px); }
.tier .media { background: linear-gradient(160deg, #eefbfa, var(--soft)); border-radius: 14px; padding: 24px 40px; margin-bottom: 8px; }
.tier .media svg { max-width: 240px; margin: 0 auto; }
.tier .media:has(img) { border: 1px solid var(--line); aspect-ratio: 1; position: relative; }
.tier .pill { align-self: flex-start; }
.tier h3 { margin: 4px 0 0; font-size: 20px; }
.pros { list-style: none; padding: 0; margin: 6px 0 10px; color: var(--muted); font-size: 15px; }
.pros li { padding: 3px 0; }
.tier .price { margin-top: auto; }
.compare td:first-child { color: var(--muted); white-space: nowrap; }
.compare th, .compare td { min-width: 170px; }
.compare th:first-child, .compare td:first-child { min-width: 130px; }
.compare .cur { background: #eefbfa; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: var(--soft); border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 600; transition: transform .15s; }
.cat:hover { transform: translateY(-3px); }
.cat .ph { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 8px; }
.cat small { display: block; color: var(--muted); font-weight: 400; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 32px rgba(40,20,90,.1); transform: translateY(-3px); }
.card .media { background: var(--soft); aspect-ratio: 1; position: relative; display: grid; place-items: center; padding: 18px; }
.card .badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card .type { position: absolute; top: 12px; right: 12px; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; }
.card .made { font-size: 13px; color: var(--muted); }
.price { font-weight: 700; font-size: 18px; }
.price s { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.stars { color: #f5a623; font-size: 13px; }
.stars span { color: var(--muted); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* bridge: 用这款耗材打印的成品 */
.bridge { background: linear-gradient(135deg, #f3eeff, #fff3e8); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.bridge h2 { font-size: 34px; margin: 10px 0; }
.bridge-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.bridge-pair .arrow { font-size: 28px; color: var(--muted); }
.bridge-pair .card .media { aspect-ratio: 1.1; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review { background: var(--soft); border-radius: var(--radius); padding: 20px; font-size: 15px; }
.review h4 { margin: 6px 0; }
.review .who { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* shop page */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0 60px; }
.filters h4 { margin: 20px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.filters a { display: block; padding: 6px 10px; border-radius: 10px; }
.filters a.on, .filters a:hover { background: var(--soft); color: var(--brand); font-weight: 600; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.seg a.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.shop-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.shop-top h1 { margin: 0; font-size: 30px; }
.shop-top select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.shop .grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1400px) { .shop .grid { grid-template-columns: repeat(4, 1fr); } }
.pdp { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* product detail */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 32px 0 48px; }
.pdp .gallery { background: var(--soft); border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; padding: 48px; position: sticky; top: 90px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pdp h1 { font-size: 34px; margin: 6px 0; line-height: 1.15; }
.pdp .price { font-size: 26px; margin: 10px 0; }
.opt { margin: 20px 0; }
.opt label { font-weight: 600; display: block; margin-bottom: 8px; }
.opt label span { color: var(--muted); font-weight: 400; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; outline: 2px solid var(--line); }
.sw.on { outline-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 16px; font-weight: 500; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: none; width: 40px; font-size: 18px; }
.qty input { width: 44px; text-align: center; border: 0; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.buy-row .btn { flex: 1; justify-content: center; padding: 15px; }
/* 打印机加购耗材栏 */
.addon { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin: -6px 0 18px; background: linear-gradient(180deg, #eefbfa, #fff); }
.ad-row { display: grid; grid-template-columns: 22px 52px 1fr auto 70px; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1.5px solid transparent; }
.ad-row + .ad-row { margin-top: 6px; }
.ad-row.on { background: #fff; border-color: var(--printer); }
.ad-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--printer); }
.ad-th { width: 52px; height: 52px; background: var(--soft); border-radius: 10px; overflow: hidden; display: grid; place-items: center; padding: 4px; }
.ad-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.ad-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-info select { font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
.ad-price { text-align: right; }
.qty.sm button { width: 28px; font-size: 15px; }
.qty.sm input { width: 28px; font-size: 14px; }

/* 商品详情图 */
.details { border-top: 1px solid var(--line); padding: 40px 0 10px; }
.details h2 { text-align: center; font-size: 28px; margin: 0 0 20px; }
.det-imgs { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; }
.det-imgs img { width: 100%; height: auto; display: block; }
.det-more { text-align: center; margin-top: 18px; }

/* 组合购 X1 / X2 / X3 */
.bundle { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin: -6px 0 18px; background: linear-gradient(180deg, #faf8ff, #fff); }
.bundle-head { font-weight: 700; margin-bottom: 12px; }
.bundle-head .muted { font-weight: 400; font-size: 14px; }
.bd-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bd { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 12px 10px; transition: border-color .15s, box-shadow .15s; }
.bd:hover { border-color: #c9bdf5; }
.bd.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,60,240,.12); }
.bd b { font-size: 20px; line-height: 1; }
.bd-name { font-size: 13px; color: var(--muted); }
.bd-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand-2); border-radius: 999px; padding: 2px 8px; margin: 4px 0; vertical-align: middle; }
.bd-tag.muted-tag { background: var(--soft); color: var(--muted); }
.bd-price { font-weight: 700; font-size: 17px; }
.bd-price s, .btn-s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.btn-s { color: rgba(255,255,255,.7); }
.bd small { color: var(--muted); font-size: 12px; }
.bd-flag { position: absolute; top: -10px; right: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.slots { margin-top: 14px; display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.slot-n { grid-row: span 2; font-weight: 700; color: var(--brand); }
.slot-c { font-size: 14px; font-weight: 600; }
.slot-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw.sm { width: 24px; height: 24px; outline-width: 2px; }
.text-in { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.info-box { background: var(--soft); border-radius: 14px; padding: 16px 18px; margin: 14px 0; font-size: 15px; }
.info-box a { color: var(--brand); font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 45%; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; color: var(--muted); }

/* 实拍商品图 */
.pimg { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); }
/* 实拍图统一铺满正方形区域，大小一致；白底产品图用 --z 放大去掉多余留白 */
.card .media:has(.pimg), .tier .media:has(.pimg) { padding: 0; overflow: hidden; background: #fff; }
.card .media .pimg, .tier .media .pimg { position: absolute; inset: 0; }
.card .media .badge, .card .media .type { z-index: 1; }
.pimg.fit { object-fit: contain; padding: 8%; }
.line .th:has(.pimg), .ad-th:has(.pimg), .upsell .u .th:has(.pimg) { padding: 0; overflow: hidden; }
.card .brand { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.gallery.photo { display: flex; flex-direction: column; gap: 12px; padding: 16px; aspect-ratio: auto; background: var(--soft); }
.gallery.photo .main { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #fff; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 评论区 */
.rv { border-top: 1px solid var(--line); padding: 40px 0 20px; }
.rv h2 { font-size: 28px; margin: 0 0 20px; text-align: center; }
.rv-top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto 28px; }
.rv-avg { text-align: center; }
.rv-avg b { font-size: 48px; line-height: 1; display: block; }
.rv-avg .stars { font-size: 20px; }
.rv-avg span { color: var(--muted); font-size: 14px; }
.rv-bars div { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.rv-bars .bar { margin: 4px 0; height: 8px; }
.rv-bars .bar i { background: #f5a623; }
.rv-media { margin-bottom: 20px; }
.rv-media h4 { margin: 0 0 10px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.strip img { flex: 0 0 110px; height: 110px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.rv-filter { margin-bottom: 18px; }
.rv-filter .chip { padding: 6px 14px; font-size: 14px; }
.rv-grid { columns: 3 260px; column-gap: 16px; }
.rv-card { break-inside: avoid; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; position: relative; }
.rv-ph { width: 100%; max-height: 360px; object-fit: cover; cursor: zoom-in; display: block; }
.rv-more { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.rv-body { padding: 14px 16px; font-size: 15px; }
.rv-head { display: flex; justify-content: space-between; gap: 8px; }
.rv-head small { color: var(--muted); }
.rv-body h4 { margin: 6px 0 2px; }
.rv-body p { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-empty { text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); padding: 32px 20px; }
.rv-form { margin: 0 auto 28px; background: var(--soft); padding: 24px; border-radius: var(--radius); }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { display: none; }
.rate label { font-size: 30px; color: #d6d3e0; cursor: pointer; margin: 0; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5a623; }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,20,.75); z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.on { display: flex; }
.lb-in { background: #fff; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; max-width: 960px; width: 100%; max-height: 90vh; position: relative; }
.lb-in > img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; background: #111; }
.lb-side { padding: 24px; overflow-y: auto; }
.lb-nav { display: flex; gap: 6px; margin-top: 14px; }
.lb-nav img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.lb-nav img.on { border-color: var(--ink); }
.lb-x { position: absolute; top: 8px; right: 10px; }

/* custom / guide / wholesale */
.page-hero { background: var(--soft); border-radius: 28px; padding: 48px; margin: 28px 0; }
.page-hero h1 { font-size: 40px; margin: 8px 0; }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 17px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.form .full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 40px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step b { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: #fff; border-radius: 50%; margin-bottom: 10px; }
.mat-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mat-table th, .mat-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mat-table th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }

/* cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(10,10,20,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 50; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.ship-bar { padding: 14px 20px; font-size: 14px; background: var(--soft); }
.bar { height: 6px; background: #e3def2; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .th { background: var(--soft); border-radius: 12px; padding: 6px; aspect-ratio: 1; display: grid; place-items: center; }
.line h5 { margin: 0; font-size: 15px; }
.line small { color: var(--muted); display: block; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.upsell { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.upsell .u { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.upsell .u .th { width: 48px; height: 48px; background: var(--soft); border-radius: 10px; padding: 4px; }
.upsell .u button { margin-left: auto; border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.footer { background: #111116; color: #d5d5dc; padding: 56px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer a { display: block; padding: 4px 0; color: #a9a9b3; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.sub { display: flex; gap: 8px; margin-top: 14px; }
.sub input { flex: 1; border-radius: 999px; border: 0; padding: 10px 16px; }
.sub .btn { background: var(--brand); }
.copy { border-top: 1px solid #2a2a33; margin-top: 36px; padding-top: 18px; font-size: 13px; color: #7d7d88; }

/* responsive */
@media (max-width: 1000px) {
  .grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .shop .grid { grid-template-columns: repeat(2, 1fr); }
  .bridge { grid-template-columns: 1fr; }
  .nav { gap: 22px; }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-in { display: flex; gap: 8px; height: 64px; }
  .header-actions { margin-left: auto; gap: 2px; }
  .header-actions .cur { display: none; }
  .cur-m { display: block; padding: 12px 0; }
  .deal-grid { grid-template-columns: 1fr; }
  .hero2-in, .fil-band, .pdp, .shop, .form, .footer-grid { grid-template-columns: 1fr; }
  .hero2-in { padding: 28px 20px; gap: 24px; }
  .h-copy h1 { font-size: 46px; }
  .h-btns .btn { flex: 1 1 100%; justify-content: center; }
  .cat5 { grid-template-columns: repeat(3, 1fr); }
  .cat5 a { border-left: 0 !important; padding: 16px 6px; font-size: 14px; }
  .fil-band { padding: 20px; }
  .fb-copy h2 { font-size: 30px; }
  .trust, .steps, .tips { grid-template-columns: 1fr 1fr; }
  .grid, .shop .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .rv-top { grid-template-columns: 1fr; gap: 16px; }
  .bd { padding: 12px 8px 8px; }
  .ad-row { grid-template-columns: 22px 44px 1fr auto; }
  .ad-row .qty.sm { grid-column: 3; justify-self: start; }
  .ad-price { grid-column: 4; grid-row: 1; }
  .bd-price { font-size: 15px; }
  .bd-price s { display: block; margin: 0; }
  .lb-in { grid-template-columns: 1fr; overflow-y: auto; }
  .reviews { grid-template-columns: 1fr; }
  .pdp .gallery { position: static; padding: 24px; }
  .bridge { padding: 24px; }
  .bridge-pair { grid-template-columns: 1fr; }
  .bridge-pair .arrow { transform: rotate(90deg); justify-self: center; }
  .page-hero { padding: 28px; }
  .page-hero h1 { font-size: 30px; }
  .filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .filters h4 { width: 100%; margin: 8px 0 0; }
}

/* 公告栏订阅入口 */
.announce button { background: none; border: 0; color: inherit; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 8px 0 0; display: block; margin: 0 auto; }

/* 邮件订阅弹窗 */
.wl-overlay { position: fixed; inset: 0; background: rgba(10,10,20,.5); z-index: 80; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.wl-overlay.on { opacity: 1; }
.wl { position: relative; background: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 760px; width: 100%; box-shadow: 0 30px 80px rgba(20,10,60,.3); }
.wl-art { background: #fff; min-height: 100%; }
.wl-art img { width: 100%; height: 100%; object-fit: cover; }
.wl-body { padding: 36px 32px 28px; }
.wl-body h2 { font-size: 30px; line-height: 1.1; margin: 10px 0 8px; }
.wl-body form { display: grid; gap: 12px; margin-top: 16px; }
.wl-body input[type=email] { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; }
.wl-int { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.wl-int span { width: 100%; color: var(--muted); }
.wl-int input { accent-color: var(--brand); }
.wl-body small { font-size: 12px; line-height: 1.4; }
.wl-x { position: absolute; top: 10px; right: 12px; z-index: 1; }
.wl-code { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 2px dashed var(--brand); border-radius: 14px; padding: 12px 16px; margin: 14px 0; }
.wl-code b { font-size: 24px; letter-spacing: 2px; color: var(--brand); }

/* 新颜色提醒 */
.notify { display: grid; gap: 10px; background: #fff7e8; border: 1px solid #ffe2b0; border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; }
.notify div { display: flex; gap: 8px; }
.notify input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.notify .btn { padding: 10px 16px; }
.notify.done { display: block; background: #eefbf3; border-color: #bfe9cf; }

/* 购物车折扣码 */
.code-row { display: flex; gap: 8px; margin-bottom: 12px; }
.code-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; text-transform: uppercase; }
.code-row .btn { padding: 8px 16px; }
.sum-line { display: flex; justify-content: space-between; color: var(--ok); font-weight: 600; margin-bottom: 4px; }
.sum-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 760px) {
  .wl { grid-template-columns: 1fr; }
  .wl-art { height: 150px; min-height: 0; }
  .wl-body { padding: 24px 20px 20px; }
  .wl-body h2 { font-size: 24px; }
}

/* ---------- 新手套装 ---------- */
.save-tag { display: inline-block; background: var(--ok); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.kit-list { border: 1.5px solid var(--line); border-radius: 16px; padding: 8px 14px; margin: 18px 0; }
.kit-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.kit-row + .kit-row { border-top: 1px solid var(--line); }
.kit-row b { display: block; font-size: 15px; }
.kit-row small { color: var(--muted); }
.kit-row select { margin-top: 4px; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
.kit-th { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; display: grid; place-items: center; }
.kit-th .pimg { position: absolute; inset: 0; }
.kit-promo { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: center; margin-top: 20px; padding: 18px 24px; border-radius: 20px; background: linear-gradient(120deg, #eefbfa, #f6f4fb); border: 1px solid var(--line); }
.kit-promo-img { width: 160px; aspect-ratio: 1; background: #fff; border-radius: 14px; overflow: hidden; position: relative; display: block; }
.kit-promo-img .pimg { position: absolute; inset: 0; }
.kit-promo h3 { margin: 6px 0 2px; font-size: 22px; }
.kit-promo p { margin: 0 0 6px; }

/* ---------- 切片参数 ---------- */
.slicer { margin-top: 18px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.slicer-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.slicer .specs { margin: 6px 0 10px; font-size: 14px; }
.slicer small { display: block; margin-top: 8px; }
.sm-btn { padding: 6px 14px; font-size: 14px; }

/* ---------- 信任信息 / 送达日期 ---------- */
.trust-box { display: grid; gap: 8px; background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; }
.trust-box a { color: var(--brand); font-weight: 600; }
.trust-box .pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.trust-box .pay span { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.points { font-size: 14px; color: #8a5a00; background: #fff8e6; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.points a { color: inherit; text-decoration: underline; }
.cart-points { margin: 8px 0 12px; padding: 8px 12px; font-size: 13px; }

/* ---------- 耗材订阅 ---------- */
.purchase { display: grid; gap: 8px; margin: 0 0 4px; }
.po { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.po.on { border-color: var(--brand); background: #faf8ff; }
.po input { accent-color: var(--brand); }
.po small { display: block; font-size: 12px; }
.po-int { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 0 4px; }
.po-int select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.bd-tag.sub { background: var(--brand); }

/* ---------- 政策页 / FAQ ---------- */
.wrap.narrow { max-width: 860px; }
.policy h3 { margin: 28px 0 8px; }
.policy p { color: #3a3b42; }
.policy a, .faq a, .page-hero a { color: var(--brand); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.faq p { color: #3a3b42; margin: 10px 0 0; }
.contact-form { margin-bottom: 40px; }

/* ---------- 在线客服 ---------- */
#chat { position: fixed; right: 20px; bottom: 20px; z-index: 65; }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 24px; box-shadow: 0 10px 30px rgba(108,60,240,.4); }
.chat-panel { position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(20,10,60,.25); display: none; flex-direction: column; overflow: hidden; }
#chat.open .chat-panel { display: flex; }
.chat-head { background: var(--brand); color: #fff; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; }
.chat-head span { font-size: 12px; opacity: .85; grid-column: 1; }
.chat-head .icon-btn { grid-row: 1 / span 2; grid-column: 2; color: #fff; font-size: 18px; }
.chat-body { padding: 14px 16px; overflow-y: auto; font-size: 14px; }
.chat-body .form { grid-template-columns: 1fr; gap: 10px; }
.chat-hi { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.chat-q { display: block; width: 100%; text-align: left; background: var(--soft); border: 0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.chat-q.strong { background: #efe9ff; color: var(--brand); font-weight: 600; }
.link-btn.left { margin: 0 0 8px; padding: 0; }

/* ---------- 积分页 / 首页增长区 ---------- */
.earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 36px; }
.earn .step b { background: none; font-size: 26px; width: auto; height: auto; color: inherit; }
.redeem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.growth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; transition: transform .15s; }
.g-card:hover { transform: translateY(-3px); }
.g-card span { color: var(--muted); font-size: 14px; }
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; background: linear-gradient(120deg, #f3eeff, #fff3e8); border-radius: 24px; padding: 32px; }
.news h2 { margin: 8px 0; }
.news form { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }

@media (max-width: 760px) {
  .kit-promo { grid-template-columns: 90px 1fr; }
  .kit-promo-img { width: 90px; }
  .kit-promo .btn { grid-column: 1 / -1; justify-content: center; }
  .earn, .redeem, .growth, .news { grid-template-columns: 1fr; }
  .news { padding: 22px; }
  #chat { right: 14px; bottom: 14px; }
}

/* 推荐区：卡片 + 加入购物车 */
.card-wrap { display: flex; flex-direction: column; gap: 8px; }
.card-wrap .card { flex: 1; }
.quick-add { justify-content: center; padding: 11px 16px; font-size: 15px; }
.btn.print { color: #fff; }

/* ---------- 博客 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 12px 32px rgba(40,20,90,.1); transform: translateY(-3px); }
.pc-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #fff; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 18px; line-height: 1.25; margin: 2px 0 0; }
.post-card p { margin: 0; font-size: 14px; }
.post { max-width: 720px; margin: 28px auto 0; font-size: 17px; line-height: 1.65; }
.post h1 { font-size: 40px; line-height: 1.15; margin: 6px 0; color: var(--navy); }
.post h2 { font-size: 24px; margin: 32px 0 8px; }
.post a { color: var(--brand); font-weight: 600; }
.post li { margin-bottom: 6px; }
.post .mat-table { font-size: 15px; margin: 12px 0; }

/* ---------- 关于我们 ---------- */
.about-hero { margin-top: 24px; padding: 64px 48px; border-radius: 28px; color: #fff; text-align: center; background: radial-gradient(circle at 90% 10%, #ff8a1a 0, transparent 42%), radial-gradient(circle at 20% 100%, #ee1f8f 0, transparent 50%), linear-gradient(120deg, var(--navy), var(--brand) 70%); }
.about-hero .kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; opacity: .85; }
.about-hero h1 { font-size: 56px; margin: 10px 0 12px; line-height: 1.05; }
.about-hero em { font-style: normal; color: #ffc27a; }
.about-hero p { font-size: 19px; max-width: 640px; margin: 0 auto; opacity: .92; }
.about-story { max-width: 720px; margin: 40px auto 0; font-size: 17px; line-height: 1.65; }
.about-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.about-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-row span { border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; font-weight: 700; color: var(--navy); }
.about-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--navy), var(--brand)); }
.about-cta h2 { margin: 0 0 4px; }
.about-cta p { margin: 0; opacity: .9; }

@media (max-width: 1000px) { .blog-grid, .about-3 { grid-template-columns: repeat(2, 1fr); } .about-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .blog-grid, .about-3, .about-4, .about-photos { grid-template-columns: 1fr; }
  .about-hero { padding: 40px 22px; }
  .about-hero h1 { font-size: 40px; }
  .post h1 { font-size: 30px; }
  .about-cta { padding: 22px; }
}
