/* 哔咔漫画 - 独立视觉：琥珀/金主色 + 深紫灰背景 */
:root {
  --bg-dark: #0d0b12;
  --bg-card: #16131d;
  --bg-card-alt: #1c1824;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --text-white: #fafafa;
  --text-muted: #a8a3b3;
  --card-border: rgba(245, 158, 11, 0.25);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
}

.site-header {
  background: rgba(13, 11, 18, 0.98);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-dark .navbar-brand {
  color: var(--text-white) !important;
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.navbar-dark .navbar-brand .site-logo {
  height: 34px;
  width: auto;
  margin-right: 0.6rem;
}
@media (max-width: 767px) {
  .navbar-dark .navbar-brand .site-logo { height: 28px; }
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}
.navbar-toggler { border-color: var(--card-border); }
.navbar-toggler-icon { filter: invert(1); }

.site-main { min-height: 60vh; }
.bg-dark { background: var(--bg-card-alt) !important; }

/* Hero - 顶部琥珀渐变遮罩，区别于红橙 */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/bg.jpg') center/cover no-repeat;
  filter: blur(5px) brightness(0.35) saturate(0.9);
  z-index: 0;
}
.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(160deg, rgba(245,158,11,0.12) 0%, transparent 40%, rgba(13,11,18,0.95) 100%);
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}
.hero-section .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons .btn { margin: 0 0.4rem 0.5rem; }
@media (max-width: 767px) {
  .hero-buttons .btn { display: block; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
}

/* CTA 按钮 - 琥珀金、圆角矩形（非全圆） */
.btn-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0d0b12 !important;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  border: none;
  border-radius: 14px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}
.btn-cta:hover {
  color: #0d0b12 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
  filter: brightness(1.08);
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--text-white);
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 卡片 - 左侧琥珀竖条 + 大圆角 */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--card-shadow);
  color: var(--text-white);
  height: 100%;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}
.card-dark:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border-left-color: var(--accent-light);
}
.card-dark .card-body { color: var(--text-muted); }
.card-dark .card-title { color: var(--text-white); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.feature-icon-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.card-feature-lg .card-body { padding: 1.5rem; }
.card-feature-sm .card-body { padding: 1rem; }
.card-feature-sm .card-title { font-size: 1rem; }

/* 首页 - 介绍区右侧列表 */
.intro-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.intro-feature-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(245,158,11,0.12);
  display: flex;
  align-items: center;
}
.intro-feature-list li:last-child { border-bottom: none; }
.intro-feature-list li i {
  color: var(--accent);
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
}

/* 应用信息右侧摘要卡 */
.info-summary-card {
  height: 100%;
  min-height: 200px;
}

/* 特色展示 - 右栏列表 */
.showcase-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.showcase-feature-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.showcase-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* 统计数字 - 通栏条纹 */
.stats-strip {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.stats-strip-inner .stat-item {
  padding: 1.25rem 0.5rem;
  border-right: 1px solid rgba(245,158,11,0.15);
}
.stats-strip-inner .col-md-3:last-child .stat-item { border-right: none; }
@media (max-width: 767px) {
  .stats-strip-inner .col-6:nth-child(odd) .stat-item { border-right: 1px solid rgba(245,158,11,0.15); }
  .stats-strip-inner .col-6:nth-child(even) .stat-item { border-right: none; }
}

/* 关于页 - 横向卡片 */
.card-horizontal { border-left-width: 4px; }
.about-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

/* 博客列表 - 左图右文 + 侧栏 */
.blog-list-card .card-body { padding: 1.25rem; }
.blog-list-thumb { flex-shrink: 0; }
.blog-thumb-placeholder {
  width: 120px;
  height: 90px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.75rem;
}
@media (max-width: 767px) {
  .blog-thumb-placeholder { width: 100%; height: 100px; }
}
.sidebar-card .card-body { padding: 1.25rem; }

/* 应用信息表格 */
.app-info-table {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.app-info-table th, .app-info-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(245,158,11,0.12);
  color: var(--text-muted);
}
.app-info-table th {
  background: rgba(245,158,11,0.1);
  color: var(--text-white);
  width: 38%;
  font-weight: 600;
}
.app-info-table tr:last-child th, .app-info-table tr:last-child td { border-bottom: none; }

/* 统计数字 - 琥珀色 */
.stat-item {
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.stat-item .stat-num {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.showcase-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

/* 手风琴 FAQ */
.accordion-dark .card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px !important;
  margin-bottom: 0.6rem;
  border-left: 4px solid transparent;
}
.accordion-dark .card:hover { border-left-color: var(--accent); }
.accordion-dark .card-header {
  background: transparent;
  border-bottom: none;
  padding: 1rem 1.1rem;
}
.accordion-dark .card-header button {
  color: var(--text-white);
  text-decoration: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
}
.accordion-dark .card-body {
  color: var(--text-muted);
  border-top: 1px solid rgba(245,158,11,0.15);
}

/* 页脚 */
.site-footer {
  background: #08060c;
  border-top: 1px solid var(--card-border);
  padding: 2.25rem 0;
  margin-top: 3rem;
  text-align: center;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--accent-light); }
.footer-links { margin-bottom: 1rem; }
.footer-links a { margin: 0 0.65rem; }
.footer-social .social-link {
  margin: 0 0.5rem;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.footer-social .social-link:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* 固定底部 CTA（移动端） */
.fixed-bottom-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: rgba(13,11,18,0.98);
  border-top: 1px solid var(--card-border);
  z-index: 999;
}
@media (max-width: 767px) {
  .fixed-bottom-cta { display: block; }
  .fixed-bottom-cta .btn-cta { width: 100%; text-align: center; }
  .site-main { padding-bottom: 72px; }
}

/* 内容页 */
.page-hero {
  background: linear-gradient(180deg, var(--bg-card-alt) 0%, var(--bg-dark) 100%);
  padding: 2.75rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}
.page-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  color: var(--text-white);
  font-weight: 700;
}
.content-body {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
}
.content-body h2 { color: var(--text-white); font-size: 1.28rem; margin-top: 1.5rem; font-weight: 700; }
.content-body h3 { font-size: 1.12rem; margin-top: 1.25rem; font-weight: 600; }
.content-body a { color: var(--accent); }
.text-accent { color: var(--accent); }

/* 联系表单 */
.form-dark .form-control {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  border-radius: 10px;
}
.form-dark .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.2);
}
.form-dark .form-control::placeholder { color: var(--text-muted); opacity: 0.8; }

/* 条款可折叠 */
.terms-section .card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}
.terms-section .card-header button { color: var(--text-white); text-align: left; width: 100%; font-weight: 600; }
.terms-section .card-body { color: var(--text-muted); }

img[data-src] { min-height: 100px; background: var(--bg-card); }
