/* ========================================
   全站样式 - 暗夜霓虹主题
   独特配色：深紫 + 霓虹粉 + 橙色渐变
   ======================================== */

/* CSS变量定义 */
:root {
  --bg-primary: #0d0b1a;
  --bg-secondary: #1a1530;
  --bg-card: #221d3a;
  --bg-card-hover: #2d2650;
  --text-primary: #f0edf7;
  --text-secondary: #b8b0d0;
  --text-muted: #8a80a8;
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  --accent-orange: #f97316;
  --accent-blue: #6366f1;
  --gradient-main: linear-gradient(135deg, #6b21a8, #ec4899, #f97316);
  --gradient-card: linear-gradient(145deg, #221d3a, #1a1530);
  --gradient-btn: linear-gradient(90deg, #ec4899, #f97316);
  --border-color: rgba(168, 85, 247, 0.2);
  --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 导航栏 ========== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.site-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent-purple);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.15);
}

/* ========== Hero区域 ========== */
.hero-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 16px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,26,0.6) 0%, rgba(13,11,26,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========== 按钮 ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-btn);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-pink);
  padding: 11px 27px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--accent-pink);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--accent-pink);
  color: #fff;
}

/* ========== 区块标题 ========== */
.section-block {
  padding: 50px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 3px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ========== 视频卡片网格 ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 11, 26, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.play-btn-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-tag {
  display: inline-block;
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-top: 8px;
}

/* ========== 视频播放器模块 ========== */
.video-player-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 30px 0;
  border: 1px solid var(--border-color);
}

.video-player-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
}

.video-player-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-play-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-play-btn {
  width: 80px;
  height: 80px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.5);
  animation: pulse-glow 2s infinite;
}

.big-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 30px rgba(236, 72, 153, 0.5); }
  50% { box-shadow: 0 6px 50px rgba(236, 72, 153, 0.8); }
}

.video-description {
  padding: 24px;
}

.video-description h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.video-description p {
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ========== 评论模块 ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-user-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.review-user-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.review-date {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== 注册模块 ========== */
.register-section {
  background: linear-gradient(135deg, var(--bg-secondary), rgba(107, 33, 168, 0.15));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.register-form {
  max-width: 500px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.register-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.register-form input:focus {
  border-color: var(--accent-pink);
}

.register-form input::placeholder {
  color: var(--text-muted);
}

/* ========== 授权模块 ========== */
.auth-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.auth-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.auth-badge {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.auth-badge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.auth-badge h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.auth-badge p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== 上传模块 ========== */
.upload-zone {
  border: 2px dashed var(--accent-purple);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  background: rgba(168, 85, 247, 0.04);
  transition: background 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  background: rgba(168, 85, 247, 0.08);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.upload-zone h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== 新闻模块 ========== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.3s ease;
  align-items: center;
}

.news-item:hover {
  transform: translateX(4px);
}

.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== FAQ模块 ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(168, 85, 247, 0.08);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-pink);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ========== 关于我们 ========== */
.about-content {
  columns: 1;
  gap: 30px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  break-inside: avoid;
}

.about-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

/* ========== 客户支持 ========== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.support-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.support-card:hover {
  transform: translateY(-3px);
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.support-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.support-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-btn);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-pink);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gradient-btn);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent-pink);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-pink);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ========== 内页样式 ========== */
.page-hero {
  padding: 40px 16px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.content-area {
  padding: 30px 0;
}

.content-area article {
  max-width: 900px;
  margin: 0 auto;
}

.content-area article p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.9;
}

.content-area article h2 {
  font-size: 1.5rem;
  margin: 30px 0 16px;
}

.content-area article h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.content-gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ========== APP下载页面 ========== */
.app-download-hero {
  text-align: center;
  padding: 60px 16px;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.2), rgba(236, 72, 153, 0.1));
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.app-feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

.app-feature-card:hover {
  transform: translateY(-4px);
}

.app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.app-feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.app-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ========== 星级评分 ========== */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: var(--text-muted);
}

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 10px;
  }

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

  .main-nav a {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .register-section {
    padding: 24px 16px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 160px;
  }

  .container {
    padding: 0 12px;
  }

  .about-content {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-section {
    min-height: 320px;
    padding: 40px 12px;
  }

  .section-block {
    padding: 30px 0;
  }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

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

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

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