:root {
  --bg: #0b1020;
  --bg-soft: #131a2e;
  --violet: #8b5cf6;
  --indigo: #7c4dff;
  --blue: #3b82f6;
  --text: #f4f7ff;
  --muted: #9aa4c3;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --grad: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --gold: #f5b83d;
  --gold2: #f59e0b;
  --grad-gold: linear-gradient(135deg, #f5b83d, #f59e0b);
  --ease: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }
html, body { touch-action: manipulation; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 77, 255, 0.08), transparent 25%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(11, 16, 32, 0.88);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  margin-top: 8px;
  margin-left: 10px;
  font-size: 1.3rem;
}

.nav-search {
  position: relative;
  flex: 1;
  max-width: 220px;
  margin: 0 1rem;
}

.nav-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  font-size: 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.nav-search input:focus {
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.1);
}

.nav-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li { margin-left: 1.15rem; }

.nav-links a { white-space: nowrap; font-size: 0.92rem; }

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--ease);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--indigo); }

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 99990;
}

.mask.show { opacity: 1; pointer-events: auto; }

.popup,
.toast-card {
  position: fixed;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 380px;
  background: var(--bg-soft);
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 99991;
  text-align: center;
  border: 1px solid var(--line);
}

.popup.show,
.toast-card.show { top: 45%; }

.popup h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

.popup input {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.popup input:focus {
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.15);
}

.popup button,
.toast-card button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.toast-card { max-width: 360px; }
.toast-card p { color: var(--muted); margin: 0.5rem 0; }

.order-result {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ddd;
  text-align: left;
  line-height: 1.7;
}

.order-result .ok { color: #34d399; }
.order-result .err { color: #fb7185; }

.page-header {
  padding: 3rem 5% 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-header p {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.category-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.category-btn.active,
.category-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.cat-count {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 4px;
  font-weight: 500;
}

.category-btn.active .cat-count,
.category-btn:hover .cat-count { color: rgba(255, 255, 255, 0.7); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 5% 0;
}

.product-card {
  background: var(--bg-soft);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.35);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
}

.card-image-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(19, 26, 46, 0.95), transparent);
  pointer-events: none;
  z-index: 1;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c1, #312e81), var(--c2, #1e3a8a));
  position: relative;
}

.cover-art i {
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.cover-art .cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
}

.product-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--violet);
  color: #fff;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 0.8rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b6b;
}

.product-price.free { color: #34d399; }

.product-delivery {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-view-btn {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--violet);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
  text-decoration: none;
}

.product-card:hover .card-view-btn {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

.pagination-container {
  padding: 2rem 5%;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

.page-btn:hover,
.page-btn.active {
  background: var(--grad);
  border-color: transparent;
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-ellipsis { color: var(--muted); padding: 0 4px; }
.page-info { margin-left: 1rem; color: var(--muted); font-size: 0.85rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem 5%;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

footer {
  background: var(--bg-soft);
  padding: 0 5% 2rem;
  margin-top: 1rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.back-to-top {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 99;
}

#back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

#back-to-top:hover {
  background: var(--violet);
  transform: translateY(-2px);
}

.detail-wrap { padding: 2rem 5% 3rem; }

.page-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.page-card-header { padding: 1.4rem 1.6rem; }
.page-card-body { padding: 1.4rem 1.6rem; }

.product-detail-title {
  font-size: 1.45rem;
  line-height: 1.5;
  font-weight: 700;
}

.product-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.gallery-card {
  display: flex;
  min-height: 100%;
}

.gallery-stage {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  background: #0a0f1c;
}

.gallery-stage .cover-art,
.gallery-slide {
  height: 100%;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.6);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.gallery-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gallery-dots span.on { background: #fff; }

.purchase-inner { padding: 1.6rem; position: relative; }

.corner-badge {
  position: absolute;
  top: 12px;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.corner-left {
  left: 12px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.corner-right {
  right: 12px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.price-tag {
  margin: 2.2rem 0 1rem;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ff6b6b;
}

.price-tag .currency { font-size: 1.4rem; margin-right: 4px; }

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.form-label.required::after {
  content: " *";
  color: #fb7185;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.form-control:focus { border-color: var(--violet); }

.email-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

.payment-methods {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.payment-method {
  flex: 1;
  min-width: 110px;
  padding: 0.8rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.payment-method i { display: block; margin-bottom: 6px; color: var(--violet); }

.payment-method.active {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.submit-order,
.vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 0.95rem;
}

.submit-order {
  background: var(--grad);
  color: #fff;
}

.vip-btn {
  background: transparent;
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.desc-header,
.recommend-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.desc-header i,
.recommend-header i { color: var(--violet); }

.product-description { color: #d7def5; line-height: 1.9; font-size: 0.95rem; }
.product-description ul { padding-left: 1.2rem; margin: 0.8rem 0; }
.product-description li { margin: 0.25rem 0; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }

.stack-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

.remarks-box {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.remarks-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remarks-box p { color: var(--muted); font-size: 0.88rem; }

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.page-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-nav a:hover { color: var(--text); }
.page-nav .next { justify-content: flex-end; text-align: right; }

.random-list { display: grid; gap: 0.55rem; }

.random-item {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7def5;
  text-decoration: none;
  font-size: 0.9rem;
}

.random-item:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
}

.free-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
}
.breadcrumb-wrap { padding: 1rem 0 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb .sep { color: rgba(255,255,255,0.15); }
.breadcrumb .current {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}
.free-title-card { margin: 1rem 0 1.5rem; }
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  vertical-align: middle;
  margin-left: 8px;
}
.free-main-grid { margin-bottom: 1.5rem; }
.free-detail .gallery-card {
  min-height: 280px;
  display: flex;
}
.free-detail .gallery-card .product-img,
.free-detail .gallery-card .cover-art {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.download-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem 1.5rem;
  min-height: 280px;
}
.download-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.download-title i { color: #22c55e; }
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: var(--ease);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.dl-btn .dl-text { flex: 1; text-align: center; }
.dl-btn .fa-download { opacity: 0.8; font-size: 0.85rem; }
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dl-direct { background: linear-gradient(135deg, #22c55e, #16a34a); }
.dl-pan { background: #ff6b35; }
.download-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(154,164,195,0.7);
  text-align: center;
}
.download-footer i { color: #20c997; font-size: 0.75rem; }
.rec-paid { margin-top: 1.5rem; }
.rec-paid-tip { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.rec-paid .recommend-header i { color: #f59e0b; }
.free-rec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .free-rec-list { grid-template-columns: 1fr; }
  .free-detail .product-main-grid { grid-template-columns: 1fr; }
}

.sitemap-list {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 5% 3rem;
}

.sitemap-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.sitemap-item span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.success-float {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) scale(0.9);
  background: var(--bg-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  z-index: 99995;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.success-float.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.45); border-radius: 3px; }

@media (max-width: 960px) {
  .product-main-grid { grid-template-columns: 1fr; }
  .purchase-actions { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav-search { display: none; }
  .nav-optional { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--ease);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  }
  .nav-links.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-links li { margin: 1rem 0; }
  .nav-optional { display: list-item; }
  .mobile-menu-btn { display: block; }
  .page-header h1 { font-size: 2rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
  .nav-search { max-width: 220px; margin: 0 1rem; }
  .page-nav { grid-template-columns: 1fr; }
}

.nav-user {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

.auth-popup input + input { margin-top: 0.55rem; }
.auth-tabs { display: flex; gap: 0.5rem; margin: 0.6rem 0 0.2rem; }
.auth-tab {
  flex: 1;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--grad); color: #fff; border-color: transparent; }

.pay-popup { max-width: 420px; padding: 1.4rem; }
.pay-popup.show { top: 48%; }
.pay-title { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0.6rem; }
.pay-amount { font-size: 1.8rem; font-weight: 800; color: #ff6b6b; }
.pay-tip { color: #fbbf24; font-size: 0.8rem; margin: 0.3rem 0 0.8rem; }
.pay-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  margin: 0.4rem auto 0.8rem;
  display: block;
}
.pay-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  word-break: break-all;
  font-size: 0.78rem;
  text-align: left;
}
.pay-row span { flex: 1; }
.pay-copy {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  width: auto;
  margin: 0;
}
.pay-meta { color: var(--muted); font-size: 0.78rem; margin-top: 0.4rem; }
.pay-status { margin: 0.7rem 0 0.2rem; color: #93c5fd; }

@media (max-width: 576px) {
  .page-header { padding: 2rem 5% 1.5rem; }
  .page-header h1 { font-size: 1.7rem; }
  .nav-search { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .logo { font-size: 1.45rem; }
  .logo span { font-size: 1rem; margin-top: 4px; }
  .product-detail-title { font-size: 1.15rem; }
  .nav-user { max-width: 110px; }
}

.vip-page { position: relative; z-index: 1; }
.vip-hero {
  position: relative;
  padding: 3rem 5% 2rem;
  overflow: hidden;
}
.vip-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,184,61,0.1), transparent 70%);
  pointer-events: none;
}
.vip-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
  pointer-events: none;
}
.vip-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(245,184,61,0.1);
  border: 1px solid rgba(245,184,61,0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.vip-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.vip-hero h1 span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vip-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.vip-hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.btn-gold {
  padding: 0.9rem 2rem;
  background: var(--grad-gold);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
  transition: var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.5); }
.btn-outline {
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--violet); color: var(--text); }
.vip-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.vip-stat {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  min-height: 110px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.vip-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-gold);
  opacity: 0.7;
}
.vip-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(245,184,61,0.35);
  box-shadow: 0 8px 24px rgba(245,184,61,0.15);
}
.vip-stat-icon { font-size: 1rem; color: var(--gold); margin-bottom: 0.4rem; }
.vip-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.vip-stat-num small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-left: 2px;
}
.vip-stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.vip-stats-mix {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}
.vip-stats-mix strong { color: var(--gold); font-weight: 700; }
.vip-stats-mix .dot { margin: 0 0.5rem; color: rgba(154,164,195,0.4); }

.vip-plans-wrap,
.vip-priv-wrap,
.vip-faq-wrap,
.vip-cta-wrap {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.vip-sec-head { text-align: center; margin-bottom: 2.5rem; }
.vip-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.vip-sec-head h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.vip-sec-head p { color: var(--muted); font-size: 0.95rem; }

.vip-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.vip-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(245,184,61,0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  position: relative;
  transition: var(--ease);
}
.vip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(245,184,61,0.12);
}
.vip-card.featured {
  border-color: rgba(245,184,61,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 50px rgba(245,184,61,0.22);
  z-index: 2;
}
.vip-card-head {
  padding: 1.25rem;
  text-align: center;
  position: relative;
}
.plan-h-monthly { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.plan-h-yearly { background: var(--grad-gold); }
.plan-h-lifetime { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.vip-tag {
  position: absolute;
  top: -1px;
  right: 16px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
}
.vip-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.vip-card-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.vip-card-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vip-original {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: 0.15rem;
}
.vip-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.vip-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.vip-highlight {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.35em;
}
.vip-feats { text-align: left; margin-bottom: 1.5rem; flex: 1; min-height: 10.5rem; }
.vip-feat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.vip-feat-row i { color: #20c997; font-size: 0.75rem; margin-top: 0.25rem; flex-shrink: 0; }
.vip-feat-row strong { color: var(--text); font-weight: 600; }
.price-btn,
.price-btn-ghost {
  width: 100%;
  margin-top: auto;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--ease);
}
.price-btn {
  background: var(--grad-gold);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.price-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.5); }
.price-btn-ghost {
  background: rgba(139,92,246,0.1);
  color: var(--violet);
  border: 1px solid rgba(139,92,246,0.3);
}
.price-btn-ghost:hover { background: rgba(139,92,246,0.2); }

.vip-priv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.vip-priv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
}
.vip-priv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: var(--ease);
}
.vip-priv:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.vip-priv:hover::before { opacity: 1; }
.vip-priv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.vip-priv h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.vip-priv p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.vip-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.vip-faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: var(--ease);
}
.vip-faq:hover { border-color: rgba(59,130,246,0.25); background: rgba(255,255,255,0.05); }
.vip-faq-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue);
}
.vip-faq h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.vip-faq p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

.vip-cta-wrap { text-align: center; padding-bottom: 4rem; }
.vip-cta-card {
  background: linear-gradient(135deg, rgba(245,184,61,0.12), rgba(139,92,246,0.1));
  border: 1px solid rgba(245,184,61,0.25);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.vip-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,184,61,0.1), transparent 70%);
  pointer-events: none;
}
.vip-cta-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; position: relative; }
.vip-cta-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; position: relative; }
.vip-cta-card .btn-gold { position: relative; }

.dl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  z-index: 99980;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dl-overlay.show { display: flex; }
.dl-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #1a2240, #131a2e);
  border: 1px solid rgba(245,184,61,0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 60px rgba(245,184,61,0.2);
  position: relative;
  animation: vipModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.dl-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-gold);
}
@keyframes vipModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.dl-icon {
  width: 76px;
  height: 76px;
  margin: 2rem auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(239,68,68,0.45);
  animation: vipIconPulse 2s ease-in-out infinite;
  position: relative;
}
.dl-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,0.3);
  animation: vipIconRing 2s ease-in-out infinite;
}
@keyframes vipIconPulse {
  0%,100% { box-shadow: 0 8px 30px rgba(239,68,68,0.45); }
  50% { box-shadow: 0 8px 44px rgba(239,68,68,0.75); }
}
@keyframes vipIconRing {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}
.dl-body { padding: 0 1.75rem 1.75rem; text-align: center; }
.dl-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.dl-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dl-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.dl-desc strong { color: var(--gold); font-weight: 700; }
.dl-go {
  width: 100%;
  padding: 0.95rem;
  background: var(--grad-gold);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}
.dl-go:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,158,11,0.55); }
.dl-cancel {
  margin-top: 0.85rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 1rem;
  border-radius: 6px;
}
.dl-cancel:hover { color: var(--text); background: rgba(255,255,255,0.05); }

@media (max-width: 960px) {
  .vip-plans { grid-template-columns: 1fr; max-width: 420px; }
  .vip-priv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-hero h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
  .vip-hero { padding: 2.5rem 1rem 2rem; }
  .vip-hero h1 { font-size: 1.8rem; }
  .vip-hero-sub { font-size: 0.92rem; }
  .vip-hero-cta { flex-direction: column; }
  .vip-hero-cta .btn-gold,
  .vip-hero-cta .btn-outline { width: 100%; justify-content: center; }
  .vip-plans-wrap,
  .vip-priv-wrap,
  .vip-faq-wrap,
  .vip-cta-wrap { padding: 2rem 1rem; }
  .vip-priv-grid,
  .vip-faq-grid { grid-template-columns: 1fr; }
  .vip-sec-head h2 { font-size: 1.4rem; }
  .vip-stats { gap: 0.6rem; }
  .vip-stat { min-width: 0; padding: 0.8rem 0.4rem; min-height: 100px; }
  .vip-stat-num { font-size: 1.15rem; }
  .dl-body { padding: 0 1.25rem 1.5rem; }
}
