:root {
  --bg: #0f1117;
  --surface: rgba(25, 28, 36, 0.7);
  --primary: #00ff88;
  --accent: #ff6b2b;
  --blue: #4d9fff;
  --text: #e8ecf0;
  --text-muted: #8892a0;
  --border: rgba(0, 255, 136, 0.1);
  --radius: 12px;
  --font-title: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-title);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-mono); font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: bold; color: var(--primary); }
.brand img { height: 32px; width: auto; }
.nav-links { display: none; gap: 24px; font-size: 0.9rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.header-btn {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: var(--bg); padding: 8px 20px; border-radius: 20px;
  font-weight: bold; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.header-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Hero Section */
.hero {
  padding: 120px 0 64px;
  display: flex; flex-direction: column; gap: 32px;
  min-height: 80vh; justify-content: center;
}
.hero-content { flex: 1; }
.hero h1 {
  font-size: 2.5rem; color: var(--primary); line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }
.hero-stats { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.btn-primary {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: var(--bg); padding: 14px 32px; border-radius: 30px;
  font-weight: bold; font-size: 1.1rem; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 255, 136, 0.6); }
.btn-text { color: var(--text); border-bottom: 1px solid var(--text-muted); padding-bottom: 2px; }
.btn-text:hover { color: var(--primary); border-color: var(--primary); }

.hero-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 3s infinite linear;
}
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-card h3 { font-size: 1rem; color: var(--accent); margin-bottom: 12px; }
.hero-card .topic { font-size: 1.2rem; font-weight: bold; margin-bottom: 24px; }
.countdown { font-family: var(--font-mono); color: var(--accent); font-size: 2rem; margin-bottom: 24px; }

@media (min-width: 768px) {
  .hero { flex-direction: row; align-items: center; padding: 140px 0 80px; }
  .hero h1 { font-size: 3.5rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-card { width: 400px; flex-shrink: 0; }
}

/* Sections Common */
section { padding: 64px 0; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.divider { height: 1px; background: var(--border); margin: 0 24px; }

/* Daily Topic */
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.topic-main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.topic-tags { display: flex; gap: 12px; margin-bottom: 16px; }
.tag { background: rgba(0, 255, 136, 0.1); color: var(--primary); padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-family: var(--font-mono); }
.topic-main h3 { font-size: 1.4rem; margin-bottom: 16px; }
.topic-main p { color: var(--text-muted); font-size: 0.95rem; }
.topic-side { display: flex; flex-direction: column; gap: 12px; }
.track-btn { 
  background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
  padding: 16px; border-radius: 8px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: border-color 0.2s;
}
.track-btn:hover { border-color: var(--primary); }
.track-btn span { font-size: 0.85rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .topic-grid { grid-template-columns: 6fr 4fr; }
}

/* Video Track */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.video-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.3s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--border); }
.video-cover { position: relative; aspect-ratio: 16/9; background: #000; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 16px; }
.video-info h4 { font-size: 1rem; margin-bottom: 8px; }
.video-info .meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Arena */
.arena-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.arena-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); overflow: hidden;
}
.arena-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.arena-card.portrait img { aspect-ratio: 9/16; }
.arena-info { padding: 16px; }

@media (min-width: 768px) {
  .arena-grid { grid-template-columns: repeat(2, 1fr); }
  .arena-grid .half { grid-column: span 1; }
  .arena-grid .third { grid-column: span 1; }
}
@media (min-width: 1024px) {
  .arena-grid { grid-template-columns: repeat(6, 1fr); }
  .arena-grid .half { grid-column: span 3; }
  .arena-grid .third { grid-column: span 2; }
}

/* Leaderboard */
.board-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.board-col {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.board-col h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.board-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); font-size: 0.9rem; }
.board-list li:last-child { border-bottom: none; }
.board-list .rank { color: var(--accent); font-weight: bold; width: 24px; }

@media (min-width: 768px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Community */
.comm-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.comm-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.comm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comm-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comm-head span { font-weight: bold; font-size: 0.9rem; }
.comm-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

@media (min-width: 768px) {
  .comm-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Footer */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand h4 { color: var(--primary); margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
details.about-us { margin-top: 16px; font-size: 0.8rem; }
details.about-us summary { cursor: pointer; color: var(--text-muted); outline: none; }
details.about-us summary::-webkit-details-marker { display: none; }
details.about-us summary:hover { color: var(--primary); }
.about-content { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.about-content a { color: var(--text-muted); }
.about-content a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}