/* ============================================
   小蓝视频 - 原创品牌网站样式表
   设计主题：现代影视传媒 + 社区互动
   色系：粉红 (#FF6B9D) + 紫色 (#9D4EDD) + 金色 (#FFD700)
   ============================================ */

:root {
  --primary-pink: #FF6B9D;
  --primary-purple: #9D4EDD;
  --primary-gold: #FFD700;
  --primary-blue: #3A86FF;
  --primary-teal: #00D9FF;
  --dark-bg: #0a0e27;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* ============ 通用样式 ============ */

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

/* ============ 容器和布局 ============ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-gold));
  border-radius: 2px;
}

.section-subtitle {
  color: #888;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ============ 头部导航 ============ */

header {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(157, 78, 221, 0.1));
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 107, 157, 0.2);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

.logo-text {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  font-weight: 500;
  position: relative;
  color: var(--text-dark);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-gold));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 8px 15px;
  gap: 10px;
  transition: var(--transition);
}

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

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

.search-box input::placeholder {
  color: #ccc;
}

.search-icon {
  cursor: pointer;
  color: var(--primary-pink);
  font-size: 1.1rem;
}

/* ============ 移动菜单 ============ */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ============ 英雄区域 ============ */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: white;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: white;
  color: var(--primary-pink);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
}

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

.hero-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

/* ============ 视频卡片网格 ============ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

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

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

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

.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;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 10;
}

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============ 专家展示 ============ */

.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.expert-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-pink);
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.expert-avatar {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.expert-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.expert-title {
  color: var(--primary-pink);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.expert-bio {
  font-size: 0.9rem;
  color: #666;
  padding: 0 15px;
  margin-bottom: 15px;
}

.expert-actions {
  display: flex;
  gap: 10px;
  padding: 15px;
  justify-content: center;
}

.expert-actions button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.expert-actions .btn-contact {
  background: var(--primary-pink);
  color: white;
}

.expert-actions .btn-contact:hover {
  background: var(--primary-purple);
}

/* ============ FAQ 区域 ============ */

.faq-container {
  max-width: 800px;
  margin: 40px auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(157, 78, 221, 0.05));
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(157, 78, 221, 0.1));
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-pink);
  transition: var(--transition);
}

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

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #666;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* ============ 用户评论 ============ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-gold);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stars {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.author-info h4 {
  margin: 0;
  font-size: 0.95rem;
}

.author-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

/* ============ 页脚 ============ */

footer {
  background: linear-gradient(135deg, var(--dark-bg), #1a1a3e);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
}

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

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.qr-codes {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.qr-code {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code img {
  width: 100%;
  height: 100%;
}

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

.footer-bottom p {
  margin: 5px 0;
}

/* ============ 响应式设计 ============ */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .header-content {
    justify-content: space-between;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-md);
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

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

  .expert-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

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

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

  .qr-codes {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

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

  .faq-question {
    padding: 15px;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  nav ul {
    width: 100%;
  }
}

/* ============ 动画效果 ============ */

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============ 工具类 ============ */

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
