/* =========================================================
   Aurora Mall · 高级深色商城设计系统
   ========================================================= */

:root {
  /* 背景层级 */
  --bg-0: #07070d;
  --bg-1: #0c0c16;
  --bg-2: #12121f;
  --bg-3: #171728;

  /* 玻璃卡片 */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  /* 文字 */
  --text-1: #f4f5f9;
  --text-2: #b8bcc9;
  --text-3: #6f7488;

  /* 品牌渐变 */
  --brand-1: #8b5cf6;
  --brand-2: #6366f1;
  --brand-3: #22d3ee;
  --brand-grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #22d3ee 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .18));

  /* 热卖金色 */
  --gold: #f5b544;
  --gold-soft: rgba(245, 181, 68, .16);

  /* 状态 */
  --success: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 40px -8px rgba(99, 102, 241, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景光晕 */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(99, 102, 241, .14), transparent 60%),
    var(--bg-0);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

::selection { background: rgba(139, 92, 246, .4); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ============ 通用组件 ============ */
.container { width: min(1200px, 92%); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(99, 102, 241, .8); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-1);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: var(--stroke-strong); }

.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--stroke-strong); color: var(--text-1); }
.chip.active {
  background: var(--brand-grad-soft);
  border-color: rgba(139, 92, 246, .4);
  color: #fff;
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 181, 68, .3);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}
.section-head .title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head .title .accent {
  width: 5px; height: 26px;
  border-radius: 4px;
  background: var(--brand-grad);
}
.section-head .sub { color: var(--text-3); font-size: 14px; margin-top: 4px; }

/* 渐变大字 */
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ 顶部导航 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 20, .72);
  border-bottom: 1px solid var(--stroke);
}
.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.5px;
}
.brand .logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-grad);
  font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .7);
}
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--glass); }

.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-3);
  transition: border-color .2s ease;
}
.nav-search:focus-within { border-color: rgba(139, 92, 246, .5); }
.nav-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 14px;
}
.nav-search input::placeholder { color: var(--text-3); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  transition: all .2s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--stroke-strong); }
.icon-btn .dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .2);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: all .2s ease;
}
.user-chip:hover { border-color: var(--stroke-strong); }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.user-chip .name { font-size: 14px; font-weight: 600; }

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 30px auto 0;
  padding: 54px 48px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, .20), rgba(99, 102, 241, .10) 40%, rgba(34, 211, 238, .14)),
    var(--bg-1);
  border: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(139, 92, 246, .35);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero p.lead { color: var(--text-2); font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.hero .lead-features {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: .5px;
}
.hero .cta-row { display: flex; gap: 14px; }
.hero .stats { display: flex; gap: 28px; margin-top: 30px; }
.hero .stat .num { font-size: 22px; font-weight: 800; }
.hero .stat .label { font-size: 13px; color: var(--text-3); }

.hero-visual {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
}
.hero-orb {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(60px);
  opacity: .55;
  animation: float 6s ease-in-out infinite;
}
.hero-box {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 28px;
  background: var(--glass-strong);
  border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-size: 84px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero-box.alt {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 22px;
  font-size: 46px;
  right: 4%; bottom: 4%;
  animation-delay: 1.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ============ 分区 ============ */
.section { padding: 48px 0; }

/* 热门商品横滑 */
.hot-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.hot-scroll::-webkit-scrollbar { height: 6px; }

/* 商品卡片 */
.product-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, .4);
  box-shadow: var(--shadow-lg);
}
.product-card .thumb {
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 72px;
  position: relative;
  background: var(--brand-grad-soft);
}
.product-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 30% 20%, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .thumb .tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.product-card .body { padding: 16px 18px 18px; }
.product-card .name { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; min-height: 42px; }
.product-card .meta { display: flex; align-items: flex-end; justify-content: space-between; }
.product-card .price { font-size: 20px; font-weight: 800; color: #fff; }
.product-card .price small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.product-card .sales { font-size: 12px; color: var(--text-3); }
.product-card .buy {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  color: var(--text-1);
  transition: all .2s ease;
}
.product-card .buy:hover { background: var(--brand-grad); border-color: transparent; box-shadow: var(--glow); }

/* 商品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 分类商品区块 */
.cat-block { margin-bottom: 44px; }
.cat-block .cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.cat-block .cat-title .emoji { font-size: 22px; }
.cat-block .cat-title .count { color: var(--text-3); font-weight: 500; font-size: 14px; }

/* 分类导航 tab */
.cat-tabs {
  position: sticky;
  top: 68px;
  z-index: 50;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 20, .6);
}

/* ============ 页脚 ============ */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--stroke);
  padding: 44px 0 30px;
  background: var(--bg-1);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--text-3); font-size: 14px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-1); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-3); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--text-1); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ============ 客服浮窗 ============ */
.cs-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 14px 34px -8px rgba(99, 102, 241, .7);
  transition: transform .2s ease;
}
.cs-fab:hover { transform: translateY(-3px) scale(1.03); }

.cs-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 200;
  width: 360px;
  height: 520px;
  max-height: calc(100vh - 140px);
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  pointer-events: none;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.cs-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.cs-head {
  padding: 18px 20px;
  background: linear-gradient(120deg, rgba(139,92,246,.25), rgba(34,211,238,.18));
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: center; gap: 12px;
}
.cs-head .cs-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 18px;
}
.cs-head .cs-name { font-weight: 700; font-size: 15px; }
.cs-head .cs-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 5px; }
.cs-head .cs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.cs-close { margin-left: auto; color: var(--text-3); font-size: 20px; padding: 4px; }

.cs-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-body .msg { max-width: 80%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.cs-body .msg.agent {
  align-self: flex-start;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-bottom-left-radius: 4px;
}
.cs-body .msg.user {
  align-self: flex-end;
  background: var(--brand-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cs-body .msg .time { display: block; font-size: 11px; margin-top: 6px; opacity: .55; }
.cs-typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 16px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--stroke); }
.cs-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.cs-typing span:nth-child(2) { animation-delay: .2s; }
.cs-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

.cs-input {
  padding: 14px;
  border-top: 1px solid var(--stroke);
  display: flex; gap: 10px;
}
.cs-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  outline: none;
  color: var(--text-1);
  font-size: 14px;
}
.cs-input input:focus { border-color: rgba(139, 92, 246, .5); }
.cs-input .send {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 18px;
  display: grid; place-items: center;
  transition: transform .15s;
}
.cs-input .send:active { transform: scale(.92); }

/* ============ 登录页 ============ */
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 30px 16px; }
.auth-card {
  width: min(460px, 100%);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 40px 38px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.auth-card .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-card .logo-row .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-grad); display: grid; place-items: center; font-size: 22px; }
.auth-card .logo-row .name { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.auth-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 18px 0 6px; }
.auth-card .sub { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }

.auth-tabs { display: flex; background: var(--glass); border: 1px solid var(--stroke); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.auth-tabs button.active { background: var(--brand-grad); color: #fff; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.field .input-wrap { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); transition: border-color .2s; }
.field .input-wrap:focus-within { border-color: rgba(139, 92, 246, .5); }
.field .input-wrap .ico { color: var(--text-3); font-size: 17px; }
.field .input-wrap input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-size: 15px; }
.field .input-wrap input::placeholder { color: var(--text-3); }

/* 字段级错误提示（手机号审核等） */
.field-error {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
}
.field-error.show { display: flex; align-items: center; gap: 5px; }
.field-error.show::before { content: "⚠"; }
.input-wrap.invalid { border-color: rgba(248, 113, 113, .65); }
.input-wrap.invalid .ico { color: var(--danger); }
.form-field input.invalid { border-color: rgba(248, 113, 113, .65); }

.auth-foot { text-align: center; margin-top: 22px; color: var(--text-3); font-size: 14px; }
.auth-foot a { color: var(--brand-3); font-weight: 600; }

.auth-msg { font-size: 13px; margin-top: 14px; min-height: 18px; text-align: center; }
.auth-msg.error { color: var(--danger); }
.auth-msg.success { color: var(--success); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translate(-50%, -80px);
  z-index: 300;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { border-color: rgba(52, 211, 153, .4); color: var(--success); }
.toast.error { border-color: rgba(248, 113, 113, .4); color: var(--danger); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-visual { display: none; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-search, .nav-links { display: none; }
  .navbar-inner { gap: 12px; }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cs-panel { width: calc(100vw - 32px); right: 16px; }
  .cs-fab { right: 16px; bottom: 16px; }
}

/* ============ 购物车抽屉 ============ */
.cart-overlay {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 92vw;
  z-index: 160;
  background: var(--bg-1);
  border-left: 1px solid var(--stroke-strong);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .7);
}
.cart-drawer.open { transform: none; }

.cart-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head .title { font-size: 18px; font-weight: 700; }
.cart-head .close { font-size: 20px; color: var(--text-3); padding: 4px; }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--text-3); padding: 60px 0; font-size: 14px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.cart-item .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-grad-soft); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .price { font-size: 14px; color: var(--gold); font-weight: 700; margin-top: 4px; }
.cart-item .qty { display: flex; align-items: center; gap: 8px; }
.cart-item .qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--glass-strong); border: 1px solid var(--stroke); color: var(--text-1); font-size: 14px; }
.cart-item .qty .num { min-width: 20px; text-align: center; font-size: 14px; }
.cart-item .del { color: var(--text-3); font-size: 16px; padding: 4px; }
.cart-item .del:hover { color: var(--danger); }

.cart-foot { padding: 18px 22px; border-top: 1px solid var(--stroke); }
.cart-foot .total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-foot .total { font-size: 20px; font-weight: 800; color: #fff; }
.cart-foot .total small { font-size: 13px; color: var(--text-3); }

/* ============ 结算页 ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }

.panel {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 22px;
  margin-bottom: 18px;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  margin-bottom: 18px;
}
.panel-head .step-no {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.panel-tip { color: var(--text-3); font-size: 13px; margin-bottom: 16px; }

.btn-lg { padding: 15px; font-size: 16px; }

/* 支付方式 */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  text-align: left;
  transition: all .2s ease;
}
.pay-method:hover { border-color: var(--stroke-strong); }
.pay-method.active {
  border-color: rgba(139, 92, 246, .55);
  background: var(--brand-grad-soft);
  box-shadow: var(--glow);
}
.pay-method .pm-ico { font-size: 26px; }
.pay-method .pm-text { display: flex; flex-direction: column; }
.pay-method .pm-text strong { font-size: 15px; }
.pay-method .pm-text small { color: var(--text-3); font-size: 12px; }

/* 二维码展示 */
.qrcode-box {
  display: flex; align-items: center; gap: 22px;
  padding: 20px;
  border-radius: 16px;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
}
.qrcode-img {
  width: 180px; height: 180px;
  border-radius: 14px;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.qrcode-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { color: #666; font-size: 13px; text-align: center; padding: 0 16px; line-height: 1.6; }
.qrcode-info { flex: 1; }
.qrcode-info .qr-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.qrcode-info .qr-amount { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.qrcode-info .qr-amount strong { color: var(--gold); font-size: 22px; font-weight: 800; }
.qr-warning {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .3);
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
}

/* 订单摘要 */
.order-summary {
  position: sticky;
  top: 90px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 22px;
}
.summary-items { max-height: 320px; overflow-y: auto; margin-bottom: 16px; }
.summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.summary-item:last-child { border-bottom: none; }
.summary-item .si-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-grad-soft); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.summary-item .si-main { flex: 1; min-width: 0; }
.summary-item .si-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item .si-price { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.summary-item .si-sub { font-size: 13.5px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.summary-total { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--stroke-strong); }
.summary-total .total-num { font-size: 24px; font-weight: 800; color: #fff; }
.summary-tip { color: var(--text-3); font-size: 12.5px; margin-top: 14px; line-height: 1.7; }

/* 结算页表单 */
.checkout-layout .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-layout .form-grid .full { grid-column: 1 / -1; }
.form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--stroke);
  color: var(--text-1); font-size: 14px; outline: none;
  font-family: inherit; resize: vertical;
}
.form-field textarea:focus { border-color: rgba(139, 92, 246, .5); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .qrcode-box { flex-direction: column; text-align: center; }
  .checkout-layout .form-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
}
