/* ============================================
   传媒影视创作网站 - 主样式表
   配色方案：深紫+金色+暗灰
   ============================================ */

/* CSS变量 */
:root {
  --primary: #6B21A8;
  --primary-light: #9333EA;
  --primary-dark: #4C1D95;
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --accent-dark: #D97706;
  --bg-dark: #0F0F1A;
  --bg-card: #1A1A2E;
  --bg-section: #12121F;
  --text-primary: #F1F1F6;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B82;
  --border-color: #2A2A40;
  --success: #10B981;
  --danger: #EF4444;
  --gradient-hero: linear-gradient(135deg, #4C1D95 0%, #1A1A2E 50%, #0F0F1A 100%);
  --gradient-card: linear-gradient(180deg, #1A1A2E 0%, #12121F 100%);
  --gradient-accent: linear-gradient(90deg, #F59E0B 0%, #9333EA 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'STSong', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::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-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

/* ============ 顶部导航 ============ */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-wrap img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
}

.logo-wrap .brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--gradient-accent);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============ Hero区域 ============ */
.hero-section {
  background: var(--gradient-hero);
  padding: 3rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-content .hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  background: transparent;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
}

/* Hero图片 */
.hero-banner-img {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-banner-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

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

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

.breadcrumb span {
  margin: 0 0.4rem;
}

/* ============ 通用Section ============ */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.6rem;
}

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

.section-title p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

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

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

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

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

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

.card-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card-thumb .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.card:hover .play-icon {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.card-body {
  padding: 1rem 1.2rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-rating {
  color: var(--accent);
}

/* ============ 视频播放器 ============ */
.video-player-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.video-play-btn {
  width: 70px;
  height: 70px;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.1);
  background: var(--accent);
}

/* ============ 优势模块 ============ */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.advantage-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.advantage-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.advantage-item h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ============ 注册模块 ============ */
.register-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-card) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  text-align: center;
}

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

.register-form input {
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.register-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.register-form button {
  padding: 0.8rem;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.register-form button:hover {
  background: var(--accent-light);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-toggle {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

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

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

.faq-answer-inner {
  padding: 0 1.2rem 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* ============ 评论 ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary-light);
}

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

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

.review-info .review-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

.review-stars {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

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

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

/* ============ 支付方式 ============ */
.payment-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.payment-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.25rem 0;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

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

.footer-bottom .footer-payments {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* ============ 内页样式 ============ */
.page-header {
  background: var(--gradient-hero);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--accent);
}

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

.content-area {
  padding: 2rem 0;
}

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

.content-area article h2 {
  margin-top: 2rem;
  color: var(--accent);
}

.content-area article h3 {
  margin-top: 1.5rem;
}

.content-area article p {
  text-align: justify;
}

.content-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

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

/* ============ APP下载页 ============ */
.app-hero {
  background: linear-gradient(135deg, var(--primary-dark), #1A1A2E);
  padding: 3rem 0;
  text-align: center;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.app-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.app-feature-card:hover {
  border-color: var(--accent);
}

.download-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.download-btn.ios {
  background: #fff;
  color: #000;
}

.download-btn.android {
  background: var(--accent);
  color: var(--bg-dark);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.support-card:hover {
  border-color: var(--accent);
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

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

  .main-nav a {
    padding: 0.7rem 1rem;
    width: 100%;
  }

  .nav-cta { margin: 0.5rem 1rem; text-align: center; }

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

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .card-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .register-section { padding: 1.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

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

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

/* ============ 视频徽章 ============ */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  color: var(--success);
  font-size: 0.9rem;
}

/* ============ 评分条 ============ */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-bar .stars {
  color: var(--accent);
}

.rating-bar .score {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(147, 51, 234, 0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.78rem;
  margin: 0.15rem;
}

/* ============ 分隔线 ============ */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
