:root {
  --bg: #0f1117;
  --primary: #00ff88;
  --secondary: #ff6b2b;
  --accent: #4d9fff;
  --text: #e8ecf0;
  --text-muted: #8b94a3;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(0, 255, 136, 0.15);
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 64px;
  --spacing-2xl: 96px;
  --container-max: 1200px;
  --font-title: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Courier New', 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;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

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

ul {
  list-style: none;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  z-index: 1000;
  transition: height 0.3s ease;
}

header.scrolled {
  height: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-box img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(90deg, #00e67a, var(--primary));
  color: #000;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  animation: pulse 2s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Sections */
section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: var(--spacing-md);
}

.section-header h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.badge {
  display: inline-block;
  background: rgba(255, 107, 43, 0.15);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid rgba(255, 107, 43, 0.3);
  margin-bottom: 12px;
}

/* Hero */
.hero {
  padding-top: 120px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.hero-left h1 span {
  color: var(--primary);
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-data {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.action-btn {
  background: linear-gradient(90deg, var(--primary), #00cc6a);
  color: #000;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  transition: transform 0.2s;
  display: inline-block;
}

.action-btn:hover {
  transform: scale(1.05);
}

.secondary-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 15px;
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: flow 3s infinite linear;
}

@keyframes flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.question-label {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: bold;
}

.question-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.timer {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 16px;
}

.countdown-bar {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--primary);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-top: 32px;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--glass-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1a1d26;
}

.card-img.portrait {
  aspect-ratio: 9/16;
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab.active, .tab:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: bold;
}

/* List */
.list-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.rank {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: bold;
  color: var(--secondary);
  width: 40px;
}

.list-info {
  flex: 1;
}

.list-title {
  font-size: 14px;
  font-weight: bold;
}

.list-score {
  color: var(--primary);
  font-family: var(--font-mono);
}

/* Footer */
footer {
  padding: 48px 0 24px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-col h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

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

.about-details {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

.about-details summary {
  cursor: pointer;
  outline: none;
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
  display: inline-block;
}

.about-details summary:hover {
  color: var(--primary);
}

.about-details summary::-webkit-details-marker {
  display: none;
}

.about-content {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
}

.about-content a {
  margin-right: 12px;
  color: var(--accent);
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #555;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright a {
  color: #666;
}

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

/* Responsive */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: var(--spacing-xl) 0; }
  .hero { padding-top: 140px; }
  .hero-left h1 { font-size: 56px; }
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  section { padding: var(--spacing-2xl) 0; }
  .hero-content { flex-direction: row; align-items: center; }
  .hero-left { padding-right: 48px; }
  .container { padding: 0 80px; }
  .hero-left h1 { font-size: 64px; }
}