/* ============================================================
   components.css · 全站通用组件（单层定义，无覆盖补丁）
   ============================================================ */

/* ---------------------------------------------------- 页头 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto;
  min-height: var(--header-h); display: flex; align-items: center; gap: var(--sp-5);
}
.logo { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.6px; color: var(--brand-deep); }
.logo-caption { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: var(--sp-5); flex: 1; min-width: 0; }
.main-nav a { font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.header-search {
  display: flex; align-items: center; gap: 6px; flex: 0 1 254px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 10px;
}
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: var(--fs-sm); height: 36px; }
.header-search button { border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; width: 28px; height: 36px; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--brand-tint); color: var(--brand); }
.header-favorites { color: var(--text-2); }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff;
  font-size: 11px; line-height: 17px; text-align: center;
}
.header-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); white-space: nowrap; }
.header-login:hover { border-color: var(--brand); color: var(--brand); }
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 4px 6px; border-radius: var(--r-md); font-size: var(--fs-sm); }
.user-trigger:hover { background: var(--brand-tint); }
.user-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 6px; display: none;
}
.user-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.dropdown a:hover, .dropdown button:hover { background: var(--brand-tint); color: var(--brand); }
.avatar { display: inline-grid; place-items: center; position: relative; overflow: hidden; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; flex-shrink: 0; }
.avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-uploaded > span[aria-hidden] { visibility: hidden; }
.avatar-status { font-size: var(--fs-xs); color: var(--muted); }
.ui-icon { flex-shrink: 0; }
.test-mode-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: var(--fs-sm); padding: 8px 16px; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------- 页脚 */
.digital-footer {
  width: min(var(--maxw), calc(100% - 40px)); margin: var(--sp-7) auto 0;
  padding: var(--sp-5) 0 var(--sp-6); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5);
  color: var(--muted); font-size: var(--fs-xs);
}
.digital-footer b { font-family: var(--font-display); font-size: var(--fs-md); color: var(--brand-deep); font-weight: 600; }
.digital-footer b span { color: var(--muted); font-weight: 400; }
.digital-footer p { margin-top: 4px; }
.digital-footer nav { display: flex; gap: var(--sp-4); margin-left: auto; }
.digital-footer nav a:hover { color: var(--brand); }
.digital-footer small { width: 100%; }

/* ---------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-outline { background: transparent; }
.btn-ghost { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-deep); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-tint); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #8f342f; border-color: #8f342f; color: #fff; }
.btn-lg { min-height: 46px; padding: 10px 22px; font-size: var(--fs-base); }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn-fav.on { color: var(--accent); border-color: var(--accent); }
.danger-btn { background: var(--danger); border-color: var(--danger); color: #fff; border-radius: var(--r-sm); }
.ghost-btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); }

/* ---------------------------------------------------- 表单 */
.input, .select, .textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); padding: 9px 11px; font-size: var(--fs-sm); line-height: 1.5;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select-inline { width: auto; min-width: 108px; padding: 5px 8px; }
.form-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.form-item > label, .checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.form-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.form-error, .filter-error { font-size: var(--fs-xs); color: var(--danger); }
.form-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }
.req { color: var(--danger); }
.field-note { color: var(--muted); font-weight: 400; }
.filter-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.filter-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.verification-controls { display: flex; gap: var(--sp-2); }
.verification-controls .input { flex: 1; }
.verification-status { font-size: var(--fs-xs); color: var(--text-2); }
.checkout-terms { flex-direction: row !important; align-items: flex-start; gap: 8px !important; }
.checkout-terms input { accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }

/* ---------------------------------------------------- 卡片 / 徽章 / 价格 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.card-buy { margin-left: auto; font-size: var(--fs-xs); color: var(--brand); white-space: nowrap; }
.tag-chip { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: var(--fs-xs); background: var(--brand-soft); color: var(--brand-deep); }
.tag-chip.hot { background: var(--accent-soft); color: var(--accent); }
.tag-chip.gift { background: var(--warn-soft); color: var(--warn); }
.delivery-tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: var(--fs-xs); background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.delivery-tag.auto { background: var(--ok-soft); color: var(--ok); }
.st-badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.st-pending_payment { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.st-pending_shipment, .st-processing { background: var(--info-soft); color: var(--info); border-color: transparent; }
.st-shipped, .st-completed, .st-paid { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.st-cancelled, .st-refunded { background: var(--surface-2); color: var(--muted); }
.price { color: var(--price); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-md); }
.price .rmb { font-size: .75em; margin-right: 1px; }
.price-origin { color: var(--muted); font-size: var(--fs-xs); text-decoration: line-through; }
.off-chip { font-size: var(--fs-xs); background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: var(--r-sm); }
.available { color: var(--ok); }
.soldout { color: var(--muted); }
.stars { color: var(--warn); font-size: var(--fs-sm); letter-spacing: 1px; }
.stars .off { color: var(--line-strong); }
.stock-hint { font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------- 模态 / Toast */
.modal-mask { position: fixed; inset: 0; z-index: 300; background: rgba(24, 40, 33, .42); display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: var(--fs-md); }
.modal-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); width: 32px; height: 32px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; overflow: auto; font-size: var(--fs-sm); }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap; }
.toast-wrap { position: fixed; top: 16px; right: 16px; z-index: 400; display: grid; gap: 8px; }
.toast { background: var(--brand-deep); color: #fff; padding: 11px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-md); font-size: var(--fs-sm); max-width: min(340px, calc(100vw - 32px)); }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; transition: opacity .25s; }

/* ---------------------------------------------------- 分页 / 空状态 / 骨架 */
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: var(--sp-5) 0; }
.pager button { min-width: 36px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-sm); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; }
.empty, .store-empty { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--text-2); }
.empty .icon, .empty-document { color: var(--line-strong); }
.empty .tip, .store-empty p { font-size: var(--fs-sm); }
.empty .act, .store-empty .btn { margin-top: var(--sp-2); }
.store-empty h3 { font-size: var(--fs-md); color: var(--text); }
.load-error { padding: var(--sp-5); border: 1px dashed var(--line-strong); border-radius: var(--r-md); text-align: center; color: var(--text-2); font-size: var(--fs-sm); }
.load-error h2 { font-size: var(--fs-md); margin-bottom: 6px; }
.skeleton, .sk-card, .digital-skeleton { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 120px; animation: nva-pulse 1.4s ease-in-out infinite; }
@keyframes nva-pulse { 50% { opacity: .55; } }

/* ---------------------------------------------------- 商品卡与网格 */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.digital-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.prod-card, .digital-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.prod-card:hover, .digital-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.product-link { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); height: 100%; }
.digital-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); }
.prod-art, .digital-art { display: grid; place-items: center; gap: 4px; width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.art-caption { font-size: 12px; color: var(--muted); line-height: 1.2; text-align: center; }
/* 卡片里的图标只保留图形，说明文字交给交付方式徽章；详情大图才显示说明 */
.prod-art .art-caption, .digital-art .art-caption { display: none; }
.digital-card h3 { font-size: var(--fs-base); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.digital-card .desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.digital-card-meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); }
.fav-btn.on { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------- 表格 / 统计卡 */
.table-wrap, .account-table-scroll, .admin-table, .mini-table { width: 100%; overflow-x: auto; }
table { font-size: var(--fs-sm); }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--text-2); font-weight: 500; background: var(--surface-2); white-space: nowrap; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-scroll-note { font-size: var(--fs-xs); color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.stat-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.stat-card:hover { border-color: var(--brand); }
.stat-card .ic { color: var(--brand); }
.stat-card .num { font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: var(--fs-xs); color: var(--muted); }
.stat-card.ok .num { color: var(--ok); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.mini-table-link { color: var(--brand); font-size: var(--fs-xs); }

/* ---------------------------------------------------- 规格 / 步进器 / 评价 / 优惠券 / 订单 */
.spec-group { margin: var(--sp-4) 0; }
.spec-group .name { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }
.spec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-opt { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-sm); }
.spec-opt.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: 0; background: var(--surface); color: var(--text); }
.stepper button:hover:not(:disabled) { background: var(--brand-tint); }
.stepper .num { min-width: 34px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.review-panel { display: grid; gap: var(--sp-3); }
.review-summary { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.review-score { font-size: var(--fs-hero); font-weight: 700; color: var(--brand); }
.review-score small { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.review-item { display: flex; gap: var(--sp-3); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.review-content { flex: 1; min-width: 0; }
.review-content .head { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.review-content .name { color: var(--text); font-size: var(--fs-sm); }
.review-content .text { font-size: var(--fs-sm); margin-top: 6px; }
.rv-block { margin-top: var(--sp-5); }
.rv-head { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-3); }
.rating-picker { display: flex; gap: 4px; font-size: var(--fs-lg); color: var(--warn); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.cp-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cp-amount { font-size: var(--fs-lg); font-weight: 700; color: var(--accent); }
.cp-info { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.cp-act { flex-shrink: 0; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.order-head, .order-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.order-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.order-body, .order-items, .order-info { padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.order-item { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-side { flex-shrink: 0; text-align: right; }
.order-side .amount { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.order-side .cnt { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.co-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.co-item:last-child { border-bottom: 0; }
.pw-box { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.pw-box h4 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.delivery-content { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3); overflow-wrap: anywhere; white-space: pre-wrap; }
.delivery-section, .delivery-tools { margin-top: var(--sp-3); }
.delivery-order-head { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); }
.delivery-notice { margin-top: var(--sp-3); padding: var(--sp-3); background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); }
.delivery-notice b { display: block; margin-bottom: 4px; }
.delivery-notice p { color: var(--text-2); }

/* ---------------------------------------------------- 面包屑 / 区块标题 / 筛选 chip */
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--line-strong); }
.crumb .cur { color: var(--text-2); }
.panel-title { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.panel-top, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.active-filters, .catalog-filters-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-xs); }
.filter-reset { border: 0; background: transparent; color: var(--brand); font-size: var(--fs-xs); }
.filter-error { padding: 8px 0; }

/* ---------------------------------------------------- 登录 / 支付 / 后台登录 */
.auth-page { display: grid; place-items: center; padding: var(--sp-6) 16px; }
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 880px; width: 100%; overflow: hidden; }
.auth-side { background: var(--brand-tint); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-side h2 { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--brand-deep); }
.auth-side p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.9; }
.auth-account-notes { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.auth-account-notes li { display: flex; gap: var(--sp-3); align-items: baseline; font-size: var(--fs-sm); color: var(--text-2); }
.auth-account-notes span { font-family: var(--font-mono); color: var(--brand); font-size: var(--fs-xs); }
.auth-back { margin-top: auto; font-size: var(--fs-sm); color: var(--brand); }
.auth-main { padding: var(--sp-6); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); gap: var(--sp-5); }
.auth-tabs button { border: 0; background: transparent; padding: 10px 2px; font-size: var(--fs-md); color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.payment-page { display: grid; place-items: center; padding: var(--sp-7) 16px; }
.payment-result { max-width: 480px; width: 100%; padding: var(--sp-6); text-align: center; display: grid; justify-items: center; gap: var(--sp-3); }
.payment-result #pay-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.payment-result #pay-icon svg { width: 28px; height: 28px; }
.payment-result h1 { font-family: var(--font-display); font-size: var(--fs-xl); }
.payment-result p { font-size: var(--fs-sm); color: var(--text-2); }
#pay-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-3); }
.payment-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); display: grid; gap: var(--sp-3); }
.admin-login-card h1 { font-family: var(--font-display); }
.admin-login-card p { font-size: var(--fs-sm); color: var(--text-2); }
.admin-login-card p a { color: var(--brand); text-decoration: underline; }
.admin-login-back { font-size: var(--fs-xs); color: var(--muted); }
.admin-login-error { font-size: var(--fs-sm); color: var(--danger); }
.form-error, .error, .notice, .success-message, .warning { font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--r-sm); }
.error { background: var(--danger-soft); color: var(--danger); }
.notice { background: var(--warn-soft); color: var(--warn); }
.success-message { background: var(--ok-soft); color: var(--ok); }
.warning { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------- 响应式 */
@media (max-width: 1200px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-cards, .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: var(--sp-3); padding: 8px 0; }
  .main-nav { order: 3; width: 100%; flex: none; overflow-x: auto; gap: var(--sp-4); padding-bottom: 2px; }
  .header-search { flex: 1 1 180px; }
  .digital-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 640px) {
  .header-inner { width: calc(100% - 24px); }
  .logo-caption { display: none; }
  .header-search { order: 4; flex: 1 1 100%; }
  .main-nav { order: 3; }
  .digital-grid, .prod-grid { grid-template-columns: 1fr; }
  .stat-cards, .admin-stats, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-main { padding: var(--sp-5); }
  .digital-footer nav { margin-left: 0; }
  th, td { padding: 8px 6px; font-size: var(--fs-xs); }
  .account-table-scroll table { min-width: 0; }
  .account-table-scroll th:nth-child(n+4), .account-table-scroll td:nth-child(n+4) { display: none; }
}
