/* 
 * 视频网站主样式表
 * 移动端优先响应式设计
 * 2026年SEO优化版本
 */

/* CSS变量定义 - 独特配色方案 */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f4a261;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --success-color: #238636;
  --warning-color: #d29922;
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --gradient-dark: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 32px rgba(230,57,70,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 图片优化 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap img {
  height: 40px;
  width: auto;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* 导航菜单 */
.main-nav {
  width: 100%;
  display: none;
}

.main-nav.active {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.nav-list li a:hover {
  background: var(--bg-hover);
  color: var(--accent-color);
}

/* CTA按钮 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff !important;
}

/* Hero区域 */
.hero-section {
  position: relative;
  padding: 60px 0;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.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-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(230,57,70,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.video-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star {
  color: var(--warning-color);
}

/* 内容区块 */
.content-section {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-secondary);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--text-secondary);
}

.breadcrumb-list a:hover {
  color: var(--accent-color);
}

/* 关于我们 */
.about-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  margin: 32px 0;
}

.about-content {
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 16px;
  text-align: justify;
}

/* 作者信息 - E-E-A-T */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-hover);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-title {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 用户评论 */
.reviews-section {
  margin: 48px 0;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 600;
  font-size: 1rem;
}

.reviewer-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-content {
  margin-bottom: 12px;
  line-height: 1.7;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* FAQ手风琴 */
.faq-section {
  margin: 48px 0;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 支付方式 */
.payment-section {
  background: var(--bg-card);
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.payment-item {
  background: var(--bg-hover);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.payment-item img {
  height: 32px;
  margin: 0 auto 8px;
}

.payment-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 标签云 */
.tags-section {
  margin: 48px 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag-item {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* APP下载区域 */
.app-section {
  background: var(--gradient-dark);
  padding: 48px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 32px 0;
}

.app-preview {
  max-width: 280px;
  margin: 24px auto;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.app-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-color);
}

.app-btn img {
  height: 24px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
}

.social-icon img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 16px auto;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 牌照区域 */
.license-section {
  background: var(--bg-hover);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.license-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.license-badge {
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.license-badge img {
  height: 24px;
}

/* 客户支持 */
.support-section {
  margin: 48px 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.support-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
}

.support-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.support-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.support-card h4 {
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 内页样式 */
.page-header {
  padding: 40px 0;
  background: var(--gradient-dark);
  text-align: center;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--text-secondary);
}

.article-content {
  background: var(--bg-card);
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--accent-color);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-image {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-image img {
  width: 100%;
}

.article-image figcaption {
  padding: 12px;
  background: var(--bg-hover);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 视频播放器样式 */
.video-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
}

.video-player-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(230,57,70,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 24px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .main-nav {
    display: block;
    width: auto;
  }
  
  .nav-list {
    flex-direction: row;
    gap: 8px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .payment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-buttons {
    flex-direction: row;
    max-width: 500px;
  }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-section {
    padding: 48px 40px;
  }
  
  .payment-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .support-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .article-content {
    padding: 48px 40px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* 懒加载占位 */
.lazy-placeholder {
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  .cta-btn {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}
