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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #4f6ef7;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #3b5de7;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f6ef7, #38bdf8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

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

.nav-links a {
  color: #666;
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4f6ef7;
}

/* Main */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #dbeafe 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e7ff;
}

.banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.banner h1 {
  font-size: 32px;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.banner p {
  font-size: 16px;
  color: #6b7280;
  max-width: 500px;
}

/* Section Title */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

/* Live Grid */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.live-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 110, 247, 0.1);
  border-color: rgba(79, 110, 247, 0.3);
}

.live-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-thumb video,
.live-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #aaa;
}

.live-placeholder svg {
  width: 48px;
  height: 48px;
  fill: #ccc;
}

.live-placeholder span {
  font-size: 13px;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.live-viewers {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.live-info {
  padding: 14px 16px;
}

.live-info h3 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-host {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.host-name {
  font-size: 13px;
  color: #888;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #e8ecf1;
  padding: 32px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  font-size: 13px;
}

.footer-links a:hover {
  color: #4f6ef7;
}

.footer-info {
  color: #999;
  font-size: 12px;
  line-height: 2;
}

.footer-info a {
  color: #999;
}

.footer-info a:hover {
  color: #4f6ef7;
}

/* Article Pages */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.article-container h1 {
  font-size: 28px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.article-update {
  color: #999;
  font-size: 13px;
  margin-bottom: 32px;
}

.article-body {
  line-height: 1.8;
  color: #555;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
}

.article-body h2 {
  font-size: 20px;
  color: #1a1a2e;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8ecf1;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 16px;
  color: #333;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 14px;
  font-size: 14px;
}

.article-body ol,
.article-body ul {
  margin: 12px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

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

  .banner {
    padding: 32px 24px;
  }

  .banner h1 {
    font-size: 24px;
  }

  .live-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .article-body {
    padding: 20px;
  }
}
