/* ============================================
   蜜桃视频 - 原创主题样式表
   配色方案：玫瑰粉 + 深紫 + 暖金
   ============================================ */

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

:root {
  --rose: #ff5277;
  --rose-light: #ff8ca0;
  --rose-dark: #c4234a;
  --purple-deep: #1a0a2e;
  --purple-mid: #3d1a6e;
  --purple-light: #6b3fa0;
  --gold: #f0c040;
  --gold-light: #ffe082;
  --text-primary: #f0e8f5;
  --text-secondary: #b8a0d0;
  --bg-card: rgba(40, 20, 70, 0.85);
  --bg-overlay: rgba(10, 5, 25, 0.9);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(255,82,119,0.3);
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--purple-deep);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--rose-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold);
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--gold); }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; color: var(--rose-light); }
p { margin-bottom: 1rem; }

/* ===== LAYOUT CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TOP HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #2a1050 100%);
  border-bottom: 2px solid var(--rose);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: 1px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--rose);
  color: var(--rose);
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-list li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: var(--rose);
  color: #fff;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}
.hero-content h1 {
  font-size: 2.4rem;
  text-shadow: 0 2px 20px rgba(255,82,119,0.5);
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
}
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,82,119,0.5);
  color: #fff;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 50px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(60,25,110,0.3) 0%, rgba(20,8,45,0.5) 100%);
}
.section-title {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.video-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.video-card:hover .thumb img {
  transform: scale(1.05);
}
.video-card .thumb .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.video-card .thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}
.video-card:hover .thumb .play-overlay {
  opacity: 1;
}
.play-icon {
  width: 50px;
  height: 50px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-card .info {
  padding: 14px;
}
.video-card .info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.video-card .info .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.rating {
  color: var(--gold);
  letter-spacing: 1px;
}

/* ===== COOPERATION SECTION ===== */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.coop-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.coop-card img {
  width: 100%;
  aspect-ratio: 7/5;
  object-fit: cover;
}
.coop-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.coop-card .overlay h3 {
  color: var(--gold);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.about-text {
  line-height: 2;
}
.about-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.team-member:last-child {
  border-bottom: none;
}
.team-member img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--rose);
}

/* ===== PAYMENT SECTION ===== */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.payment-grid img {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition);
}
.faq-question:hover {
  background: rgba(255,82,119,0.1);
}
.faq-question .arrow {
  transition: transform var(--transition);
  color: var(--rose);
  font-size: 1.2rem;
}
.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--rose);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.review-header .name {
  font-weight: 600;
}
.review-header .city {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.review-stars {
  color: var(--gold);
  margin-bottom: 8px;
}
.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ===== BADGES SECTION ===== */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.badges-row img {
  width: 100px;
  height: auto;
}

/* ===== SUPPORT SECTION ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.support-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.support-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.support-card h3 {
  margin-bottom: 8px;
}

/* ===== VIDEO PLAYER ===== */
.video-player-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  color: var(--text-secondary);
}
.video-placeholder .play-big {
  width: 80px;
  height: 80px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition);
}
.video-placeholder .play-big:hover {
  transform: scale(1.1);
}
.video-placeholder .play-big::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb span {
  color: var(--rose-light);
  margin: 0 6px;
}

/* ===== APP DOWNLOAD PAGE ===== */
.download-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-deep) 100%);
}
.download-hero .phone-img {
  max-width: 220px;
  margin: 0 auto 30px;
}
.download-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-download:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  color: #fff;
}
.btn-download.android {
  background: var(--purple-light);
}
.btn-download.android:hover {
  background: var(--purple-mid);
}
.qr-section {
  text-align: center;
  padding: 40px 20px;
}
.qr-section img {
  width: 180px;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  border-radius: var(--radius-md);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, rgba(20,8,40,0.95) 0%, #0a0418 100%);
  border-top: 2px solid var(--rose-dark);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--rose);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--transition);
}
.footer-social img:hover {
  transform: scale(1.15);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.footer-badges img {
  height: 40px;
  width: auto;
}
.footer-payments {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.footer-payments img {
  height: 30px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
.age-badge {
  display: inline-block;
  background: var(--rose-dark);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  margin: 8px 0;
}

/* ===== CATEGORY PAGE ===== */
.cat-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}
.cat-hero .cat-title {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cat-hero .cat-title h1 {
  font-size: 2.2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

/* ===== CONTENT ARTICLE ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 16px;
}
.article-content p {
  text-indent: 2em;
  margin-bottom: 1.2rem;
}
.article-content h2 {
  margin-top: 2rem;
}
.article-content img {
  border-radius: var(--radius-md);
  margin: 20px auto;
  box-shadow: var(--shadow-card);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--purple-deep);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-list.open { display: flex; }
  .nav-list li a {
    padding: 12px 20px;
    border-radius: 0;
  }
  .header-inner { flex-wrap: wrap; }
  
  .hero-content h1 { font-size: 1.8rem; }
  .hero-section { min-height: 280px; }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .coop-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .section { padding: 30px 0; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  
  .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .coop-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .download-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-rose { color: var(--rose); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
