/* ========================================
   吃瓜视频 - 全站样式表
   配色方案：深邃星空蓝 + 活力橙金
   字体：系统中文字体栈
   ======================================== */

:root {
  --primary: #FF6B35;
  --primary-dark: #E85D26;
  --accent: #F7C948;
  --accent-dark: #D4A017;
  --bg-deep: #0D0D1A;
  --bg-card: #161625;
  --bg-section: #1A1A2E;
  --bg-hover: #222240;
  --text-main: #E8E8F0;
  --text-muted: #9999B3;
  --text-bright: #FFFFFF;
  --border-color: #2A2A45;
  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #E74C3C;
  --star-color: #FFD700;
  --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;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== 导航栏（非sticky） ===== */
.site-header {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(255,107,53,0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: var(--text-bright) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}

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

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,26,0.6) 0%, rgba(13,13,26,0.95) 100%);
}

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

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

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.5);
  color: var(--text-bright);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

/* ===== 通用容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
}

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

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-bright);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

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

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

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

.breadcrumb span {
  margin: 0 6px;
}

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

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

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

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

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.card-play-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.card-body {
  padding: 16px;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,107,53,0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  font-size: 0.85rem;
  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: 10px 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-rating {
  color: var(--star-color);
  letter-spacing: 2px;
}

/* ===== 视频播放模块 ===== */
.video-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

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

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

.play-btn-large {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,107,53,0.5);
  transition: transform var(--transition);
}

.video-player-wrap:hover .play-btn-large {
  transform: scale(1.1);
}

.play-btn-large::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent white;
  margin-left: 6px;
}

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

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

.review-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-info h4 {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 600;
}

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

.review-stars {
  color: var(--star-color);
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

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

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

/* ===== 评论员评价模块 ===== */
.critic-section {
  background: linear-gradient(135deg, var(--bg-section), var(--bg-deep));
}

.critic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
}

.critic-card blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.8;
}

.critic-card cite {
  display: block;
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

.news-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.news-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.news-thumb {
  width: 160px;
  min-height: 120px;
  flex-shrink: 0;
}

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

.news-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-body h3 {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 6px;
  font-weight: 700;
}

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

.news-body time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== 授权/牌照模块 ===== */
.license-section {
  text-align: center;
}

.license-badge {
  display: inline-block;
  margin: 0 auto 20px;
}

.license-badge img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.license-info {
  max-width: 700px;
  margin: 0 auto;
}

.license-info p {
  margin-bottom: 12px;
  color: var(--text-main);
}

.license-number {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(247,201,72,0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 10px;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: '−';
}

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

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

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

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

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

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

.support-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

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

/* ===== 关于我们模块 ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 28px 0 12px;
  font-weight: 700;
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 0.95rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 16px;
  font-weight: 700;
}

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

.footer-col a:hover {
  color: var(--primary);
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-hover);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--text-bright);
}

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

.footer-bottom a {
  color: var(--text-muted);
  margin: 0 8px;
}

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

/* ===== 内页样式 ===== */
.page-header {
  background: linear-gradient(135deg, var(--bg-section), var(--bg-deep));
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--text-bright);
  font-weight: 800;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 32px 0 14px;
  font-weight: 700;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin: 24px 0 10px;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.85;
}

.page-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.page-content ul,
.page-content ol {
  margin: 14px 0 14px 24px;
  color: var(--text-main);
}

.page-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ===== APP下载页面 ===== */
.app-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 16px;
  flex-wrap: wrap;
}

.app-info {
  max-width: 500px;
}

.app-info h1 {
  font-size: 2rem;
  color: var(--text-bright);
  font-weight: 800;
  margin-bottom: 16px;
}

.app-info p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.app-features {
  list-style: none;
  margin: 20px 0;
}

.app-features li {
  padding: 8px 0;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.app-download-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.app-phone {
  max-width: 260px;
}

.app-phone img {
  width: 100%;
}

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

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

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

  .main-nav a {
    padding: 12px 16px;
  }

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

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

  .section-title {
    font-size: 1.4rem;
  }

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

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

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

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

  .news-body {
    padding: 14px;
  }

  .app-hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .app-features li {
    justify-content: center;
  }

  .app-download-btns {
    justify-content: center;
  }

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

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

  .section {
    padding: 40px 0;
  }

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

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

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

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

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
