/* ============================================
   禁漫天堂 - 全站样式表
   独特配色：深紫+玫红+金色
   字体：系统中文字体栈
   ============================================ */

:root {
  --primary: #6b1d5e;
  --primary-light: #9c2d85;
  --secondary: #e63956;
  --accent: #ffc233;
  --bg-dark: #0d0a1a;
  --bg-card: #1a1230;
  --bg-section: #120e24;
  --text-main: #eee8f5;
  --text-muted: #a89cc8;
  --text-highlight: #ffd966;
  --border-color: #2d2450;
  --success: #2ecc71;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(107,29,94,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--secondary);
}

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0e2e 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.main-nav a {
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  max-width: 1200px;
  margin: 0.8rem auto;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 0.3rem;
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-section img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,26,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}

.hero-overlay h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-overlay p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
}

/* ---- SECTIONS ---- */
.content-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---- MANGA GRID ---- */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.manga-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.manga-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.manga-card img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
}

.manga-card-body {
  padding: 0.7rem;
}

.manga-card-body h3 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.manga-rating .stars {
  letter-spacing: 1px;
}

.manga-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

/* ---- VIDEO SECTION ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: var(--transition);
}

.video-play-overlay:hover {
  background: rgba(0,0,0,0.15);
}

.play-btn-circle {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230,57,86,0.5);
  transition: var(--transition);
}

.play-btn-circle:hover {
  transform: scale(1.1);
}

.play-btn-circle::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: 3px;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
}

/* ---- VIP SECTION ---- */
.vip-section {
  background: linear-gradient(135deg, #2d0a1e 0%, #1a0e2e 50%, #0d1a2e 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.vip-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,194,51,0.08) 0%, transparent 60%);
  animation: vip-glow 6s ease-in-out infinite;
}

@keyframes vip-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.vip-section h2 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  position: relative;
}

.vip-section p {
  color: var(--text-main);
  margin-bottom: 1rem;
  position: relative;
}

.vip-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  position: relative;
}

.vip-feature-item {
  background: rgba(255,194,51,0.08);
  border: 1px solid rgba(255,194,51,0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.vip-feature-item h4 {
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.btn-vip {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #e6a800);
  color: #1a0e2e;
  padding: 0.8rem 2.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,194,51,0.4);
  color: #1a0e2e;
}

/* ---- REGISTER SECTION ---- */
.register-section {
  background: linear-gradient(135deg, #0d1a2e, #1a0e2e);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-color);
}

.register-form {
  max-width: 500px;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.register-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.register-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255,255,255,0.1);
}

.btn-register {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-register:hover {
  background: #c42e48;
  transform: translateY(-1px);
}

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary-light);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-meta h4 {
  color: #fff;
  font-size: 0.95rem;
}

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

.review-stars {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.7;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ---- COMMENTS ---- */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--primary);
}

.comment-item .comment-author {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.comment-item .comment-body {
  font-size: 0.92rem;
  color: var(--text-main);
}

.comment-item .comment-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(107,29,94,0.15);
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.2rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ---- LICENSE / AUTHORITY ---- */
.authority-section {
  background: linear-gradient(135deg, #0d1a2e, #1a1030);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border-color);
}

.authority-badge {
  flex: 0 0 auto;
}

.authority-badge img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.authority-text {
  flex: 1;
  min-width: 250px;
}

.authority-text h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ---- PAYMENT ---- */
.payment-section {
  text-align: center;
}

.payment-section img {
  max-width: 500px;
  margin: 1rem auto;
}

/* ---- ABOUT ---- */
.about-content {
  columns: 1;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    columns: 2;
  }
}

.about-content p {
  margin-bottom: 1rem;
  text-indent: 2em;
}

/* ---- SUPPORT ---- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.support-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.support-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.support-card img {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
}

.support-card h4 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.support-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- FOOTER ---- */
.site-footer {
  background: linear-gradient(to top, #060412, var(--bg-dark));
  border-top: 2px solid var(--border-color);
  margin-top: 3rem;
  padding: 2.5rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.2rem 0;
  font-size: 0.88rem;
}

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

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-payment {
  margin: 1rem auto;
  max-width: 400px;
}

/* ---- INNER PAGE ---- */
.page-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-content h1 {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: #fff;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
}

.page-content h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 1.5rem 0 0.8rem;
}

.page-content h3 {
  font-size: 1.1rem;
  color: var(--primary-light);
  margin: 1.2rem 0 0.6rem;
}

.page-content p {
  margin-bottom: 1rem;
  text-indent: 2em;
  line-height: 1.9;
}

.page-content figure {
  margin: 1.5rem 0;
  text-align: center;
}

.page-content figure img {
  border-radius: var(--radius-md);
  margin: 0 auto;
  max-width: 100%;
}

.page-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.page-gallery img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
}

/* ---- APP DOWNLOAD ---- */
.app-hero {
  text-align: center;
  padding: 2rem 1rem;
}

.app-hero img {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-download:hover {
  transform: translateY(-2px);
}

.btn-android {
  background: var(--success);
  color: #fff;
}

.btn-android:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,204,113,0.4);
}

.btn-ios {
  background: #007aff;
  color: #fff;
}

.btn-ios:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,122,255,0.4);
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.app-feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.app-feature-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- VIDEO PLAYER ---- */
.video-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0e2e, #0d1a2e);
  cursor: pointer;
}

.video-player-placeholder .play-btn-circle {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
}

/* ---- CTA BUTTONS ---- */
.btn-cta {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cta:hover {
  background: #c42e48;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230,57,86,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-dark);
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
  }

  .main-nav.show {
    display: flex;
  }

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

  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
  }

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

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

  .authority-section {
    flex-direction: column;
    text-align: center;
  }

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

  .vip-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .header-inner {
    justify-content: 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; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
