/**
 * 成人漫画App - 主样式
 * 深色主题 + 高亮色 CTA，响应式，移动端优先
 */
:root {
  --bg-dark: #0d0d0f;
  --bg-card: #16161a;
  --bg-alt: #1a1a1f;
  --text-primary: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --border: #27272a;
  --font-title: 'Chakra Petch', 'Noto Sans SC', sans-serif;
  --font-body: 'Montserrat', 'Noto Sans SC', sans-serif;
}

* {
  box-sizing: border-box;
}

body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== 导航 ========== */
.navbar {
  background: rgba(13, 13, 15, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
}
.navbar-brand .logo-img {
  height: 40px;
  width: auto;
}
.logo-fallback {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}
.btn-download-nav {
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.5rem 1.25rem !important;
}
.btn-download-nav:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.navbar-toggler {
  color: var(--text-primary);
}
.main-content {
  padding-top: 76px;
}

/* ========== Hero ========== */
/* Hero 背景图：assets/images/banner.webp，建议尺寸 1600×900 (16:9) */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,15,0.85) 0%, rgba(13,13,15,0.6) 100%);
}
.hero-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.btn-cta {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

/* ========== 区块通用 ========== */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-desc {
  max-width: 640px;
  color: var(--text-muted);
}
.text-accent { color: var(--accent); }

/* ========== App 介绍 / 特色卡片 ========== */
.section-app-intro {
  background: var(--bg-dark);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(225, 29, 72, 0.2);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* 应用信息表 */
.app-info-table .table {
  max-width: 400px;
  margin: 0 auto;
}
.app-info-table .table-dark {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.app-info-table th {
  border-color: var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* ========== 漫画展示 ========== */
.bg-dark-alt {
  background: var(--bg-alt);
}
.comics-img {
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}
.list-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-features li {
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== 统计数字 ========== */
.section-stats {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-dark) 100%);
}
.stat-item {
  padding: 1rem;
}
.stat-number {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-suffix {
  font-size: 1rem;
  color: var(--text-muted);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

/* ========== FAQ ========== */
.accordion-faq .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.accordion-faq .accordion-button {
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
  font-weight: 500;
}
.accordion-faq .accordion-button:not(.collapsed) {
  background: var(--bg-alt);
  color: var(--accent);
  box-shadow: none;
}
.accordion-faq .accordion-button:focus {
  box-shadow: none;
  border: none;
}
.accordion-faq .accordion-body {
  background: var(--bg-card);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ========== 下载区块 ========== */
.section-download {
  background: var(--bg-alt);
}
.btn-download-main {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ========== 移动端固定底部下载 ========== */
.mobile-fixed-download {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(13, 13, 15, 0.98);
  border-top: 1px solid var(--border);
  z-index: 1030;
}
.mobile-fixed-download .btn {
  border-radius: 8px;
}

/* ========== 内页通用 ========== */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-lead {
  color: var(--text-muted);
  margin: 0;
}

/* 关于我们 */
.about-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.about-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(225, 29, 72, 0.2);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.about-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.about-feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.about-stat-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.about-stat p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

/* 博客 */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
}
.blog-card .card-body {
  color: var(--text-primary);
}
.blog-card .card-title {
  color: var(--text-primary);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* 联系 */
.form-control-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.form-control-dark:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.25);
}
.form-control-dark::placeholder {
  color: var(--text-muted);
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-info-list i {
  color: var(--accent);
  width: 1.25rem;
}
.btn-submit-full {
  width: 100%;
}
@media (min-width: 992px) {
  .btn-submit-full { width: auto; }
}

/* 隐私/条款 */
.accordion-legal .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.accordion-legal .accordion-button {
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
}
.accordion-legal .accordion-button:not(.collapsed) {
  background: var(--bg-alt);
  color: var(--accent);
}
.accordion-legal .accordion-body {
  background: var(--bg-card);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer-top {
  padding: 2.5rem 0 1.5rem;
}
.footer-brand .footer-logo {
  height: 36px;
  margin-bottom: 0.5rem;
}
.footer-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}
.footer-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ========== 响应式：移动端 ========== */
@media (max-width: 767.98px) {
  .main-content { padding-top: 66px; }
  .hero-section { min-height: 320px; }
  .hero-buttons .btn {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero-buttons .me-2 { margin-right: 0 !important; }
  .navbar-collapse {
    background: var(--bg-card);
    margin: 0.5rem -1rem -0.5rem;
    padding: 1rem;
    border-radius: 8px;
  }
  .nav-item .btn-download-nav {
    width: 100%;
    text-align: center;
  }
  .stat-item { padding: 0.75rem 0.25rem; }
  .stat-number { font-size: 1.35rem; }
  .footer-top .row > div {
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-links { text-align: center; }
}

/* 平板 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .feature-card,
  .about-feature-card {
    padding: 1.25rem;
  }
}
