/* ===========================================================
   蒸汽选品商城 · 前台样式
   =========================================================== */

:root {
  --bg: #08080f;
  --bg-2: #0e0e18;
  --card: #14141f;
  --card-2: #1a1a28;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --txt: #eceaf5;
  --muted: #9b98b0;
  --brand: #7c5cff;
  --brand-2: #29e0ff;
  --pink: #ff5ea8;
  --ok: #35d07f;
  --warn: #ffb020;
  --bad: #ff5b6e;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(800px 460px at 92% 0%, rgba(41, 224, 255, .14), transparent 62%),
    var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.main { padding: 26px 20px 90px; min-height: 50vh; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 15, .78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--pink));
  box-shadow: 0 8px 20px -8px var(--brand);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; letter-spacing: .3px; }
.brand-text small { font-size: 11px; color: var(--muted); }

.top-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  padding: 8px 12px; border-radius: 10px; font-size: 13.5px;
  color: var(--muted); white-space: nowrap; transition: .18s;
}
.top-nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.top-nav a.on { color: #fff; background: rgba(124, 92, 255, .22); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .45); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hello { font-size: 12.5px; color: var(--muted); }

.ghost-btn, .solid-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 11px; font-size: 13.5px; padding: 9px 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--txt); transition: .18s; white-space: nowrap;
}
.ghost-btn:hover { background: rgba(255, 255, 255, .1); }
.solid-btn {
  border: none; color: #fff;
  background: linear-gradient(135deg, var(--brand), #a855f7 55%, var(--pink));
  box-shadow: 0 12px 26px -14px var(--brand);
}
.solid-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.solid-btn:disabled { opacity: .6; cursor: default; transform: none; }
.big-btn { padding: 12px 22px; font-size: 14.5px; border-radius: 13px; }
.block { width: 100%; }
.cart-link { position: relative; }
.cart-badge {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}

/* ---------------- Hero ---------------- */
.hero { padding: 46px 0 12px; }
.hero-inner { display: grid; grid-template-columns: 1.35fr .8fr; gap: 34px; align-items: center; }
.pill {
  display: inline-block; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  color: #d9d2ff; background: rgba(124, 92, 255, .16);
  border: 1px solid rgba(124, 92, 255, .38);
}
.hero h1 {
  font-size: clamp(26px, 4vw, 42px); line-height: 1.18; margin: 16px 0 12px;
  letter-spacing: -.5px;
  background: linear-gradient(100deg, #fff 18%, #c9b8ff 62%, #8ef0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 15px; margin: 0 0 16px; max-width: 46ch; }
.hero-pts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-pts span {
  font-size: 12.5px; color: #cfcaf0; padding: 7px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
}
.notice {
  font-size: 13px; color: #ffe6a8; background: rgba(255, 176, 32, .1);
  border: 1px solid rgba(255, 176, 32, .3); border-radius: 12px; padding: 10px 14px;
  display: inline-block;
}
.hero-stats {
  display: grid; gap: 12px; padding: 22px;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124, 92, 255, .16), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
}
.hero-stats div { display: flex; align-items: baseline; gap: 10px; }
.hero-stats strong { font-size: 26px; letter-spacing: -.5px; }
.hero-stats span { color: var(--muted); font-size: 13px; }

.cat-hero { padding: 30px 0 6px; }
.cat-hero h1 { margin: 8px 0 4px; font-size: 30px; }
.crumb { font-size: 12.5px; color: var(--muted); }
.crumb a:hover { color: var(--brand-2); }
.crumb span { color: #cfcaf0; }

/* ---------------- 栏目 chips ---------------- */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 20px 4px; }
.chip {
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .03);
  transition: .18s;
}
.chip:hover { color: var(--txt); border-color: rgba(124, 92, 255, .5); }
.chip.on {
  color: #fff; background: linear-gradient(120deg, rgba(124, 92, 255, .9), rgba(255, 94, 168, .8));
  border-color: transparent;
}

/* ---------------- 商品货架 ---------------- */
.shelf { margin: 34px 0 8px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shelf-head h2 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 9px; }
.shelf-ico {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(124, 92, 255, .18); font-size: 14px;
}
.link-btn { background: none; border: none; color: var(--brand-2); font-size: 12.5px; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), #11111b);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s;
}
.card:hover { border-color: rgba(124, 92, 255, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.card.picked { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2), 0 16px 34px -22px var(--brand-2); }

.pick {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(8, 8, 15, .72); border: 1px solid var(--line-2);
  cursor: pointer; backdrop-filter: blur(4px);
}
.pick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-ui {
  width: 13px; height: 13px; border-radius: 4px; border: 1.6px solid #7c7a90; transition: .15s;
}
.pick input:checked + .pick-ui {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; box-shadow: 0 0 12px rgba(41, 224, 255, .6);
}

.badge-hot, .badge-off {
  position: absolute; z-index: 3; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 7px; letter-spacing: .3px;
}
.badge-hot { top: 10px; right: 10px; background: linear-gradient(120deg, #ff5ea8, #ff7a45); color: #fff; }
.badge-off { top: 40px; right: 10px; background: rgba(53, 208, 127, .16); color: #6ef0ab; border: 1px solid rgba(53, 208, 127, .4); }

.card-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #0c0c14; }
.thumb, .big-thumb, .mini-thumb .thumb { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 20% 0%, hsla(var(--h, 260), 85%, 62%, .55), transparent 60%),
    linear-gradient(160deg, hsla(var(--h, 260), 70%, 30%, .9), #0b0b13);
}
.thumb-ph span {
  font-size: 42px; font-weight: 800; color: rgba(255, 255, 255, .86);
  text-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.big-thumb { aspect-ratio: 1/1; border-radius: 20px; }

.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.card-body h3 a:hover { color: var(--brand-2); }
.card-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { color: #ff8ac0; font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.price-row.big .price { font-size: 30px; }
.price-row .old { color: #6f6c85; font-size: 12.5px; }
.sales { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.specs {
  margin: 0; font-size: 11.5px; color: #a7a3c0;
  background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2);
  padding: 5px 9px; border-radius: 8px; width: fit-content;
}

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2);
  border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .03);
}
.qty button {
  width: 28px; height: 34px; border: none; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; transition: .15s;
}
.qty button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.qty input {
  width: 38px; height: 34px; border: none; background: transparent; color: var(--txt);
  text-align: center; font-size: 13.5px; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-btn {
  flex: 1; border: 1px solid rgba(124, 92, 255, .5); border-radius: 10px;
  background: rgba(124, 92, 255, .16); color: #d7ccff; font-size: 13px; padding: 0 10px;
  height: 34px; transition: .18s;
}
.add-btn:hover { background: rgba(124, 92, 255, .32); color: #fff; }

/* ---------------- 批量条 ---------------- */
.bulk-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 45; width: min(860px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(18, 18, 30, .94); border: 1px solid rgba(124, 92, 255, .45);
  box-shadow: 0 22px 50px -20px #000; backdrop-filter: blur(12px);
  animation: rise .22s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.bulk-info { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.bulk-info b { color: #ff8ac0; }
.bulk-actions { display: flex; gap: 8px; }

/* ---------------- 详情页 ---------------- */
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; margin: 18px 0 10px; }
.detail-media {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card); align-self: start; max-width: 520px;
}
.detail-info h1 { font-size: 26px; margin: 6px 0 8px; line-height: 1.3; }
.detail-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.detail-spec {
  display: flex; gap: 12px; font-size: 13.5px; padding: 10px 14px; margin-bottom: 12px;
  background: rgba(255, 255, 255, .04); border-radius: 12px; border: 1px solid var(--line);
}
.detail-spec span { color: var(--muted); }
.detail-desc { font-size: 13.5px; color: #c4c0d8; line-height: 1.8; margin-bottom: 18px; }
.detail-info .card-actions { gap: 10px; }
.usp { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 7px; font-size: 13px; color: var(--muted); }

/* ---------------- 购物车 ---------------- */
.page-head { margin: 8px 0 20px; }
.page-head h1 { font-size: 25px; margin: 0 0 6px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; font-size: 12.5px; flex-wrap: wrap; }
.steps li {
  padding: 5px 12px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.steps li.done { color: #9df5c8; border-color: rgba(53, 208, 127, .35); }
.steps li.on { color: #fff; background: rgba(124, 92, 255, .28); border-color: rgba(124, 92, 255, .6); }

.cart-list {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card);
}
.cart-row {
  display: grid; grid-template-columns: 62px 1fr 100px 116px 110px 44px;
  align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-head-row { font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.cbx { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.cbx input { accent-color: var(--brand); width: 15px; height: 15px; }
.cart-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mini-thumb { width: 54px; height: 54px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.cart-title { font-size: 14px; font-weight: 600; display: block; margin-bottom: 3px; }
.cart-title:hover { color: var(--brand-2); }
.cart-price { font-size: 14px; color: #cfcaf0; }
.cart-sub { font-size: 15px; font-weight: 700; color: #ff8ac0; }
.del-btn {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 13px;
}
.del-btn:hover { color: var(--bad); border-color: rgba(255, 91, 110, .5); }

.cart-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(124, 92, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); flex-wrap: wrap;
}
.cart-total { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.cart-total strong { font-size: 24px; color: #ff8ac0; letter-spacing: -.5px; }

/* ---------------- 结算 ---------------- */
.checkout-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 20px; align-items: start; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: var(--card);
}
.panel-title { font-size: 16px; margin: 0 0 16px; }
.narrow { max-width: 460px; }
.auth-panel h1 { font-size: 24px; margin: 0 0 6px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field label i { color: var(--pink); font-style: normal; }
.field input, .field textarea, .field select,
.query-box input, .chat-form input {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--txt); font-size: 14px; transition: .18s; outline: none;
}
.field input:focus, .field textarea:focus, .query-box input:focus {
  border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
.field textarea { resize: vertical; }

.summary-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.summary-list li { display: flex; align-items: center; gap: 10px; }
.sum-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.sum-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sum-info b { font-size: 13px; font-weight: 600; }
.sum-price { font-size: 13.5px; color: #ff8ac0; font-weight: 700; }
.sum-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted); padding: 9px 0; border-top: 1px dashed var(--line);
}
.sum-row.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 14px; color: var(--txt); }
.sum-row.total strong { font-size: 24px; color: #ff8ac0; }
.row-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------------- 订单列表 ---------------- */
.order-list { display: grid; gap: 12px; }
.order-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px;
}
.order-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.order-no b { color: #cfcaf0; letter-spacing: .5px; }
.order-amount { margin-left: auto; font-weight: 800; color: #ff8ac0; font-size: 16px; }
.order-body { margin: 10px 0; display: grid; gap: 4px; }
.order-foot { border-top: 1px dashed var(--line); padding-top: 10px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-2); }
.tag.ok { color: #8ef0bc; border-color: rgba(53, 208, 127, .4); background: rgba(53, 208, 127, .12); }
.tag.warn { color: #ffd98a; border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .12); }
.tag.bad { color: #ff9aa6; border-color: rgba(255, 91, 110, .4); background: rgba(255, 91, 110, .12); }

.query-box { display: flex; gap: 10px; max-width: 520px; margin-bottom: 20px; }
.query-box input { flex: 1; }

.kv { display: grid; grid-template-columns: 76px 1fr; gap: 10px 14px; font-size: 13.5px; margin: 0 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------------- 提示 ---------------- */
.flash-wrap { margin-top: 14px; }
.flash {
  padding: 11px 15px; border-radius: 12px; font-size: 13.5px; margin-bottom: 8px;
  background: rgba(53, 208, 127, .14); border: 1px solid rgba(53, 208, 127, .38); color: #9df5c8;
}
.flash.warn { background: rgba(255, 176, 32, .13); border-color: rgba(255, 176, 32, .4); color: #ffd98a; }
.flash.bad { background: rgba(255, 91, 110, .13); border-color: rgba(255, 91, 110, .4); color: #ff9aa6; }
.alert {
  padding: 14px 18px; border-radius: 13px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.8;
  background: rgba(255, 91, 110, .12); border: 1px solid rgba(255, 91, 110, .38); color: #ffb3bc;
}
.empty {
  padding: 46px 20px; text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .02);
}
.empty.big { padding: 70px 20px; }
.empty .solid-btn { margin-top: 16px; }

.toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -16px);
  z-index: 90; padding: 11px 18px; border-radius: 12px; font-size: 13.5px;
  background: rgba(24, 24, 36, .96); border: 1px solid rgba(124, 92, 255, .5);
  color: #e9e6ff; box-shadow: 0 20px 40px -18px #000; opacity: 0; transition: .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255, 91, 110, .6); color: #ffb3bc; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px;
  background: rgba(255, 255, 255, .015);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-inner p { margin: 6px 0 0; font-size: 12.5px; max-width: 60ch; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer-links a:hover { color: var(--brand-2); }

/* ---------------- 客服浮窗 ---------------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.chat-fab {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  border: none; color: #fff; font-size: 23px;
  background: linear-gradient(140deg, var(--brand), var(--pink));
  box-shadow: 0 16px 34px -12px rgba(124, 92, 255, .9), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  display: grid; place-items: center; transition: .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bad); border: 2px solid #0b0b14;
}
.chat-dot.ping { animation: ping 1.1s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 110, .7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 91, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 91, 110, 0); }
}

.chat-panel {
  position: absolute; right: 0; bottom: 70px; width: min(368px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #16161f, #0f0f18);
  box-shadow: 0 30px 70px -24px #000;
  animation: rise2 .2s ease-out;
}
@keyframes rise2 { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(124, 92, 255, .28), rgba(255, 94, 168, .16));
}
.chat-head strong { font-size: 14.5px; display: block; }
.chat-head small { font-size: 11.5px; color: #cfc7ee; }
.chat-close {
  width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .2); color: #ddd; font-size: 17px; line-height: 1;
}
.chat-close:hover { background: rgba(0, 0, 0, .4); }

.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 86%; }
.chat-msg .bubble {
  padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.6;
  word-break: break-word; white-space: pre-wrap;
}
.chat-msg.admin { align-self: flex-start; align-items: flex-start; }
.chat-msg.admin .bubble { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.me .bubble {
  background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(255, 94, 168, .85));
  color: #fff; border-bottom-right-radius: 5px;
}
.chat-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; }

.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 9px 12px; font-size: 13.5px; }
.chat-form .solid-btn { padding: 0 16px; border-radius: 11px; }
.chat-tip { font-size: 10.5px; color: var(--muted); padding: 0 14px 11px; line-height: 1.5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { flex-direction: column; gap: 2px; }
  .detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 46px 1fr 100px; row-gap: 10px; }
  .cart-head-row { display: none; }
  .cart-price { display: none; }
  .cart-row .qty { grid-column: 2; }
  .cart-sub { grid-column: 3; text-align: right; }
  .del-btn { grid-column: 3; justify-self: end; }
}
@media (max-width: 720px) {
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .top-nav { order: 3; width: 100%; }
  .brand-text small { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero { padding-top: 26px; }
  .hero-stats { padding: 16px; }
  .hero-stats strong { font-size: 20px; }
  .bulk-bar { bottom: 82px; flex-direction: column; align-items: stretch; gap: 10px; }
  .bulk-actions { justify-content: flex-end; }
  .chat-widget { right: 14px; bottom: 14px; }
  .cart-foot { justify-content: space-between; }
  .main { padding-bottom: 120px; }
}

@media print {
  .site-header, .site-footer, .chat-widget, .bulk-bar, .flash, .row-btns, .steps { display: none !important; }
  body { background: #fff; color: #111; }
  .panel, .order-card { border-color: #ddd; background: #fff; }
  .price, .sum-price, .order-amount, .sum-row.total strong { color: #c2185b; }
}
