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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #141414;
  color: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

html { scroll-behavior: smooth; }

section[id]:not(.hero) { scroll-margin-top: 80px; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: #141414;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #e50914;
  letter-spacing: -1px;
}

.nav-links { display: flex; gap: 20px; }

.nav-links a {
  font-size: 14px;
  color: #e5e5e5;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e50914;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: #e50914;
  color: #fff;
}

.download-btn {
  padding: 8px 20px;
  background: #e50914;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.download-btn:hover { background: #f40612; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #e50914;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 60px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 20px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons { display: flex; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: #e50914; color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #141414 0%, transparent 100%);
}

.category-section {
  position: relative;
  padding: 0 60px;
  margin-bottom: 40px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
}

.see-all {
  font-size: 13px;
  color: #b3b3b3;
  transition: color 0.2s;
}

.see-all:hover { color: #fff; }

.row {
  position: relative;
}

.row-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.row-inner::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: #333;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.card:hover .card-overlay { opacity: 1; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: #b3b3b3;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.card-badge.hd { background: #e50914; }
.card-badge.live { background: #dc2626; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.scroll-btn:hover { background: rgba(0,0,0,0.9); }

.scroll-left { left: -24px; }
.scroll-right { right: -24px; }

.row:hover .scroll-btn { display: flex; }

.app-banner {
  margin: 60px;
  padding: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e50914 0%, #7c3aed 100%);
  text-align: center;
}

.banner-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
}

.banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.store-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.store-btn:hover { background: rgba(0,0,0,0.5); }

.store-icon { font-size: 24px; }
.store-text small { display: block; font-size: 10px; opacity: 0.7; }

.footer {
  padding: 40px 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: #808080;
  transition: color 0.2s;
}

.footer-links a:hover { color: #b3b3b3; }

.footer-copy {
  font-size: 12px;
  color: #505050;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #808080;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: #fff; }

.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal-desc { color: #b3b3b3; margin-bottom: 24px; }
.modal-buttons { display: flex; flex-direction: column; gap: 12px; }
.modal-download-btn { justify-content: center; }
.modal-hint { margin-top: 16px; font-size: 13px; color: #6b7280; }

/* ========== 世界杯专区 ========== */
.worldcup-banner {
  position: relative;
  margin: 0 60px 40px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%),
    url('https://images.unsplash.com/photo-1459865264687-595d652de67e?w=1600&q=80') center/cover no-repeat;
  border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 0 40px rgba(255,215,0,0.15), inset 0 0 60px rgba(255,215,0,0.05);
  animation: wc-glow-border 3s ease-in-out infinite;
}

@keyframes wc-glow-border {
  0%, 100% { border-color: rgba(255,215,0,0.3); box-shadow: 0 0 40px rgba(255,215,0,0.15); }
  50% { border-color: rgba(255,215,0,0.7); box-shadow: 0 0 60px rgba(255,215,0,0.35); }
}

.wc-bg-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,215,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,215,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.wc-content {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
}

.wc-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  animation: wc-pulse-badge 2s ease-in-out infinite;
}

@keyframes wc-pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wc-title {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ffec80, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: none;
  letter-spacing: 2px;
}

.wc-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(255,215,0,0.3);
}

.wc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: wc-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes wc-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.wc-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  max-width: 480px;
  line-height: 1.5;
}

.wc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 18px;
  font-weight: 800;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.wc-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

.wc-stripes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,215,0,0.04) 20px,
    rgba(255,215,0,0.04) 40px
  );
  pointer-events: none;
}

.wc-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #141414 0%, transparent 100%);
}

.worldcup-row { margin-top: -8px; }

.wc-glow-title {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.match-card {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255,215,0,0.15);
}

.match-card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 8px 30px rgba(255,215,0,0.2);
  border-color: rgba(255,215,0,0.4);
}

.match-card-inner {
  padding: 20px;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

.match-badge.live {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  animation: pulse 2s infinite;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.match-team-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

.match-team-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.match-score {
  font-size: 28px;
  font-weight: 900;
  color: #ffd700;
  padding: 0 12px;
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.match-info {
  text-align: center;
  font-size: 12px;
  color: #808080;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.match-info .status {
  color: #22c55e;
  font-weight: 600;
}

.match-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .navbar { padding: 0 30px; }
  .hero-content { padding: 0 30px; }
  .category-section { padding: 0 30px; }
  .hero-title { font-size: 40px; }
  .app-banner { margin: 30px; padding: 40px 30px; }
  .footer { padding: 30px; }
  .worldcup-banner { margin: 0 30px 30px; min-height: 260px; }
  .wc-content { padding: 32px; }
  .wc-title { font-size: 36px; }
  .wc-stripes { width: 120px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .navbar { padding: 0 16px; }
  .hero-content { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .category-section { padding: 0 16px; }
  .category-title { font-size: 18px; }
  .card { width: 150px; }
  .card-img { height: 225px; }
  .app-banner { margin: 16px; padding: 30px 16px; }
  .banner-content h2 { font-size: 24px; }
  .footer { padding: 24px 16px; }
  .scroll-btn { display: none !important; }
  .worldcup-banner { margin: 0 16px 20px; min-height: 200px; border-radius: 10px; }
  .wc-content { padding: 24px 20px; }
  .wc-title { font-size: 28px; }
  .wc-desc { font-size: 14px; }
  .wc-btn { padding: 10px 24px; font-size: 15px; }
  .wc-stripes { display: none; }
  .match-card { width: 220px; }
  .match-card-inner { padding: 14px; }
  .match-team-flag { width: 32px; height: 32px; }
  .match-score { font-size: 22px; min-width: 44px; }
  .match-card-img { height: 90px; }
}
