/* site/assets/css/main.css —— Runze Apparel 前台：移动优先、零外部字体/CDN（菲律宾弱网友好） */
:root {
  --ink: #1f2a2e; --ink-2: #5a6b70; --line: #e6ded2;
  --bg: #faf6f0; --card: #ffffff; --cream: #f3ecdf;
  --brand: #0e5e6f; --brand-dk: #0a4653; --brand-lt: #e3eff1;
  --coral: #e86a4e; --coral-dk: #c9502f; --sun: #f0b429; --ok: #2f7d4f;
  --radius: 14px; --shadow: 0 6px 24px rgba(31, 42, 46, .08);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
/* 品牌 logo 固定背景水印：不随顶部导航/滚动移动，淡入页面背景 */
.brand-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: url('/assets/img/runze-logo.png'); background-repeat: no-repeat; background-position: 50% 40%; background-size: min(58vw, 460px) auto; opacity: .05; }
main#app { position: relative; z-index: 1; }
.ftr { position: relative; z-index: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { display: flex; align-items: baseline; gap: 8px; color: var(--brand-dk); font-weight: 800; letter-spacing: 3px; font-size: 20px; }
.logo em { font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--coral); }
.logo-img { height: 30px; width: auto; align-self: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 99px; color: var(--ink); font-weight: 600; font-size: 14px; }
.nav a.on, .nav a:hover { background: var(--brand-lt); color: var(--brand-dk); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.btn-lang { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; background: var(--card); }
.btn-cart { position: relative; background: var(--brand); color: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.btn-cart .badge { position: absolute; top: -6px; right: -6px; background: var(--coral); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 760px) { .nav { display: flex; } .hdr-tools { margin-left: 0; } .burger { display: none; } }
.burger { font-size: 22px; padding: 4px 8px; color: var(--ink); }
.mnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0 18px; }
.mnav a { background: var(--card); border: 1px solid var(--line); padding: 12px; border-radius: 10px; font-weight: 700; color: var(--ink); text-align: center; }

/* ---------- 通用按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 12px 22px; font-weight: 800; font-size: 14px; transition: transform .06s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dk); }
.btn-ghost { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Hero / 活动轮播 ---------- */
.hero { position: relative; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dk) 55%, #073038 100%); color: #fff; border-radius: 0 0 26px 26px; overflow: hidden; }
.hero-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; min-width: 0; background: linear-gradient(120deg, #08705c 0%, #0a525c 55%, #073038 100%); }
.hero-slide:nth-child(2) { background: linear-gradient(120deg, #0d6472 0%, #0a4653 55%, #062b38 100%); }
.hero-slide:nth-child(3) { background: linear-gradient(120deg, #6a3d6b 0%, #41406b 55%, #162f4b 100%); }
.hero-slide:nth-child(4) { background: linear-gradient(120deg, #7a3b40 0%, #5b3050 55%, #242c4a 100%); }
.hero-slide:nth-child(5) { background: linear-gradient(120deg, #245c70 0%, #17445f 55%, #102a47 100%); }
.hero.has-theme .hero-slide { background: transparent; }
/* 活动自定义轮播背景：图片铺满 + 深色遮罩（遮罩写在行内 background-image 第一层），文字统一加保护 */
.hero-slide.has-custom-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide.has-custom-bg .hero-in { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.62); }
.hero-slide.has-custom-bg .badge-line,
.hero-slide.has-custom-bg .hero-status { background: rgba(4,30,38,.62); border-color: rgba(255,255,255,.38); backdrop-filter: blur(4px); text-shadow: none; }
.hero-slide.has-custom-bg p.sub { color: #f0f8f9; }
.hero-slide.has-custom-bg .btn-hero-ghost { background: rgba(4,30,38,.46); border-color: rgba(255,255,255,.6); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-slide.has-custom-bg .countdown { background: rgba(4,30,38,.55); text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero-in { padding: 40px 16px 66px; max-width: var(--maxw); margin: 0 auto; }
.hero-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .badge-line { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.hero-status { font-size: 11px; font-weight: 800; letter-spacing: .8px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.hero-status.active { color: #b8f5c7; } .hero-status.upcoming { color: #ffe0a8; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.12; margin: 16px 0 10px; font-weight: 800; }
.hero p.sub { color: #cfe3e6; max-width: 520px; font-size: 15px; }
.hero .cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn-coral { box-shadow: 0 8px 22px rgba(232, 106, 78, .45); }
.btn-hero-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.hero-arrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.hero-arrow:hover { background: rgba(0,0,0,.38); }
.hero-prev { left: 10px; } .hero-next { right: 10px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s, background .25s; }
.hero-dot.on { width: 24px; background: #ffd7bf; }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 800; font-size: 14px; color: #ffe9c7; background: rgba(0,0,0,.22); padding: 10px 16px; border-radius: 12px; }
.countdown b { background: #fff; color: var(--brand-dk); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; font-size: 15px; }
@media (max-width: 640px) { .hero-in { padding: 32px 16px 58px; } .hero-arrow { width: 30px; height: 30px; font-size: 19px; opacity: .85; } .hero-dots { bottom: 14px; } }

/* ---------- Trust bar ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .trust { grid-template-columns: repeat(5, 1fr); } }
.trust .cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; align-items: center; }
.trust .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-lt); display: grid; place-items: center; font-size: 18px; flex: none; }
.trust b { font-size: 13px; display: block; }
.trust .muted { font-size: 11.5px; }

/* ---------- Section / cards ---------- */
.sec { margin: 30px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-h h2 { font-size: 21px; font-weight: 800; }
.sec-h .viewall { font-size: 13px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: box-shadow .15s; display: flex; flex-direction: column; cursor: pointer; }
.card:hover { box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.card .ph { position: relative; aspect-ratio: 4/5; background: var(--cream); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .ph img { transform: scale(1.04); }
.tagline { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .8px; padding: 4px 8px; border-radius: 6px; background: rgba(14,94,111,.92); color: #fff; }
.tag.hot { background: var(--coral); } .tag.ber { background: var(--sun); color: #4a3406; }
/* 商品标签（后台可管理）：新 / 打折 / 全球购 / 节日 / 自定义 */
.tag-new { background: #0e7c5a; color: #fff; }
.tag-sale, .tag-hot { background: var(--coral); color: #fff; }
.tag-global { background: #5b3fa8; color: #fff; }
.tag-ber { background: var(--sun); color: #4a3406; }
.tag-custom, .tag-newarrival { background: rgba(14,94,111,.92); color: #fff; }
/* 满减/满件规则角标（右上角，与左上角商品标签错开） */
.fr-badges { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; max-width: 62%; }
.fr-badge { display: inline-block; font-size: 10px; font-weight: 800; line-height: 1.25; padding: 4px 7px; border-radius: 6px; color: #fff; background: linear-gradient(135deg,#e8513f,#c9331f); box-shadow: 0 2px 6px rgba(180,40,20,.3); text-align: right; }
.fr-badges-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.fr-badges-inline .fr-badges { position: static; max-width: none; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
.fr-badges-inline .fr-badge { text-align: left; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .nm { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--brand); }
.price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price { color: var(--coral-dk); font-weight: 800; font-size: 15px; }
.was { color: var(--ink-2); text-decoration: line-through; font-size: 12px; }
.off { font-size: 11px; color: var(--ok); font-weight: 700; }
.rate { font-size: 11.5px; color: var(--ink-2); }
.rate b { color: #b7791f; }
.card .add { margin-top: auto; padding-top: 8px; }

/* ---------- 分类 chips ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; text-align: center; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.cat .ico { font-size: 26px; margin-bottom: 6px; }
.cat:hover { border-color: var(--brand); color: var(--brand-dk); }

/* ---------- Shop 筛选 ---------- */
.shop-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 240px 1fr; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-self: start; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); margin: 12px 0 7px; }
.filters h4:first-child { margin-top: 0; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.shop-top { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.search { flex: 1; min-width: 160px; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; }
.search input { border: none; outline: none; background: none; width: 100%; font-size: 14px; }
select.sel { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; font-size: 13px; font-weight: 700; }
/* grid 子项默认 min-width:auto，分页/长标题等内容会撑开整列，必须显式归零 */
.shop-layout > div { min-width: 0; }
#shopGrid { min-width: 0; max-width: 100%; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; max-width: 100%; }
.pager button { flex: 0 0 auto; min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .dots { padding: 0 2px; color: var(--ink-2); }
.pager-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; color: var(--ink-2); }
.pager-jump input { width: 56px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; }
.pager-jump .pager-go { min-width: 46px; padding: 0 10px; border: 1px solid var(--brand); color: var(--brand); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- 商品详情 ---------- */
.pd { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 860px) { .pd { grid-template-columns: 1fr 1fr; } }
.pd-gal .main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.pd-gal .main img { display: block; width: 100%; height: auto; }
/* 两列下方：详情图与信息面板，单列全宽，与上方两列左右对齐 */
.pd-below { margin-top: 22px; }
.pd-detail-imgs { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; }
.pd-detail-img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background: var(--cream); }
.pd h1 { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.size-btn { flex: 1 1 56px; max-width: 120px; min-width: 56px; padding: 11px 8px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 800; background: var(--card); position: relative; }
.size-btn.on { border-color: var(--brand); background: var(--brand-lt); color: var(--brand-dk); }
.size-btn[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qtyrow { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty button { width: 38px; height: 38px; font-size: 18px; font-weight: 800; background: var(--card); }
.qty b { min-width: 40px; display: grid; place-items: center; background: var(--card); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.panel h3 { font-size: 15px; margin-bottom: 8px; }
/* 会员中心板块：点击标题展开/收起 */
.fold-panel > .fold-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; margin-bottom: 0; padding: 2px 0; }
.fold-panel > .fold-head:hover { color: var(--brand); }
.fold-panel > .fold-head.open { margin-bottom: 8px; }
.fold-head .fold-arrow { font-size: 13px; color: var(--ink-2); flex: 0 0 auto; transition: transform .15s; }
.fold-panel > .fold-head.open .fold-arrow { color: var(--brand); }
.fold-body { padding-top: 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border: none; }
.stock-ok { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.stock-low { color: var(--coral-dk); font-weight: 700; font-size: 12.5px; }

/* ---------- 抽屉 Cart / 通用 drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 26, 30, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg); z-index: 95; transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer.on { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.drawer-h .x { font-size: 20px; color: var(--ink-2); }
.drawer-b { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-f { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--card); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item .rm { color: var(--ink-2); font-size: 12px; text-decoration: underline; }
.freeship { background: var(--brand-lt); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: var(--brand-dk); margin-bottom: 10px; }
.freeship .bar { height: 6px; border-radius: 99px; background: #fff; margin-top: 6px; overflow: hidden; }
.freeship .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.coupon-input { display: flex; gap: 6px; margin: 10px 0; }
.coupon-input input { flex: 1; border: 1.5px dashed var(--brand); border-radius: 10px; padding: 9px 12px; background: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.coupon-tag { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px dashed var(--coral); color: var(--coral-dk); font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 8px; margin: 2px; }
.coupon-tag button { color: var(--ink-2); }
.sumrow { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.sumrow.total { font-size: 16.5px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.sumrow .minus { color: var(--ok); }

/* ---------- 表单 / checkout ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--card); outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand); }
.field input.invalid, .field select.invalid { border-color: #e5484d !important; background: #fff5f5; box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.field .hint { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin: 10px 0; }
.alert-warn { background: #fdf1e3; color: #8a4b12; border: 1px solid #f3d9b7; }
.alert-err { background: #fdeae5; color: #8c2f14; border: 1px solid #f5c9bd; }
.alert-ok { background: #e9f5ec; color: #1d5c36; border: 1px solid #c4e2cd; }
.alert-info { background: #e9f2fb; color: #1a4f86; border: 1px solid #c4dcf3; }
.pay-list { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px; cursor: pointer; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-lt); }
.pay-opt.pay-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pay-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-2); flex: none; }
.pay-opt.on .radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, transparent 50%); }
.pay-opt b { font-size: 14px; }
.pay-opt .pct { margin-left: auto; font-size: 11px; background: var(--cream); border-radius: 6px; padding: 3px 7px; font-weight: 800; color: var(--ink-2); }

/* ---------- 订单/会员/促销 ---------- */
.receipt { background: var(--card); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 18px; text-align: center; margin: 16px 0; }
.receipt .no { font-size: 20px; font-weight: 800; letter-spacing: 1.5px; color: var(--brand-dk); font-family: "Courier New", monospace; }

/* ---------- 电子收据：灵感社区「电商订单收据」小票式版式 ---------- */
.rct-card { max-width:480px; margin:16px auto 0; background:#fdfdfb; border-radius:12px; box-shadow:0 1px 2px rgba(14,94,111,.05),0 10px 40px rgba(14,94,111,.10); position:relative; overflow:hidden; color:var(--ink); }
.rct-card::before, .rct-card::after { content:''; position:absolute; left:0; right:0; height:10px; background:radial-gradient(circle at 5px 0, var(--bg) 5px, transparent 5px); background-size:10px 10px; background-repeat:repeat-x; }
.rct-card::before { top:-5px; background-position:top; }
.rct-card::after { bottom:-5px; transform:rotate(180deg); }
.rct-brand { padding:34px 32px 18px; text-align:center; }
.rct-mark { width:38px; height:38px; border:1.5px solid var(--brand); border-radius:50%; position:relative; margin:0 auto 12px; }
.rct-mark::after { content:''; position:absolute; inset:5px; border:1px solid var(--brand); border-radius:50%; }
.rct-mark::before { content:''; position:absolute; left:50%; top:50%; width:6px; height:6px; background:var(--brand); border-radius:50%; transform:translate(-50%,-50%); }
.rct-name { font-size:18px; font-weight:600; letter-spacing:.08em; color:var(--brand-dk); }
.rct-sub { font-size:11px; color:var(--ink-2); letter-spacing:.08em; margin-top:3px; }
.rct-slogan { font-size:12px; color:var(--ink-2); margin-top:9px; line-height:1.7; }
.rct-sep { height:1px; background:repeating-linear-gradient(90deg,var(--line) 0,var(--line) 4px,transparent 4px,transparent 8px); margin:0 32px; }
.rct-section { padding:20px 32px; }
.rct-label { display:flex; justify-content:space-between; gap:12px; font-size:11px; color:var(--ink-2); letter-spacing:.08em; margin-bottom:13px; }
.rct-orderno { font-family:"Courier New",monospace; color:var(--ink); font-weight:600; letter-spacing:0; }
.rct-meta { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--ink-2); }
.rct-mrow { display:flex; flex-direction:column; gap:2px; }
.rct-mrow:last-child { text-align:right; }
.rct-mrow .k { font-size:11px; color:var(--ink-2); }
.rct-paid { color:var(--ok); font-weight:600; }
.rct-wait { color:#b7791f; font-weight:600; }
.rct-product { display:grid; grid-template-columns:56px 1fr auto; gap:12px; padding:12px 0; border-bottom:1px dashed var(--line); }
.rct-pimg { width:56px; height:56px; border-radius:8px; background:var(--cream); display:flex; align-items:center; justify-content:center; overflow:hidden; color:var(--brand); font-family:Georgia,serif; font-size:18px; }
.rct-pimg img { width:100%; height:100%; object-fit:cover; }
.rct-pinfo .n { font-size:13px; font-weight:600; line-height:1.45; }
.rct-pinfo .s { font-size:11.5px; color:var(--ink-2); margin-top:3px; }
.rct-pprice { text-align:right; min-width:82px; }
.rct-pprice .q { font-size:11px; color:var(--ink-2); }
.rct-pprice .p { font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:2px; }
.rct-prices { padding-top:14px; }
.rct-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:5px 0; font-size:12.5px; color:var(--ink-2); }
.rct-row .num { font-variant-numeric:tabular-nums; }
.rct-row.discount .num { color:#b45309; }
.rct-row.total { margin-top:8px; padding-top:13px; border-top:1px solid var(--line); font-size:13px; color:var(--ink); }
.rct-row.total .cur { font-size:11px; color:var(--ink-2); margin-right:4px; }
.rct-row.total .num { font-size:21px; font-weight:700; letter-spacing:-.01em; }
.rct-info-wrap { display:flex; flex-direction:column; gap:12px; }
.rct-info { background:var(--cream); border-radius:10px; padding:14px; font-size:12.5px; color:var(--ink-2); }
.rct-ttl { font-size:11px; letter-spacing:.08em; color:var(--ink-2); margin-bottom:9px; font-weight:600; }
.rct-ir { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:3px 0; }
.rct-ir .k { color:var(--ink-2); font-size:11.5px; flex:none; }
.rct-ir .v { color:var(--ink); text-align:right; font-size:12.5px; word-break:break-word; }
.rct-ir .mono { font-family:"Courier New",monospace; font-size:11.5px; }
.rct-foot { padding:18px 32px 26px; text-align:center; }
.rct-note { font-size:11px; color:var(--ink-2); line-height:1.8; }
.rct-cs { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; font-size:11px; color:var(--ink-2); padding-top:10px; margin-top:10px; border-top:1px dashed var(--line); }
.rct-print { margin-top:14px; border:1px solid var(--brand); background:var(--card); color:var(--brand-dk); border-radius:999px; padding:7px 16px; font-size:12px; font-weight:700; }
@media (max-width:520px) { .rct-brand { padding:28px 20px 16px; } .rct-section { padding:18px 20px; } .rct-sep { margin:0 20px; } .rct-foot { padding:16px 20px 24px; } }
@media print {
  body { background:#fff; }
  body > *:not(main) { display:none !important; }
  main#app > *:not(.wrap) { display:none !important; }
  .wrap > *:not(.rct-card) { display:none !important; }
  .rct-card { max-width:none; margin:0; box-shadow:none; border-radius:0; }
  .rct-card::before, .rct-card::after, .rct-print { display:none !important; }
  .rct-card, .rct-info { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
@page { size:A4; margin:12mm; }
.timeline { margin: 12px 0; }
.tl-item { display: flex; gap: 12px; padding: 8px 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-top: 5px; flex: none; }
.tl-item.on .tl-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-lt); }
.tl-item b { font-size: 13.5px; }
.tl-item .muted { font-size: 12px; }
/* 跨境物流追踪节点与面板 */
.intl-track { margin-top: 12px; padding: 10px 12px; background: #eef6fa; border: 1px solid #cfe4ee; border-left: 4px solid var(--brand); border-radius: 10px; }
.intl-track-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--brand-dk); }
.intl-track-row { font-size: 12.5px; line-height: 1.7; color: var(--ink2, #5c6f75); padding: 2px 0; }
.intl-panel { background: linear-gradient(135deg, #f0f8fb, #fafdff); border-color: #cfe4ee; }
.intl-panel h3 { color: var(--brand-dk); }
.intl-chain { background: #fff; border: 1px dashed #a9d3e3; border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.intl-panel .kv b { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .v { font-size: 24px; font-weight: 800; color: var(--brand-dk); }
.stat .k { font-size: 12px; color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.tierbar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0; }
.tierbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--coral)); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--card); padding: 9px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.share-btn:hover { border-color: var(--brand); }
.codebox { display: flex; gap: 8px; align-items: center; background: #10262b; color: #9fe8d8; border-radius: 12px; padding: 12px 16px; font-family: "Courier New", monospace; font-weight: 800; letter-spacing: 1px; }
.codebox .btn { margin-left: auto; }
.com-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pill { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.pill.pending { background: #fdf3d7; color: #8a6d1a; } .pill.paid { background: #e9f5ec; color: #1d5c36; }
.pill.flagged { background: #fdeae5; color: #8c2f14; } .pill.active { background: var(--brand-lt); color: var(--brand-dk); }
.pill.upcoming { background: var(--cream); color: var(--ink-2); }
.coupon-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.coupon-card.store { border-left-color: var(--brand); } .coupon-card.payment { border-left-color: var(--sun); }
.coupon-card.points { border-left-color: var(--ok, #2f7d4f); background: linear-gradient(90deg, rgba(47,125,79,.07), transparent 60%); }
.coupon-card .code { font-family: "Courier New", monospace; font-weight: 800; letter-spacing: 1px; font-size: 15px; }
.camp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.camp-focus { border-color: var(--coral) !important; box-shadow: 0 0 0 3px rgba(232,106,78,.18); }
.camp .badge2 { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; background: var(--coral); color: #fff; padding: 4px 9px; border-radius: 6px; }

/* ---------- 法务 / 静态页 ---------- */
.doc { max-width: 760px; margin: 24px auto; }
.doc h1 { font-size: 26px; margin-bottom: 6px; }
.doc h2 { font-size: 17px; margin: 20px 0 8px; color: var(--brand-dk); }
.doc p, .doc li { font-size: 14px; color: #33434a; margin-bottom: 8px; }
.doc ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.ftr { background: #10262b; color: #c9d8db; margin-top: 40px; padding: 34px 0 26px; font-size: 13px; }
.ftr a { color: #9fe8d8; }
.ftr h4 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.ftr-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ftr-grid { grid-template-columns: 2fr 1fr 1fr; } }
.ftr .seal { display: inline-block; border: 1px solid #3c5a60; border-radius: 8px; padding: 8px 12px; margin: 8px 6px 0 0; font-size: 11.5px; color: #bfe3da; }
.ftr-bottom { border-top: 1px solid #24444b; margin-top: 24px; padding-top: 16px; font-size: 11.5px; color: #7f979c; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Cookie / toast ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 130; background: #16303a; color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, bottom .2s; pointer-events: none; max-width: 92vw; text-align: center; }
.toast.on { opacity: 1; bottom: 32px; }
.toast.err { background: #8c2f14; }
@media (min-width: 760px) { .cookie { left: 24px; right: auto; max-width: 480px; } }
.skel { background: linear-gradient(90deg, #efe9de 25%, #f7f2ea 50%, #efe9de 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; min-height: 60px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- 认证 / 账户 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 26px 0 44px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 430px; padding: 24px; }
.auth-tabs { display: flex; gap: 6px; background: var(--cream); border-radius: 99px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 99px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.auth-tabs button.on { background: var(--card); color: var(--brand-dk); box-shadow: var(--shadow); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-lt); border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-msg { margin-top: 10px; font-size: 13px; min-height: 1px; }
.auth-msg.err { color: var(--coral-dk); }
/* 移动端登录体验：16px 防 iOS 聚焦缩放、44px 点击区、密码可见切换、回车提交友好 */
.auth-wrap { padding: 18px 0 36px; }
.auth-card h2 { font-size: 20px; margin-bottom: 16px; }
.auth-card .field input { font-size: 16px; padding: 13px 12px; min-height: 46px; } /* 16px 关键：iOS Safari 聚焦不缩放 */
.auth-card .field .hint { font-size: 11px; line-height: 1.4; }
.auth-tabs button { min-height: 42px; font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink-2); border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.pw-eye:active { background: var(--cream); }
.au-submit { width: 100%; min-height: 50px; font-size: 16px; font-weight: 800; margin-top: 4px; }
.au-submit:disabled { opacity: .65; cursor: wait; }
.au-bonus { margin-top: 12px; }
@media (max-width: 400px) { .auth-card { padding: 18px 16px; } .auth-card .grid2 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 节日主题横幅 ---------- */
.festival-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: linear-gradient(90deg, var(--brand), var(--coral)); color: #fff; font-size: 13px; font-weight: 700; position: relative; z-index: 49; }
.festival-banner b { font-weight: 800; text-decoration: underline; }

/* ---------- 会员中心补充件 ---------- */
.mem-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tier-badge { display: inline-block; color: #fff; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 99px; margin-top: 6px; }
.com-row .pos { color: var(--ok); font-weight: 800; }
.com-row .neg { color: var(--coral-dk); font-weight: 800; }

/* ---------- 分享落地页 ---------- */
.share-hero { background: linear-gradient(120deg, var(--brand), var(--brand-dk)); color: #fff; border-radius: 20px; padding: 32px 22px; text-align: center; box-shadow: var(--shadow); }
.share-hero .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: #1f2a2e; font-size: 30px; font-weight: 900; display: grid; place-items: center; margin: 0 auto 12px; }
.share-hero h1 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.share-hero .muted { color: #cfe3e6; }
.share-hero .pill.active { background: rgba(255,255,255,.18); color: #fff; }
.share-hero .pill { margin: 0 2px; }
.share-cta { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 兑换积分框（结算页） ---------- */
.redeem-box { background: var(--cream); border: 1px dashed var(--brand); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 13.5px; }
.redeem-box input { width: 86px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; margin: 0 6px; text-align: center; }

/* ---------- 结算页：会员持有券选择器 ---------- */
.checkout-stack > .panel { margin-top: 14px; }
.checkout-stack > .panel:first-child { margin-top: 0; }
.wc-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.wc-toggle-label { font-size: 17px; font-weight: 800; line-height: 1.4; }
.wc-toggle-sum { margin-left: auto; margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--coral-dk); background: #fff1ee; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.wc-caret { font-size: 15px; color: var(--ink-2); transition: transform .18s ease; display: inline-block; }
.wc-list { padding-top: 12px; }
.wallet-inline { background: var(--cream); border: 1px dashed var(--brand); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.wallet-inline .wc-toggle-label { font-size: 14px; }
.wallet-inline .wc-list { padding-top: 10px; }
.wallet-coupon { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line); border-left: 5px solid var(--brand); border-radius: 11px; padding: 10px 12px; margin-bottom: 9px; cursor: pointer; background: var(--card); transition: box-shadow .15s, border-color .15s; }
.wallet-coupon:hover { box-shadow: 0 3px 12px rgba(14,94,111,.1); }
.wallet-coupon.on { border-color: var(--brand); background: #eef8fa; box-shadow: 0 0 0 1px var(--brand) inset; }
.wallet-coupon.disabled { opacity: .58; cursor: not-allowed; border-left-color: #bbb; background: #f7f7f7; }
.wallet-coupon.disabled:hover { box-shadow: none; }
.wallet-coupon input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }
.wallet-coupon input:disabled { cursor: not-allowed; opacity: .7; }
.wallet-coupon .wc-main { display: block; font-size: 13.5px; line-height: 1.5; }
.wallet-coupon .wc-face { color: var(--coral-dk); font-weight: 800; margin-left: 4px; }
.wallet-coupon .wc-meta { display: block; font-size: 11px; margin-top: 2px; }
.wallet-coupon .pill { font-size: 10.5px; margin-left: 4px; }

/* ---------- 在线客服挂件 ---------- */
.cs-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; box-shadow: 0 6px 20px rgba(14,94,111,.35); display: grid; place-items: center; transition: transform .15s; }
.cs-bubble:hover { transform: scale(1.08); }
.cs-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; animation: cspulse 2s infinite; }
@keyframes cspulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.cs-panel { position: fixed; right: 18px; bottom: 86px; z-index: 91; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 130px)); background: var(--card); border-radius: 16px; box-shadow: 0 12px 40px rgba(31,42,46,.22); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.cs-head { background: var(--brand); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.cs-head b { font-size: 14px; }
.cs-sub { font-size: 11px; opacity: .85; }
.cs-head button { color: #fff; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.cs-head button:hover { background: rgba(255,255,255,.18); }
.cs-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.cs-msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.cs-msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cs-msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cs-via { font-size: 10.5px; color: var(--ink-2); margin-top: 5px; border-top: 1px dashed var(--line); padding-top: 4px; }
.cs-quick { display: flex; gap: 6px; padding: 8px 10px 2px; flex-wrap: wrap; background: var(--card); }
.cs-chip { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--cream); color: var(--ink); }
.cs-chip:hover { border-color: var(--brand); color: var(--brand); }
.cs-form { display: flex; gap: 8px; padding: 10px; background: var(--card); border-top: 1px solid var(--line); }
.cs-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; background: var(--bg); }
.cs-form button { background: var(--brand); color: #fff; border-radius: 10px; width: 40px; font-size: 15px; }
.cs-human { margin: 0 10px 10px; padding: 9px; border-radius: 10px; background: var(--cream); border: 1px dashed var(--coral); color: var(--coral-dk, #c9502f); font-size: 12.5px; font-weight: 700; }
.cs-human:hover { background: #fbeee9; }
.cs-typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.cs-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: csblink 1.2s infinite; }
.cs-typing i:nth-child(2) { animation-delay: .2s } .cs-typing i:nth-child(3) { animation-delay: .4s }
@keyframes csblink { 0%,80%,100% { opacity: .25 } 40% { opacity: 1 } }
@media (max-width: 640px) { .cs-panel { right: 8px; left: 8px; width: auto; bottom: 82px; } .cs-bubble { right: 12px; bottom: 12px; } }

/* ---------- 会员中心：个人信息 / 过往订单 ---------- */
.mem-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 18px; }
.mem-info > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.mem-info span { font-size: 11.5px; color: var(--ink-2); }
.mem-info b { font-size: 13.5px; word-break: break-word; font-weight: 600; }
.ord-list { display: grid; gap: 10px; }
.ord-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.ord-head { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.ord-head > div:first-child { flex: 1; }
.ord-head .btn { flex: 0 0 auto; }
.ord-body { padding: 4px 12px 12px; border-top: 1px dashed var(--line); background: var(--bg); }
.ord-body[hidden] { display: none; }

/* ---------- 会员收货地址簿 ---------- */
.addr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.addr-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--bg); min-width: 0; }
.addr-card.default { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.addr-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.addr-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.addr-form { border: 1px dashed var(--brand); border-radius: 12px; padding: 12px; background: var(--cream); margin-bottom: 12px; }
.addr-form .field label { font-size: 12px; }
.afcheck { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-height: 38px; }

/* ---------- 结算页：选用已保存地址 ---------- */
.saved-addr { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--cream); margin-bottom: 12px; }
.saved-addr label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.saved-addr select { width: 100%; }

/* ---------- 商品详情：颜色/说明规格卡片 ---------- */
.pd-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-opt { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; flex: 1 1 156px; min-width: 156px; max-width: 300px; transition: border-color .15s, box-shadow .15s; }
.pd-opt:hover { border-color: var(--brand); }
.pd-opt.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--cream); }
.pd-opt img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--bg); }
.pd-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-opt b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-opt small { font-size: 10.5px; color: var(--ink-2, #5c6f75); line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.pd-opt em { font-size: 10.5px; color: var(--brand); font-style: normal; }

/* ---------- GCash 收款二维码弹窗 ---------- */
.qr-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.qr-modal.on { display: flex; }
.qr-backdrop { position: absolute; inset: 0; background: rgba(10,20,26,.62); }
.qr-card { position: relative; background: #fff; border-radius: 16px; padding: 20px 18px 18px; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.35); max-height: 92vh; overflow-y: auto; }
.qr-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: #6b7b83; cursor: pointer; }
.qr-card h3 { margin: 0 0 2px; font-size: 19px; color: #0b6ab0; }
.qr-sub { margin: 0 0 12px; font-size: 12.5px; color: #5b6b73; }
.qr-img { width: 100%; max-width: 280px; height: auto; border-radius: 10px; border: 1px solid #e3e9ec; display: block; margin: 0 auto; }
.qr-who { margin-top: 10px; font-size: 16px; font-weight: 800; color: #123a63; letter-spacing: .5px; }
.qr-mobile { margin-top: 4px; font-size: 12.5px; color: #4a5b66; }
.qr-copy { border: 0; background: #eef4fa; color: #0b6ab0; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; margin-left: 4px; cursor: pointer; }
.qr-amt { margin-top: 12px; padding: 9px 12px; background: #fff6ec; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #8a4b12; }
.qr-amt b { font-size: 17px; color: #c2410c; }
.qr-shipdue { margin-top: 8px; padding: 7px 11px; background: #eef7f2; border-radius: 9px; font-size: 12px; color: #1f6b47; text-align: center; }
.qr-tip { margin: 12px 0 4px; font-size: 11.5px; color: #7a8890; }
.qr-done { width: 100%; margin-top: 8px; }

/* ---------- GCash 弹窗：取消 / 我已支付确认下单 ---------- */
.qr-actions { display: flex; gap: 8px; margin-top: 10px; }
.qr-actions .btn { flex: 1; margin-top: 0; }

/* ---------- 智能客服工作台：意图 / 情绪升级 / 满意度 / 工单表单 ---------- */
.cs-intent { font-size: 10.5px; color: var(--brand); margin-top: 5px; font-weight: 700; }
.cs-escalate { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fff2e9; color: #a94422; font-size: 11.5px; line-height: 1.45; border: 1px solid #f4c9b1; }
.cs-human.hot { background: #fff2e9; border-color: #e08254; color: #a94422; animation: cshot 1.6s infinite; }
@keyframes cshot { 50% { box-shadow: 0 0 0 3px rgba(224,130,84,.18); } }
.cs-rate { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10.5px; color: var(--ink-2); }
.cs-rate button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.cs-rate button:hover { border-color: var(--brand); }
.cs-ticket-form { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--card); border-top: 1px solid var(--line); }
.cs-tf-title { font-size: 12px; font-weight: 800; color: var(--brand-dk); display: flex; justify-content: space-between; align-items: center; }
.cs-tf-pri { font-size: 10.5px; color: #c9502f; background: #fff2e9; border-radius: 999px; padding: 2px 7px; }
.cs-ticket-form input, .cs-ticket-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; background: var(--bg); width: 100%; }
.cs-ticket-form textarea { min-height: 56px; resize: vertical; }
.cs-tf-btns { display: flex; gap: 8px; }
.cs-tf-btns button { flex: 1; border-radius: 8px; padding: 7px; font-size: 12px; font-weight: 700; }
.cs-tf-cancel { border: 1px solid var(--line); background: var(--card); }
.cs-tf-send { background: var(--brand); color: #fff; }


/* ---------- 全球购协议：提交订单同意提示 + 协议弹窗 ---------- */
.xb-agree { margin-bottom: 12px; padding: 10px 12px; background: var(--cream); border: 1px dashed var(--line); border-radius: 10px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.xb-link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 800; font-size: 12px; text-decoration: underline; cursor: pointer; }
.xb-link:hover { color: var(--coral); }
.xb-card { max-width: 560px; text-align: left; }
.xb-card h3 { text-align: center; color: var(--brand-dk,#33434a); font-size: 17px; margin: 0 24px 12px 0; }
.xb-doc { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.xb-doc p { margin: 0 0 9px; }
.xb-doc .xb-lead { color: var(--ink); }
.xb-doc .xb-special { margin-top: 12px; padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--coral); border-radius: 8px; }
.xb-doc .xb-special b { color: var(--coral-dk,#c9502f); }
.xb-doc .xb-special p { margin: 5px 0 0; }

/* ---------- 两级分类：首页一级卡子类名 + 商城二级缩进 ---------- */
.cat .cat-kids { margin-top: 5px; font-size: 10px; line-height: 1.35; font-weight: 500; color: var(--muted, #8a9499); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cat-filter .chip-sub { font-weight: 500; font-size: 11.5px; border-style: dashed; }
/* 先显示一级标签，选中后才展开二级；二级区域用缩进+浅底和一级区分 */
.cat-sub { margin-top: 8px; padding: 8px 9px; border-left: 2px solid var(--line, #dbe3e6); background: rgba(0,0,0,.02); border-radius: 0 8px 8px 0; }
.cat-sub[hidden] { display: none; }
.cat-sub-title { font-size: 11px; color: var(--muted, #8a9499); margin-bottom: 6px; }
.cat-filter .chip-all { font-weight: 600; border-color: var(--brand, #0e5e6f); color: var(--brand, #0e5e6f); }
