/* ============================================
   亲子漫画 全局样式表
   设计系统：现代极简 + 温暖新锐
   主色调：深蓝 #1a1f3a + 粉红 #ff6b9d + 金色 #ffd700
   ============================================ */

/* 重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
  background-color: #1a1f3a;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 排版系统 */
h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #ffffff;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d0d0d0;
  margin-bottom: 1rem;
}

a {
  color: #ff6b9d;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #ffd700;
  opacity: 0.9;
}

/* 容器与布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* 导航栏 */
header {
  background: rgba(26, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 107, 157, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
}

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

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: #d0d0d0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b9d;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: #ff6b9d;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

.search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  outline: none;
  width: 150px;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box button {
  background: none;
  border: none;
  color: #ff6b9d;
  cursor: pointer;
  font-size: 1rem;
}

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, #1a1f3a 0%, #2d1b4e 100%);
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663728645129/aMeM3953fpdZNkNCRQ9fgd/hero-banner-1-DFHu5PHxYdsnjT7TCpsmaM.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 31, 58, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff6b9d, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #d0d0d0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b9d, #ff8bb5);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

/* 视频卡片 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
  border-color: rgba(255, 107, 157, 0.5);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 157, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

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

.play-button::after {
  content: '▶';
  color: #ffffff;
  font-size: 1.5rem;
  margin-left: 4px;
}

.video-info {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.video-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #b0b0b0;
  margin-bottom: 1rem;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.video-description {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.4;
}

/* 部分标题 */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #ffd700);
  border-radius: 2px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #ffffff;
  transition: background 0.3s ease;
}

.faq-item:hover .faq-question {
  background: rgba(255, 107, 157, 0.1);
}

.faq-toggle {
  color: #ff6b9d;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 107, 157, 0.05);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 107, 157, 0.2);
}

/* 评论区 */
.comments-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #ffd700);
  flex-shrink: 0;
}

.comment-content h4 {
  margin-bottom: 0.3rem;
}

.comment-rating {
  color: #ffd700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.comment-text {
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.comment-date {
  color: #808080;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* 页脚 */
footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 107, 157, 0.2);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: #ff6b9d;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d0d0d0;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 107, 157, 0.1);
  color: #808080;
  font-size: 0.9rem;
}

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

.qr-label {
  font-size: 0.8rem;
  color: #808080;
  margin-top: 0.5rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

/* 辅助类 */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.py-3 {
  padding: 3rem 0;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
