:root {
  --bg-dark: #0c0d14;
  --bg-card: #151722;
  --bg-card-hover: #1c1f2e;
  --primary: #ff2e63;
  --primary-hover: #ff4778;
  --accent: #08d9d6;
  --violet: #8b5cf6;
  --text-main: #f1f3f9;
  --text-muted: #8e95ad;
  --border: #25283a;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(255, 46, 99, 0.4); }
.btn-android { background: #222638; color: #fff; border: 1px solid #353a54; }
.btn-android:hover { background: var(--accent); color: #0c0d14; border-color: var(--accent); }

.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(12, 13, 20, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.live-dot-logo {
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 12px var(--primary); display: inline-block;
}
.brand-name { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.brand-name small {
  font-size: 11px; background: var(--primary); color: #fff;
  padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px;
}
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.header-right { display: flex; align-items: center; gap: 14px; }
.online-pill {
  font-size: 12px; color: var(--accent); background: rgba(8, 217, 214, 0.1);
  border: 1px solid rgba(8, 217, 214, 0.25); padding: 5px 12px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
}
.online-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; position: absolute; transition: all 0.3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.hero { position: relative; padding: 115px 0 55px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow {
  position: absolute; top: -20%; left: 50%; width: 70vw; height: 70vw; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 46, 99, 0.14) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  filter: blur(70px); z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.live-status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 46, 99, 0.12); border: 1px solid rgba(255, 46, 99, 0.35);
  color: #ff6b93; padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  animation: pulseAnim 1.5s infinite;
}
@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 46, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}
.hero-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: #fff; }
.hero-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.8; }
.hero-metrics { display: flex; gap: 32px; flex-wrap: wrap; }
.metric-item { display: flex; flex-direction: column; }
.metric-item strong { font-size: 22px; color: #fff; }
.metric-item span { font-size: 12px; color: var(--text-muted); }

.dl-panel { display: flex; flex-direction: column; gap: 16px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: flex; align-items: center; gap: 18px;
}
.qr-box { width: 96px; height: 96px; background: #fff; padding: 6px; border-radius: 10px; flex-shrink: 0; }
.qr-box img { width: 100%; height: 100%; object-fit: cover; }
.dl-meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dl-badge {
  width: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: rgba(8, 217, 214, 0.15); color: var(--accent);
}
.dl-badge.ios { background: rgba(255, 46, 99, 0.15); color: #ff6b93; }
.dl-meta h3 { font-size: 16px; color: #fff; }
.dl-meta p { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

.cat-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 14px 0; }
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  background: #1e2130; color: var(--text-muted); border: 1px solid var(--border);
  padding: 7px 18px; border-radius: 20px; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.section-spacing { margin-top: 50px; margin-bottom: 50px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-title { font-size: 22px; font-weight: 700; color: #fff; }
.section-title small { font-size: 12px; color: var(--primary); margin-left: 8px; letter-spacing: 1px; }
.more-link { font-size: 13px; color: var(--text-muted); }
.more-link:hover { color: var(--primary); }

.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.live-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.live-card:hover { transform: translateY(-4px); border-color: rgba(255, 46, 99, 0.5); }
.live-card:hover .play-overlay { opacity: 1; }
.live-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.cover-1 { background: linear-gradient(135deg, #2b1055, #ff2e63); }
.cover-2 { background: linear-gradient(135deg, #1b2845, #274060); }
.cover-3 { background: linear-gradient(135deg, #431259, #9b2226); }
.cover-4 { background: linear-gradient(135deg, #0f2027, #2c5364); }
.cover-5 { background: linear-gradient(135deg, #3a1c71, #d76d77); }
.cover-6 { background: linear-gradient(135deg, #141e30, #243b55); }
.cover-7 { background: linear-gradient(135deg, #4a154b, #ff2e63); }
.cover-8 { background: linear-gradient(135deg, #1f1c2c, #6a5acd); }

.badge-live {
  position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge-view {
  position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.65);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.badge-tag {
  position: absolute; bottom: 10px; left: 10px; background: rgba(0, 0, 0, 0.6);
  color: #e6e8ec; font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.play-overlay {
  position: absolute; inset: 0; background: rgba(12, 13, 20, 0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity 0.25s;
}

.live-info { padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.live-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.av-2 { background: #3b82f6; }
.av-3 { background: #ec4899; }
.av-4 { background: #14b8a6; }
.av-5 { background: #f59e0b; }
.av-6 { background: #8b5cf6; }
.av-7 { background: #f43f5e; }
.av-8 { background: #6366f1; }
.live-text { min-width: 0; }
.live-text h3 {
  font-size: 14px; color: #fff; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.live-text p { font-size: 12px; color: var(--text-muted); }

.party-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.party-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.party-card:hover { background: var(--bg-card-hover); border-color: var(--violet); }
.party-top { display: flex; justify-content: space-between; font-size: 12px; }
.party-badge { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.party-hot { color: #ff6b93; font-weight: 600; }
.party-card h3 { font-size: 16px; color: #fff; }
.party-card p { font-size: 13px; color: var(--text-muted); }

.rank-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #1a1d2b; border-radius: 8px;
}
.rank-item:hover { background: #222638; }
.rank-num {
  width: 24px; height: 24px; border-radius: 6px; background: #2c3147; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.rank-num.top1 { background: #f59e0b; color: #000; }
.rank-num.top2 { background: #94a3b8; color: #000; }
.rank-num.top3 { background: #d97706; color: #fff; }
.rank-name { font-size: 15px; font-weight: 600; color: #fff; }
.rank-tag { font-size: 12px; color: var(--accent); background: rgba(8, 217, 214, 0.1); padding: 2px 8px; border-radius: 4px; }
.rank-score { margin-left: auto; font-size: 13px; color: #ff6b93; font-weight: 600; }

.site-footer { background: #08090e; border-top: 1px solid var(--border); padding: 45px 0 24px; margin-top: 50px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-slogan { font-size: 13px; color: var(--text-muted); }
.footer-notice { max-width: 480px; }
.footer-notice h3 { font-size: 15px; color: #d5d9e6; margin-bottom: 8px; }
.notice-text { font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #6c738a;
}
.footer-dl {
  color: #fff; background: var(--primary); padding: 6px 14px; border-radius: 6px; font-weight: 600;
}
.footer-dl:hover { background: var(--primary-hover); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .online-pill, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #10121c; border-bottom: 1px solid var(--border); padding: 20px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: all 0.3s ease;
  }
  .main-nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }
  .live-grid, .party-grid { grid-template-columns: 1fr; }
}