/* ========================================
   造梦权益卡券 - 货源目录页样式
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-900: #0a1628;
  --blue-800: #0f1f3a;
  --blue-700: #162d54;
  --blue-600: #1e3a68;
  --blue-primary: #4F6EF7;
  --blue-light: #7b93ff;
  --orange-primary: #FF6B35;
  --orange-light: #FF8C42;
  --purple-primary: #9C27B0;
  --green-primary: #4CAF50;
  --text-primary: #1a1a2e;
  --text-secondary: #555c70;
  --text-muted: #8a90a0;
  --bg-white: #ffffff;
  --bg-gray: #f5f7fb;
  --bg-dark: #080e1a;
  --border-light: #e8ecf2;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,53,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* ========================================
   Hero Section - 48vh
   ======================================== */
.hero {
  position: relative;
  height: 48vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #162d54 50%, #1e3a68 100%);
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,110,247,0.4), transparent 70%);
  top: -150px;
  right: -50px;
  animation: float1 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,0.3), transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px,20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px,-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(79,110,247,0.15);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(79,110,247,0.25);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 27px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-desc strong { color: #fff; }

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
  background: var(--bg-white);
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.trust-item {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.trust-number {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-primary), var(--orange-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.trust-suffix {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-end;
  padding-bottom: 6px;
}

.trust-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-cert {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 0 0;
}

.trust-dot {
  margin: 0 8px;
  color: var(--border-light);
}

/* ========================================
   Category Visual Banner (品类横幅)
   ======================================== */
.category-visual-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.category-visual-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.video-banner {
  background: linear-gradient(135deg, #00BE06, #00d619);
}

.music-banner {
  background: linear-gradient(135deg, #E60026, #ff3355);
}

.recharge-banner {
  background: linear-gradient(135deg, #4F6EF7, #7b93ff);
}

.banner-text {
  position: relative;
  z-index: 1;
}

.banner-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.banner-platforms {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.platform-icon:hover {
  transform: translateY(-3px) scale(1.08);
}

.platform-icon.more {
  font-size: 22px;
  background: linear-gradient(135deg,#7C4DFF,#b388ff);
}

/* ========================================
   Section Visual Row (图文展示)
   ======================================== */
.section-visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
}

.section-visual-row.reverse {
  direction: rtl;
}

.section-visual-row.reverse > * {
  direction: ltr;
}

.visual-row-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.visual-row-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.visual-row-image:hover img {
  transform: scale(1.03);
}

.visual-row-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.visual-row-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.visual-row-stats {
  display: flex;
  gap: 28px;
}

.vrs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vrs-item strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange-primary);
}

.vrs-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   Source Section (货源展示)
   ======================================== */
.source-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.source-section.alt {
  background: var(--bg-gray);
}

.source-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.source-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.source-section.alt .source-card {
  box-shadow: var(--shadow-md);
}

.source-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Card Header */
.source-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 0;
}

.source-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-name {
  flex: 1;
}

.source-name h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.source-type {
  font-size: 12px;
  color: var(--text-muted);
}

.source-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.source-badge.hot {
  background: rgba(255,107,53,0.1);
  color: var(--orange-primary);
}

.source-badge.best {
  background: rgba(79,110,247,0.1);
  color: var(--blue-primary);
}

/* Price Table */
.source-price-table {
  margin: 16px 22px;
}

.price-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 4px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f2f5;
  align-items: center;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row.header {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.price-row.header span {
  color: var(--text-muted);
}

.price-official, .price-row .official {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 12px;
}

.price-channel, .price-row .channel {
  color: var(--orange-primary);
  font-weight: 700;
}

.price-row .discount {
  color: #e53e3e;
  font-weight: 700;
  font-size: 12px;
}

.price-row.highlight {
  background: rgba(255,107,53,0.04);
  border-radius: 6px;
  padding: 8px 6px;
  margin: 4px -6px;
}

.price-row.highlight .channel {
  font-size: 14px;
}

/* Tags */
.source-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 22px 18px;
}

.stag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-gray);
  padding: 3px 10px;
  border-radius: 12px;
}

/* More Card */
.more-card {
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
}

.more-content {
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.more-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(79,110,247,0.08);
}

/* Source Notice */
.source-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 18px;
  background: rgba(255,107,53,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,107,53,0.12);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.source-notice svg {
  flex-shrink: 0;
}

/* ========================================
   Advantage Section
   ======================================== */
.advantage-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1628 0%, #162d54 50%, #1e3a68 100%);
}

.advantage-section .section-title {
  color: #fff;
}

.advantage-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.advantage-visual {
  text-align: center;
  margin-bottom: 48px;
}

.advantage-img {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: var(--transition);
}

.advantage-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.cta-inner {
  text-align: center;
  background: linear-gradient(135deg, #0a1628, #162d54);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-decor-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,110,247,0.2), transparent 70%);
  top: -100px;
  right: -50px;
}

.cta-decor-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,107,53,0.15), transparent 70%);
  bottom: -50px;
  left: -30px;
}

.cta-decor-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(156,39,176,0.12), transparent 70%);
  top: -40px;
  left: 30%;
}

.cta-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ========================================
   Floating Actions
   ======================================== */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 30%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.float-consult {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}

.float-consult span {
  font-size: 10px;
  font-weight: 600;
}

.float-consult:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255,107,53,0.5);
}

.float-top {
  background: rgba(0,0,0,0.08);
  color: #555;
}

.float-top:hover {
  background: rgba(0,0,0,0.15);
}

/* ========================================
   Scroll Animations
   ======================================== */
.source-card,
.advantage-card,
.trust-item,
.section-visual-row,
.category-visual-banner,
.advantage-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.source-card.visible,
.advantage-card.visible,
.trust-item.visible,
.section-visual-row.visible,
.category-visual-banner.visible,
.advantage-visual.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for source cards */
.source-card:nth-child(2) { transition-delay: 0.08s; }
.source-card:nth-child(3) { transition-delay: 0.16s; }
.source-card:nth-child(4) { transition-delay: 0.24s; }
.source-card:nth-child(5) { transition-delay: 0.32s; }
.source-card:nth-child(6) { transition-delay: 0.40s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .source-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-visual-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .trust-number {
    font-size: 32px;
  }

  .source-cards {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .price-row {
    font-size: 12px;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .cta-inner h2 {
    font-size: 24px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .floating-actions {
    right: 12px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .section-visual-row {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .section-visual-row.reverse {
    direction: ltr;
  }

  .visual-row-image img {
    height: 180px;
  }

  .visual-row-stats {
    gap: 16px;
  }

  .category-visual-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 24px;
  }

  .banner-platforms {
    justify-content: center;
  }

  .advantage-img {
    max-width: 100%;
  }
}
