/* ==========================================================================
   翼卡 · 前台样式
   ========================================================================== */

/* ------------------------------ 顶部导航 ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, .07); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink-900); }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(59, 102, 245, .35);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.5s infinite;
}
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: -3px;
}

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-600);
  transition: all .16s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 用户菜单 */
.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 6px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-full);
  background: #fff;
  cursor: pointer;
  transition: all .16s;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
}
.user-trigger:hover { border-color: var(--brand-300); background: var(--brand-50); }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s var(--ease-out);
  z-index: 200;
}
.user-menu.open .dropdown, .dropdown.show { opacity: 1; visibility: visible; transform: none; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer;
  transition: background .14s;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}
.dropdown-item:hover { background: var(--ink-100); color: var(--ink-900); }
.dropdown-item.danger:hover { background: var(--danger-50); color: var(--danger-600); }
.dropdown-divider { height: 1px; background: var(--ink-200); margin: 6px 8px; }
.dropdown-balance {
  padding: 10px 13px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.dropdown-balance strong { color: var(--danger-600); font-size: 16px; }

.mobile-toggle {
  display: none;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink-700);
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2f6e 0%, #2547db 45%, #7c3aed 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, .28), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(167, 139, 250, .35), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(59, 102, 245, .4), transparent 55%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: pulseGlow 2s infinite;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(120deg, #67e8f9, #c4b5fd, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.82);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-search {
  max-width: 560px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(12px);
  margin-bottom: 52px;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.6); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 760px;
}
.hero-stat {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  transition: transform .25s var(--ease-out), background .25s;
}
.hero-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; }

/* 浮动卡片装饰 */
.hero-float {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 330px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  display: none;
  animation: float 6s ease-in-out infinite;
}
.hero-float .fh { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.hero-float .fi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}
.hero-float .fi:last-child { border-bottom: none; }
.hero-float .fi .ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  font-size: 16px;
}

@media (min-width: 1100px) {
  .hero .container { max-width: 1200px; }
  .hero { padding: 100px 0 108px; }
  .hero-inner { max-width: 640px; }
  .hero-float { display: block; }
}
@media (min-width: 1400px) {
  .hero-float { right: 8%; }
}

/* ------------------------------ 公告条 ------------------------------ */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: #92400e;
  margin: 28px 0;
}
.notice-bar .ico { font-size: 17px; flex-shrink: 0; }
.notice-bar .txt { flex: 1; line-height: 1.6; }

/* ------------------------------ 区块标题 ------------------------------ */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 26px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title .bar {
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
}
.section-desc { font-size: 14px; color: var(--ink-500); margin-top: 6px; }
.section-more { font-size: 14px; font-weight: 600; color: var(--brand-600); }
.section-more:hover { gap: 6px; }

/* ------------------------------ 分类快捷入口 ------------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all .22s var(--ease-out);
}
.cat-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff, var(--brand-50));
}
.cat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform .25s var(--ease-out);
}
.cat-item:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.cat-name { font-size: 14.5px; font-weight: 600; color: var(--ink-800); }
.cat-count { font-size: 12px; color: var(--ink-400); }

/* ------------------------------ 商品卡片 ------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .26s var(--ease-out);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--brand-100), var(--accent-400));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb .ph {
  font-size: 52px;
  opacity: .85;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
}
.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,23,42,.28));
  pointer-events: none;
}

.product-flags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.flag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}
.flag-hot { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.flag-new { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.flag-featured { background: linear-gradient(135deg, #f59e0b, #d97706); }

.product-stock {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255,255,255,.94);
  color: var(--success-700);
  z-index: 2;
  box-shadow: var(--shadow-xs);
}
.product-stock.low { color: var(--warn-600); }
.product-stock.out { color: var(--danger-600); }

.product-body { padding: 17px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-name { color: var(--brand-600); }
.product-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-200);
}
.product-price-row { display: flex; align-items: baseline; gap: 6px; }
.sales-count { font-size: 12px; color: var(--ink-400); }

.product-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.92);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-700);
  z-index: 2;
}

/* ------------------------------ 商品详情 ------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-500);
  padding: 22px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--ink-300); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 32px 0 56px;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 28px; } }

.detail-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  background: linear-gradient(135deg, var(--brand-100), var(--accent-400));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.detail-gallery .ph { font-size: 110px; opacity: .9; filter: drop-shadow(0 10px 24px rgba(0,0,0,.2)); }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { font-size: 27px; letter-spacing: -.02em; margin-bottom: 12px; }
.detail-sub { font-size: 14.5px; color: var(--ink-500); margin-bottom: 20px; }

.price-panel {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid #fecdd3;
  margin-bottom: 24px;
}
.price-panel .label { font-size: 13px; color: var(--ink-500); margin-bottom: 4px; }

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.fact {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
}
.fact .k { font-size: 12px; color: var(--ink-500); margin-bottom: 3px; }
.fact .v { font-size: 15px; font-weight: 700; color: var(--ink-900); }

.qty-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; }
.qty-btn {
  width: 42px; height: 44px;
  border: none;
  background: var(--ink-50);
  color: var(--ink-700);
  font-size: 19px;
  cursor: pointer;
  transition: background .15s;
  display: grid;
  place-items: center;
}
.qty-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.qty-input {
  width: 66px;
  height: 44px;
  border: none;
  border-left: 1.5px solid var(--ink-200);
  border-right: 1.5px solid var(--ink-200);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--ink-200);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-600); }
.trust-item .ico { font-size: 16px; }

/* 详情描述 */
.desc-block { font-size: 14.5px; line-height: 1.9; color: var(--ink-700); }
.desc-block p { margin-bottom: 14px; white-space: pre-wrap; }
.desc-block p:last-child { margin-bottom: 0; }

/* ------------------------------ 下单/支付 ------------------------------ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding: 32px 0 64px;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.order-summary {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink-600);
}
.summary-row .v { font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px dashed var(--ink-200);
}
.summary-total .k { font-size: 15px; font-weight: 600; color: var(--ink-700); }

.pay-methods { display: grid; gap: 11px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: all .18s var(--ease);
  position: relative;
}
.pay-method:hover { border-color: var(--brand-300); background: var(--brand-50); }
.pay-method.selected {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(59, 102, 245, .1);
}
.pay-method input { display: none; }
.pay-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--ink-100);
  flex-shrink: 0;
}
.pay-method.selected .pay-ico { background: #fff; }
.pay-info { flex: 1; }
.pay-name { font-size: 14.5px; font-weight: 600; color: var(--ink-900); }
.pay-desc { font-size: 12.5px; color: var(--ink-500); }
.pay-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .18s;
}
.pay-method.selected .pay-check { border-color: var(--brand-500); background: var(--brand-500); }
.pay-method.selected .pay-check::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* 倒计时 */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--danger-50);
  color: var(--danger-600);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 支付结果 */
.result-hero {
  text-align: center;
  padding: 52px 24px 40px;
}
.result-icon {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  animation: fadeUp .5s var(--ease-out) both;
}
.result-icon.success { background: var(--success-50); color: var(--success-600); box-shadow: 0 0 0 12px rgba(16, 185, 129, .1); }
.result-icon.pending { background: var(--warn-50); color: var(--warn-600); box-shadow: 0 0 0 12px rgba(245, 158, 11, .1); }
.result-icon.fail    { background: var(--danger-50); color: var(--danger-600); box-shadow: 0 0 0 12px rgba(239, 68, 68, .1); }
.result-title { font-size: 25px; margin-bottom: 10px; letter-spacing: -.02em; }
.result-desc { font-size: 14.5px; color: var(--ink-500); max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* 卡密列表 */
.secret-list { display: grid; gap: 11px; }
.secret-index {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 二维码 */
.qr-box {
  width: 210px; height: 210px;
  margin: 0 auto;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; object-fit: contain; }

/* 订单进度 */
.steps { display: flex; align-items: center; gap: 0; margin: 28px 0; }
.step { flex: 1; text-align: center; position: relative; }
.step-dot {
  width: 34px; height: 34px;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--ink-200);
  color: var(--ink-500);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all .25s;
}
.step.done .step-dot { background: var(--success-500); color: #fff; }
.step.active .step-dot { background: var(--brand-500); color: #fff; animation: pulseGlow 2s infinite; }
.step-label { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.step.done .step-label, .step.active .step-label { color: var(--ink-900); font-weight: 600; }
.step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--ink-200);
  z-index: 1;
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--success-500); }

/* ------------------------------ 认证页 ------------------------------ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 102, 245, .13), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(139, 92, 246, .13), transparent 42%),
    var(--ink-50);
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--ink-200);
}
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-logo {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-600));
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 28px rgba(59, 102, 245, .34);
}
.auth-title { font-size: 23px; letter-spacing: -.02em; margin-bottom: 7px; }
.auth-desc { font-size: 14px; color: var(--ink-500); }
.auth-foot { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-500); }

.captcha-row { display: flex; gap: 12px; align-items: stretch; }
.captcha-row .input { flex: 1; }
.captcha-img {
  height: 46px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink-200);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-100);
  transition: border-color .16s;
}
.captcha-img:hover { border-color: var(--brand-400); }

/* 认证页左右分栏 */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-side { display: none !important; } }
.auth-side {
  background: linear-gradient(135deg, #1e2f6e, #2547db 50%, #7c3aed);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,.3), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(167,139,250,.35), transparent 45%);
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side h2 { color: #fff; font-size: 34px; line-height: 1.25; margin-bottom: 18px; letter-spacing: -.025em; }
.auth-side p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.8; margin-bottom: 34px; }
.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.auth-feature:last-child { border-bottom: none; }
.auth-feature .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}
.auth-feature .t { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.auth-feature .d { font-size: 13px; color: rgba(255,255,255,.7); }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-400);
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: #fff; font-size: 19px; font-weight: 800; }
.footer-about { font-size: 13.5px; line-height: 1.8; color: var(--ink-400); max-width: 300px; }
.footer-title { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: var(--ink-400); font-size: 13.5px; }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-500);
}
.footer-contact { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.footer-contact .ico { color: var(--brand-400); }

/* ------------------------------ 移动端导航 ------------------------------ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 14px;
    gap: 4px;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .22s var(--ease-out);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 16px; font-size: 15px; }
  .mobile-toggle { display: block; }
  .nav { gap: 14px; }
  .site-header .btn span.hide-mobile { display: none; }
}

/* ==========================================================================
   首页 v2 · 浅色精致工具风
   --------------------------------------------------------------------------
   要点：
     · Hero 改为浅色，用「描边 + 网格底纹 + 右侧状态面板」表达专业性
     · 层次靠 surface 明暗与发丝边，而非大渐变与重阴影
     · 所有交互（hover / focus / active）都有明确反馈
   ========================================================================== */

/* ------------------------------ Hero v2 ------------------------------ */
.hero2 {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* 极淡的品牌色光晕 + 网格，克制但保留一点品牌气质 */
.hero2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 340px at 8% -10%, rgba(59, 102, 245, .07), transparent 70%),
    radial-gradient(560px 300px at 96% 0%, rgba(139, 92, 246, .06), transparent 70%),
    linear-gradient(rgba(16, 24, 40, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, .022) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.hero2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  gap: 44px;
  align-items: start;
}

/* ---- 左栏 ---- */
.hero2-left { min-width: 0; }

.hero2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-600);
  margin-bottom: 20px;
}
.hero2-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .16);
  flex-shrink: 0;
}

.hero2-title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 16px;
}
/* 关键词用品牌色 + 底部强调线，比整句渐变更克制 */
.hero2-mark {
  color: var(--brand-600);
  position: relative;
  white-space: nowrap;
}
.hero2-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .30em;
  background: var(--brand-100);
  border-radius: 2px;
  z-index: -1;
}

.hero2-sub {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-600);
  max-width: 62ch;
  margin-bottom: 26px;
}
.hero2-sub strong { color: var(--ink-900); font-weight: 600; }

/* 搜索框：工具风重点控件 */
.hero2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  margin-bottom: 18px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.hero2-search:focus-within {
  border-color: var(--brand-400);
  box-shadow: var(--focus-ring);
}
.hero2-search-ico { font-size: 15px; opacity: .55; flex-shrink: 0; }
.hero2-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink-900);
}
.hero2-search input::placeholder { color: var(--ink-400); }

.hero2-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

/* 统计：工具风的分隔数字条 */
.hero2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero2-stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line); }
.hero2-stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero2-stat dt {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: .02em;
  margin-bottom: 3px;
}
.hero2-stat dd {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

/* ---- 右栏：平台状态面板 ---- */
.hero2-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.hero2-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}
.hero2-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.hero2-metrics { margin: 0; }
.hero2-metrics li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .14s var(--ease);
}
.hero2-metrics li:last-child { border-bottom: 0; }
.hero2-metrics li:hover { background: var(--surface-hover); }

.hero2-metric-ico {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 15px;
  flex-shrink: 0;
}
.hero2-metric-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero2-metric-name { font-size: 13.5px; font-weight: 600; color: var(--ink-800); }
.hero2-metric-desc { font-size: 11.5px; color: var(--ink-400); }

.hero2-panel-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
}
.hero2-link { font-size: 13px; font-weight: 600; color: var(--brand-600); }
.hero2-link:hover { color: var(--brand-500); }

/* --------------------- 区块交替底色（造层次） --------------------- */
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ------------------------------ 分类宫格 ------------------------------ */
.cat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.cat-item:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

/* ------------------------------ 能力宫格 ------------------------------ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.feat-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-ico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 19px;
  margin-bottom: 14px;
}
.feat-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-900);
  margin-bottom: 7px;
}
.feat-desc {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-500);
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 980px) {
  .hero2-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero2-panel { position: static; }
}
@media (max-width: 640px) {
  .hero2 { padding: 36px 0 34px; }
  .hero2-stats { gap: 0; }
  .hero2-stat { padding-right: 20px; margin-right: 20px; }
  .hero2-stat dd { font-size: 22px; }
  .hero2-actions .btn { flex: 1; }
  .hero2-search { padding-left: 12px; }
}

