/* =========================================================
   星尚Diy商城系统  —  Apple 风格设计系统（浅色系 · 独立视觉）
   中性灰阶 + 冷静蓝强调色 · 无鲜艳渐变 · 干净背景 · 弹簧动画
   ========================================================= */
:root {
  --primary: #0071e3;
  --primary-strong: #0058b9;
  --primary-soft: rgba(0, 113, 227, 0.10);
  --primary-soft-2: rgba(0, 113, 227, 0.16);
  --bg: #fbfbfd;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(246, 246, 249, 0.92);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --green: #34c759;
  --red: #ff3b30;
  --amber: #ff9f0a;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-press: 0 1px 3px rgba(0, 0, 0, 0.10);
  --blur: blur(20px) saturate(160%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  /* Apple 弹簧缓动 */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.42s;
  /* DIY 装修变量（默认为干净 Apple 渐变，无图片） */
  --bg-blur: 0px;
  --bg-image: radial-gradient(125% 125% at 50% 0%, #ffffff 0%, #f5f5f7 55%, #eceef3 100%);
  --bg-image-op: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* DIY 背景图图层（模糊 + 柔和叠加） */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center 25%;
  filter: blur(var(--bg-blur));
  opacity: var(--bg-image-op);
  z-index: -1;
  pointer-events: none;
  transition: .3s;
}
/* 浅色底层保证可读性 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(251, 251, 253, 0.35);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- boot ---------- */
.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--text-2); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px;
  font-size: 14px; font-weight: 560; color: var(--text); background: var(--bg-2);
  transition: transform .12s ease, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, .30); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(124, 92, 255, .36); }
.btn-ghost { background: transparent; border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: rgba(229, 77, 77, .08); color: var(--red); border-color: rgba(229, 77, 77, .20); }
.btn-danger:hover { background: rgba(229, 77, 77, .14); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 540; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-family: inherit;
  transition: border .2s, box-shadow .2s; box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.12); background: #fff; }
.textarea { resize: vertical; min-height: 90px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239898aa' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 560; }
.tag.gray { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.tag.green { background: rgba(34, 181, 115, .10); color: var(--green); }
.tag.red { background: rgba(229, 77, 77, .08); color: var(--red); }
.tag.amber { background: rgba(229, 149, 0, .10); color: var(--amber); }

/* switch */
.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #dddfe8; border-radius: 999px; transition: .25s; border: none; }
.switch .track::before { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 2.5px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(19px); }

/* ---------- app shell (admin) ---------- */
.app { display: flex; height: 100vh; width: 100vw; overflow: hidden; }
.sidebar {
  width: 248px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); backdrop-filter: var(--blur);
  padding: 18px 14px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 6px 18px rgba(124,92,255,.28); }
.brand .name { font-size: 16px; font-weight: 700; letter-spacing: .3px; color: var(--text); }
.brand .sub { font-size: 11px; color: var(--text-3); }
.nav-group { margin-bottom: 6px; }
.nav-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; padding: 12px 12px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-size: 14px; font-weight: 520; transition: .15s; cursor: pointer; margin-bottom: 2px; }
.nav-item .ico { font-size: 17px; width: 20px; text-align: center; }
.nav-item:hover { background: var(--primary-soft); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 620; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 66px; flex-shrink: 0; display: flex; align-items: center; gap: 16px;
  padding: 0 26px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .70); backdrop-filter: var(--blur);
}
.topbar h1 { font-size: 18px; font-weight: 680; color: var(--text); }
.topbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 13px; width: 280px; color: var(--text-3); }
.search input { background: none; border: none; outline: none; color: var(--text); font-size: 14px; width: 100%; font-family: inherit; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #5ad1e6); display: grid; place-items: center; font-weight: 700; color: #fff; cursor: pointer; border: 2px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.content { flex: 1; overflow-y: auto; padding: 26px; background: transparent; }

/* ---------- storefront ---------- */
.store-header {
  height: 66px; flex-shrink: 0; display: flex; align-items: center; gap: 22px;
  padding: 0 32px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .72); backdrop-filter: var(--blur); position: sticky; top: 0; z-index: 20;
}
.store-header .brand .name { font-size: 17px; }
.store-nav { display: flex; gap: 6px; }
.store-nav a { padding: 8px 14px; border-radius: 11px; color: var(--text-2); font-size: 14px; font-weight: 540; transition: .15s; }
.store-nav a:hover { background: var(--primary-soft); color: var(--text); }
.store-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.store-content { flex: 1; overflow-y: auto; }
.hero {
  margin: 28px 32px 0; border-radius: var(--radius-lg); padding: 44px 40px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(124,92,255,.12), rgba(90,209,230,.08)), var(--bg-2);
  border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.hero h2 { font-size: 32px; font-weight: 760; letter-spacing: .5px; margin-bottom: 10px; color: var(--text); }
.hero p { color: var(--text-2); font-size: 15px; max-width: 560px; line-height: 1.7; }
.hero .cta { margin-top: 22px; display: flex; gap: 12px; }
.hero .glow { position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.20), transparent 70%); filter: blur(20px); }

.section { padding: 30px 32px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h3 { font-size: 20px; font-weight: 700; color: var(--text); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; cursor: pointer; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.02); }
.chip:hover { color: var(--text); border-color: var(--border-strong); background: #fff; }
.chip.active { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pcard { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; cursor: pointer; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.pcard:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 8px 28px rgba(0,0,0,.10); }
.pcard .thumb { height: 130px; display: grid; place-items: center; font-size: 52px; position: relative; background: linear-gradient(135deg, #f0eeff, #e8f4fd); }
.pcard .body { padding: 14px 15px 16px; }
.pcard .pname { font-size: 15px; font-weight: 620; margin-bottom: 4px; line-height: 1.35; color: var(--text); }
.pcard .psub { font-size: 12px; color: var(--text-3); margin-bottom: 12px; height: 30px; overflow: hidden; }
.pcard .pfoot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 19px; font-weight: 720; color: var(--primary); }
.price .cur { font-size: 13px; }
.price.old { color: var(--text-3); font-weight: 500; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.sales { font-size: 12px; color: var(--text-3); }

/* product detail */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 32px; padding: 30px 32px; }
.detail .gallery { border-radius: var(--radius-lg); height: 340px; display: grid; place-items: center; font-size: 120px; border: 1px solid var(--border); background: linear-gradient(135deg, #f0eeff, #e8f4fd); }
.detail .info h2 { font-size: 26px; font-weight: 740; margin-bottom: 6px; color: var(--text); }
.detail .info .sub { color: var(--text-2); margin-bottom: 18px; }
.pricetag { display: flex; align-items: baseline; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.pricetag .big { font-size: 34px; font-weight: 760; color: var(--primary); }
.opt-block { margin-bottom: 18px; }
.opt-block > .lbl { font-size: 13px; color: var(--text-2); margin-bottom: 9px; font-weight: 560; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: .15s; }
.opt-row:hover { border-color: var(--border-strong); background: #fff; }
.opt-row.sel { border-color: var(--primary); background: var(--primary-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--bg-2); }
.qty button { width: 38px; height: 38px; background: transparent; color: var(--text); font-size: 18px; border: none; }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 54px; text-align: center; background: none; border: none; color: var(--text); font-size: 15px; font-family: inherit; }
.buybar { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 16px 0 4px; background: linear-gradient(to top, rgba(248,247,252,.85), transparent); }

/* ---------- cards / panels ---------- */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; font-weight: 660; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.stat .ico { font-size: 22px; margin-bottom: 10px; }
.stat .num { font-size: 28px; font-weight: 760; letter-spacing: .5px; color: var(--text); }
.stat .lbl { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-soft); }

/* table */
.table-wrap { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.02); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; padding: 14px 16px; color: var(--text-3); font-weight: 560; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); background: rgba(245,244,250,.6); }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--primary-soft); }
td .mini { font-size: 12px; color: var(--text-3); }
.actions { display: flex; gap: 8px; }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-strong)); border-radius: 8px 8px 0 0; position: relative; min-height: 4px; transition: .3s; }
.bar:hover { filter: brightness(1.08); opacity: .88; }
.bar::after { content: attr(data-v); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-2); }

/* ---------- modal ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(620px, 92vw); max-height: 88vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-2); z-index: 2; }
.modal-head h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: rgba(245,244,250,.4); }
.x { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 18px; display: grid; place-items: center; transition: .15s; }
.x:hover { background: var(--border); color: var(--text); }

/* ---------- toast ---------- */
#toast-root { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 13px; padding: 12px 20px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.10); animation: slidein .3s; display: flex; align-items: center; gap: 9px; }
.toast.ok { border-color: rgba(34,181,115,.45); }
.toast.err { border-color: rgba(229,77,77,.45); }
@keyframes slidein { from { transform: translateY(-16px); opacity: 0; } }

/* misc */
.empty { text-align: center; color: var(--text-3); padding: 60px 0; }
.muted { color: var(--text-3); }
.center-col { max-width: 420px; margin: 0 auto; padding-top: 8vh; }
.login-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.login-card h2 { font-size: 24px; font-weight: 740; margin-bottom: 6px; text-align: center; color: var(--text); }
.login-card .sub { text-align: center; color: var(--text-2); margin-bottom: 26px; }
.tabs { display: flex; gap: 8px; background: var(--surface-2); padding: 5px; border-radius: 13px; margin-bottom: 22px; border: 1px solid var(--border); }
.tabs button { flex: 1; border: none; background: none; color: var(--text-2); padding: 9px; border-radius: 9px; font-size: 14px; font-weight: 560; }
.tabs button.active { background: var(--primary); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.banner { background: linear-gradient(120deg, var(--primary-soft), transparent); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; }
.banner .ico { font-size: 20px; }
.coupongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.coupon { border: 1px dashed var(--primary); border-radius: var(--radius); padding: 16px; background: var(--primary-soft); position: relative; }
.coupon .v { font-size: 26px; font-weight: 760; color: var(--primary); }
.footer-bar { text-align: center; color: var(--text-3); font-size: 13px; padding: 30px; border-top: 1px solid var(--border); margin-top: 30px; }

/* responsive */
@media (max-width: 880px) {
  .sidebar { width: 70px; }
  .brand .name, .brand .sub, .nav-item span, .nav-label, .sidebar-foot span { display: none; }
  .detail { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .search { width: 160px; }
  .store-nav { display: none; }
  .diy-studio { grid-template-columns: 1fr; }
  .diy-preview-wrap { position: static; }
}

/* ===== DIY 在线客服浮窗 ===== */
#service-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
#service-fab .fab {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--primary); color: #fff; font-size: 22px; box-shadow: 0 6px 20px rgba(124,92,255,.30);
  display: grid; place-items: center; transition: .2s;
}
#service-fab .fab:hover { transform: scale(1.08); }
#service-fab .panel {
  position: absolute; right: 0; bottom: 66px; width: 260px; padding: 18px;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: var(--blur); display: none; animation: pop .2s;
}
#service-fab.open .panel { display: block; }
#service-fab .pt { font-weight: 700; margin-bottom: 12px; color: var(--text); }
#service-fab .prow { font-size: 14px; color: var(--text-2); margin: 8px 0; }
#service-fab .prow b { color: var(--text); }
#service-fab .phint { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ===== 购物车角标 ===== */
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ===== 手续费提示行 ===== */
.fee-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.fee-line b { color: var(--amber); }

/* ===== 后台 DIY 装修工作室 ===== */
.diy-studio { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.diy-forms { display: flex; flex-direction: column; gap: 18px; }
.diy-preview-wrap { position: sticky; top: 18px; }
.diy-preview {
  padding: 18px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.diy-savebar { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; padding: 3px; cursor: pointer; }
.color-row .input { flex: 1; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.range-row .rv { min-width: 52px; text-align: right; font-size: 13px; color: var(--text-2); }

/* 实时预览迷你商城 */
.pv-logo { font-size: 34px; }
.pv-name { font-size: 18px; font-weight: 700; margin-top: 6px; color: var(--text); }
.pv-sub { font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.pv-product { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.pv-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--primary-soft); display: grid; place-items: center; font-size: 26px; }
.pv-info { flex: 1; }
.pv-pname { font-size: 14px; font-weight: 600; color: var(--text); }
.pv-price { color: var(--primary); font-weight: 700; font-size: 15px; }
.pv-btn { width: 100%; height: 42px; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.pv-fab { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.diy-preview { position: relative; overflow: hidden; }

/* =========================================================
   购物车抽屉 (Cart Drawer)
   ========================================================= */
.cart-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.cart-drawer.open { display: block; }
.cd-mask { position: absolute; inset: 0; background: rgba(20, 18, 40, 0.35); backdrop-filter: blur(2px); animation: fade .2s ease; }
.cd-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--surface-2); backdrop-filter: var(--blur);
  box-shadow: -10px 0 40px rgba(0,0,0,.16); display: flex; flex-direction: column;
  animation: slideIn .26s cubic-bezier(.22,.61,.36,1);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cd-head h3 { font-size: 17px; font-weight: 700; }
.cd-close { border: none; background: transparent; font-size: 22px; color: var(--text-2); cursor: pointer; line-height: 1; }
.cd-list { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-drawer .empty { text-align: center; color: var(--text-3); padding: 60px 20px; }
.cart-drawer .empty .big { font-size: 44px; margin-bottom: 10px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line .cl-ico { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--primary-soft); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-line .cl-acc { font-size: 11px; color: var(--primary-strong); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.cart-line .cl-price { font-weight: 700; color: var(--primary); font-size: 14px; margin-top: 4px; white-space: nowrap; }
.cart-line .cl-ops { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cart-line .cl-rm { border: none; background: transparent; color: var(--text-3); cursor: pointer; font-size: 16px; }
.cart-line .qty { transform: scale(.86); transform-origin: right center; }
.cart-line .qty span, .cart-line .qty input { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-line .qty input { width: 32px; }
.cd-foot { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.cd-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cd-total .lbl { font-size: 13px; color: var(--text-2); }
.cd-total .amt { font-size: 22px; font-weight: 800; color: var(--text); }
.cd-total .amt b { color: var(--primary); }
.cd-checkout { width: 100%; height: 48px; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.cd-checkout:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
   DIY 自定义商品 · 配件选择
   ========================================================= */
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.section-title b { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.section-title span { font-size: 17px; font-weight: 700; color: var(--text); }
.section-title small { color: var(--text-2); font-size: 13px; margin-left: auto; }
.opt-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.accessory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.accessory { display: block; padding: 13px 14px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: .15s; user-select: none; position: relative; }
.accessory:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.accessory.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 4px 16px var(--primary-soft); }
.accessory .acc-row { display: flex; align-items: center; gap: 10px; }
.accessory .acc-ico { font-size: 22px; flex-shrink: 0; }
.accessory .acc-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25; }
.accessory .acc-price { font-size: 12px; color: var(--primary-strong); font-weight: 700; white-space: nowrap; }
.accessory .acc-more { flex-shrink: 0; font-size: 11px; padding: 3px 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; cursor: pointer; transition: .15s; }
.accessory .acc-more:hover { border-color: var(--primary); color: var(--primary-strong); }
.accessory .acc-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease, margin .2s ease, padding .2s ease; font-size: 12.5px; line-height: 1.6; color: var(--text); }
.accessory.expanded .acc-detail { max-height: 320px; opacity: 1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.accessory.selected::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; }
.accessory.has-detail.selected::after { right: 56px; }

/* ---------- 支付前电子账单 ---------- */
.bill-card { width: min(560px, 94vw); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.10); }
.bill-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.bill-logo { font-size: 34px; }
.bill-title { font-size: 17px; font-weight: 800; color: var(--text); }
.bill-no { font-size: 12px; color: var(--text-3, #888); margin-top: 2px; }
.bill-top .tag { margin-left: auto; }
.bill-items { padding: 6px 0; }
.bill-line { padding: 12px 0; border-bottom: 1px solid var(--border); }
.bill-line:last-child { border-bottom: none; }
.bl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bl-name { font-weight: 700; font-size: 14px; color: var(--text); }
.bl-total { font-weight: 800; color: var(--primary-strong); white-space: nowrap; }
.bl-sub { font-size: 12px; color: var(--text-3, #999); margin-top: 3px; }
.bill-acc { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3, #777); margin-top: 5px; padding-left: 8px; }
.bill-sum { padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.bs-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text); padding: 4px 0; }
.bs-row .c-green { color: #16a34a; }
.bs-total { font-weight: 800; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.bs-total .big { font-size: 20px; color: var(--primary-strong); }
.bill-meta { padding: 14px 0 4px; }
.bill-meta > div { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3, #888); padding: 3px 0; }
.bill-meta > div b { color: var(--text); font-weight: 600; }
.dlv-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary-strong); }
.dlv-tag.physical { background: rgba(34,181,115,.12); color: var(--green); }

/* =========================================================
   在线客服浮窗 (前台)
   ========================================================= */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 24px; box-shadow: var(--shadow); display: grid; place-items: center; transition: .2s; }
.fab:hover { transform: scale(1.06); }
.chat-win { position: fixed; right: 22px; bottom: 90px; z-index: 81; width: min(340px, 92vw); height: min(480px, 78vh); background: var(--surface-2); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden; }
#service-fab.open .chat-win { display: flex; animation: slideUp .25s cubic-bezier(.22,.61,.36,1); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--primary); color: #fff; }
.cw-head .cw-ava { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 18px; }
.cw-head .cw-name { font-weight: 700; font-size: 15px; }
.cw-head .cw-status { font-size: 11px; opacity: .85; }
.cw-head .cw-close { margin-left: auto; border: none; background: transparent; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.cw-info { padding: 8px 14px; font-size: 11px; color: var(--text-2); background: rgba(124,92,255,.06); }
.cw-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cw-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.cw-input input { flex: 1; height: 40px; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; font-size: 14px; background: var(--bg-2); }
.cw-input input:focus { outline: none; border-color: var(--primary); }
.cw-input button { width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; font-size: 16px; }
.cw-meta { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 0; font-size: 11px; color: var(--text-3); background: var(--surface); }
.cw-meta #cw-limit.warn, .cw-meta #cw-limit { color: var(--text-3); }
.order-summary { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.order-summary .opt-row { padding: 4px 0; }

/* =========================================================
   后台 · 在线客服控制台
   ========================================================= */
.support-grid { display: grid; grid-template-columns: 300px 1fr; gap: 0; min-height: 60vh; }
.support-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 66vh; }
.sup-row { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .15s; }
.sup-row:hover { background: var(--surface); }
.sup-row.active { background: var(--primary-soft); }
.sup-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-name { font-weight: 700; font-size: 14px; color: var(--text); }
.sup-last { font-size: 12.5px; color: var(--text-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-time { font-size: 11px; margin-top: 3px; }
.support-detail { display: flex; flex-direction: column; min-height: 0; }
.sup-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sup-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 52vh; }
.sup-msg { display: flex; flex-direction: column; gap: 3px; max-width: 76%; }
.sup-msg.user { align-self: flex-start; }
.sup-msg.agent { align-self: flex-end; align-items: flex-end; }
.sup-msg .bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.sup-msg.user .bubble { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.sup-msg.agent .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.sup-bar { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.sup-bar .field { flex: 1; margin: 0; }
.sup-bar .field input { border-radius: 999px; }
.tag.red { background: var(--red); color: #fff; }

/* ---------- Markdown 富文本编辑器 ---------- */
.md-editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.md-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.md-toolbar button { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; padding: 5px 9px; font-size: 13px; cursor: pointer; line-height: 1; }
.md-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.md-color-btn { display: inline-flex; align-items: center; gap: 4px; }
.md-color-pop { position: absolute; z-index: 30; margin-top: 4px; left: 10px; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.md-color-pop .md-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.md-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.md-swatch:hover { transform: scale(1.12); }
.md-custom { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.md-custom input[type=color] { width: 28px; height: 26px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: none; cursor: pointer; }
.md-spacer { flex: 1; }
.md-toolbar { position: relative; }
.md-prev-toggle { margin-left: auto; }
.md-body { display: grid; grid-template-columns: 1fr; }
.md-body .md-input { width: 100%; min-height: 200px; border: 0; padding: 14px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; background: var(--bg); color: var(--text); outline: none; }
.md-body .md-preview { display: none; padding: 14px; min-height: 200px; overflow: auto; background: var(--bg); }
.md-editor.show-preview .md-body { grid-template-columns: 1fr 1fr; }
.md-editor.show-preview .md-preview { display: block; border-left: 1px solid var(--border); }

/* ---------- Markdown 渲染结果 ---------- */
.md-render { color: var(--text); font-size: 14px; line-height: 1.7; word-break: break-word; }
.md-render h1, .md-render h2, .md-render h3, .md-render h4, .md-render h5, .md-render h6 { line-height: 1.3; margin: 0.6em 0 0.4em; color: var(--text); }
.md-render h1 { font-size: 1.5em; } .md-render h2 { font-size: 1.32em; } .md-render h3 { font-size: 1.15em; }
.md-render p { margin: 0.5em 0; }
.md-render ul, .md-render ol { margin: 0.5em 0; padding-left: 1.4em; }
.md-render li { margin: 0.2em 0; }
.md-render a { color: var(--primary); text-decoration: underline; }
.md-render blockquote { margin: 0.6em 0; padding: 0.5em 0.9em; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 8px; color: var(--text-2); }
.md-render code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; font-size: 0.9em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.md-render pre.md-pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow: auto; }
.md-render pre.md-pre code { border: 0; padding: 0; background: none; }
.md-render mark { background: #fff3a3; color: inherit; padding: 0 2px; border-radius: 3px; }
.md-render hr { border: 0; border-top: 1px solid var(--border); margin: 1em 0; }
.md-render del { opacity: 0.65; }

/* ---------- 人机验证滑块 ---------- */
.human-check { margin: 6px 0 12px; user-select: none; }
.hc-track { position: relative; height: 44px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hc-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--primary-soft); }
.hc-knob { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; display: grid; place-items: center; cursor: grab; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hc-knob:active { cursor: grabbing; }
.hc-tip { position: relative; z-index: 1; font-size: 13px; color: var(--text-3); pointer-events: none; }
.human-check.passed .hc-track { border-color: var(--primary); }
.human-check.passed .hc-fill { background: var(--primary); }
.human-check.passed .hc-knob { background: #2bb673; }
.human-check.passed .hc-tip { color: #fff; font-weight: 600; }

/* =========================================================
   Apple 风格强化（覆盖默认鲜艳渐变 · 独立视觉）
   ========================================================= */

/* 实心按钮，去除彩虹渐变 */
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(0,113,227,.28); border-color: transparent; }
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 6px 18px rgba(0,113,227,.34); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.975); box-shadow: var(--shadow-press); }
.btn:active { transform: scale(.975); }
.btn-ghost:hover { background: var(--surface-2); }

/* 品牌标识 / 头像 实心蓝 */
.brand .logo { background: var(--primary); box-shadow: 0 6px 18px rgba(0,113,227,.26); }
.avatar { background: var(--primary); box-shadow: 0 2px 8px rgba(0,113,227,.18); }

/* 图片型 Logo / favicon 预览（URL 渲染为图片时约束尺寸） */
.brand .logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; background: transparent; box-shadow: none; }
.bill-logo img { width: 36px; height: 36px; object-fit: contain; }
.pv-logo img { width: 40px; height: 40px; object-fit: contain; }
/* DIY 设置里的图片选择器预览 */
.img-pick-preview img { width: 100%; height: 100%; object-fit: contain; }

/* Hero：干净白卡 + 极淡蓝色高光，无紫渐变 */
.hero { background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hero .glow { background: radial-gradient(circle, rgba(0,113,227,.14), transparent 70%); }

/* 商品缩略图 / 详情图：中性浅灰，不再紫蓝渐变 */
.pcard .thumb { background: linear-gradient(160deg, #f4f5f7, #e9ebef); }
.detail .gallery { background: linear-gradient(160deg, #f4f5f7, #e9ebef); }

/* 统计卡角标：极淡中性 */
.stat::after { background: rgba(0,0,0,.025); }

/* 图表柱状：实心蓝 */
.bar { background: var(--primary); border-radius: 8px 8px 0 0; }
.bar:hover { filter: brightness(1.06); }

/* 弹窗 / 抽屉 / 客服窗：统一 Apple 弹簧缓动 */
.modal { animation: pop .34s var(--ease) both; }
.cd-panel { animation: slideIn .4s var(--ease) both; }
#service-fab.open .chat-win { animation: slideUp .36s var(--ease) both; }
@keyframes pop { from { transform: scale(.92) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- SVG 图标尺寸（App.icon 输出） ---------- */
.ico svg, .icon svg, .nav-item .ico svg, .stat .ico svg, .banner .ico svg,
.cart-link svg, .store-nav svg, .topbar svg, .search svg, .fab svg, .cd-close svg {
  width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.16em;
}
.nav-item .ico { display: inline-flex; align-items: center; justify-content: center; }
.stat .ico { line-height: 1; }

/* ---------- 入场动画（内容淡入上浮） ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.section, .card, .stat, .banner, .bill-card, .pcard { animation: enter .5s var(--ease-out) both; }
.grid .pcard { animation-delay: calc(var(--i, 0) * 40ms); }
.pcard:nth-child(1) { --i: 0; } .pcard:nth-child(2) { --i: 1; }
.pcard:nth-child(3) { --i: 2; } .pcard:nth-child(4) { --i: 3; }
.pcard:nth-child(5) { --i: 4; } .pcard:nth-child(6) { --i: 5; }
.pcard:nth-child(7) { --i: 6; } .pcard:nth-child(8) { --i: 7; }
.pcard:nth-child(n+9) { --i: 8; }

/* 切换路由时内容整体淡入 */
.content > *:first-child, .store-content > *:first-child { animation: enter .45s var(--ease-out) both; }

/* ---------- 关注减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
