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

:root {
  --purple-1: #1a0a2e;
  --purple-2: #2d1b4e;
  --purple-3: #4a2c7a;
  --purple-4: #7c3aed;
  --purple-5: #a78bfa;
  --purple-6: #c4b5fd;
  --purple-glow: rgba(124, 58, 237, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--purple-1);
  color: #e2d9f3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--purple-5);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--purple-6);
  text-shadow: 0 0 8px var(--purple-glow);
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  background: rgba(26, 10, 46, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-4), #ec4899);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--purple-glow);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 15px var(--purple-glow); }
  50% { box-shadow: 0 4px 25px rgba(124, 58, 237, 0.6); }
}

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

.nav-links a {
  color: var(--purple-6);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--glass-bg);
  text-shadow: 0 0 8px var(--purple-glow);
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 50px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--purple-5) 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: var(--purple-6);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* Floating Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: var(--purple-4);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: #ec4899;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: var(--purple-5);
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

.section-title .live-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Live Card */
.live-section {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.live-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.live-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--purple-4);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.live-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 500px;
  background: var(--purple-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.live-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--purple-5);
}

.live-placeholder svg {
  width: 64px;
  height: 64px;
  fill: var(--purple-3);
}

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

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

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

.live-viewers {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

.live-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.live-info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

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

.host-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-4), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 2px 8px var(--purple-glow);
}

.host-name {
  font-size: 14px;
  color: var(--purple-6);
}

/* Footer */
.site-footer {
  background: rgba(26, 10, 46, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

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

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

.footer-links a {
  color: var(--purple-6);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #fff;
  background: var(--glass-bg);
}

.footer-info {
  color: rgba(196, 181, 253, 0.6);
  font-size: 13px;
  line-height: 2;
}

.footer-info a {
  color: rgba(196, 181, 253, 0.6);
}

.footer-info a:hover {
  color: var(--purple-5);
}

/* Article Pages */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.article-container h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--purple-5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.article-update {
  color: var(--purple-5);
  font-size: 13px;
  margin-bottom: 32px;
  opacity: 0.7;
}

.article-body {
  line-height: 1.9;
  color: var(--purple-6);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.article-body h2 {
  font-size: 22px;
  color: #fff;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

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

.article-body h3 {
  font-size: 17px;
  color: var(--purple-5);
  margin: 28px 0 14px;
}

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

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

.article-body li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.8;
}

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .live-card {
    max-width: 100%;
  }

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

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