/* 每日大赛电竞战队日赛积分站 - 主样式表 */
:root {
  --primary: #0B3D91;
  --secondary: #00D4FF;
  --bg: #031225;
  --card: #102A43;
  --accent: #FFB703;
  --text: #F8FAFC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --border: #1E3A5F;
  --muted: #94A3B8;
  --success: #10B981;
  --danger: #EF4444;
  --font-title: 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

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

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

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

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

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

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 18, 37, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 首屏Hero */
.hero {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary) 50%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0,212,255,0.03) 50px, rgba(0,212,255,0.03) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0,212,255,0.03) 50px, rgba(0,212,255,0.03) 51px);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* 对阵卡 */
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: matchSlideIn 0.6s ease forwards;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,212,255,0.1);
}

@keyframes matchSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.team-side {
  text-align: center;
  flex: 1;
}

.team-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.match-vs {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
}

.match-score {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary);
}

.match-time {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* 积分榜 */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.standings-table th,
.standings-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-table tr:hover {
  background: rgba(0,212,255,0.05);
}

.standings-table .rank-up {
  color: var(--success);
}

.standings-table .rank-down {
  color: var(--danger);
}

.standings-table .rank-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
}

/* MVP卡片 */
.mvp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
  perspective: 1000px;
}

.mvp-card:hover {
  transform: rotateY(5deg) scale(1.02);
}

.mvp-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
  object-fit: cover;
}

.mvp-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
}

.mvp-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.mvp-stat {
  text-align: center;
}

.mvp-stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
}

.mvp-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* 赛程日历 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.calendar-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.calendar-day.active {
  border-color: var(--secondary);
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

.calendar-day.has-match {
  border-color: var(--accent);
}

.calendar-day .day-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

/* 预测条 */
.prediction-bar {
  display: flex;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  background: var(--border);
}

.prediction-left {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  transition: width 0.8s ease;
}

.prediction-right {
  background: linear-gradient(90deg, var(--accent), #FF6B35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #000;
  transition: width 0.8s ease;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,212,255,0.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--border);
}

/* 页脚 */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 60px;
}

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

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

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

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

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(0,212,255,0.05);
}

.faq-question::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,212,255,0.3);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #000;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,183,3,0.3);
  color: #000;
}

/* 搜索 */
.search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 30px auto;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

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

.search-results {
  margin-top: 30px;
}

.search-result-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.search-result-item h3 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.search-result-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result-item .path {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 8px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,212,255,0.1);
  color: var(--secondary);
  border: 1px solid rgba(0,212,255,0.3);
}

/* 页面标题区 */
.page-header {
  padding: 50px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11,61,145,0.3) 0%, transparent 100%);
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--secondary);
}

.page-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 规则说明 */
.rules-box {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
  margin: 30px 0;
}

.rules-box h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.rules-box ul {
  list-style: none;
  padding: 0;
}

.rules-box li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.rules-box li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* 相关链接 */
.related-links {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
}

.related-links h3 {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

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

.related-links li a {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.related-links li a:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--secondary);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 16px;
  }

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

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .match-card {
    flex-direction: column;
    text-align: center;
  }

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

  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .standings-table {
    font-size: 0.8rem;
  }

  .standings-table th,
  .standings-table td {
    padding: 10px 8px;
  }

  .section {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .mvp-stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    padding: 50px 0;
  }

  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

/* 赛博光束效果 */
.cyber-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--secondary), transparent);
  opacity: 0.3;
  animation: beamMove 3s infinite;
}

@keyframes beamMove {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(10px); opacity: 0.6; }
}
