/* ============================================
   每日星推官带货争霸赛 - 主样式表
   电商大促红金 + 战报数据流视觉风格
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #FF4500;
  --color-gold: #FFD700;
  --color-green: #20B2AA;
  --color-bg: #FFF8F0;
  --color-card: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --font-heading: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow-card: 0 4px 20px rgba(255, 69, 0, 0.1);
  --shadow-hover: 0 8px 32px rgba(255, 69, 0, 0.2);
  --radius: 12px;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #CC3700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-border-gold);
  border-radius: 2px;
}

/* Header & Navigation */
.site-header {
  background: linear-gradient(135deg, #FF4500, #CC3700);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(255, 69, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section - GMV Dashboard */
.hero-section {
  background: linear-gradient(135deg, #1a0a00, #3d1500, #FF4500);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="0.5"/></svg>') repeat;
  animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

/* GMV Counter */
.gmv-counter {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  padding: 30px 50px;
  display: inline-block;
  margin-bottom: 30px;
}

.gmv-label {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.gmv-value {
  font-size: 4rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: "DIN Alternate", "Roboto Mono", monospace;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gmv-unit {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-left: 8px;
}

/* Data Panels */
.data-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.data-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.data-panel .panel-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  font-family: "DIN Alternate", "Roboto Mono", monospace;
}

.data-panel .panel-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Cards */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border-gold);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Ranking List */
.ranking-list {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ranking-header {
  background: linear-gradient(135deg, #FF4500, #CC3700);
  padding: 16px 24px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.ranking-item:hover {
  background: #FFF8F0;
}

.ranking-item:last-child {
  border-bottom: none;
}

.rank-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 16px;
  background: #f0f0f0;
  color: var(--color-text);
}

.rank-number.top-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #FFFFFF;
}

.rank-number.top-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #FFFFFF;
}

.rank-number.top-3 {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #FFFFFF;
}

.rank-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-weight: 600;
  font-size: 1rem;
}

.rank-category {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.rank-gmv {
  font-weight: 800;
  color: var(--color-primary);
  font-family: "DIN Alternate", "Roboto Mono", monospace;
}

/* Radar Chart */
.radar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.radar-chart {
  width: 300px;
  height: 300px;
  position: relative;
}

.radar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radar-stat {
  background: var(--color-card);
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-primary);
}

.radar-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.radar-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* PK Arena */
.pk-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.pk-player {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.pk-vs {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pk-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--color-gold);
}

.pk-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pk-data {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.pk-data-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FFF8F0;
  border-radius: 6px;
}

/* Marquee / Ticker */
.sales-ticker {
  background: linear-gradient(90deg, #1a0a00, #3d1500);
  padding: 12px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.ticker-item .buyer {
  color: var(--color-gold);
}

.ticker-item .product {
  color: #FFFFFF;
}

.ticker-item .price {
  color: var(--color-green);
  font-weight: 700;
}

/* Brand Wall */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.brand-item {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.brand-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.brand-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  object-fit: contain;
}

/* Product Cards */
.product-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

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

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.product-commission {
  display: inline-block;
  background: linear-gradient(135deg, #FF4500, #CC3700);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF4500, #CC3700);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
  color: #FFFFFF;
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0a00;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: #1a0a00;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Footer */
.site-footer {
  background: #1a0a00;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
  color: var(--color-gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #FF4500, #CC3700);
  padding: 50px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Search */
.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.search-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #FF4500, #CC3700);
  color: #FFFFFF;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #FFF0E6;
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 4px;
}

/* FAQ */
.faq-item {
  background: var(--color-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Coin Animation */
@keyframes coinDrop {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.coin {
  position: fixed;
  width: 30px;
  height: 30px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: coinDrop 3s ease-in forwards;
  z-index: 9999;
  pointer-events: none;
}

/* Number Rolling Animation */
@keyframes numberRoll {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.number-roll {
  display: inline-block;
  overflow: hidden;
  height: 1em;
}

.number-roll span {
  display: inline-block;
  animation: numberRoll 1s ease-out forwards;
}

/* 404 Page */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.3;
}

/* App Download */
.app-section {
  background: linear-gradient(135deg, #1a0a00, #3d1500);
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.app-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.app-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--color-gold);
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #CC3700;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .gmv-value {
    font-size: 2.5rem;
  }
  
  .gmv-counter {
    padding: 20px 30px;
  }
  
  .data-panels {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pk-arena {
    grid-template-columns: 1fr;
  }
  
  .pk-vs {
    transform: rotate(90deg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .data-panels {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 50px 0;
  }
  
  .gmv-value {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-red { color: var(--color-primary); }
.text-green { color: var(--color-green); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Schema & Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Content Blocks */
.content-block {
  margin-bottom: 40px;
}

.content-block h3 {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.content-block p {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* Match Selector */
.match-selector {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.match-selector select,
.match-selector input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
}

.match-selector select:focus,
.match-selector input:focus {
  border-color: var(--color-primary);
}

/* Data Report */
.report-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.report-card h4 {
  margin-bottom: 12px;
  color: var(--color-primary);
}

.report-metric {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.report-metric:last-child {
  border-bottom: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #CC3700;
}
