/* ============================================
   魔兽世界智商杯 - 公会网站样式
   高端时尚杂志暗色 UI
   ============================================ */

/* === 字体引入 === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@400;600;700;900&family=JetBrains+Mono:wght@300;400&display=swap');

/* === CSS 变量 === */
:root {
  --bg-primary: #211e19;
  --bg-secondary: #2a251f;
  --bg-card: rgba(232, 224, 208, 0.07);
  --bg-card-hover: rgba(232, 224, 208, 0.11);
  --gold: #c6a33a;
  --gold-light: #e0bd55;
  --gold-dark: #a8872d;
  --orange: #8c5e3c;
  --text-primary: #f4ecdc;
  --text-secondary: #d8ccb6;
  --text-muted: #a99f8c;
  --border-color: rgba(232, 224, 208, 0.14);
  --border-color-strong: rgba(232, 224, 208, 0.22);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 4px 20px rgba(184, 151, 46, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --nav-height: 70px;
  --font-display: 'Noto Serif SC', 'Playfair Display', 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

/* === 重置样式 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* === 导航栏 === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(30, 27, 23, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  padding: 0 clamp(20px, 3vw, 48px);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(30, 27, 23, 0.92);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold);
  min-width: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  border-radius: 6px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(198, 163, 58, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}


/* === 英雄区域 === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b17 0%, #24201b 50%, #1a1714 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 151, 46, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(140, 94, 60, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(184, 151, 46, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* 粒子背景 */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(184, 151, 46, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 0.86rem;
  color: var(--gold);
  margin-bottom: 30px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 30%, #8c5e3c 70%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(184, 151, 46, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(184, 151, 46, 0.3);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(184, 151, 46, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.88rem;
}

/* === 滚动提示 === */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* === 通用区块样式 === */
.section {
  padding: 100px 40px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(184, 151, 46, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 0.84rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* === 首页预览专区（紧凑布局） === */
.home-section {
  padding: 48px 40px;
  position: relative;
}

.home-section-header {
  text-align: center;
  margin-bottom: 28px;
}

.home-section-header .section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 6px;
}

.home-section-header .section-tag {
  margin-bottom: 10px;
}

.home-section-header .home-more-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s;
}
.home-section-header .home-more-link:hover {
  color: var(--gold);
}

/* 视频预览卡片 */
.home-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-video-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.home-video-card:hover {
  border-color: rgba(232, 184, 75, 0.35);
  transform: translateY(-2px);
}

.home-video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #1a1714;
  overflow: hidden;
}
.home-video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-video-thumb .home-video-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.home-video-thumb .home-video-thumb-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.12);
  font-size: 3rem;
}

.home-video-info {
  padding: 10px 14px 12px;
}
.home-video-info .home-video-title {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}
.home-video-info .home-video-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.home-video-info .home-video-meta span + span::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.4;
}

/* 英雄榜预览卡片 */
.home-heroes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-heroes-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}
.home-heroes-card:hover {
  border-color: rgba(232, 184, 75, 0.35);
}

.home-heroes-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.home-heroes-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-heroes-avatar .home-heroes-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.home-heroes-body {
  flex: 1;
  min-width: 0;
}
.home-heroes-body .home-heroes-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-heroes-body .home-heroes-class {
  font-size: 0.78rem;
}
.home-heroes-ilvl {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* 首页复用通用 grid，固定 4 列 */
.home-section .members-grid,
.home-section .streams-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* 移动端 */
@media (max-width: 768px) {
  .home-section {
    padding: 36px 16px;
  }
  .home-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .home-heroes-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .home-video-info {
    padding: 8px 10px 10px;
  }
  .home-video-info .home-video-title {
    font-size: 0.8rem;
  }
  .home-section .members-grid,
  .home-section .streams-grid {
    gap: 10px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* === 公会简介 === */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-weight: 400;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 8px;
  font-weight: 400;
}

/* === 筛选栏 === */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 18px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(198, 163, 58, 0.08);
}

.filter-btn.active {
  background: rgba(198, 163, 58, 0.15);
  color: var(--gold-light);
  border-color: var(--gold);
  font-weight: 500;
}

/* === 团员展示 === */
.members-section {
  background: var(--bg-primary);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 151, 46, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.member-card:hover::before {
  transform: scaleX(1);
}

.member-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.member-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--bg-primary);
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.member-class {
  font-size: 0.76rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

.member-class-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.member-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 6px;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.member-slogan {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-style: italic;
  padding: 5px 10px;
  background: rgba(200, 191, 168, 0.03);
  border-radius: 2px;
  border-left: 2px solid var(--gold-dark);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === 专精标签 === */
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.spec-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  border: 1px solid transparent;
  white-space: nowrap;
}

.spec-main {
  font-weight: 600;
  border-width: 1px;
  border-style: solid;
}

.spec-sub {
  opacity: 0.85;
}

/* === 社交图标 === */
.member-socials {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
}

.social-icon-link {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: rgba(200, 191, 168, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon-link:hover {
  background: rgba(184, 151, 46, 0.12);
  transform: scale(1.15);
}

.member-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}

.platform-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.platform-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.platform-short-name {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.platform-name {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.member-link {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--gold);
  padding: 2px 10px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  transition: var(--transition);
}

.member-link:hover {
  background: rgba(184, 151, 46, 0.1);
  border-color: var(--gold);
}

/* === 直播板块 === */
.streams-section {
  background: var(--bg-secondary);
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.stream-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 400;
  min-height: 88px;
}

.stream-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-strong);
  transform: translateY(-2px);
}

.stream-card.stream-live {
  border-color: rgba(255, 68, 68, 0.2);
  background: rgba(255, 68, 68, 0.03);
}

.stream-card.stream-offline {
  opacity: 0.6;
}

.stream-card.stream-offline:hover {
  opacity: 0.9;
}

.stream-avatar {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--bg-primary);
  position: relative;
}

.stream-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-live-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #ff4444;
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.stream-info {
  flex: 1;
  min-width: 0;
}

.stream-name {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.stream-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.stream-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stream-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stream-title {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: none;
  margin-top: 4px;
}

.stream-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.stream-viewers {
  font-size: 0.74rem;
  color: #ff6666;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 0;
}

.stream-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 2px;
}

.status-live {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.08);
}

.status-offline {
  color: var(--text-muted);
  background: rgba(200, 191, 168, 0.03);
}

.status-checking {
  color: #e8b84b;
  background: rgba(232, 184, 75, 0.08);
  animation: pulse-dot 2s infinite;
}

.status-unknown {
  color: #cbae6e;
  background: rgba(203, 174, 110, 0.08);
  cursor: help;
}

.stream-status-dot {
  width: 6px;
  height: 6px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === 视频集锦 === */
.gallery-section {
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.gallery-author {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(184, 151, 46, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-primary);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-play {
  opacity: 1;
}

/* === 战绩展示 === */
.achievements-section {
  background: var(--bg-secondary);
}

.achievements-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.achievements-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), rgba(184, 151, 46, 0.3), transparent);
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.achievement-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.achievement-date {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  padding: 8px 16px;
  background: rgba(184, 151, 46, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.achievement-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.achievement-content:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 8px;
}

.achievement-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
}

.achievement-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  z-index: 1;
}

/* === 活动日历 === */
.calendar-section {
  background: var(--bg-primary);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-nav button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav button:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

.calendar-month {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  min-width: 160px;
  text-align: center;
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  padding: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.calendar-day.today {
  border-color: var(--gold);
  background: rgba(184, 151, 46, 0.08);
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.calendar-day.other-month {
  opacity: 0.25;
}

.calendar-day .day-number {
  font-weight: 500;
}

/* === 页脚 === */

/* === 统一页面标题 Masthead（暗金高级杂志式） === */
.page-masthead {
  padding: 126px 28px 56px;
  background: linear-gradient(180deg, rgba(232,224,208,0.035), transparent 75%);
  border-bottom: 1px solid var(--border-color);
}

.page-masthead .container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.masthead-bg-word {
  position: absolute;
  left: -8px;
  top: -30px;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(232,224,208,0.035);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.page-masthead h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.8vw, 4rem);
  line-height: 1.14;
  font-weight: 900;
  color: var(--text-primary);
  max-width: 980px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-masthead p {
  position: relative;
  margin-top: 16px;
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 768px) {
  .page-masthead {
    padding: 104px 20px 42px;
  }
  .page-masthead h1 {
    font-size: 2.05rem;
  }
  .masthead-bg-word {
    font-size: 3.5rem;
    top: -22px;
  }
  .page-masthead p {
    font-size: 0.92rem;
  }
}

/* === Raid Status Panel === */
.activity-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  top: -1px;
}

.activity-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: inset 0 0 60px rgba(90,158,111,0.05), 0 0 24px rgba(90,158,111,0.07);
}

.activity-panel[data-state="live"] .activity-panel-glow {
  opacity: 1;
}

.activity-panel-main {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border-color);
  border-top: none;
  background: linear-gradient(90deg, rgba(232,224,208,0.02), rgba(184,151,46,0.035));
  min-height: 116px;
}

.activity-state-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-kicker {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.activity-state-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.live {
  background: #5a9e6f;
  box-shadow: 0 0 8px rgba(90,158,111,0.5);
  animation: activity-pulse 2s ease-in-out infinite;
}

.activity-dot.idle {
  background: #c9a03a;
  box-shadow: 0 0 6px rgba(201,160,58,0.35);
}

.activity-state-label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-panel[data-state="live"] .activity-state-label {
  color: #5a9e6f;
}

.activity-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.activity-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.activity-subtitle {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.activity-timer {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
}

.timer-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  background: rgba(232,224,208,0.03);
}

.timer-cell strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.timer-cell span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.activity-panel[data-state="live"] .timer-cell strong {
  color: #5a9e6f;
}

@keyframes activity-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(90,158,111,0.4); }
  50% { box-shadow: 0 0 14px rgba(90,158,111,0.7); }
}

@media (max-width: 768px) {
  .activity-panel {
    padding: 0 16px;
  }
  .activity-panel-main {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
  }
  .activity-state-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .activity-kicker {
    font-size: 0.65rem;
  }
  .activity-title {
    font-size: 1.1rem;
  }
  .activity-timer {
    justify-content: space-between;
  }
  .timer-cell {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
  }
  .timer-cell strong {
    font-size: 1.75rem;
  }
}

/* === 响应式设计 === */
@media (max-width: 1180px) {
  .nav-links a {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .nav-logo {
    font-size: 1.05rem;
    gap: 9px;
  }

  .nav-logo img {
    height: 32px;
  }
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(30, 27, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 60px 20px;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .achievements-timeline::before {
    left: 20px;
  }

  .achievement-item,
  .achievement-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 50px;
    text-align: left;
  }

  .achievement-dot {
    left: 20px;
  }

  .achievement-date {
    width: auto;
  }

  .page-masthead {
    padding: 100px 20px 40px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .member-card {
    padding: 20px;
  }
}

/* === 动画 === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 加载动画 === */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === 空状态 === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}
