/* ==========================================================================
   Sheng Beauty — Global B2B Beauty Wholesale
   Design System v1.0
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — sampled from logo (#FF0AFB), toned for accessible UI */
  --brand-50:  #FFF2FE;
  --brand-100: #FDE0FB;
  --brand-200: #FBC4F7;
  --brand-300: #F98CF2;
  --brand-400: #F549EE;
  --brand-500: #F20AEA;   /* logo magenta */
  --brand-600: #D400C8;   /* accessible button base */
  --brand-700: #A6009C;
  --brand-800: #6E0068;
  --brand-900: #3D0039;

  /* Ink / neutrals — slight plum undertone to sit with the magenta */
  --ink-900: #14101A;
  --ink-800: #221C2C;
  --ink-700: #3A3346;
  --ink-600: #554D63;
  --ink-500: #7A7288;
  --ink-400: #9C95A8;
  --ink-300: #C6C1D0;
  --ink-200: #E4E1EB;
  --ink-100: #F1EFF5;
  --ink-50:  #FAF9FC;

  --white: #FFFFFF;
  --bg: var(--white);
  --bg-soft: var(--ink-50);
  --line: var(--ink-200);

  /* Accents */
  --gold: #B08D2E;
  --success: #12805C;
  --success-bg: #E6F6F0;
  --warn: #A96B00;
  --warn-bg: #FDF3E2;
  --danger: #C0263C;
  --danger-bg: #FDECEF;
  --info-bg: #EEF2FF;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
  --font-display: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(20, 16, 26, .05);
  --sh-sm: 0 2px 8px rgba(20, 16, 26, .06);
  --sh-md: 0 8px 24px rgba(20, 16, 26, .08);
  --sh-lg: 0 20px 50px rgba(20, 16, 26, .12);
  --sh-brand: 0 10px 30px rgba(212, 0, 200, .22);

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 860px;
  --header-h: 72px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); color: var(--ink-900); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink-900); color: var(--ink-200); }
.bg-brand { background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%); color: #fff; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-500); border-radius: 2px; }
.bg-ink .eyebrow, .bg-brand .eyebrow { color: var(--brand-200); }
.bg-ink .eyebrow::before, .bg-brand .eyebrow::before { background: var(--brand-300); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-top: 14px; }
.section-sub { margin-top: 14px; font-size: 16.5px; color: var(--ink-500); }
.bg-ink .section-title, .bg-brand .section-title { color: #fff; }
.bg-ink .section-sub, .bg-brand .section-sub { color: rgba(255,255,255,.72); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(212,0,200,.3); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink-200); color: var(--ink-800); background: #fff; }
.btn-outline:hover { border-color: var(--ink-900); background: var(--ink-50); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-link { color: var(--brand-700); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { gap: 10px; }

/* ---------- 5. Header ---------- */
.topbar {
  background: var(--ink-900); color: rgba(255,255,255,.75);
  font-size: 13px; padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-items { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; opacity: .7; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--ink-900); letter-spacing: -.02em; }
.brand-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  display: inline-flex; align-items: center; gap: 5px; transition: .16s; white-space: nowrap;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.active { color: var(--brand-700); font-weight: 650; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand-500);
}
.nav-link .caret { width: 12px; height: 12px; opacity: .5; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang-switch { position: relative; }.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid var(--ink-200); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-700); background: #fff; transition: .16s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--ink-400); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: .18s; z-index: 80;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: var(--r-xs); font-size: 14px; text-align: left;
}
.lang-opt:hover { background: var(--ink-50); }
.lang-opt.on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.lang-opt .flag { font-size: 16px; }
.lang-opt .check { margin-left: auto; width: 15px; height: 15px; opacity: 0; }
.lang-opt.on .check { opacity: 1; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-md); padding: 30px 0 34px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: .2s ease; z-index: 55;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 32px; }
.mega-col h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; margin-bottom: 14px; }
.mega-col li + li { margin-top: 9px; }
.mega-col a { font-size: 14.5px; color: var(--ink-700); display: inline-flex; align-items: center; gap: 8px; }
.mega-col a:hover { color: var(--brand-700); }
.mega-promo {
  background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
  border-radius: var(--r-md); padding: 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.mega-promo h5 { color: #fff; font-size: 17px; letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.mega-promo p { font-size: 13.5px; color: rgba(255,255,255,.82); }
.letter-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-grid a {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink-600); background: var(--ink-50);
  border: 1px solid var(--line); transition: .15s;
}
.letter-grid a:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* burger */
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--ink-200); border-radius: var(--r-sm); align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-bg { position: absolute; inset: 0; background: rgba(20,16,26,.5); opacity: 0; transition: .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: #fff; transform: translateX(100%); transition: .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-nav { padding: 12px 12px 30px; }
.drawer-nav a { display: block; padding: 13px 14px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; color: var(--ink-800); }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--brand-50); color: var(--brand-700); }
.drawer-sub { padding-left: 14px; }
.drawer-sub a { font-size: 14.5px; padding: 10px 14px; color: var(--ink-600); font-weight: 400; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-900); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(242,10,234,.34), transparent 62%),
    radial-gradient(700px 500px at 92% 85%, rgba(166,0,156,.42), transparent 60%),
    linear-gradient(160deg, #1A1120 0%, #14101A 55%, #1E0B22 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(700px 420px at 30% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 420px at 30% 40%, #000 20%, transparent 78%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; padding: 96px 0 104px; }
.hero-copy { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.03em; margin-top: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-300); }
.hero-lead { margin-top: 22px; font-size: 17.5px; line-height: 1.7; color: rgba(255,255,255,.76); max-width: 540px; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; }

.hero-stats { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; }
.hero-stat .n { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.hero-stat .n span { color: var(--brand-300); }
.hero-stat .l { margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.55); letter-spacing: .02em; }

/* hero visual: floating cards */
.hero-visual { position: relative; height: 460px; }
.hv-card {
  position: absolute; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hv-1 { top: 12px; left: 4%; width: 268px; animation: float 7s ease-in-out infinite; }
.hv-2 { top: 148px; right: 0; width: 244px; animation: float 8.5s ease-in-out infinite .8s; }
.hv-3 { bottom: 24px; left: 12%; width: 258px; animation: float 7.6s ease-in-out infinite 1.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hv-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }
.hv-title { color: #fff; font-weight: 650; font-size: 15px; margin-top: 8px; }
.hv-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); }
.hv-row strong { color: #fff; font-weight: 700; }
.hv-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 12px; }
.hv-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.hv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hv-tag { font-size: 11px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.hv-mini { display: flex; align-items: center; gap: 10px; }
.hv-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }

/* ---------- 7. Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trustbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.trustbar-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; }
.trust-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust-logo { font-size: 16px; font-weight: 700; color: var(--ink-400); letter-spacing: -.01em; transition: .2s; }
.trust-logo:hover { color: var(--ink-800); }

/* ---------- 8. Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.fcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; transition: .22s; position: relative; overflow: hidden;
}
.fcard::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-200); }
.fcard:hover::after { transform: scaleX(1); }
.fcard-icon {
  width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 20px;
}
.fcard-icon svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 18px; margin-bottom: 10px; }
.fcard p { font-size: 14.5px; color: var(--ink-500); line-height: 1.7; }
.fcard-num { position: absolute; right: 20px; top: 16px; font-size: 44px; font-weight: 800; color: var(--ink-100); letter-spacing: -.04em; }

/* ---------- 9. Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  border: 1px solid var(--line); background: var(--ink-50); transition: .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.cat-card .cat-count { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; color: var(--ink-400); background: #fff; border: 1px solid var(--line); padding: 4px 11px; border-radius: var(--r-pill); }
.cat-card h3 { font-size: 19px; }
.cat-card p { font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.cat-card .cat-go { margin-top: 14px; font-size: 13.5px; font-weight: 650; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }
.cat-card.tint-1 { background: linear-gradient(150deg, #FFF2FE, #FDE0FB); }
.cat-card.tint-2 { background: linear-gradient(150deg, #F4F0FF, #EAE2FF); }
.cat-card.tint-3 { background: linear-gradient(150deg, #FFF7EC, #FFEBD4); }
.cat-card.tint-4 { background: linear-gradient(150deg, #EDFBF6, #D9F4EA); }
.cat-card.tint-5 { background: linear-gradient(150deg, #F0F6FF, #DFEBFF); }
.cat-card.tint-6 { background: linear-gradient(150deg, #FFF0F3, #FFDFE7); }

/* ---------- 10. Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.product-card:hover { box-shadow: var(--sh-md); border-color: var(--brand-200); transform: translateY(-3px); }
.pc-media {
  position: relative; aspect-ratio: 1/1; background: var(--ink-50);
  display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { font-size: 30px; font-weight: 800; color: var(--ink-300); letter-spacing: -.03em; }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-xs); }
.badge-hot { background: var(--brand-600); color: #fff; }
.badge-new { background: var(--ink-900); color: #fff; }
.badge-out { background: var(--ink-200); color: var(--ink-600); }
.pc-stock { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.94); border: 1px solid var(--line); }
.stock-in { color: var(--success); } .stock-low { color: var(--warn); } .stock-out { color: var(--danger); }
.pc-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.pc-name { font-size: 14.5px; font-weight: 600; color: var(--ink-900); margin-top: 6px; line-height: 1.45; min-height: 42px; }
.pc-meta { font-size: 12px; color: var(--ink-400); margin-top: 7px; font-variant-numeric: tabular-nums; }
.pc-price { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pc-price .label { font-size: 11px; color: var(--ink-400); }
.pc-price .amt { font-size: 19px; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-price .amt small { font-size: 11.5px; font-weight: 600; color: var(--ink-400); margin-left: 3px; }
.pc-moq { font-size: 11.5px; color: var(--ink-500); background: var(--ink-50); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--r-xs); white-space: nowrap; }
.pc-actions { margin-top: 13px; display: flex; gap: 8px; }

/* ---------- 11. Catalog layout ---------- */
.catalog-wrap { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 14px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--ink-700); }
.check > span { flex: 1; min-width: 0; }
.check > span.n { flex: none; }
.check input[type="checkbox"] { appearance: none; padding: 0; width: 17px; height: 17px; border: 1.5px solid var(--ink-300); border-radius: 5px; flex: none; transition: .15s; position: relative; }
.check input[type="checkbox"]:checked { background: var(--brand-600); border-color: var(--brand-600); }
.check input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check:hover input[type="checkbox"] { border-color: var(--brand-500); }
.check .n { margin-left: auto; font-size: 12px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.range-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.range-row input { width: 100%; padding: 9px 11px; border: 1px solid var(--ink-200); border-radius: var(--r-sm); font-size: 14px; }

.catalog-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-400); }
.search-box input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--ink-200); border-radius: var(--r-pill); font-size: 14.5px; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.select { padding: 11px 34px 11px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-pill); font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7288' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; }
.result-count { font-size: 14px; color: var(--ink-500); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: var(--r-pill); background: var(--brand-50); border: 1px solid var(--brand-200);
  color: var(--brand-700); font-size: 13px; font-weight: 600;
}
.chip button { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-200); color: var(--brand-800); font-size: 11px; line-height: 1; }

/* ---------- 12. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 0; left: 0; font-size: 13px; font-weight: 800;
  color: var(--brand-600); letter-spacing: .08em;
}
.step::after { content: ""; position: absolute; top: 9px; left: 42px; right: -20px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 16.5px; margin-bottom: 9px; }
.step p { font-size: 14px; color: var(--ink-500); }

/* ---------- 13. Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.tbl { font-size: 14px; min-width: 560px; }
table.tbl th {
  text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700; padding: 14px 16px;
  background: var(--ink-50); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--ink-100); color: var(--ink-700); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--brand-50); }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl strong { color: var(--ink-900); }

/* ---------- 14. Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-size: 16px; font-weight: 650; color: var(--ink-900); }
.acc-head:hover { background: var(--ink-50); }
.acc-head .ico { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink-300); display: grid; place-items: center; position: relative; transition: .2s; }
.acc-head .ico::before, .acc-head .ico::after { content: ""; position: absolute; background: var(--ink-600); border-radius: 2px; }
.acc-head .ico::before { width: 9px; height: 1.6px; }
.acc-head .ico::after { width: 1.6px; height: 9px; transition: .2s; }
.acc-item.open .acc-head .ico { background: var(--brand-600); border-color: var(--brand-600); }
.acc-item.open .acc-head .ico::before, .acc-item.open .acc-head .ico::after { background: #fff; }
.acc-item.open .acc-head .ico::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 22px 22px; font-size: 14.8px; color: var(--ink-600); line-height: 1.75; }
.acc-body-inner ul { margin-top: 10px; }
.acc-body-inner li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.acc-body-inner li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300); }

/* ---------- 15. Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-800); }
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 14.5px; background: #fff; transition: .16s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.field .hint { font-size: 12.5px; color: var(--ink-400); }
.field .err { font-size: 12.5px; color: var(--danger); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }

.card-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-sm); }

/* ---------- 16. Contact info ---------- */
.info-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-ico { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.info-ico svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--ink-500); }

/* ---------- 17. Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.62); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 48px; }
.footer h5 { color: #fff; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer a:hover { color: #fff; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.75; max-width: 320px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.footer-badge { font-size: 11.5px; padding: 5px 11px; border-radius: var(--r-xs); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 11px 14px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { outline: none; border-color: var(--brand-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-row { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.footer-row > span { color: rgba(255,255,255,.42); flex: none; min-width: 62px; }
.footer-row strong { color: rgba(255,255,255,.82); font-weight: 500; word-break: break-word; }
.footer-row strong a:hover { color: #fff; }
.footer-hours { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-top: -2px; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 18. Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, #1A1120, #14101A 60%, #220B26); padding: 62px 0 66px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 82% 0%, rgba(242,10,234,.28), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; margin-top: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 16.5px; margin-top: 14px; max-width: 660px; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.5); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .4; }

/* ---------- 19. Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat-cell { background: #fff; padding: 30px 24px; text-align: center; }
.stat-cell .n { font-size: 34px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; line-height: 1; }
.stat-cell .n span { color: var(--brand-600); }
.stat-cell .l { font-size: 13px; color: var(--ink-500); margin-top: 9px; }

/* ---------- 20. CTA band ---------- */
.cta-band { border-radius: var(--r-xl); padding: 54px 56px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 12px; max-width: 520px; }

/* ---------- 21. Toast / Modal ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink-900); color: #fff; padding: 13px 18px; border-radius: var(--r-sm);
  font-size: 14px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px;
  animation: slideIn .25s ease; max-width: 340px;
}
.toast.ok { background: #0E6B4E; } .toast.err { background: #A81E33; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(20,16,26,.55); backdrop-filter: blur(3px); }
.modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(680px, 92vw); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-head h3 { font-size: 18px; }
.modal-close { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-500); }
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }
.modal-body { padding: 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }

/* ---------- 22. Empty state / loader ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-400); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 16px; opacity: .5; }
.empty h4 { color: var(--ink-600); font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 14px; }

/* ---------- 23. Admin ---------- */
.admin-body { background: var(--ink-50); }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink-900); color: rgba(255,255,255,.66); padding: 22px 16px; display: flex; flex-direction: column; }
.admin-side .brand { padding: 6px 8px 22px; }
.admin-side .brand-name { color: #fff; font-size: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm);
  font-size: 14px; text-align: left; color: rgba(255,255,255,.66); width: 100%; transition: .15s;
}
.admin-nav button svg { width: 17px; height: 17px; flex: none; }
.admin-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav button.active { background: var(--brand-600); color: #fff; font-weight: 600; }
.admin-nav .group-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.32); padding: 18px 13px 8px; font-weight: 700; }
.admin-side-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 18px; }
.admin-top .spacer { margin-left: auto; }
.admin-content { padding: 26px 28px 60px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.admin-panel + .admin-panel { margin-top: 20px; }
.admin-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-panel-head h3 { font-size: 16px; }
.admin-panel-head .spacer { margin-left: auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.kpi .l { font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 7px; }
.kpi .l svg { width: 15px; height: 15px; color: var(--brand-600); }
.kpi .n { font-size: 30px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; margin-top: 10px; line-height: 1; }
.kpi .d { font-size: 12px; color: var(--ink-400); margin-top: 8px; }

.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-toolbar .search-box { max-width: 300px; flex: 1 1 200px; }
.mini-btn { padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--ink-200); font-size: 13px; background: #fff; display: inline-flex; align-items: center; gap: 6px; }
.mini-btn:hover { border-color: var(--ink-400); background: var(--ink-50); }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn.danger { color: var(--danger); border-color: #F2C9D0; }
.mini-btn.danger:hover { background: var(--danger-bg); }
.icon-btn { width: 30px; height: 30px; border-radius: var(--r-xs); display: grid; place-items: center; color: var(--ink-500); border: 1px solid transparent; }
.icon-btn:hover { background: var(--ink-100); color: var(--ink-900); border-color: var(--line); }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn svg { width: 15px; height: 15px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #1A1120, #14101A 55%, #2A0B2E); padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: var(--r-lg); padding: 40px 36px; box-shadow: var(--sh-lg); }
.login-card .brand { justify-content: center; margin-bottom: 26px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); letter-spacing: .04em; }
.pill.on { background: var(--success-bg); color: var(--success); }
.pill.off { background: var(--ink-100); color: var(--ink-500); }
.pill.hot { background: var(--brand-50); color: var(--brand-700); }
.pill.low { background: var(--warn-bg); color: var(--warn); }
.pill.out { background: var(--danger-bg); color: var(--danger); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink-900); }
.tab.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }

/* ---------- 24. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1240px) {
  .hide-sm { display: none; }
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-promo { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav, .topbar-item.optional { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 68px 0 76px; gap: 40px; }
  .hero-visual { height: 340px; }
  .hv-1 { width: 230px; left: 0; } .hv-2 { width: 210px; top: 120px; } .hv-3 { width: 220px; left: 22%; bottom: 0; }
  .catalog-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid-3, .cat-grid, .grid-4, .steps, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; overflow-x: auto; padding: 10px 12px; align-items: center; }
  .admin-side .brand, .admin-side-foot, .admin-nav .group-label { display: none; }
  .admin-nav { flex-direction: row; }
  .admin-nav button span { display: none; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .product-grid, .grid-2, .grid-3, .grid-4, .cat-grid, .steps, .form-grid, .stat-strip, .kpi-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { padding: 38px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-panel { padding: 24px 20px; }
  .container { padding: 0 18px; }
  .admin-content { padding: 18px 16px 50px; }
  .admin-top { padding: 0 16px; }
  .modal-body { padding: 20px; }
  .brand-tag { display: none; }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  /* 小螢幕：語言切換只留地球圖示，讓漢堡選單有位置 */
  #langLabel { display: none; }
  .lang-btn { padding: 8px 10px; gap: 0; }
  .lang-btn .caret { display: none; }
  .brand-name { font-size: 16px; }
}

/* ---------- 回頂按鈕（全站共用，右下角） ---------- */
#sbTopBtn {
  position: fixed; right: 18px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(212,0,200,.34);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, visibility .22s, transform .22s;
}
#sbTopBtn.on { opacity: 1; visibility: visible; transform: translateY(0); }
#sbTopBtn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(212,0,200,.42); }
#sbTopBtn:active { transform: translateY(0); }
#sbTopBtn svg { width: 22px; height: 22px; display: block; }
#sbTopBtn .tip {
  position: absolute; right: calc(100% + 9px); top: 50%; transform: translateY(-50%);
  background: var(--ink-900); color: #fff; font-size: 12px; font-weight: 500;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .18s;
}
#sbTopBtn:hover .tip { opacity: 1; }
@media (max-width: 460px) {
  #sbTopBtn { width: 42px; height: 42px; right: 13px; bottom: 15px; }
  #sbTopBtn svg { width: 19px; height: 19px; }
}

@media print {
  .header, .topbar, .footer, .drawer, .toast-wrap { display: none !important; }
}
