/* =============================================
   少萝 - 主样式文件
   域名：y079ow.cn
   ============================================= */

/* ---------- CSS变量 ---------- */
:root {
  --primary: #e91e8c;
  --primary-dark: #c0166f;
  --secondary: #7c3aed;
  --accent: #f97316;
  --bg-dark: #0d0d1a;
  --bg-card: #16162a;
  --bg-card2: #1e1e35;
  --text-main: #f0f0f8;
  --text-muted: #9090b8;
  --border: #2e2e50;
  --gradient: linear-gradient(135deg, #e91e8c 0%, #7c3aed 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(233,30,140,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---------- 通用工具类 ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,30,140,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(233,30,140,0.5); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- 节标题 ---------- */
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}
.section-header { margin-bottom: 48px; }
.section-header .divider {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---------- 顶部公告栏 ---------- */
.top-bar {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}
.site-logo img.logo-favicon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.logo-text {
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: rgba(233,30,140,0.1);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- 搜索框 ---------- */
.search-bar-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.search-form {
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233,30,140,0.15); }
.search-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 20px;
  color: var(--text-main);
  font-size: 14px;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 50px 50px 0;
}
.search-hot-tags {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.search-hot-tags a {
  color: var(--primary);
  margin: 0 6px;
}
.search-hot-tags a:hover { text-decoration: underline; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_banner.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,26,0.95) 40%, rgba(13,13,26,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(233,30,140,0.15);
  border: 1px solid rgba(233,30,140,0.4);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); }

/* ---------- 视频卡片 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card2);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: var(--transition);
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(233,30,140,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-info { padding: 14px; }
.video-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.video-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 4px;
  color: #a78bfa;
}

/* ---------- 分类卡片 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  background: rgba(233,30,140,0.08);
  transform: translateY(-4px);
}
.category-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.category-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.category-count { font-size: 12px; color: var(--text-muted); }

/* ---------- 专家卡片 ---------- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.expert-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary);
}
.expert-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.expert-title { font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.expert-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.expert-awards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.expert-award {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 20px;
  color: #fb923c;
}
.expert-btns { display: flex; gap: 8px; justify-content: center; }

/* ---------- 评价卡片 ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--secondary); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-user-name { font-size: 15px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.review-tag { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; transition: var(--transition); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- 合作品牌墙 ---------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.partner-item:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.contact-icon { font-size: 40px; margin-bottom: 14px; }
.contact-label { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-value { font-size: 14px; color: var(--text-muted); }
.qr-img { width: 120px; height: 120px; margin: 12px auto 0; border-radius: 8px; }

/* ---------- 社区展示 ---------- */
.community-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.community-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
}
.community-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.community-img-wrap:hover img { transform: scale(1.1); }
.community-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: var(--transition);
}
.community-img-wrap:hover .community-img-overlay { opacity: 1; }
.community-img-overlay span { font-size: 13px; color: #fff; font-weight: 500; }

/* ---------- AI赋能区 ---------- */
.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.ai-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ai-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}
.ai-feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.ai-feature-icon { font-size: 40px; margin-bottom: 16px; }
.ai-feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ai-feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- 社交分享 ---------- */
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #000; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00a1d6; color: #fff; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-main); }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* ---------- 视频播放器 ---------- */
.video-player-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.video-player-wrap video, .video-player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 标签云 ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-cloud-item {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.tag-cloud-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(233,30,140,0.08);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #08081a;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { font-size: 24px; font-weight: 900; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin: 14px 0; line-height: 1.7; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-qr-group { display: flex; gap: 24px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 80px; height: 80px; border-radius: 8px; margin: 0 auto 6px; }
.footer-qr-item span { font-size: 11px; color: var(--text-muted); }
.update-time { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---------- 移动端导航 ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,13,26,0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 700; color: var(--text-main); }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ---------- 直播区 ---------- */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.live-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.live-thumb { position: relative; aspect-ratio: 9/16; overflow: hidden; }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.live-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.live-info { padding: 12px; }
.live-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.live-desc { font-size: 12px; color: var(--text-muted); }

/* ---------- 弹幕样式 ---------- */
.danmu-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: 120px;
  overflow: hidden;
  margin-top: 16px;
}
.danmu-item {
  position: absolute;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
  animation: danmu-move 8s linear infinite;
  top: 10px;
}
@keyframes danmu-move { from{right:-300px} to{right:110%} }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 22px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 50px 0; }
  .expert-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .community-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 影视传媒专区 ---------- */
.media-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.media-zone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}
.media-zone-card:hover {
  border-color: var(--primary);
  background: rgba(233,30,140,0.08);
  transform: translateY(-4px);
}
.mz-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.mz-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mz-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.mz-count { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ---------- 娱乐专区卡片 ---------- */
.ent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.ent-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.ent-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ent-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ent-card:hover .ent-card-thumb img { transform: scale(1.08); }
.ent-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.ent-badge {
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.ent-card-body { padding: 20px; }
.ent-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ent-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

/* ---------- HowTo步骤卡片 ---------- */
.howto-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}
.howto-step-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.howto-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  color: #fff;
  font-weight: 900;
}
.howto-step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.howto-step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Footer Share ---------- */
.footer-share {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.footer-share-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-share-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-bottom-left { flex: 1; }
.footer-bottom-right {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.8;
}
/* ---------- 动画 ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 加载更多 ---------- */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ---------- 视频内页 ---------- */
.video-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.video-detail-main {}
.video-detail-sidebar {}
.video-detail-title { font-size: 22px; font-weight: 800; margin: 20px 0 10px; }
.video-detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.video-detail-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.video-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.liked { background: rgba(233,30,140,0.15); border-color: var(--primary); color: var(--primary); }

@media (max-width: 900px) {
  .video-detail-layout { grid-template-columns: 1fr; }
}

/* ---------- 弹窗 ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--primary); }
