/* 
 * 51视频 - 影视传媒与动漫社区 
 * 原创主题配色：深紫/暗红渐变
 */
:root {
  --primary-color: #e8003d; /* 活力红 */
  --secondary-color: #6c1fd4; /* 赛博紫 */
  --bg-dark: #0f0c20; /* 深空背景 */
  --bg-card: #1a153a; /* 卡片背景 */
  --text-main: #f0f0f5; /* 主文本 */
  --text-muted: #a09eb5; /* 次文本 */
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-main); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
.site-header {
  background: rgba(15, 12, 32, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area img { width: 45px; height: 45px; border-radius: 12px; }
.logo-area span { font-size: 24px; font-weight: bold; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; font-size: 16px; padding: 5px 0; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* 搜索框 */
.search-bar {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  padding: 5px 15px;
}
.search-bar input {
  background: transparent; border: none; color: #fff; outline: none; width: 180px;
}
.search-bar button {
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
}

/* Hero Banner */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(15,12,32,0.9) 0%, rgba(15,12,32,0.6) 50%, rgba(15,12,32,0.1) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3; max-width: 600px;
}
.hero-badge {
  display: inline-block; padding: 6px 15px; background: rgba(232,0,61,0.2);
  border: 1px solid var(--primary-color); border-radius: 20px;
  color: #ff4d79; font-size: 14px; margin-bottom: 20px;
}
.hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary-color); }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 25px;
  font-size: 16px; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--gradient); color: #fff; border: none; box-shadow: 0 4px 15px rgba(232,0,61,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,0,61,0.5); }
.btn-outline { border: 2px solid var(--secondary-color); color: #fff; background: transparent; }
.btn-outline:hover { background: var(--secondary-color); }

/* 通用区段 */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-card); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 700px; margin: 0 auto; }

/* 动漫视频网格 */
.anime-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px;
}
.anime-card {
  background: var(--bg-dark); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-color); transition: transform 0.3s;
}
.anime-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.anime-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.anime-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.anime-card:hover .anime-thumb img { transform: scale(1.05); }

.play-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.anime-card:hover .play-overlay { opacity: 1; }
.play-icon {
  width: 60px; height: 60px; background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play-icon svg { width: 30px; height: 30px; fill: #fff; margin-left: 5px; }

.anime-badge {
  position: absolute; top: 10px; left: 10px; background: var(--primary-color);
  color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px;
}
.anime-duration {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8);
  color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px;
}
.anime-info { padding: 15px; }
.anime-info h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anime-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; }

/* 模块特性 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-box { background: var(--bg-card); padding: 30px; border-radius: 15px; border: 1px solid var(--border-color); text-align: center; }
.feature-icon { font-size: 40px; margin-bottom: 20px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.feature-box h3 { margin-bottom: 15px; font-size: 20px; }
.feature-box p { color: var(--text-muted); font-size: 14px; }

/* 专家团队 */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expert-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--border-color); }
.expert-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.expert-info { padding: 20px; }
.expert-info h3 { margin-bottom: 5px; }
.expert-info p { color: var(--primary-color); font-size: 14px; margin-bottom: 15px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); margin-bottom: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.faq-q { padding: 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { padding: 0 20px 20px; color: var(--text-muted); display: none; }

/* 评论区 */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); }
.review-stars { color: #f1c40f; margin-bottom: 15px; }
.review-text { font-style: italic; margin-bottom: 20px; }
.review-user { display: flex; align-items: center; gap: 15px; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--secondary-color); display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* 页脚 */
.site-footer { background: #0a0815; padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #fff; }
.footer-col p { color: var(--text-muted); margin-bottom: 10px; font-size: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary-color); }

.qr-codes { display: flex; gap: 15px; }
.qr-box { text-align: center; }
.qr-box img { width: 100px; height: 100px; background: #fff; padding: 5px; border-radius: 8px; margin-bottom: 5px; }
.qr-box span { font-size: 12px; color: var(--text-muted); }

.social-share { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.social-icon:hover { background: var(--primary-color); }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 14px; }

/* 视频播放模态框 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { width: 90%; max-width: 1000px; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.close-modal { position: absolute; top: -40px; right: 0; color: #fff; font-size: 30px; cursor: pointer; }
.video-player { width: 100%; aspect-ratio: 16/9; background: #111; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.video-player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.video-player-msg { position: absolute; text-align: center; }
.video-player-msg h3 { font-size: 24px; margin-bottom: 10px; }
.video-player-msg p { color: var(--text-muted); }

/* 移动端适配 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 32px; }
  .feature-grid, .expert-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .qr-codes { justify-content: center; }
  .social-share { justify-content: center; }
}

/* 隐藏干扰标签 */
.anime-noise { display: none !important; }
