/* ==========================================================================
   麦凯 AI 商城 · 全站样式
   设计语言：浅灰页面底 + 白色卡片 + 紫罗兰主色 + 发丝边框 + 柔和阴影
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ui-bg-page: #f5f5f7;
  --ui-bg-elevated: #ffffff;
  --ui-bg-soft: #f2f2f4;
  --ui-bg-muted: #ececf0;
  --ui-bg-scrim: rgba(20, 20, 24, 0.42);

  --ui-text-primary: #1d1d1f;
  --ui-text-secondary: #424245;
  --ui-text-muted: #6e6e73;
  --ui-text-on-accent: #ffffff;

  --ui-border: rgba(0, 0, 0, 0.09);
  --ui-border-strong: rgba(0, 0, 0, 0.16);

  --ui-accent: #6455e8;
  --ui-accent-hover: #5646d4;
  --ui-accent-soft: rgba(100, 85, 232, 0.12);
  --ui-accent-ring: rgba(100, 85, 232, 0.32);

  --ui-success: #2f8f6f;
  --ui-success-soft: rgba(47, 143, 111, 0.13);
  --ui-warning: #b06b00;
  --ui-warning-soft: rgba(176, 107, 0, 0.13);
  --ui-danger: #c9342f;
  --ui-danger-soft: rgba(201, 52, 47, 0.12);
  --ui-info: #0a84ff;
  --ui-info-soft: rgba(10, 132, 255, 0.12);

  --ui-price: #1d1d1f;

  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 22px;
  --ui-radius-pill: 999px;

  --ui-shadow-1: 0 10px 24px -18px rgba(0, 0, 0, 0.32);
  --ui-shadow-2: 0 18px 38px -24px rgba(0, 0, 0, 0.34);
  --ui-shadow-3: 0 30px 64px -34px rgba(0, 0, 0, 0.42);
  --ui-shadow-card: 0 24px 52px -34px rgba(0, 0, 0, 0.36);

  --ui-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ui-fast: 0.15s;
  --ui-normal: 0.25s;

  --ui-leading-body: 1.62;
  --ui-leading-title: 1.18;
  --ui-container: 1200px;
  --ui-header-h: 64px;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ui-bg-page);
  color: var(--ui-text-primary);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: var(--ui-leading-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }

h1, h2, h3, h4 { margin: 0; line-height: var(--ui-leading-title); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(19px, 2.1vw, 24px); }
h3 { font-size: 16px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ui-accent); }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }

svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
  border-radius: var(--ui-radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ui-text-primary);
  color: #fff;
  border-radius: var(--ui-radius-pill);
  box-shadow: var(--ui-shadow-2);
  transition: top var(--ui-normal) var(--ui-ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--ui-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted { color: var(--ui-text-muted); }
.initial-loading { padding: 96px 24px; text-align: center; color: var(--ui-text-muted); }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease), transform var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: 0.5; box-shadow: none; transform: none; }

.btn-primary {
  background: var(--ui-accent);
  color: var(--ui-text-on-accent);
  box-shadow: 0 12px 26px -18px var(--ui-accent);
}
.btn-primary:hover { background: var(--ui-accent-hover); color: var(--ui-text-on-accent); }

.btn-outline {
  background: var(--ui-bg-elevated);
  border-color: var(--ui-border-strong);
  color: var(--ui-text-primary);
}
.btn-outline:hover { border-color: var(--ui-accent); color: var(--ui-accent); }

.btn-soft { background: var(--ui-accent-soft); color: var(--ui-accent-hover); }
.btn-soft:hover { background: rgba(100, 85, 232, 0.18); color: var(--ui-accent-hover); }

.btn-ghost { background: transparent; color: var(--ui-text-secondary); }
.btn-ghost:hover { background: var(--ui-bg-muted); color: var(--ui-text-primary); }

.btn-small { padding: 8px 14px; min-height: 36px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ui-accent);
  font-weight: 600;
}
.text-link:hover { color: var(--ui-accent-hover); text-decoration: underline; }

.cta-round {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--ui-border);
  border-radius: 50%;
  background: var(--ui-bg-elevated);
  color: var(--ui-text-secondary);
  transition: all var(--ui-fast) var(--ui-ease);
}
.cta-round svg { width: 15px; height: 15px; }
.cta-round:hover { border-color: var(--ui-accent); background: var(--ui-accent); color: var(--ui-text-on-accent); }

/* ---------- 4. 卡片与面板 ---------- */
.card,
.panel {
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-1);
}

.panel { overflow: hidden; }

.panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 22px;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  border-bottom: 1px solid var(--ui-border);
}
.panel-heading svg { width: 17px; height: 17px; color: var(--ui-accent); }
.panel-heading.between { justify-content: space-between; }
.panel-heading > span { display: inline-flex; align-items: center; gap: 8px; }
.panel-heading small { font-size: 12px; font-weight: 500; color: var(--ui-text-muted); }
.panel-body { padding: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--ui-radius-pill);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
  font-size: 12px;
  font-weight: 600;
}
.badge svg { width: 13px; height: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-bg-soft);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.status-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--ui-radius-pill);
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- 5. 消息与提示 ---------- */
.message {
  padding: 12px 15px;
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-soft);
  color: var(--ui-text-secondary);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.message-error { background: var(--ui-danger-soft); border-color: rgba(201, 52, 47, 0.24); color: var(--ui-danger); }
.message-success { background: var(--ui-success-soft); border-color: rgba(47, 143, 111, 0.24); color: var(--ui-success); }
.message-warning { background: var(--ui-warning-soft); border-color: rgba(176, 107, 0, 0.26); color: var(--ui-warning); }
.message-info { background: var(--ui-info-soft); border-color: rgba(10, 132, 255, 0.22); color: #0a6cc4; }
.message:empty { display: none; }
.form-status { margin-top: 14px; }

.notice-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 12.5px;
}
.notice-line svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border-radius: var(--ui-radius-pill);
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--ui-shadow-3);
  animation: toast-in var(--ui-normal) var(--ui-ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ui-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--ui-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ui-text-primary);
  white-space: nowrap;
}
.brand:hover { color: var(--ui-text-primary); }
.brand .brand-icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--ui-accent), #9b6cf0);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ui-text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  margin-left: 6px;
}
.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text-secondary);
  white-space: nowrap;
  transition: color var(--ui-fast) var(--ui-ease);
}
.header-nav a svg { width: 16px; height: 16px; }
.header-nav a span[aria-hidden="true"] { margin-left: 2px; font-size: 11px; opacity: 0.55; }
.header-nav a:hover { color: var(--ui-text-primary); }
.header-nav a.active { color: var(--ui-text-primary); }
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--ui-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: var(--ui-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-text-secondary);
  transition: background var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease);
}
.header-action:hover { background: var(--ui-bg-muted); color: var(--ui-text-primary); }
.header-action svg { width: 16px; height: 16px; }
.header-cart { position: relative; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: var(--ui-radius-pill);
  background: var(--ui-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.header-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-text-primary);
  background: var(--ui-bg-elevated);
  transition: all var(--ui-fast) var(--ui-ease);
}
.header-login:hover { border-color: var(--ui-accent); color: var(--ui-accent); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  color: var(--ui-text-secondary);
}

/* 会员下拉 */
.member-menu { position: relative; }
.member-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-elevated);
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}
.member-menu > summary::-webkit-details-marker { display: none; }
.member-menu > summary > span:nth-child(2) {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-menu > summary svg { width: 14px; height: 14px; color: var(--ui-text-muted); }
.member-menu[open] > summary { border-color: var(--ui-accent); }
.avatar {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
  font-size: 12px;
  font-weight: 800;
}
.member-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 208px;
  padding: 7px;
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-2);
  z-index: 60;
}
.member-dropdown a,
.member-dropdown button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.member-dropdown a:hover,
.member-dropdown button:hover { background: var(--ui-bg-soft); color: var(--ui-text-primary); }
.member-dropdown svg { width: 15px; height: 15px; }
.member-dropdown hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--ui-border); }

/* 移动端抽屉 */
.mobile-drawer {
  position: fixed;
  inset: var(--ui-header-h) 0 auto;
  z-index: 49;
  display: none;
  gap: 4px;
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-2);
}
.mobile-drawer a {
  padding: 12px 14px;
  border-radius: var(--ui-radius-md);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ui-text-secondary);
}
.mobile-drawer a:hover,
.mobile-drawer a.active { background: var(--ui-bg-soft); color: var(--ui-accent-hover); }
body.drawer-open .mobile-drawer { display: grid; }

/* ---------- 7. 主体与页头 ---------- */
.page-main { flex: 1; padding-block: 30px 72px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { font-size: clamp(24px, 2.8vw, 30px); }
.page-head p { margin-top: 6px; color: var(--ui-text-muted); font-size: 14px; }
.page-head .head-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 10px;
  border-radius: var(--ui-radius-md);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
}
.page-head .head-icon svg { width: 20px; height: 20px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ui-text-muted);
}
.breadcrumbs a:hover { color: var(--ui-accent); }
.breadcrumbs .sep { opacity: 0.55; }
.breadcrumbs strong { color: var(--ui-text-primary); font-weight: 600; }

/* ---------- 8. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
  padding: 50px 46px;
  margin-bottom: 44px;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(100, 85, 232, 0.13), transparent 58%),
    linear-gradient(160deg, #fbfbfd 0%, #f1f0f8 100%);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-xl);
  box-shadow: var(--ui-shadow-1);
}

.hero-copy { position: relative; z-index: 2; max-width: 520px; }
.hero-copy .eyebrow { color: var(--ui-accent-hover); }
.hero-copy h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.03em; }
.hero-sub { margin-top: 14px; color: var(--ui-text-secondary); font-size: 16px; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: var(--ui-radius-pill);
  background: var(--ui-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 28px -18px var(--ui-accent);
}
.hero-link:hover { background: var(--ui-accent-hover); color: #fff; }
.hero-link svg { width: 15px; height: 15px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-meta .tag { background: rgba(255, 255, 255, 0.72); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.orbit { position: absolute; border: 1px dashed rgba(100, 85, 232, 0.28); border-radius: 50%; }
.orbit-one { width: 268px; height: 268px; animation: spin 26s linear infinite; }
.orbit-two { width: 196px; height: 196px; border-color: rgba(100, 85, 232, 0.16); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.ai-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--ui-accent), #a06cf5);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 30px 60px -30px rgba(100, 85, 232, 0.7);
}

.float-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--ui-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-1);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ui-text-secondary);
}
.label-one { top: 26px; right: 8px; }
.label-two { bottom: 30px; left: 4px; }
.label-three { bottom: 96px; right: 22px; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-success); }
.float-label svg { width: 14px; height: 14px; color: var(--ui-accent); }

/* ---------- 9. 目录区 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head h1,
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  width: min(320px, 100%);
  height: 42px;
  padding: 0 14px;
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-pill);
  box-shadow: var(--ui-shadow-1);
  transition: border-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease);
}
.search-box:focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 4px var(--ui-accent-ring); }
.search-box > svg { width: 16px; height: 16px; color: var(--ui-text-muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.search-box input:focus { outline: none; }
.search-box button { border: 0; background: transparent; color: var(--ui-text-muted); padding: 4px; }
.search-box button:hover { color: var(--ui-accent); }

.catalog-toolbar { margin-bottom: 24px; border-bottom: 1px solid var(--ui-border); }
.category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  position: relative;
  flex: none;
  padding: 12px 14px 14px;
  border: 0;
  background: transparent;
  color: var(--ui-text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--ui-fast) var(--ui-ease);
}
.category-tab:hover { color: var(--ui-text-primary); }
.category-tab span { margin-left: 6px; color: var(--ui-text-muted); font-size: 12px; font-weight: 500; }
.category-tab.active { color: var(--ui-text-primary); }
.category-tab.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--ui-accent);
}

/* ---------- 10. 商品网格与卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  box-shadow: var(--ui-shadow-1);
  transition: transform var(--ui-normal) var(--ui-ease), box-shadow var(--ui-normal) var(--ui-ease), border-color var(--ui-normal) var(--ui-ease);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 85, 232, 0.34);
  box-shadow: var(--ui-shadow-card);
}

.card-image-wrap { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card-image {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  color: #fff;
}
.card-image .art-brand { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.82; }
.card-image .art-title { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card-image .art-sub { display: block; margin-top: 3px; font-size: 12px; opacity: 0.8; }
.card-image > span:nth-child(2) { display: block; }
.card-image .art-glyph {
  position: absolute;
  right: -14px; bottom: -22px;
  font-size: 108px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.13;
  letter-spacing: -0.06em;
}
/* 真实商品图铺满卡片；没有图时才用渐变底 + 叠字，两种形态互斥。 */
.card-photo,
.detail-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 只有叠字的渐变底才需要压暗层，真实图片不加遮罩以免发灰。 */
.card-image:not(:has(.card-photo))::after,
.detail-media:not(.has-photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.1), rgba(10, 12, 24, 0.5));
  pointer-events: none;
}
.card-image > .art-brand,
.card-image > .art-text,
.card-image > .art-glyph,
.detail-media > .art-brand,
.detail-media > .art-text,
.detail-media > .art-glyph { position: relative; z-index: 1; }
.card-sales { font-style: normal; margin-left: 8px; color: var(--ui-text-muted); font-size: 11.5px; font-weight: 500; }
.card-tags .tag-out { background: rgba(201, 52, 47, 0.9); }
.fact-date { display: inline; margin-left: 3px; color: var(--ui-text-muted); font-size: 10.5px; font-weight: 500; }

.art-v0 { background: linear-gradient(135deg, #1f6f5c, #123f3a); }
.art-v1 { background: linear-gradient(135deg, #2a4b9b, #16264f); }
.art-v2 { background: linear-gradient(135deg, #5b3fa8, #2b1d55); }
.art-v3 { background: linear-gradient(135deg, #8a4a20, #3c2114); }
.art-v4 { background: linear-gradient(135deg, #146b7a, #0b3540); }

.card-tags {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}
.card-tags span {
  padding: 3px 8px;
  border-radius: var(--ui-radius-sm);
  background: rgba(18, 18, 22, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.card-content { display: flex; flex-direction: column; flex: 1; padding: 15px 17px 16px; }
.card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-brand svg { width: 14px; height: 14px; opacity: 0.6; }
.card-content h3 { margin-top: 7px; font-size: 15.5px; line-height: 1.35; }
.card-content h3 a:hover { color: var(--ui-accent); }
.card-description { margin-top: 5px; color: var(--ui-text-muted); font-size: 12.5px; }
.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ui-price);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.card-price small { font-size: 13px; font-weight: 700; }
.card-price em { font-style: normal; margin-left: 5px; color: var(--ui-text-muted); font-size: 11.5px; font-weight: 500; }

.catalog-note { margin-top: 18px; color: var(--ui-text-muted); font-size: 12.5px; }

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 62px 24px;
  text-align: center;
  color: var(--ui-text-muted);
}
.empty-state svg { width: 34px; height: 34px; opacity: 0.4; }
.empty-state h3 { color: var(--ui-text-primary); font-size: 16px; }
.empty-state p { font-size: 13.5px; max-width: 380px; }
.empty-state .btn { margin-top: 6px; }

/* ---------- 11. 合作与客服带 ---------- */
.coop-band {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-1);
}
.coop-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--ui-radius-md);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
}
.coop-icon svg { width: 21px; height: 21px; }
.coop-copy { flex: 1; min-width: 240px; }
.coop-copy .eyebrow { margin-bottom: 5px; }
.coop-copy h2 { font-size: 18px; }
.coop-copy p { margin-top: 4px; color: var(--ui-text-muted); font-size: 13px; }
.coop-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.support-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: linear-gradient(100deg, rgba(100, 85, 232, 0.09), rgba(100, 85, 232, 0.03));
  border: 1px solid rgba(100, 85, 232, 0.18);
  border-radius: var(--ui-radius-lg);
}
.support-strip .strip-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ui-accent-hover);
}
.support-strip .strip-copy { flex: 1; min-width: 220px; }
.support-strip h3 { font-size: 15px; }
.support-strip p { margin-top: 2px; color: var(--ui-text-muted); font-size: 12.5px; }

/* ---------- 12. 商品详情 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 30px;
  padding: 26px;
}
.detail-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: var(--ui-radius-lg);
  color: #fff;
  overflow: hidden;
}
.detail-media .art-brand { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.detail-media .art-title { display: block; font-size: 27px; font-weight: 800; margin-top: auto; }
.detail-media .art-sub { display: block; margin-top: 6px; font-size: 13px; opacity: 0.85; }
.detail-media > span:nth-child(3) { display: block; }
.detail-media .art-glyph { position: absolute; right: -10px; bottom: -26px; font-size: 156px; font-weight: 800; line-height: 1; opacity: 0.12; }

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  background: var(--ui-border);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  overflow: hidden;
}
.detail-facts div { padding: 12px 14px; background: var(--ui-bg-elevated); }
.detail-facts dt { color: var(--ui-text-muted); font-size: 11.5px; font-weight: 600; }
.detail-facts dd { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; }

.detail-copy .eyebrow { margin-bottom: 6px; color: var(--ui-accent-hover); }
.detail-copy h1 { font-size: clamp(24px, 3vw, 32px); }
.detail-subtitle { margin-top: 6px; color: var(--ui-text-muted); font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.price-block {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--ui-bg-soft);
  border-radius: var(--ui-radius-md);
}
.price-block .label { color: var(--ui-text-muted); font-size: 12px; font-weight: 600; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price-line .amount { display: flex; align-items: baseline; gap: 2px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--ui-price); }
.price-line .amount small { font-size: 17px; font-weight: 700; }
.price-line .currency { color: var(--ui-text-muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; }

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ui-text-secondary);
}
.field-label small { color: var(--ui-text-muted); font-weight: 500; font-size: 12px; }

.spec-list { display: grid; gap: 9px; }
.spec-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  text-align: left;
  transition: all var(--ui-fast) var(--ui-ease);
}
.spec-option:hover { border-color: var(--ui-accent); }
.spec-option.active {
  border-color: var(--ui-accent);
  background: var(--ui-accent-soft);
  box-shadow: 0 0 0 3px var(--ui-accent-ring);
}
.spec-option strong { display: block; font-size: 14px; }
.spec-option span { display: block; margin-top: 2px; color: var(--ui-text-muted); font-size: 12px; }
.spec-option svg { width: 16px; height: 16px; color: var(--ui-accent); opacity: 0; }
.spec-option.active svg { opacity: 1; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  overflow: hidden;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--ui-text-secondary);
}
.stepper button:hover { background: var(--ui-bg-muted); color: var(--ui-accent); }
.stepper input {
  width: 52px;
  height: 38px;
  border: 0;
  border-inline: 1px solid var(--ui-border);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--ui-bg-elevated);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.buy-row { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }
.buy-row .btn { flex: 1; min-width: 150px; padding-block: 13px; }

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ui-border-strong);
  font-size: 13px;
  color: var(--ui-text-muted);
}
.total-row b { font-size: 19px; color: var(--ui-price); font-weight: 800; }

.detail-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--ui-border); }
.detail-tabs button {
  position: relative;
  padding: 15px 12px;
  border: 0;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 14px;
  font-weight: 700;
}
.detail-tabs button:hover { color: var(--ui-text-primary); }
.detail-tabs button.active { color: var(--ui-text-primary); }
.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--ui-accent);
}
.tab-body { padding: 24px 22px 26px; }

.prose { color: var(--ui-text-secondary); font-size: 14.5px; }
.prose h3 { margin: 22px 0 8px; font-size: 15.5px; }
.prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: 10px; }

.rule-list { display: grid; gap: 10px; margin-top: 6px; }
.rule-list li {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  background: var(--ui-bg-soft);
  border-radius: var(--ui-radius-md);
  font-size: 13.5px;
  color: var(--ui-text-secondary);
}
.rule-list li::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
  font-size: 11px;
  font-weight: 800;
}

.guide-steps { display: grid; gap: 12px; }
.guide-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
}
.guide-step b {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
  font-size: 14px;
}
.guide-step h4 { font-size: 14.5px; }
.guide-step p { margin-top: 4px; color: var(--ui-text-muted); font-size: 13px; }

.side-stack { display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: var(--ui-radius-md);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
}
.side-card h3 { font-size: 15px; }
.side-card p { margin-top: 5px; color: var(--ui-text-muted); font-size: 12.5px; }
.side-card .btn-row { margin-top: 14px; flex-direction: column; }
.side-card .btn-row .btn { width: 100%; }
.side-card.tinted {
  background: linear-gradient(150deg, rgba(100, 85, 232, 0.09), rgba(100, 85, 232, 0.02));
  border-color: rgba(100, 85, 232, 0.2);
}

/* ---------- 13. 结算步骤条 ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 20px;
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-1);
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ui-text-muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.step i {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ui-bg-muted);
  color: var(--ui-text-muted);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
}
.step.active { color: var(--ui-text-primary); }
.step.active i { background: var(--ui-accent); color: #fff; }
.step.done i { background: var(--ui-success-soft); color: var(--ui-success); }
.steps hr { flex: 1; min-width: 20px; height: 1px; margin: 0; border: 0; background: var(--ui-border); }

/* ---------- 14. 购物车 / 结算 ---------- */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.cart-list { display: grid; gap: 1px; background: var(--ui-border); }
.cart-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--ui-bg-elevated);
}
.cart-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--ui-radius-sm);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}
.cart-row h3 { font-size: 15px; }
.cart-meta { margin-top: 3px; color: var(--ui-text-muted); font-size: 12.5px; }
.cart-price { font-size: 16px; font-weight: 800; white-space: nowrap; }
.cart-remove {
  border: 0;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 0;
}
.cart-remove:hover { color: var(--ui-danger); }

.summary { padding: 22px; }
.summary h2 { font-size: 16px; }
.summary-list { display: grid; gap: 10px; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px dashed var(--ui-border-strong); }
.summary-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ui-text-muted); }
.summary-list div b { color: var(--ui-text-primary); font-weight: 700; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-total span { font-size: 13px; color: var(--ui-text-muted); }
.summary-total b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.summary .btn-block { margin-top: 16px; }
.summary-note { margin-top: 12px; color: var(--ui-text-muted); font-size: 12px; line-height: 1.55; }

.checkout-items { display: grid; gap: 1px; background: var(--ui-border); }
.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
  background: var(--ui-bg-elevated);
  font-size: 14px;
}
.checkout-item span { color: var(--ui-text-muted); font-size: 13px; }
.checkout-item b { font-weight: 700; white-space: nowrap; }

/* ---------- 15. 支付页壳子 ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pay-method {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
}
.pay-method svg { width: 22px; height: 22px; color: var(--ui-text-muted); }
.pay-method strong { font-size: 14px; }
.pay-method span { font-size: 12px; color: var(--ui-text-muted); }
.pay-method[data-off="1"] { background: var(--ui-bg-soft); opacity: 0.8; }

.qr-panel {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 34px 22px;
  text-align: center;
  border: 1px dashed var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-soft);
}
.qr-box {
  display: grid;
  place-items: center;
  width: 148px; height: 148px;
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-muted);
}
.qr-box svg { width: 34px; height: 34px; }
.qr-panel h3 { font-size: 15px; }
.qr-panel p { max-width: 340px; color: var(--ui-text-muted); font-size: 12.5px; }

/* ---------- 16. 会员认证页 ---------- */
.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px 72px;
}
.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(940px, 100%);
  background: var(--ui-bg-elevated);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-xl);
  box-shadow: var(--ui-shadow-3);
  overflow: hidden;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(100, 85, 232, 0.16), transparent 62%),
    linear-gradient(165deg, #f4f2fd, #ece9fb);
  border-right: 1px solid var(--ui-border);
}
.auth-aside .brand { margin-bottom: 34px; }
.auth-aside .eyebrow { color: var(--ui-accent-hover); }
.auth-aside h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.03em; }
.auth-aside > p { margin-top: 12px; color: var(--ui-text-secondary); font-size: 13.5px; }
.auth-features { display: grid; gap: 10px; margin-top: 28px; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--ui-radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ui-text-secondary);
}
.auth-feature svg { width: 15px; height: 15px; color: var(--ui-accent); }
.auth-feature .arrow { margin-left: auto; width: 13px; height: 13px; opacity: 0.5; }
.auth-foot { margin-top: auto; padding-top: 30px; color: var(--ui-text-muted); font-size: 12px; }

.auth-body { padding: 34px 38px 38px; }
.auth-body h1 { font-size: 24px; }
.auth-intro { margin-top: 6px; color: var(--ui-text-muted); font-size: 13.5px; }
.auth-body .message { margin-bottom: 18px; }

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin: 20px 0 22px;
  background: var(--ui-bg-soft);
  border-radius: var(--ui-radius-pill);
}
.segmented a {
  padding: 7px 18px;
  border-radius: var(--ui-radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ui-text-muted);
  transition: all var(--ui-fast) var(--ui-ease);
}
.segmented a:hover { color: var(--ui-text-primary); }
.segmented a.active { background: var(--ui-bg-elevated); color: var(--ui-accent-hover); box-shadow: var(--ui-shadow-1); }

.method-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.method-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-soft);
  color: var(--ui-text-secondary);
  font-size: 13.5px;
  font-weight: 700;
}
.method-switch button.active {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: #fff;
  box-shadow: 0 12px 24px -18px var(--ui-accent);
}
.method-switch button[disabled] { opacity: 0.6; }
.method-switch svg { width: 15px; height: 15px; }

.field { margin-bottom: 16px; }
.field > label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ui-text-secondary);
}
.field > label svg { width: 14px; height: 14px; color: var(--ui-text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  font-size: 14px;
  transition: border-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ui-accent); box-shadow: 0 0 0 4px var(--ui-accent-ring); }
.field input[readonly] { background: var(--ui-bg-soft); color: var(--ui-text-muted); }
.field input::placeholder { color: #a1a1a6; }
.field small { display: block; margin-top: 6px; color: var(--ui-text-muted); font-size: 12px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-text-muted);
}
.password-toggle:hover { background: var(--ui-bg-muted); color: var(--ui-text-primary); }

.code-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.code-field .btn { white-space: nowrap; }

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--ui-text-secondary);
}
.remember-row label { display: inline-flex; align-items: center; gap: 7px; }
.remember-row input { width: 15px; height: 15px; accent-color: var(--ui-accent); }

.auth-switch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-border);
  text-align: center;
  font-size: 13px;
  color: var(--ui-text-muted);
}
.auth-switch a { color: var(--ui-accent); font-weight: 700; }
.auth-back { margin-top: 14px; text-align: center; font-size: 13px; }

/* ---------- 17. 会员中心 ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.account-sidebar { overflow: hidden; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(150deg, rgba(100, 85, 232, 0.1), transparent);
  border-bottom: 1px solid var(--ui-border);
}
.sidebar-user .avatar { width: 38px; height: 38px; font-size: 15px; }
.sidebar-user strong { display: block; font-size: 14.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: var(--ui-text-muted); font-size: 12px; }
.sidebar-label {
  padding: 14px 20px 6px;
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sidebar-nav { display: grid; gap: 2px; padding: 0 10px 12px; }
.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.sidebar-nav a:hover,
.sidebar-nav button:hover { background: var(--ui-bg-soft); color: var(--ui-text-primary); }
.sidebar-nav a.active { background: var(--ui-accent-soft); color: var(--ui-accent-hover); }
.sidebar-nav svg { width: 16px; height: 16px; }
.sidebar-nav hr { margin: 8px 4px; border: 0; border-top: 1px solid var(--ui-border); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card { padding: 18px; }
.stat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.stat-title svg { width: 15px; height: 15px; color: var(--ui-accent); }
.stat-card strong { display: block; margin-top: 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card strong.stat-date { font-size: 18px; letter-spacing: 0; }
.stat-card small { display: block; margin-top: 4px; color: var(--ui-text-muted); font-size: 12px; }

.record-notice {
  padding: 13px 16px;
  margin-bottom: 18px;
  background: var(--ui-warning-soft);
  border: 1px solid rgba(176, 107, 0, 0.22);
  border-radius: var(--ui-radius-md);
  color: #8a5300;
  font-size: 13px;
}

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  padding: 12px 18px;
  background: var(--ui-bg-soft);
  color: var(--ui-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--ui-border);
}
tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--ui-border);
  vertical-align: top;
  color: var(--ui-text-secondary);
}
tbody tr:last-child td { border-bottom: 0; }
.record-product { display: block; font-weight: 700; color: var(--ui-text-primary); }
.record-id {
  display: block;
  margin-top: 2px;
  color: var(--ui-text-muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.record-time { color: var(--ui-text-muted); font-size: 12px; }
.table-action { color: var(--ui-accent); font-size: 12.5px; font-weight: 600; }
.table-action:hover { text-decoration: underline; }
.table-empty { padding: 52px 18px; text-align: center; color: var(--ui-text-muted); white-space: normal; }
.table-empty svg { width: 30px; height: 30px; margin: 0 auto 8px; opacity: 0.4; }
.table-empty p { margin-bottom: 14px; }

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ui-border);
}
.orders-toolbar small { color: var(--ui-text-muted); font-size: 12.5px; }
.orders-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-pill);
  background: var(--ui-bg-elevated);
  font-size: 13.5px;
}
.orders-search:focus { outline: none; border-color: var(--ui-accent); box-shadow: 0 0 0 4px var(--ui-accent-ring); }

.order-success {
  padding: 20px 22px;
  margin-bottom: 18px;
  background: var(--ui-success-soft);
  border: 1px solid rgba(47, 143, 111, 0.26);
  border-radius: var(--ui-radius-lg);
}
.order-success h2 { font-size: 16px; color: #1f6b52; }
.order-success p { margin: 6px 0 14px; font-size: 13.5px; color: #246f56; }

.settings-grid { display: grid; gap: 16px; }
.settings-grid .panel-body { max-width: 560px; }
.inline-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--ui-success);
  font-size: 12px;
  font-weight: 600;
}
.inline-verified svg { width: 14px; height: 14px; }

.error-panel { padding: 56px 24px; text-align: center; }
.error-panel h1 { font-size: 22px; }
.error-panel p { margin: 10px auto 20px; max-width: 460px; color: var(--ui-text-muted); font-size: 14px; }

/* ---------- 18. 公告弹窗 ---------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ui-bg-scrim);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in var(--ui-normal) var(--ui-ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(82vh, 640px);
  padding: 26px 28px 0;
  background: var(--ui-bg-elevated);
  border-radius: var(--ui-radius-xl);
  box-shadow: var(--ui-shadow-3);
  animation: pop-in var(--ui-normal) var(--ui-ease);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-scroll { overflow: auto; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--ui-radius-md);
  background: var(--ui-info-soft);
  color: var(--ui-info);
}
.modal-head h2 { font-size: 17px; }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--ui-border);
  border-radius: 50%;
  background: var(--ui-bg-elevated);
  color: var(--ui-text-muted);
}
.modal-close:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.modal-close svg { width: 14px; height: 14px; }

.modal-body { padding-bottom: 20px; }
.modal-body > p { font-size: 13.5px; color: var(--ui-text-secondary); }
.modal-list { display: grid; gap: 9px; margin-top: 10px; }
.modal-list li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ui-text-secondary); }
.modal-list li i {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--ui-info);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.modal-sub { display: flex; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 13.5px; font-weight: 700; }
.modal-sub svg { width: 14px; height: 14px; color: var(--ui-warning); }
.modal-foot-note { padding-bottom: 20px; color: var(--ui-text-muted); font-size: 12.5px; }

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 28px;
  border-top: 1px solid var(--ui-border);
  margin: auto -28px 0;
}
.link-set { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ui-text-muted); }
.link-set button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ui-text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.link-set button:hover { color: var(--ui-accent); }
.link-set i { font-style: normal; opacity: 0.5; }

/* ---------- 19. 页脚 ---------- */
.site-footer {
  background: var(--ui-bg-elevated);
  border-top: 1px solid var(--ui-border);
  margin-top: auto;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 26px;
}
.footer-top .brand { font-size: 15px; }
.footer-top .divider { width: 1px; height: 18px; background: var(--ui-border); }
.footer-top p { color: var(--ui-text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; font-size: 13px; color: var(--ui-text-muted); }
.footer-links a:hover { color: var(--ui-accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-text-muted);
  font-size: 12px;
}
.footer-bottom .domain { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-grid { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 38px 30px; }
  .hero-visual { min-height: 220px; margin-top: 8px; }
  .detail-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .auth-card { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { border-right: 0; border-bottom: 1px solid var(--ui-border); padding: 30px; }
  .auth-features { display: none; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-sidebar { position: static; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { width: 100%; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-row { grid-template-columns: 62px minmax(0, 1fr); row-gap: 10px; }
  .cart-row .stepper,
  .cart-row .cart-price,
  .cart-row .cart-remove { grid-column: 2; justify-self: start; }
  .detail-facts { grid-template-columns: minmax(0, 1fr); }
  .steps hr { display: none; }
  .page-main { padding-block: 22px 56px; }
  .header-action .label-text { display: none; }
  .brand small { display: none; }
  .sidebar-nav { grid-auto-flow: column; overflow-x: auto; }
  .sidebar-nav a, .sidebar-nav button { white-space: nowrap; width: auto; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .buy-row .btn { min-width: 0; }
  .hero { padding: 30px 22px; border-radius: var(--ui-radius-lg); }
  .orbit-one { width: 208px; height: 208px; }
  .orbit-two { width: 152px; height: 152px; }
  .ai-tile { width: 100px; height: 100px; font-size: 26px; border-radius: 26px; }
  .label-three { display: none; }
  .auth-body { padding: 26px 22px 30px; }
  .modal { padding: 22px 22px 0; }
  .modal-actions { margin-inline: -22px; padding-inline: 22px; }
  .code-field { grid-template-columns: minmax(0, 1fr); }
  .footer-links { margin-left: 0; width: 100%; }
  .field input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .modal-scrim, .toast, .buy-row, .steps, .mobile-drawer { display: none !important; }
  body { background: #fff; }
}

/* Storefront home */
.home-intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:center;padding:clamp(26px,6vw,76px);margin-block:16px 46px;border-radius:22px;background:#101d20;color:#f5faf8}
.home-intro-copy{max-width:590px}
.home-intro .home-brand{font-weight:700;color:#99dfba;margin-bottom:18px}
.home-intro h1{font-size:clamp(34px,5vw,68px);line-height:1.1;letter-spacing:-.05em;margin:0 0 20px;color:#f5faf8}
.home-intro-copy>p{color:#c4d7d2;max-width:38ch}
.home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:25px}
.home-actions>a:not(.btn){color:#e6f4ef}
.home-featured{display:grid;gap:12px}
.home-featured > div,.home-featured > a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid #3a5552;border-radius:13px;background:#192f30;color:#f5faf8;transition:background .15s}

.home-featured strong,.home-featured small{display:block}
.home-featured small{color:#bad2ca;margin-top:5px}
.home-buying{margin-block:42px;padding:26px;border:1px solid #dfe8e3;border-radius:16px;background:#f1f7f4;scroll-margin-top:90px}
.home-buying ol{list-style:decimal;padding-left:1.5rem;margin:12px 0 18px;display:grid;gap:8px}
@media(max-width:720px){.home-intro{grid-template-columns:1fr;margin-bottom:30px}.home-intro h1{letter-spacing:-.03em}}

