/* ============================================
   蜜桃每日更新视频 - 全站样式表
   品牌：蜜桃每日更新视频 | onovc.cn
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #FF6B6B;
  --primary-dark: #E55A5A;
  --secondary: #FF8E53;
  --accent: #6C5CE7;
  --accent-light: #A29BFE;
  --dark: #1A1A2E;
  --dark-light: #16213E;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-gray: #F0F2F5;
  --border: #E8E8E8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
.site-header {
  background: var(--bg);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  color: var(--primary);
}

/* === Navigation === */
.main-nav {
  background: var(--dark);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 14px 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* === Search Bar === */
.search-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 16px 0;
}

.search-bar .container {
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.search-form input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
  outline: none;
  color: var(--text);
}

.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* === Banner / Hero === */
.hero-banner {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.banner-slider {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(26,26,46,0.3) 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.banner-content {
  color: #fff;
  max-width: 600px;
}

.banner-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.banner-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots span.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* === Section Common === */
.section {
  padding: 60px 0;
}

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

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-dark .section-title h2 {
  color: #fff;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

.section-title .line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === Video Cards === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

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

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

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,107,107,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

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

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  position: absolute;
  z-index: 2;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.video-tag {
  background: var(--bg-gray);
  color: var(--text-light);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.feature-icon.pink { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.feature-icon.purple { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.feature-icon.blue { background: linear-gradient(135deg, #0984E3, #74B9FF); }
.feature-icon.green { background: linear-gradient(135deg, #00B894, #55EFC4); }
.feature-icon.orange { background: linear-gradient(135deg, #FDCB6E, #F39C12); }
.feature-icon.teal { background: linear-gradient(135deg, #00CEC9, #81ECEC); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === Expert Section === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.expert-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.expert-info {
  padding: 20px 16px;
}

.expert-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.expert-info .title {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.expert-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

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

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 300px;
}

/* === Reviews === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

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

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

.review-stars {
  color: #FDCB6E;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

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

/* === Partner Logos === */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.partner-logo {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* === How-To Section === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  text-align: center;
  padding: 24px;
  position: relative;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.howto-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.howto-step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-card img {
  max-width: 160px;
  margin: 12px auto 0;
  border-radius: var(--radius);
}

/* === Footer === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  font-size: 0.9rem;
}

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

.footer-qr {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.8;
}

/* === Content Area === */
.content-area {
  padding: 40px 0;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--dark);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text);
}

/* === Share Buttons === */
.share-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 0;
}

.share-btn {
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn.wechat { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00A1D6; }

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}

/* === Lazy Load === */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* === Mobile Menu === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .feature-grid,
  .expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

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

  .hero-banner {
    height: 260px;
  }

  .banner-content h2 {
    font-size: 1.4rem;
  }

  .banner-overlay {
    padding: 0 20px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

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

  .howto-steps {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 40px 0;
  }

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

  .header-top {
    padding: 10px 0;
  }

  .search-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .banner-content h2 {
    font-size: 1.2rem;
  }

  .hero-banner {
    height: 200px;
  }
}

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

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

/* === Video Stats Bar === */
.stats-bar {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  padding: 30px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* === Category Tabs === */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--bg-gray);
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary);
  color: #fff;
}

/* === AI Feature Cards === */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  transition: var(--transition);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.3);
}

.ai-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

/* === Community Section === */
.community-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.community-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.community-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.community-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .community-features {
    grid-template-columns: 1fr;
  }
}
