/* ==========================================================================
   XYZ 商城 · 全局样式（支持亮色 / 暗色主题）
   ========================================================================== */

:root {
  --brand: #2b5cff;
  --brand-2: #7b4dff;
  --brand-soft: #eef2ff;
  --brand-ink: #1c3fd6;
  --danger: #f2545b;
  --danger-soft: #fff1f1;
  --warn: #e08700;
  --warn-soft: #fff7e6;
  --success: #12a065;
  --success-soft: #eafaf2;

  --bg: #f4f6fb;
  --bg-soft: #eceff7;
  --card: #ffffff;
  --card-2: #fbfcfe;
  --line: #e5e9f2;
  --line-2: #eef1f7;

  --text: #171c26;
  --text-2: #59616f;
  --text-3: #8c94a3;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(18, 25, 40, .05);
  --shadow: 0 1px 2px rgba(18, 25, 40, .05), 0 6px 20px rgba(18, 25, 40, .06);
  --shadow-lg: 0 18px 50px rgba(18, 25, 40, .16);
  --header-h: 116px;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand-soft: #1b2450;
  --brand-ink: #a8bcff;
  --danger-soft: #33191c;
  --warn-soft: #33290f;
  --success-soft: #102b21;

  --bg: #0d1117;
  --bg-soft: #141a23;
  --card: #161c26;
  --card-2: #1b222d;
  --line: #26303d;
  --line-2: #1f2833;

  --text: #e9eef7;
  --text-2: #a4aebe;
  --text-3: #74808f;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- 通用 ---------- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.main { padding: 22px 20px 70px; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.text-right { text-align: right; }
.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .12s, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(43, 92, 255, .28); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-danger { color: var(--danger); border-color: var(--line); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.btn-success { color: var(--success); }
.btn-success:hover { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; color: var(--text-2); transition: .18s; font-size: 16px;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 标签 / 徽标 ---------- */
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-hot { background: var(--danger-soft); color: var(--danger); }
.tag-new { background: var(--brand-soft); color: var(--brand); }
.tag-plain { background: var(--bg-soft); color: var(--text-3); }
.badge-count {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
}
.badge-count.zero { background: var(--text-3); }

/* ---------- 评分星星 ---------- */
.stars { display: inline-flex; gap: 1px; color: #ffb400; font-size: 13px; letter-spacing: 1px; }
.stars .off { color: var(--line); }

/* ==========================================================================
   顶栏
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-top { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px rgba(43, 92, 255, .35);
}
.logo b { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { font-size: 11px; color: var(--text-3); font-weight: 600; align-self: flex-end; margin-bottom: 3px; }

.search { position: relative; flex: 1; max-width: 620px; }
.search form { display: flex; align-items: center; gap: 8px; }
.search input {
  width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); outline: none; transition: .18s;
}
.search input:focus { background: var(--card); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 92, 255, .12); }
.search .go {
  position: absolute; right: 5px; top: 5px; width: 34px; height: 32px; border: 0; border-radius: 9px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; cursor: pointer; font-size: 14px;
}
.suggest {
  position: absolute; top: 48px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70;
}
.suggest div { padding: 9px 15px; cursor: pointer; font-size: 13.5px; }
.suggest div:hover { background: var(--brand-soft); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); background: var(--card); }
.cart-link:hover { border-color: var(--brand); color: var(--brand); }
.cart-link .badge-count { position: absolute; top: -7px; right: -7px; }

.user-chip { position: relative; }
.user-chip > button {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text); font-weight: 600;
}
.user-chip > button:hover { border-color: var(--brand); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.user-menu {
  position: absolute; right: 0; top: 46px; min-width: 200px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 80;
}
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; color: var(--text-2); text-align: left; font-size: 13.5px;
}
.user-menu a:hover, .user-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.user-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

.header-nav { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; }
.header-nav a {
  padding: 7px 13px; border-radius: 9px; color: var(--text-2); font-weight: 600; white-space: nowrap; transition: .15s;
}
.header-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.header-nav a.active { background: var(--brand-soft); color: var(--brand); }
.header-nav .nav-admin { margin-left: auto; color: var(--brand); }

/* ==========================================================================
   骨架屏 / 空状态 / 分页
   ========================================================================== */
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line-2) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.sk-card .sk-img { aspect-ratio: 1/1; }
.sk-card .sk-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.sk-line { height: 12px; border-radius: 6px; }

.empty { text-align: center; padding: 64px 20px; color: var(--text-3); }
.empty .icon { font-size: 48px; margin-bottom: 10px; opacity: .9; }
.empty h3 { color: var(--text-2); font-size: 16px; margin-bottom: 6px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; color: var(--text-2); font-weight: 600;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   面板 / 表格 / 表单
   ========================================================================== */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.panel-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--brand), var(--brand-2)); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
table.data th, table.data td { padding: 12px 13px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
table.data th { background: var(--card-2); color: var(--text-2); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.data tbody tr:hover { background: var(--card-2); }
table.data tr:last-child td { border-bottom: 0; }
.thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); }

.field { margin-bottom: 15px; }
.field > label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--text-2); font-size: 13px; }
.field .req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); outline: none; transition: .18s;
}
select.input { cursor: pointer; }
textarea.input { height: auto; min-height: 84px; padding: 10px 13px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 92, 255, .12); }
.input::placeholder { color: var(--text-3); }
.hint { color: var(--text-3); font-size: 12.5px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 15px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }

.alert { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; border: 1px solid; margin-bottom: 14px; }
.alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-ink); }
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

/* ==========================================================================
   商品卡片
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow-xs);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-tags { position: absolute; top: 9px; left: 9px; display: flex; gap: 5px; z-index: 2; }
.card-fav {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--card); background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(6px);
  cursor: pointer; font-size: 15px; display: grid; place-items: center; z-index: 2; transition: .18s; color: var(--text-3);
}
.card-fav:hover { transform: scale(1.12); color: var(--danger); }
.card-fav.on { color: var(--danger); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-name { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.card-name:hover { color: var(--brand); }
.card-sub { font-size: 12.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { color: var(--danger); font-weight: 800; font-size: 19px; display: flex; align-items: baseline; gap: 2px; }
.price small { font-size: 12px; font-weight: 700; }
.price-origin { color: var(--text-3); text-decoration: line-through; font-size: 12px; font-weight: 500; }

/* ==========================================================================
   首页
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-bottom: 22px; }
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; background: var(--card); }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 10/3; }
.slide-cta {
  position: absolute; left: 34px; bottom: 30px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #1b2440;
  font-weight: 700; box-shadow: var(--shadow);
}
.carousel-dots { position: absolute; bottom: 16px; right: 22px; display: flex; gap: 7px; z-index: 3; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: .2s; }
.carousel-dots button.active { background: #fff; width: 22px; border-radius: 5px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(20, 26, 40, .35); color: #fff; cursor: pointer; font-size: 17px; z-index: 3; backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(20, 26, 40, .6); }
.carousel-arrow.prev { left: 14px; } .carousel-arrow.next { right: 14px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-xs); flex: 1; }
.side-card h4 { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.coupon-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.coupon-mini:last-child { border-bottom: 0; }
.coupon-mini .amt { font-size: 20px; font-weight: 800; color: var(--danger); min-width: 62px; }
.coupon-mini .amt small { font-size: 12px; }
.coupon-mini .info { flex: 1; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.coupon-mini .info b { display: block; color: var(--text); font-size: 13px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2 .dot { width: 8px; height: 22px; border-radius: 4px; background: linear-gradient(var(--brand), var(--brand-2)); }
.section-head .more { color: var(--text-3); font-size: 13.5px; }
.section-head .more:hover { color: var(--brand); }
.tabs-inline { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg-soft); }
.tabs-inline button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 600; }
.tabs-inline button.active { background: var(--card); color: var(--brand); box-shadow: var(--shadow-xs); }

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; }
.stats-strip .item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.stats-strip .item b { display: block; font-size: 22px; font-weight: 800; color: var(--brand); }
.stats-strip .item span { color: var(--text-3); font-size: 12.5px; }

.review-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.review-card .who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.review-card .who .avatar { width: 30px; height: 30px; font-size: 13px; }
.review-card .content { color: var(--text-2); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-card .prod { margin-top: 9px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.review-card .prod img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }

/* ==========================================================================
   商品详情
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }

.detail { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; }
.gallery .main-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 1/1; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--card); cursor: pointer; padding: 0; }
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: 24px; font-weight: 800; line-height: 1.35; }
.detail-sub { color: var(--text-3); margin-top: 7px; }
.price-box { margin: 18px 0; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(120deg, var(--brand-soft), transparent); border: 1px solid var(--line); }
.price-box .big { font-size: 34px; font-weight: 800; color: var(--danger); }
.price-box .big small { font-size: 16px; }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.detail-meta .cell { text-align: center; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.detail-meta .cell b { display: block; font-size: 16px; }
.detail-meta .cell span { font-size: 12px; color: var(--text-3); }
.buy-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 46px; background: var(--card); }
.qty button { width: 38px; height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--text-2); font-size: 17px; }
.qty button:hover { background: var(--brand-soft); color: var(--brand); }
.qty input { width: 54px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; background: transparent; color: var(--text); }
.qty.sm { height: 32px; } .qty.sm button { width: 30px; } .qty.sm input { width: 44px; }
.promise { display: flex; gap: 16px; margin-top: 18px; color: var(--text-3); font-size: 12.5px; flex-wrap: wrap; }

.detail-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 34px 0 20px; }
.detail-tabs button { padding: 11px 18px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.detail-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }

.rich-text { color: var(--text-2); line-height: 2; white-space: pre-wrap; }

.rating-summary { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.rating-score { text-align: center; }
.rating-score b { font-size: 44px; font-weight: 800; color: var(--warn); line-height: 1; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rating-bars .bar { display: grid; grid-template-columns: 46px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.rating-bars .track { height: 7px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.rating-bars .fill { height: 100%; background: linear-gradient(90deg, #ffc14d, #ff9d00); border-radius: 4px; }

.review-item { padding: 16px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 13px; }
.review-item:last-child { border-bottom: 0; }
.review-item .avatar { width: 36px; height: 36px; font-size: 14px; flex-shrink: 0; }
.review-item .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-item .text { margin-top: 5px; color: var(--text-2); line-height: 1.7; }
.review-item .reply { margin-top: 9px; padding: 9px 12px; background: var(--bg-soft); border-radius: 10px; font-size: 13px; color: var(--text-2); }
.review-item .reply b { color: var(--brand); }

/* ==========================================================================
   购物车 / 结算
   ========================================================================== */
.cart-head, .cart-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 108px 132px 108px 64px; gap: 14px; align-items: center; }
.cart-head { padding: 0 6px 11px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; font-weight: 700; }
.cart-row { padding: 15px 6px; border-bottom: 1px solid var(--line-2); }
.cart-row:hover { background: var(--card-2); }
.cart-row > img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.cart-row .name { font-weight: 700; }
.cart-row .name:hover { color: var(--brand); }
.check { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.cart-summary { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding-top: 20px; flex-wrap: wrap; }
.cart-summary .total { font-size: 15px; color: var(--text-2); }
.cart-summary .total b { color: var(--danger); font-size: 27px; font-weight: 800; margin-left: 5px; }
.cart-bar {
  position: sticky; bottom: 0; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; align-items: start; }
.summary-card { position: sticky; top: calc(var(--header-h) + 12px); }
.sum-line { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; color: var(--text-2); }
.sum-line b { color: var(--text); }
.sum-line.total { border-top: 1px dashed var(--line); margin-top: 9px; padding-top: 13px; }
.sum-line.total b { color: var(--danger); font-size: 25px; font-weight: 800; }
.sum-line .discount { color: var(--success); }

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.addr { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 15px; background: var(--card); cursor: pointer; transition: .18s; }
.addr:hover { border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.addr.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 92, 255, .13); }
.addr.selected::after { content: "✓"; position: absolute; top: 0; right: 0; width: 26px; height: 26px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 0 var(--radius) 0 12px; font-size: 13px; font-weight: 700; }
.addr .line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.addr .who { font-weight: 800; font-size: 15px; }
.addr .full { color: var(--text-2); font-size: 13px; line-height: 1.65; min-height: 44px; }
.addr .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--brand); color: #fff; }
.pill.plain { background: var(--bg-soft); color: var(--text-3); }

.coupon-pick { display: flex; flex-direction: column; gap: 9px; }
.coupon-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: .16s; background: var(--card);
}
.coupon-opt:hover { border-color: var(--brand); }
.coupon-opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.coupon-opt .amt { font-size: 19px; font-weight: 800; color: var(--danger); min-width: 66px; }
.coupon-opt .meta { flex: 1; font-size: 12.5px; color: var(--text-2); }
.coupon-opt .meta b { display: block; color: var(--text); font-size: 13.5px; }

/* ==========================================================================
   订单
   ========================================================================== */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-shipped { background: var(--brand-soft); color: var(--brand); }
.status-done { background: var(--success-soft); color: var(--success); }
.status-cancelled { background: var(--bg-soft); color: var(--text-3); }
.status-on { background: var(--success-soft); color: var(--success); }
.status-off { background: var(--bg-soft); color: var(--text-3); }

.order { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s; }
.order:hover { box-shadow: var(--shadow); }
.order-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--card-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-no { font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.order-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px dashed var(--line-2); }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.order-foot { padding: 13px 18px; background: var(--card-2); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-foot .amount b { color: var(--danger); font-size: 20px; font-weight: 800; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl-item .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line); z-index: 1; display: grid; place-items: center; font-size: 11px; color: var(--text-3); }
.tl-item.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tl-item .tl-body b { display: block; }
.tl-item .tl-body span { color: var(--text-3); font-size: 12.5px; }

/* ==========================================================================
   优惠券中心
   ========================================================================== */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ticket {
  position: relative; display: flex; border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: .2s;
}
.ticket:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ticket .left {
  width: 116px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; padding: 14px 8px; text-align: center;
}
.ticket .left .amt { font-size: 30px; font-weight: 800; line-height: 1; }
.ticket .left .amt small { font-size: 14px; }
.ticket .left .cond { font-size: 11.5px; opacity: .9; margin-top: 5px; }
.ticket .body { flex: 1; padding: 13px 15px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ticket .body b { font-size: 15px; }
.ticket .body p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.ticket .body .code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-2); background: var(--bg-soft); padding: 1px 7px; border-radius: 5px; align-self: flex-start; }
.ticket .act { display: flex; align-items: center; padding-right: 14px; }
.ticket.disabled { opacity: .62; filter: grayscale(.35); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 108px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); z-index: 2;
}
.ticket::before { top: -8px; }
.ticket::after { bottom: -8px; }

/* ==========================================================================
   个人中心
   ========================================================================== */
.profile-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-side { position: sticky; top: calc(var(--header-h) + 12px); }
.profile-user { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.profile-user .avatar { width: 48px; height: 48px; font-size: 19px; }
.profile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.profile-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.profile-nav a.active { background: var(--brand-soft); color: var(--brand); }
.profile-nav .n { font-size: 12px; color: var(--text-3); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 13px; }
.quick-grid a { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; text-align: center; transition: .18s; }
.quick-grid a:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick-grid b { display: block; font-size: 22px; font-weight: 800; color: var(--brand); }
.quick-grid span { color: var(--text-3); font-size: 12.5px; }

/* ==========================================================================
   后台
   ========================================================================== */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 12px); }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 13px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; color: var(--text-2); font-weight: 600; text-align: left; font-size: 13.5px;
}
.admin-nav button:hover { background: var(--brand-soft); color: var(--brand); }
.admin-nav button.active { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; }
.admin-nav button .n { margin-left: auto; font-size: 11.5px; opacity: .8; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-xs); }
.stat .k { color: var(--text-3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 25px; font-weight: 800; margin-top: 3px; color: var(--brand); letter-spacing: -.5px; }
.stat .v.ok { color: var(--success); } .stat .v.warn { color: var(--warn); } .stat .v.danger { color: var(--danger); }
.stat .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart svg { width: 100%; height: 220px; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#areaGradient); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: var(--card); stroke: var(--brand); stroke-width: 2.5; cursor: pointer; }
.chart .pt:hover { fill: var(--brand); }
.chart .axis { fill: var(--text-3); font-size: 11px; }
.chart .value { fill: var(--brand); font-size: 11px; font-weight: 700; }

.batch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-soft); margin-bottom: 14px; flex-wrap: wrap; }

/* ==========================================================================
   弹层 / 提示
   ========================================================================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 17, 28, .5); backdrop-filter: blur(3px); z-index: 200;
  display: flex; align-items: flex-start; justify-content: center; padding: 46px 16px; overflow-y: auto;
  animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: popIn .2s cubic-bezier(.2, .9, .3, 1.2); border: 1px solid var(--line); }
.modal.sm { max-width: 420px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-body { padding: 21px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 15px 21px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { border: 0; background: transparent; font-size: 23px; line-height: 1; color: var(--text-3); cursor: pointer; }
.close-x:hover { color: var(--danger); }

#toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 19px; border-radius: 11px; background: #1e2532; color: #fff; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn .24s cubic-bezier(.2, .9, .3, 1.2); max-width: 82vw; display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: linear-gradient(120deg, #12a065, #0e8b56); }
.toast.err { background: linear-gradient(120deg, #ef4b55, #d83842); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }

.confirm-body { display: flex; gap: 14px; align-items: flex-start; }
.confirm-body .ci { font-size: 26px; }
.confirm-body .ct { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.confirm-body .cm { color: var(--text-2); }

.fly-dot {
  position: fixed; z-index: 500; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 18px rgba(43, 92, 255, .5);
  pointer-events: none; transition: transform .65s cubic-bezier(.4, -0.3, .7, 1), opacity .65s;
}

.to-top {
  position: fixed; right: 26px; bottom: 90px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text-2); cursor: pointer; box-shadow: var(--shadow); z-index: 90; font-size: 17px;
  opacity: 0; pointer-events: none; transition: .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   认证页
   ========================================================================== */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bg);
}
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px 68px;
  background: linear-gradient(150deg, #1b3bd8, #2b5cff 40%, #7b4dff 78%, #b04dff); color: #fff;
}
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.auth-art::before { width: 420px; height: 420px; top: -120px; right: -130px; }
.auth-art::after { width: 300px; height: 300px; bottom: -110px; left: -90px; background: rgba(255, 255, 255, .07); }
.auth-art h2 { font-size: 34px; font-weight: 800; line-height: 1.35; position: relative; z-index: 1; }
.auth-art p { opacity: .88; margin-top: 14px; font-size: 15px; position: relative; z-index: 1; max-width: 420px; }
.auth-features { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 1; }
.auth-features div { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.auth-features i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-style: normal; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 25px; font-weight: 800; }
.auth-card .sub { color: var(--text-3); margin: 6px 0 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-3); }
.auth-foot a { color: var(--brand); font-weight: 700; }

/* ==========================================================================
   页脚 / 移动端底栏
   ========================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 30px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.footer h4 { font-size: 14px; margin-bottom: 9px; }
.footer ul { list-style: none; margin: 0; padding: 0; color: var(--text-3); font-size: 13px; line-height: 2; }
.footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mobile-nav { display: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .profile-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .profile-nav a { width: auto; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 62px; }
  .container { padding: 0 14px; }
  .main { padding: 16px 14px 96px; }
  .header-top { height: 60px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 38px; }
  .logo b { font-size: 17px; }
  .logo small { display: none; }
  .header-nav { display: none; }
  .cart-link span.label, .user-chip .uname { display: none; }
  .cart-link { padding: 0 11px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-name { font-size: 13.5px; min-height: 38px; }
  .price { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2, .form-grid .span3 { grid-column: span 1; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 26px 74px minmax(0, 1fr); grid-auto-rows: min-content; row-gap: 7px; align-items: start; }
  .cart-row > img { width: 74px; height: 74px; grid-row: span 3; }
  .rating-summary { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-side { flex-direction: column; }
  .panel { padding: 16px; }
  .modal-mask { padding: 18px 12px; }
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; height: 58px;
    background: var(--card);
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--text-3); font-size: 11px; position: relative;
  }
  .mobile-nav a.active { color: var(--brand); }
  .mobile-nav a i { font-size: 19px; font-style: normal; }
  .mobile-nav .badge-count { position: absolute; top: 5px; right: 50%; margin-right: -18px; }
  .to-top { bottom: 74px; right: 14px; }
}

/* ================= 首页送货状态横幅 ================= */
.delivery-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.delivery-banner .db-icon { font-size: 24px; line-height: 1; flex: none; }
.delivery-banner .db-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.delivery-banner .db-text b { font-size: 14.5px; }
.delivery-banner .db-sub { color: var(--text-3); font-size: 12.5px; }
.delivery-banner .db-badge {
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--danger-soft);
  color: var(--danger);
}
.delivery-banner.is-open {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
}
.delivery-banner.is-open .db-text b { color: var(--success); }
.delivery-banner.is-closed {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
}
.delivery-banner.is-closed .db-text b { color: var(--warn); }

/* ================= 后台：批量操作条 & 订单勾选 ================= */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}
.bulk-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13.5px;
  user-select: none;
}
.order-head .pick {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
  cursor: pointer;
}
.order-head .pick input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand);
}
.bulk-all input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }
