/* EZ Access customer portal — brand: teal #1E5B52, terracotta #D9703C, sand #F7F0E6, ink #1F2A28 */
:root {
  --teal: #1E5B52; --teal-dark: #164640; --teal-soft: #E2EDEA;
  --terra: #D9703C; --terra-dark: #B85A2B; --terra-soft: #FBE9DE;
  --sand: #F7F0E6; --sand-2: #EFE5D5;
  --ink: #1F2A28; --muted: #5E6966; --line: #E4DDD2;
  --danger: #B3261E; --danger-soft: #FCE8E6;
  --radius: 16px; --shadow: 0 4px 16px rgba(22, 70, 64, .07);
  --font: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--sand); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--terra-dark); }
h1 { font-size: 1.5rem; margin: 0 0 4px; font-weight: 800; }
h2 { font-size: 1.1rem; margin: 0; font-weight: 800; }
button, input { font: inherit; color: inherit; }

/* top bar + tabs */
.topbar { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 0 16px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand strong { font-weight: 800; font-size: 1.1rem; }
.brand em { font-style: normal; font-weight: 700; font-size: .8rem; background: var(--terra); padding: 2px 8px; border-radius: 6px; margin-left: 2px; white-space: nowrap; }
.brand img { border-radius: 9px; background: var(--sand); }
.topbar-right { display: flex; gap: 8px; }
.lang { background: rgba(255, 255, 255, .14); border: 0; color: #fff; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.lang:hover { background: rgba(255, 255, 255, .24); }
.tabs { max-width: 960px; margin: 0 auto; padding: 0 10px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: #D5E5E1; padding: 9px 14px 11px; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-bottom-color: var(--terra); }

.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.page-head { margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid .card { margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 18px 0 8px; margin: 0; }
.loading { color: var(--muted); text-align: center; padding: 60px 0; }

/* buttons, inputs */
.btn { border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--terra); color: #fff; }
.btn.primary:hover { background: var(--terra-dark); color: #fff; }
.btn.ghost { background: var(--teal-soft); color: var(--teal-dark); }
.btn.ghost:hover { background: #D3E4DF; }
.btn.sm { padding: 6px 14px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; font-weight: 700; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field input.code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.form-error { color: var(--danger); min-height: 1.4em; margin: 4px 0 10px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.check + .check { border-top: 1px solid #F0EBE3; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.check strong { display: block; }

/* sign-in */
.login { max-width: 420px; margin: 6vh auto 0; }
.login .card { padding: 28px 24px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.login-logo img { border-radius: 16px; background: var(--sand); }
.login h1 { text-align: center; }
.login .lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.dev-code { background: #FFF4D6; color: #7A5B00; border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 12px; }

/* badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.badge.teal { background: var(--teal-soft); color: var(--teal-dark); }
.badge.terra { background: var(--terra-soft); color: var(--terra-dark); }
.badge.grey { background: #EEECE8; color: #7A7672; }
.badge.warn { background: #FBEFC5; color: #7A5900; }
.badge.vip { background: var(--terra); color: #fff; }

/* home */
.stat-label { color: var(--muted); font-weight: 700; font-size: .9rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1.2; margin: 4px 0; }
.stat-value.due { color: var(--terra-dark); }
.pay-box { background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.pay-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 6px 0 0; }
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; font-weight: 800; word-break: break-all; }
.vip-card { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; }
.vip-card .muted { color: #CFE2DD; }
.vip-card .stat-label { color: #CFE2DD; }
.vip-card .stat-value { color: #fff; }
.perks { margin: 10px 0 0; padding-left: 20px; }
.perks li { margin: 3px 0; }

/* lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid #F0EBE3; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; }
a.row:hover { background: #FBF8F3; color: inherit; }
.row .main { flex: 1; min-width: 0; }
.row .main strong { display: block; }
.row .amount { font-weight: 800; white-space: nowrap; text-align: right; }
.row .amount.pos { color: var(--teal); }
.svc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; flex: none; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }

/* referrals */
.ref-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.ref-code code { font-family: inherit; font-size: 1.8rem; font-weight: 800; letter-spacing: .06em; color: var(--terra-dark); background: var(--terra-soft); border-radius: 12px; padding: 4px 16px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 6px 0; }

/* bill page */
.bill-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--teal); color: #fff; }
.print-tip { font-size: .85rem; color: var(--muted); margin: -6px 0 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); }

@media (max-width: 520px) {
  .brand em { display: none; }
  .stat-value { font-size: 1.7rem; }
}
@media print {
  .no-print, .bill-bar, .print-tip, .toast { display: none !important; }
  .page { padding: 0; max-width: none; }
}

/* small layout helpers (no inline styles: the CSP forbids them) */
.center { text-align: center; }
.strong { font-weight: 700; }
.mt { margin: 14px 0 0; }
.mt-s { margin: 8px 0 0; }
.split { display: flex; justify-content: space-between; }
.bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-head { margin: 16px 0 6px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 700; word-break: break-word; }

/* referrals: member vs VIP */
.compare { border: 2px solid var(--terra-soft); }
.compare h2 { color: var(--terra-dark); margin-bottom: 10px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid #F0EBE3; }
.compare-table thead th { font-size: .85rem; color: var(--muted); }
.compare-table tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.compare-table .vip-col { background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; }

/* account system: forms, family, ID */
button, input, select { font: inherit; color: inherit; }
.field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; }
.field input[type=file] { padding: 9px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; margin-bottom: 0; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice { background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.notice.warn { background: #FBEFC5; color: #5E4500; }
.perm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.perm select, .perm input { border: 1.5px solid var(--line); border-radius: 10px; padding: 5px 8px; background: #fff; font-size: .9rem; }
.perm input { width: 110px; }
.link-btn.danger { color: var(--danger); }
.mt { margin-top: 14px; }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* shop */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card.product { display: flex; flex-direction: column; align-items: flex-start; color: inherit; margin: 0; transition: transform .15s, box-shadow .15s; }
.card.product:hover { transform: translateY(-2px); }
.card.product h2 { margin: 8px 0 4px; }
.product-sim { background: var(--teal); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 8px; padding: 3px 9px; letter-spacing: 1px; }
.price-big { font-size: 1.7rem; font-weight: 800; color: var(--teal-dark); }
.price-big .small { font-size: .95rem; font-weight: 600; margin-left: 2px; }
.cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cycle { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.cycle.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.cycle .save { color: var(--terra-dark); font-size: .85rem; font-weight: 700; }
.summary { border-top: 1px solid #F0EBE3; margin: 14px 0 6px; padding-top: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sum-row.total { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; }
.check input { margin-top: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); }

.period-tabs { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 16px; }
.period-tabs button { border: 0; background: transparent; font: inherit; font-weight: 800; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.period-tabs button.on { background: var(--teal); color: #fff; }
.product-top { display: flex; gap: 8px; align-items: center; }
.save { color: var(--terra-dark); font-weight: 700; }
.steps li + li { margin-top: 4px; }

.check.renew { margin-top: 8px; padding: 0; }
.check.renew input:disabled + span { opacity: .7; }

.price-big > span { white-space: nowrap; }
.plan-sub { display: inline-block; margin-left: 8px; font-size: .8em; font-weight: 700; color: var(--terra-dark); }
.plan-points { list-style: none; padding: 0; margin: 12px 0; }
.plan-points li { padding-left: 24px; position: relative; margin: 6px 0; }
.plan-points li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.plan-title h2 { margin-bottom: 2px; }
.plan-title .plan-sub { display: block; margin: 0 0 4px; font-size: .9rem; }

/* ---------------------------------------------------------------- Ezoya 易优雅 (the shop host's own brand)
   jade #1F6F68, silk gold #D9A441, vermilion #D2452F, rice paper #F7F2E8, ink #22302E */
html.ezoya {
  --teal: #1F6F68; --teal-dark: #17534E; --teal-soft: #E3EFEC;
  --terra: #D2452F; --terra-dark: #B23522; --terra-soft: #FBE3DE;
  --sand: #F7F2E8; --sand-2: #EFE7D6; --ink: #22302E; --line: #E7E0D2;
  --gold: #D9A441; --gold-dark: #9A6F1E;
}
.ezoya .page { max-width: 1120px; }
.ezoya .topbar { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.ezoya .topbar-inner { max-width: 1120px; height: 72px; gap: 20px; }
.ezoya .brand { color: var(--ink); flex: none; }
.ezoya .brand img { background: none; border-radius: 10px; }
.ez-name { display: flex; flex-direction: column; line-height: 1.05; }
.ez-name strong { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: .2px; }
.ez-name strong b { color: var(--teal); font-weight: 800; }
.ez-name em { background: none; padding: 0; margin: 0; border-radius: 0; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 3px; }
.shop-search { flex: 1; max-width: 520px; display: flex; background: var(--sand); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.shop-search:focus-within { border-color: var(--teal); }
.shop-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; outline: none; }
.shop-search button { border: 0; background: var(--teal); color: #fff; font-weight: 800; padding: 0 20px; cursor: pointer; }
.shop-search button:hover { background: var(--teal-dark); }
.ezoya .topbar-right { align-items: center; gap: 10px; }
.top-links { display: flex; gap: 16px; margin-right: 4px; }
.top-links a { color: var(--ink); font-weight: 800; white-space: nowrap; }
.top-links a:hover { color: var(--teal); }
.ezoya .lang { background: var(--teal-soft); color: var(--teal-dark); }
.ezoya .lang:hover { background: #D3E6E1; }
.ezoya .tabs { max-width: 1120px; border-top: 1px solid var(--line); gap: 6px; }
.ezoya .tabs a, .ezoya .soon-tab { color: var(--ink); padding: 10px 12px 12px; }
.ezoya .tabs a:hover { color: var(--teal); }
.ezoya .tabs a.on { color: var(--teal); border-bottom-color: var(--gold); }
.soon-tab { font-weight: 700; color: var(--muted) !important; white-space: nowrap; }
.soon-tab small { margin-left: 6px; font-size: .7rem; background: var(--sand-2); color: var(--gold-dark); border-radius: 6px; padding: 1px 6px; }
.btn.light { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; background: var(--teal); color: #F7F2E8; border-radius: 24px; padding: 32px; margin-bottom: 18px; }
.hero h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.hero p { margin: 0 0 22px; color: #D7E8E3; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { width: 100%; height: auto; display: block; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.cat { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s; }
a.cat:hover { transform: translateY(-2px); color: var(--ink); }
.cat span { display: flex; flex-direction: column; }
.cat small { color: var(--muted); font-size: .82rem; }
.cat.soon { opacity: .75; }
.cat.soon small { color: var(--gold-dark); font-weight: 700; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin: 0 0 26px; padding: 12px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.trust li { font-weight: 700; font-size: .92rem; }
.trust li::before { content: '✓'; color: var(--gold-dark); font-weight: 800; margin-right: 6px; }
.plans { scroll-margin-top: 140px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.35rem; }
#how { scroll-margin-top: 140px; }
.ez-footer { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-top: 30px; }
@media (max-width: 860px) {
  .ezoya .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .shop-search { order: 3; max-width: none; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero h1 { font-size: 1.6rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .plans, #how { scroll-margin-top: 190px; }
}
@media (max-width: 520px) {
  .top-links { gap: 10px; }
  .ez-name strong { font-size: 1.2rem; }
  .cat { padding: 12px; gap: 8px; }
  .cat img { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------- Ezoya v2: themes, mark, drawer, carousel, rows, footer */
html.ezoya.t-red { --teal: #C2412D; --teal-dark: #9E3323; --teal-soft: #FBE6E1; --terra: #22302E; --terra-dark: #0E1514; --terra-soft: #E9ECEB; --gold: #D9A441; --gold-dark: #94681A; --sand: #F6F6F4; --sand-2: #ECECE8; }
html.ezoya.t-ocean { --teal: #1D4E89; --teal-dark: #153A66; --teal-soft: #E4EDF7; --terra: #E8613C; --terra-dark: #C94C2A; --terra-soft: #FDE9E2; --gold: #E0A93B; --gold-dark: #8F6416; --sand: #F5F7FA; --sand-2: #E8EDF3; }
html.ezoya.t-orange { --teal: #D9692F; --teal-dark: #B5541F; --teal-soft: #FCEBDF; --terra: #1F6F68; --terra-dark: #17534E; --terra-soft: #E3EFEC; --gold: #D9A441; --gold-dark: #94681A; --sand: #FBF7F2; --sand-2: #F1E9DE; }
.ez-mark .m-bg { fill: var(--teal); }
.ez-mark .m-road { fill: none; stroke: #F7F2E8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ez-mark .m-silk { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 2.2 2.8; }
.ez-mark .m-dot { fill: #E07A3F; }
.t-orange .ez-mark .m-dot { fill: #1F6F68; }
.ezoya .brand { gap: 10px; }

.browse-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; margin: 6px 8px 6px 0; font-weight: 800; cursor: pointer; white-space: nowrap; }
.browse-btn:hover { border-color: var(--teal); color: var(--teal); }
.ezoya .tabs { align-items: center; }
.drawer-wrap { position: fixed; inset: 0; background: rgba(20, 28, 27, .45); z-index: 60; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; background: var(--teal); color: #fff; padding: 14px 18px; position: sticky; top: 0; }
.drawer-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.drawer-sec { padding: 10px 10px; border-bottom: 1px solid var(--line); }
.drawer-sec a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 700; }
.drawer-sec a:hover { background: var(--sand); color: var(--teal); }
.drawer-sec a small { color: var(--muted); font-weight: 600; }
.drawer-cat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-weight: 800; }
.drawer-cat.soon { color: var(--muted); }
.drawer-cat small { margin-left: auto; font-size: .72rem; background: var(--sand-2); color: var(--gold-dark); border-radius: 6px; padding: 1px 6px; }

.carousel { position: relative; margin-bottom: 18px; }
.slide { display: none; }
.slide.on { display: grid; }
.slide.hero, .carousel .slide { grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; background: var(--teal); color: #F7F2E8; border-radius: 24px; padding: 32px 56px; min-height: 340px; }
.slide h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.slide p { margin: 0 0 22px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.car-btn.prev { left: 8px; } .car-btn.next { right: 8px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.dots button.on { background: #fff; width: 22px; border-radius: 6px; }
.slide-art { background: rgba(255, 255, 255, .1); border-radius: 20px; padding: 22px; }
.price-board .pb-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 10px 4px; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.price-board .pb-row:last-child { border-bottom: 0; }
.price-board span { font-weight: 800; }
.price-board strong { font-size: 1.6rem; color: #fff; }
.price-board strong small { font-size: .8rem; font-weight: 700; }
.price-board s { color: rgba(255, 255, 255, .6); }
.gift-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gift-art img { background: #fff; border-radius: 28px; padding: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips span { background: #fff; color: var(--teal-dark); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: .88rem; }

.shop-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; scroll-margin-top: 140px; }
.row-side h2 { font-size: 1.3rem; margin-bottom: 6px; }
.row-side .period-tabs { margin: 8px 0 10px; }
.row-side .period-tabs button { padding: 6px 12px; }
.row-art { display: block; margin-top: 8px; }
.row-main { min-width: 0; }
.row-main .products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shop-row .card.product { box-shadow: none; border: 1.5px solid var(--line); }
.vip-fee { font-size: 1.15rem; font-weight: 800; color: var(--teal); margin: 0; }
.vip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card.vip-card { background: #fff; display: flex; flex-direction: column; gap: 2px; margin: 0; box-shadow: none; border: 1.5px solid var(--line); color: var(--ink); padding: 16px; }
.card.vip-card:hover { border-color: var(--teal); color: var(--ink); }
.vip-card .plan-sub { margin: 0 0 6px; }
.card.vip-card .muted { color: var(--muted); }
.vip-price { font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.vip-price span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.vip-chip { display: inline-block; align-self: flex-start; background: var(--gold); color: #fff; font-weight: 800; font-size: .72rem; border-radius: 6px; padding: 1px 7px; margin-right: 8px; letter-spacing: .5px; }
.vip-strip { align-self: stretch; margin: 14px -20px -20px; padding: 9px 20px; background: var(--sand-2); border-radius: 0 0 var(--radius) var(--radius); font-size: .85rem; font-weight: 700; }

.help-box { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 18px; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; margin: 8px 0 0; }
.help-box h2 { font-size: 1.3rem; }
.help-box p { margin: 6px 0 0; }
.help-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.help-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 600; }
.help-links a:hover { color: var(--teal); }

.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; }
.f-inner { max-width: 1120px; margin: 0 auto; padding: 32px 16px 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.f-col h3 { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.f-col a { display: block; color: var(--ink); font-weight: 600; padding: 4px 0; }
.f-col a:hover { color: var(--teal); }
.f-brand p { margin: 6px 0; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.f-bottom { max-width: 1120px; margin: 0 auto; padding: 14px 16px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.info-sec h2 { margin-bottom: 8px; }
.info-sec p { margin: 6px 0; }
.info-sec ul, .info-sec ol { margin: 6px 0; padding-left: 22px; }
.info-sec li + li { margin-top: 4px; }
.info-sec { scroll-margin-top: 140px; }
.vip-table { width: 100%; border-collapse: collapse; }
.vip-table th, .vip-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.vip-table th { color: var(--muted); font-size: .85rem; }
.vip-table td small { display: block; color: var(--muted); }
.vip-td { color: var(--teal); font-weight: 800; }

.theme-panel { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.theme-panel button { display: flex; align-items: center; gap: 8px; border: 1.5px solid transparent; background: none; border-radius: 10px; padding: 5px 8px; cursor: pointer; font-weight: 700; text-align: left; }
.theme-panel button.on { border-color: var(--ink); }
.theme-panel .tp-done { color: var(--muted); font-weight: 600; justify-content: center; }
.sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.sw-jade { background: #1F6F68; } .sw-red { background: #C2412D; } .sw-ocean { background: #1D4E89; } .sw-orange { background: #D9692F; }

@media (max-width: 860px) {
  .carousel .slide { grid-template-columns: 1fr; padding: 24px 22px 40px; min-height: 0; }
  .slide h1 { font-size: 1.55rem; }
  .car-btn { display: none; }
  .shop-row { grid-template-columns: 1fr; padding: 18px; }
  .row-art { display: none; }
  .help-box { grid-template-columns: 1fr; }
  .f-inner { grid-template-columns: 1fr 1fr; }
  .shop-row, .info-sec { scroll-margin-top: 190px; }
}
@media (max-width: 520px) {
  .vip-strip { margin: 14px -20px -20px; }
  .f-inner { grid-template-columns: 1fr; }
}

/* ---- demo goods: cards, rows, category page, product page, cart */
.demo-bar { background: var(--gold); color: #2B2110; font-size: .85rem; font-weight: 700; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 6px 16px; text-align: center; }
.demo-bar button { border: 0; background: rgba(0, 0, 0, .14); color: inherit; border-radius: 999px; padding: 2px 12px; font-weight: 800; cursor: pointer; }
.cart-link { display: inline-flex; align-items: center; gap: 4px; }
.cart-link b { background: var(--terra); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.gp { display: block; width: 100%; height: auto; }
.gp .bg { fill: #F3EEE6; } .gp .fl { fill: rgba(0, 0, 0, .08); } .gp .shelf { fill: rgba(0, 0, 0, .06); } .gp .dot { fill: rgba(255, 255, 255, .7); }
.gp .lb { fill: #fff; } .gp .lt { font: 800 15px var(--font); fill: #22302E; }
.gp .zz, .gp .zl { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; } .gp .gl { fill: rgba(255, 255, 255, .35); }
.gp.h1 .bg { fill: #FBE6E1; } .gp.h1 .mn { fill: #D2452F; } .gp.h1 .sh { fill: #A8321F; } .gp.h1 .hi { fill: #E8705C; }
.gp.h2 .bg { fill: #E3F0EC; } .gp.h2 .mn { fill: #2F8A6E; } .gp.h2 .sh { fill: #1F6F58; } .gp.h2 .hi { fill: #5DAA90; }
.gp.h3 .bg { fill: #FBF1DD; } .gp.h3 .mn { fill: #D9A441; } .gp.h3 .sh { fill: #B0822A; } .gp.h3 .hi { fill: #EBC57A; }
.gp.h4 .bg { fill: #E4EDF7; } .gp.h4 .mn { fill: #3D6FB0; } .gp.h4 .sh { fill: #2A5288; } .gp.h4 .hi { fill: #78A0D2; }
.gp.h5 .bg { fill: #FBE8EF; } .gp.h5 .mn { fill: #D9739A; } .gp.h5 .sh { fill: #B4517A; } .gp.h5 .hi { fill: #EBA3BE; }
.gp.h6 .bg { fill: #ECEEF0; } .gp.h6 .mn { fill: #39424A; } .gp.h6 .sh { fill: #22292F; } .gp.h6 .hi { fill: #67717A; }
.gp.h7 .bg { fill: #F3E9E0; } .gp.h7 .mn { fill: #8A5A3B; } .gp.h7 .sh { fill: #6A4229; } .gp.h7 .hi { fill: #B4835F; }
.card.goods { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 12px 0; overflow: hidden; border: 1.5px solid var(--line); box-shadow: none; }
.card.goods:hover { border-color: var(--teal); }
.g-pic { position: relative; display: block; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.g-tag { position: absolute; left: 8px; top: 8px; font-size: .72rem; font-weight: 800; color: #fff; border-radius: 6px; padding: 2px 8px; background: var(--teal); }
.g-tag.sale { background: var(--terra); } .g-tag.new { background: var(--gold); }
.g-tag.inline { position: static; display: inline-block; margin-bottom: 6px; }
.g-name { color: var(--ink); font-weight: 700; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.g-origin { margin-left: auto; background: var(--sand-2); border-radius: 6px; padding: 0 6px; }
.stars { color: var(--gold); letter-spacing: 1px; } .stars i { font-style: normal; color: var(--line); }
.g-price { display: flex; align-items: baseline; gap: 8px; } .g-price strong { font-size: 1.25rem; color: var(--terra-dark); }
.g-price s, .gv-price s { color: var(--muted); font-size: .85rem; }
.g-add { margin-top: 6px; }
.card.goods .vip-strip { margin: 10px -12px 0; padding: 7px 12px; border-radius: 0; font-size: .8rem; }
.goods-row { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.gr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.gr-head h2 { font-size: 1.3rem; display: inline; margin-right: 10px; }
.gr-head a { font-weight: 800; white-space: nowrap; }
.goods-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.goods-scroll > * { scroll-snap-align: start; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-strip { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 18px; }
.cat-strip h2 { font-size: 1.3rem; margin-bottom: 12px; }
.cs-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cs-list a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .92rem; text-align: center; }
.cs-pic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: block; transition: transform .15s; }
.cs-list a:hover .cs-pic { transform: translateY(-3px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.cat-page { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.filters { margin: 0; padding: 16px 18px; position: sticky; top: 150px; }
.filters summary { font-weight: 800; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters h3 { font-size: .9rem; margin: 16px 0 6px; color: var(--muted); }
.f-cats { display: flex; flex-direction: column; gap: 2px; }
.f-cats a { color: var(--ink); padding: 3px 8px; border-radius: 8px; font-weight: 600; }
.f-cats a.on { background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.f-opt { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.f-sale { margin: 12px 0; font-weight: 700; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.sort select { font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.gv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.gv-pics { max-width: 440px; width: 100%; justify-self: center; }
.gv-big { border-radius: 16px; overflow: hidden; }
.gv-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gv-thumbs button { width: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gv-thumbs button.on { border-color: var(--teal); }
.gv-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.gv-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; } .gv-price strong { font-size: 2rem; color: var(--terra-dark); }
.vip-line { background: var(--sand-2); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.gv-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: none; width: 38px; height: 40px; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--sand-2); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }
.stepper.sm button { width: 30px; height: 32px; }
.gv-spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gv-spec th { text-align: left; color: var(--muted); font-weight: 700; padding: 6px 12px 6px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.gv-spec td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cart-page { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.cart-lines { margin: 0; padding: 6px 20px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto 90px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cl-pic { border-radius: 10px; overflow: hidden; display: block; }
.cl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cl-main > a { color: var(--ink); font-weight: 700; }
.cl-total { text-align: right; }
.link-btn { border: 0; background: none; color: var(--danger); padding: 0; cursor: pointer; font-size: .82rem; align-self: flex-start; }
.cart-sum { margin: 0; position: sticky; top: 150px; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-line.save { color: var(--teal); font-weight: 700; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.btn.wide { width: 100%; margin-top: 12px; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.cart-empty { text-align: center; padding: 40px 20px; grid-column: 1 / -1; }
@media (max-width: 860px) {
  .cs-list { grid-template-columns: repeat(3, 1fr); }
  .cat-page, .cart-page { grid-template-columns: 1fr; }
  .filters, .cart-sum { position: static; }
  .gv { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .goods-row, .cat-strip { padding: 16px; border-radius: 16px; }
  .goods-scroll { grid-auto-columns: 160px; gap: 10px; }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-pic { width: 72px; height: 72px; }
  .cl-word { display: none; }
  .cart-line { grid-template-columns: 56px 1fr auto; }
  .cl-total { grid-column: 2 / -1; }
  .g-price strong { font-size: 1.1rem; }
}
