:root {
  /* Apple Cupertino Light Palette */
  --bg-page: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-elevated: #fbfbfd;
  --bg-glass: rgba(251, 251, 253, 0.78);
  --bg-subtle: #f5f5f7;
  --bg-selected: #ffffff;
  --bg-pill: rgba(0, 0, 0, 0.045);

  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-soft: #d2d2d7;
  --border-strong: #86868b;

  --text-main: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;

  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-soft: rgba(0, 113, 227, 0.1);
  --apple-blue-ring: rgba(0, 113, 227, 0.22);
  --apple-orange: #bf4800;
  --apple-green: #1d9f3a;
  --apple-red: #e30000;
  --apple-amber: #b25000;

  /* 兼容别名，确保管理后台与动态脚本样式一致 */
  --primary: var(--apple-blue);
  --primary-hover: var(--apple-blue-hover);
  --primary-soft: var(--apple-blue-soft);
  --green: var(--apple-green);
  --danger: var(--apple-red);
  --warning: var(--apple-amber);

  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.22);

  --radius-2xl: 24px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-pill: 980px;
}

[data-theme="dark"] {
  /* Apple Pro Midnight Palette */
  --bg-page: #000000;
  --bg-surface: #1c1c1e;
  --bg-elevated: #141416;
  --bg-glass: rgba(22, 22, 24, 0.78);
  --bg-subtle: #2c2c2e;
  --bg-selected: #1c1c1e;
  --bg-pill: rgba(255, 255, 255, 0.08);

  --border-hairline: rgba(255, 255, 255, 0.11);
  --border-soft: #38383a;
  --border-strong: #636366;

  --text-main: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #86868b;

  --apple-blue: #2997ff;
  --apple-blue-hover: #47a6ff;
  --apple-blue-soft: rgba(41, 151, 255, 0.16);
  --apple-blue-ring: rgba(41, 151, 255, 0.3);
  --apple-orange: #ff9f0a;
  --apple-green: #30d158;
  --apple-red: #ff453a;
  --apple-amber: #ffd60a;

  --primary: var(--apple-blue);
  --primary-hover: var(--apple-blue-hover);
  --primary-soft: var(--apple-blue-soft);
  --green: var(--apple-green);
  --danger: var(--apple-red);
  --warning: var(--apple-amber);

  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 32px 84px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.012em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   1. Apple 级毛玻璃吸顶导航栏
   ========================================================================== */
.apple-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar {
  max-width: 1120px;
  width: 100%;
  height: 52px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--text-main);
  color: var(--bg-surface);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* 顶部居中分段分类栏 */
.cat-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  min-width: 0;
}

.cat-tab-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}

.cat-tab-btn:hover {
  color: var(--text-main);
}

.cat-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 0.5px var(--border-hairline);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-link-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: var(--text-main);
  background: var(--bg-pill);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s, color 0.18s;
}

.icon-btn:hover {
  background: var(--bg-pill);
  color: var(--text-main);
}

.login-outline-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.login-outline-btn:hover {
  border-color: var(--text-main);
}

/* Apple Store 顶部公告丝带条 */
.apple-ribbon {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  padding: 10px 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.apple-ribbon-btn {
  border: none;
  background: transparent;
  color: var(--apple-blue);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 6px;
}

.apple-ribbon-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. Apple Store 双色调大标题 Hero 区
   ========================================================================== */
.hero-section {
  max-width: 1120px;
  width: 100%;
  margin: 44px auto 34px;
  padding: 0 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-orange);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-headline {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.14;
  max-width: 720px;
}

.hero-headline-primary {
  color: var(--text-main);
}

.hero-headline-muted {
  color: var(--text-secondary);
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.55;
  white-space: pre-line;
}

/* 右侧 Apple Specialist 专员卡片风格快捷入口 */
.hero-specialists {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.specialist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.specialist-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.specialist-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.specialist-link {
  font-size: 13px;
  color: var(--apple-blue);
  font-weight: 500;
}

.specialist-row:hover .specialist-link {
  text-decoration: underline;
}

/* ==========================================================================
   3. 核心双栏 Apple Configurator 选购布局
   ========================================================================== */
.configurator-grid {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto 56px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: start;
}

.step-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.step-heading span {
  color: var(--text-secondary);
  font-weight: 600;
}

/* 左侧套餐区 */
.plan-column {
  display: flex;
  flex-direction: column;
}

.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.apple-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.apple-search-box:focus-within {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px var(--apple-blue-ring);
}

.plan-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-main);
}

.sidebar-count {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Apple Store 招牌配置单选卡片 */
.plan-card {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.plan-card:hover:not(.disabled) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-subtle);
}

.plan-card.active {
  border: 2px solid var(--apple-blue);
  padding: 19px 21px; /* 补偿 1px 边框差，零抖动 */
  box-shadow: 0 0 0 4px var(--apple-blue-ring), var(--shadow-subtle);
}

.plan-card.disabled {
  opacity: 0.52;
  cursor: not-allowed;
  background: var(--bg-elevated);
}

.plan-info {
  flex: 1;
  min-width: 0;
}

.plan-name {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}

.plan-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.apple-micro-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
}

.apple-micro-tag.vip {
  background: var(--apple-blue-soft);
  color: var(--apple-blue);
}

.plan-price-col {
  text-align: right;
  flex-shrink: 0;
}

.plan-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.plan-cost {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-price.vip-highlight {
  color: var(--apple-blue);
}

.vip-price-tag {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--apple-orange);
  background: rgba(191, 72, 0, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.vip-save-pill {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--apple-green);
  background: rgba(29, 159, 58, 0.12);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

.account-pricing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
}

.account-pricing-bar.is-vip {
  background: rgba(29, 159, 58, 0.09);
  border-color: rgba(29, 159, 58, 0.28);
  color: var(--apple-green);
}

.account-pricing-bar.is-normal {
  background: var(--apple-blue-soft);
  border-color: rgba(0, 113, 227, 0.2);
  color: var(--text-main);
}

.pricing-bar-action {
  border: none;
  background: transparent;
  color: var(--apple-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-bar-action:hover {
  text-decoration: underline;
}

/* Apple 风格底部辅助说明卡片 */
.apple-callout-card {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apple-callout-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. 右侧吸顶结账卡片
   ========================================================================== */
.checkout-panel {
  position: sticky;
  top: 72px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-card);
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checkout-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-green);
  background: rgba(29, 159, 58, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.auto-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apple-green);
}

.checkout-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11.5px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px var(--apple-blue-ring);
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-img-btn {
  height: 46px;
  width: 122px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.15s;
}

.captcha-img-btn:hover {
  opacity: 0.85;
}

.captcha-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider {
  height: 1px;
  background: var(--border-hairline);
  margin: 18px 0;
}

/* 数量步进器 */
.summary-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.selected-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.selected-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease;
}

.qty-btn:active {
  transform: scale(0.92);
}

.qty-val {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* 支付方式苹果风瓦片 */
.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pay-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 12px 12px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.pay-card:hover {
  border-color: var(--border-strong);
}

.pay-card.active {
  border: 2px solid var(--apple-blue);
  padding: 11px 11px;
  box-shadow: 0 0 0 3px var(--apple-blue-ring);
}

.pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.pay-icon.usdt {
  background: rgba(29, 159, 58, 0.12);
  color: var(--apple-green);
}

.pay-icon.wechat {
  background: rgba(7, 193, 96, 0.12);
  color: #07c160;
}

.pay-meta-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.pay-meta-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 结算汇总框 */
.apple-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.total-price-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.total-price-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.submit-pill-btn {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--apple-blue);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.submit-pill-btn:hover:not(:disabled) {
  background: var(--apple-blue-hover);
}

.submit-pill-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trust-micro-bar {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   5. Apple Bento 特性卡片墙
   ========================================================================== */
.bento-section {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto 64px;
  padding: 0 22px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.bento-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.bento-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   6. 独立视图面板（查单 / 会员兑换中心）
   ========================================================================== */
.single-panel-wrap {
  max-width: 820px;
  width: calc(100% - 44px);
  margin: 34px auto 64px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   7. macOS / iOS 毛玻璃弹窗 Sheet
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: appleSheetIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appleSheetIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-pill);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 22px 24px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated);
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin: 14px 0;
}

.mono-box {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.tag-badge.paid { background: rgba(29, 159, 58, 0.14); color: var(--apple-green); }
.tag-badge.pending { background: rgba(178, 80, 0, 0.12); color: var(--apple-amber); }
.tag-badge.expired { background: var(--bg-pill); color: var(--text-muted); }

/* Apple Card 风格会员横幅 */
.vip-banner {
  background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
  color: #ffffff;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Apple 极简页脚 */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
}

.site-footer-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 300;
}

@media (max-width: 960px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .configurator-grid {
    grid-template-columns: 1fr;
  }
  .checkout-panel {
    position: static;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .cat-pill-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}
