/* 海角视频 全站样式表 - 原创设计 */

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

:root {
  --primary-color: #ff6b9d;
  --secondary-color: #12213f;
  --accent-color: #ff9f43;
  --light-bg: #fafafa;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #ecf0f1;
  --success-color: #27ae60;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

/* 导航栏 */
header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a4a 100%);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-section img {
  height: 50px;
  width: auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  gap: 8px;
}

.search-container input {
  background: transparent;
  border: none;
  color: white;
  width: 150px;
  outline: none;
  font-size: 14px;
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-container button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 首页 Hero 区域 */
.hero {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(18, 33, 63, 0.1) 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 .brand {
  color: var(--primary-color);
}

.hero p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff5a8a 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 157, 0.3);
}

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

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}

/* 内容区域 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
  text-align: center;
}

.section-title .brand {
  color: var(--primary-color);
}

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

/* 视频卡片 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.video-thumbnail img {
  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: opacity 0.3s ease;
  cursor: pointer;
}

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

.play-button::after {
  content: '▶';
  color: white;
  font-size: 24px;
  margin-left: 3px;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.video-stats {
  display: flex;
  gap: 15px;
}

/* 专家展示 */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.expert-card {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.expert-title {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.expert-bio {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

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

.expert-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expert-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
}

.expert-actions .btn-secondary {
  background: var(--light-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

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

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

.faq-question {
  padding: 18px;
  background: var(--light-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.faq-item:hover .faq-question {
  background: rgba(255, 107, 157, 0.05);
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  line-height: 1.8;
}

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

/* 用户评论 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background: white;
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.review-user {
  flex: 1;
}

.review-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
}

.review-date {
  font-size: 12px;
  color: var(--text-light);
}

.review-rating {
  color: #ffc107;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a4a 100%);
  color: white;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

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

.footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: white;
  padding: 8px;
  border-radius: 8px;
}

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

.qr-label {
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin-bottom: 8px;
}

.update-time {
  color: var(--primary-color);
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .search-container {
    display: none;
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

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

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 22px;
  }
}

/* 打印样式 */
@media print {
  header, footer, .mobile-menu-btn {
    display: none;
  }

  .video-card, .expert-card, .review-card {
    page-break-inside: avoid;
  }
}

/* 性能优化 - 图片懒加载占位符 */
.lazy-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 无障碍支持 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 打印友好的颜色 */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    text-decoration: underline;
  }
}
