/* ========================================
   每日大赛短视频挑战专区 - 主样式表
   电光青+霓虹粉赛事视觉风格
   ======================================== */

:root {
  --primary: #00E5FF;
  --secondary: #FF2BD6;
  --bg: #050816;
  --card: #111827;
  --accent: #A3FF12;
  --text: #F8FAFC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font-title: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: rgba(248, 250, 252, 0.85);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding: 0.8rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  text-decoration: none;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 43, 214, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(248, 250, 252, 0.7);
  margin: 1.5rem 0 2rem;
  line-height: 1.8;
}

/* Video Wall - 竖屏视频卡片墙 */
.video-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.video-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: var(--transition);
  animation: cardSlideUp 0.6s ease-out both;
}

.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.2s; }
.video-card:nth-child(4) { animation-delay: 0.3s; }
.video-card:nth-child(5) { animation-delay: 0.4s; }
.video-card:nth-child(6) { animation-delay: 0.5s; }

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

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(transparent, rgba(5, 8, 22, 0.95));
}

.video-card-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.video-card-plays {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.play-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-icon::before {
  content: '▶';
  font-size: 10px;
  color: var(--primary);
}

/* Play Button Breathing Animation */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 2s ease-in-out infinite;
}

.play-btn::after {
  content: '▶';
  color: var(--primary);
  font-size: 1.2rem;
  margin-left: 3px;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Challenge Tags - 挑战标签 */
.challenge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0;
}

.challenge-tag {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.challenge-tag--hot {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(255, 43, 214, 0.08);
}

.challenge-tag--today {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
  animation: tagGlow 2s ease-in-out infinite;
}

.challenge-tag--category {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(163, 255, 18, 0.08);
}

@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
}

.challenge-tag:hover {
  transform: scale(1.05);
}

/* Hot Video Slider - 热视频滑轨 */
.hot-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: none;
}

.hot-slider::-webkit-scrollbar {
  display: none;
}

.hot-slider-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(0, 229, 255, 0.15);
  transition: var(--transition);
}

.hot-slider-item:hover {
  border-color: var(--secondary);
  transform: scale(1.02);
}

.hot-slider-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.hot-slider-info {
  padding: 0.8rem;
}

.hot-slider-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.hot-slider-plays {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 0.3rem;
}

/* Upload Float Button */
.upload-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
  transition: var(--transition);
  animation: floatPulse 3s ease-in-out infinite;
}

.upload-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.5);
}

.upload-float::after {
  content: '+';
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(255, 43, 214, 0.4); }
}

/* Upload Modal - 上传引导浮层 */
.upload-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.upload-modal-content {
  background: var(--card);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.upload-steps {
  list-style: none;
  counter-reset: step;
}

.upload-steps li {
  counter-increment: step;
  padding: 0.8rem 0;
  padding-left: 3rem;
  position: relative;
  border-left: 2px solid rgba(0, 229, 255, 0.3);
  margin-left: 1rem;
}

.upload-steps li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulse Card - 播放量脉冲卡 */
.pulse-card {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(163, 255, 18, 0.3);
}

.pulse-card.rising::after {
  content: '🔥 热度上升中';
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: var(--bg);
  border-radius: 10px;
  font-weight: 700;
  animation: pulseBadge 1.5s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.7);
}

/* Ranking Table */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.ranking-table th,
.ranking-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.ranking-table th {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-table tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

.rank-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00B8D4);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
  color: var(--bg);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: rgba(255, 43, 214, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #7ACC00);
  color: var(--bg);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  margin-top: 5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(248, 250, 252, 0.4);
}

.breadcrumb-list li:last-child::after {
  content: '';
}

.breadcrumb-list a {
  color: rgba(248, 250, 252, 0.6);
}

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

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

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

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Footer */
.site-footer {
  background: rgba(17, 24, 39, 0.8);
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.5);
}

/* Page Header */
.page-header {
  padding: 7rem 0 3rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
}

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

/* Search */
.search-box {
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 4rem;
  border-radius: 30px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  color: var(--bg);
  font-size: 1.1rem;
}

/* Info List */
.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.info-list li::before {
  content: '▸';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 8, 22, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .video-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 8rem 1rem 3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 2.5rem 0;
  }

  .ranking-table {
    font-size: 0.85rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.7rem 0.5rem;
  }

  .upload-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .video-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .hot-slider-item {
    flex: 0 0 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* Page Content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: rgba(248, 250, 252, 0.85);
}

/* Related Links */
.related-links {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.related-links h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.related-links a {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

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

.error-code {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
