/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #e8eaf2;
  background: #0a0c14;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; border: none; outline: none; }
button { cursor: pointer; }

/* ===== Variables —— 深色霓虹紫粉主题 ===== */
:root {
  /* 主色：霓虹紫粉渐变 */
  --primary: #a855f7;
  --primary-dark: #7e22ce;
  --primary-light: #c084fc;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --neon-cyan: #22d3ee;
  /* 功能色 */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  /* 中性色 */
  --text-primary: #e8eaf2;
  --text-secondary: #9ca3b8;
  --text-tertiary: #5c6080;
  --bg-page: #0a0c14;
  --bg-elev: #12151f;
  --bg-card: rgba(22, 24, 38, 0.75);
  --bg-card-solid: #16182a;
  --border: rgba(168, 85, 247, 0.18);
  --border-strong: rgba(168, 85, 247, 0.4);
  --border-cyan: rgba(34, 211, 238, 0.25);
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 2px 8px rgba(0,0,0,0.45);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 16px 48px rgba(124, 58, 237, 0.25);
  --glow-purple: 0 0 24px rgba(168, 85, 247, 0.35), 0 0 64px rgba(168, 85, 247, 0.15);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3), 0 0 48px rgba(236, 72, 153, 0.1);
  /* 圆角 */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-sm: 6px;
  /* 尺寸 */
  --max-width: 1200px;
  --header-height: 68px;
}

/* ===== Header —— 深色磨砂玻璃 + 底部紫光线 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.08);
}
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.18));
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.35);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-user {
  font-size: 14px;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  gap: 6px;
  position: relative;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.05);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
.btn-accent {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #0a0c14;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.35);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.55);
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}
.btn-danger:hover {
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}
.btn-success:hover {
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  padding: 4px;
  border-radius: var(--radius-sm);
}

/* ===== Main Content ===== */
.main-content {
  min-height: calc(100vh - var(--header-height) - 280px);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Hero Section —— 深色霓虹光晕 ===== */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(168, 85, 247, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(236, 72, 153, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0a0c14 0%, #120a1f 50%, #0a0c14 100%),
    url('/images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.3) 0%, rgba(10, 12, 20, 0.7) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 40%, #fbcfe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Section Common ===== */
.section { padding: 80px 0; position: relative; }
.section-gray {
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.04) 50%, transparent 100%);
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 52px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  transition: color 0.2s;
}
.section-header a:hover { color: var(--accent-light); }

/* ===== Section Banner ===== */
.section-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 44px;
  position: relative;
  height: 220px;
  border: 1px solid var(--border);
}
.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(1.05);
}
.section-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55) 0%, rgba(236, 72, 153, 0.4) 60%, rgba(10, 12, 20, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
}
.section-banner-overlay h2 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(124, 58, 237, 0.6);
  letter-spacing: 1px;
}
.section-banner-overlay p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.35s;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
}
.feature-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  background: var(--bg-elev);
}
.feature-card-body { padding: 26px 28px 28px; }
.feature-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.category-tab {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
}
.category-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.category-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), var(--glow-purple);
}
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1328 0%, #16182a 50%, #0f1220 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-tertiary);
  position: relative;
  overflow: hidden;
}
.product-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
}
.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-merchant {
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.product-merchant:hover { opacity: 1; text-decoration: underline; }
.product-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1;
}
.product-price .yen {
  font-size: 14px;
  font-weight: 600;
  margin-right: 1px;
}
.product-price .price-range {
  font-size: 14px;
  font-weight: 600;
}

/* ===== Mall Search Bar ===== */
.mall-search-bar {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.mall-search-input {
  flex: 1;
  padding: 11px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
.mall-search-input::placeholder { color: var(--text-tertiary); }
.mall-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.mall-search-btn {
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}
.mall-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* ===== Product Detail ===== */
.product-detail { padding: 48px 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border);
}
.product-detail-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1328, #16182a);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--text-tertiary);
  overflow: hidden;
  position: relative;
}
.product-detail-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}
.product-detail-info { display: flex; flex-direction: column; }
.product-detail-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-detail-info .detail-desc {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
}
.detail-price-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.25);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.detail-price-box .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.detail-price-box .price {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-merchant {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-merchant:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
}
.detail-merchant-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.detail-merchant-name { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.detail-merchant-label { font-size: 12px; color: var(--text-tertiary); }
.detail-specs { margin-bottom: 28px; }
.detail-spec-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.detail-spec-row:last-child { border-bottom: none; }
.detail-spec-row .label { width: 100px; color: var(--text-secondary); flex-shrink: 0; }
.detail-spec-row .value { color: var(--text-primary); }
.detail-actions { display: flex; gap: 12px; margin-top: auto; }
.detail-actions .btn { flex: 1; padding: 14px; font-size: 16px; }

.detail-classify {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  margin-bottom: 12px;
}
.detail-original-price {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-left: 8px;
}
.detail-content-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.detail-content-section h2 {
  font-size: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-content-body {
  line-height: 1.9;
  color: var(--text-secondary);
  font-size: 14px;
}
.detail-content-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid var(--border);
}

/* ===== News ===== */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.news-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}
.news-card-img {
  width: 240px;
  height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1328, #16182a);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-tertiary);
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.85);
}
.news-card-body { flex: 1; display: flex; flex-direction: column; }
.news-tag {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
  width: fit-content;
}
.news-tag.ai { background: rgba(168, 85, 247, 0.18); color: var(--primary-light); border: 1px solid rgba(168, 85, 247, 0.3); }
.news-tag.tech { background: rgba(34, 211, 238, 0.15); color: var(--neon-cyan); border: 1px solid rgba(34, 211, 238, 0.3); }
.news-tag.industry { background: rgba(251, 191, 36, 0.15); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.3); }
.news-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.news-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.8;
}
.news-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* News Detail */
.news-detail { padding: 48px 0; }
.news-detail-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
}
.news-detail-inner h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.5;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.news-detail-meta {
  display: flex;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--text-secondary);
}
.news-detail-meta span { display: flex; align-items: center; gap: 6px; }
.news-detail-content { font-size: 15px; line-height: 1.95; color: var(--text-secondary); }
.news-detail-content p { margin-bottom: 16px; }

/* ===== Merchant ===== */
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.merchant-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.35s;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.merchant-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
}
.merchant-card-logo {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.merchant-card-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
}
.merchant-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.merchant-card-icon-text {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.merchant-card-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
}
.merchant-card-info { padding: 20px 16px; text-align: center; }
.merchant-card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.merchant-card-link {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 500;
  transition: color 0.2s;
}
.merchant-card:hover .merchant-card-link { color: var(--accent-light); }

.merchant-card-logo { position: relative; }
.merchant-card-logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.merchant-card-logo:has(img)::after { z-index: 0; }

/* Merchant Detail */
.merchant-detail { padding: 48px 0; }
.merchant-detail-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
}
.merchant-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.merchant-detail-logo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}
.merchant-detail-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.merchant-detail-header .slogan { color: var(--text-secondary); font-size: 15px; }

/* ===== Join Form ===== */
.join-section { padding: 72px 0; }
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
}
.form-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-card .form-desc { color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-label .required { color: var(--accent); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }

/* ===== About ===== */
.about-hero {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(168, 85, 247, 0.4) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #0a0c14 0%, #120a1f 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about-content { padding: 72px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card {
  padding: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.value-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
  transform: translateY(-3px);
}
.value-card .icon { font-size: 28px; margin-bottom: 10px; }
.value-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.value-card p { font-size: 12px; color: var(--text-tertiary); }

/* ===== Auth Pages ===== */
.auth-page {
  min-height: calc(100vh - var(--header-height) - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-purple);
}
.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card .auth-subtitle { color: var(--text-secondary); margin-bottom: 30px; text-align: center; font-size: 14px; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary-light); font-weight: 500; }
.auth-footer a:hover { color: var(--accent-light); text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: #050610;
  color: #9ca3b8;
  padding: 52px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.5) 50%, transparent 100%);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-tertiary);
}
.footer-contact { margin-top: 4px; }
.footer-contact p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-tertiary);
  word-break: break-all;
}
.footer-contact-label { color: var(--text-secondary); }
.footer-contact a { color: var(--text-tertiary); transition: color 0.2s; }
.footer-contact a:hover { color: var(--primary-light); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 11px;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-tertiary); margin: 0 8px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ===== Content Pages (售后服务/协议/隐私) ===== */
.content-page { padding: 56px 0; }
.content-page-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border);
}
.content-page-inner h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-page-inner h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 14px;
  color: var(--text-primary);
}
.content-page-inner p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 18px 0; font-size: 13px; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { margin: 0 8px; }

/* ===== Back Button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--primary-light); }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 9999; }
.toast {
  padding: 13px 22px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  animation: slideIn 0.3s ease;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.toast-success { background: linear-gradient(135deg, #059669, #34d399); }
.toast-error { background: linear-gradient(135deg, #dc2626, #f87171); }
.toast-info { background: linear-gradient(135deg, var(--primary), var(--accent)); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Cart Badge ===== */
.cart-badge { position: relative; }
.cart-badge .count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { padding: 0 4px; color: var(--text-tertiary); }

/* ===== Loading / Empty States ===== */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 52px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
  color: var(--text-secondary);
}
.empty-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.6; }

/* ===== Cart Page ===== */
.cart-page { max-width: 1200px; margin: 0 auto; padding: 36px 28px 92px; }
.cart-page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.cart-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-purple);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.cart-item-sku { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; }
.cart-item-price {
  font-family: "DIN Alternate", "Helvetica Neue", monospace;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cart-item-price .yuan { font-size: 13px; font-weight: 600; }
.cart-item-qty {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}
.cart-delete-btn {
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.cart-delete-btn:hover {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}
.cart-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.cart-bottom-left { display: flex; align-items: center; gap: 14px; }
.cart-bottom-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cart-select-all { font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.cart-bottom-right { display: flex; align-items: center; gap: 22px; }
.cart-total { font-size: 14px; color: var(--text-secondary); }
.cart-total-price {
  font-family: "DIN Alternate", "Helvetica Neue", monospace;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cart-total-price .yuan { font-size: 14px; font-weight: 600; }
.cart-checkout-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 11px 36px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}
.cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
}
.cart-checkout-btn:disabled {
  background: #3b3f55;
  box-shadow: none;
  cursor: not-allowed;
}
.cart-empty { text-align: center; padding: 80px 0; color: var(--text-secondary); }
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.cart-empty p { font-size: 16px; margin-bottom: 18px; }
.cart-empty a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.cart-empty a:hover { color: var(--accent-light); text-decoration: underline; }
.cart-unlogin { text-align: center; padding: 80px 0; color: var(--text-secondary); }
.cart-unlogin p { font-size: 16px; margin-bottom: 16px; }
.cart-unlogin a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.cart-unlogin a:hover { color: var(--accent-light); text-decoration: underline; }

/* ===== Checkout Page ===== */
.checkout-page { background: var(--bg-page); min-height: 60vh; padding: 28px 0 56px; }
.checkout-loading { text-align: center; padding: 80px 0; color: var(--text-secondary); }
.checkout-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.checkout-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.checkout-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.checkout-section-title svg { color: var(--primary-light); }

/* Address Form */
.checkout-address-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-form-row { display: flex; gap: 16px; }
.checkout-form-group { display: flex; flex-direction: column; gap: 6px; }
.checkout-form-group label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.checkout-form-group .required { color: var(--accent); }
.checkout-form-group input,
.checkout-form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-elev);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.checkout-form-group input::placeholder,
.checkout-form-group textarea::placeholder { color: var(--text-tertiary); }

/* Product Items */
.checkout-product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-product-item:last-child { border-bottom: none; }
.checkout-product-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.checkout-product-info { flex: 1; min-width: 0; }
.checkout-product-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-product-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.checkout-product-price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'DIN Alternate', 'Roboto Mono', monospace;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Summary */
.checkout-summary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.04));
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.checkout-summary-total {
  border-top: 1px dashed var(--border);
  margin-top: 10px;
  padding-top: 18px;
}
.checkout-summary-total span:first-child { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.checkout-summary-total span:last-child {
  font-size: 24px;
  font-weight: 700;
  font-family: 'DIN Alternate', 'Roboto Mono', monospace;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Actions */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 16px;
}
.checkout-actions .btn-accent { min-width: 200px; justify-content: center; }

/* Small spinner for button */
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Card Merchant Link (for mall.html) */
.card-merchant {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 4px;
  transition: color 0.2s;
}
.card-merchant:hover { color: var(--accent-light); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .merchant-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 12, 20, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-btn { display: block; }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .merchant-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .section { padding: 52px 0; }
  .checkout-form-row { flex-direction: column; gap: 12px; }
  .checkout-actions { flex-direction: column; }
  .checkout-actions .btn-accent { width: 100%; }
  .checkout-product-item { gap: 10px; }
  .checkout-product-title { font-size: 14px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-info { flex-basis: 100%; }
}

/* ===== Scrollbar (optional Webkit) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0c14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7e22ce, #ec4899);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7, #f472b6);
}

/* ===== Selection ===== */
::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}
