/* ============================================================
   板砖漫画官网（bzmanhua.net.cn）- 样式表
   主题：暖米白底 + 朱红主色 + 金黄点缀 + 深砖红章节
   ============================================================ */

/* ---- 设计变量 ---- */
:root {
  --bg: #faf6f0;            /* 页面底色：暖米白 */
  --bg-soft: #fdf1ec;       /* 区块底色：浅绯红 */
  --card: #ffffff;          /* 卡片面 */
  --ink: #2b2320;           /* 主文字：暖墨黑 */
  --ink-soft: #6f6158;      /* 次级文字 */
  --muted: #a08d80;         /* 弱化文字 */
  --red: #e63b3b;           /* 朱红主色 */
  --red-deep: #c02a2a;
  --yellow: #ffc93c;        /* 金黄点缀（呼应“免费”标签） */
  --deep: #33100f;          /* 深砖红章节 */
  --deep-soft: #471616;
  --line: rgba(43, 35, 32, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(135deg, #ff5a3c 0%, #e63b3b 100%);
  --radius: 16px;
  --shadow: 0 16px 36px rgba(43, 35, 32, 0.12);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* ---- 基础重置 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---- 顶部导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 10px 30px rgba(43, 35, 32, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; padding: 2px 0; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(230, 59, 59, 0.3);
}

.brand-name {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-download {
  background: var(--grad);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(230, 59, 59, 0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(230, 59, 59, 0.42);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1.5px solid var(--ink-soft);
  color: var(--ink);
  background: transparent;
  padding: 12px 26px;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px rgba(230, 59, 59, 0.35);
}

.btn-lg { padding: 13px 28px; font-size: 1.02rem; }
.btn-xl { padding: 17px 44px; font-size: 1.15rem; }

.btn-icon svg { width: 20px; height: 20px; }
.btn-xl .btn-icon svg { width: 22px; height: 22px; }

/* ---- 汉堡菜单（移动端） ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 英雄区 ---- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 440px at 12% 20%, rgba(230, 59, 59, 0.14), transparent 65%),
    radial-gradient(560px 420px at 92% 88%, rgba(255, 201, 60, 0.24), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #fff;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(230, 59, 59, 0.3);
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 18px;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- 英雄区统计 ---- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat-item { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }

.stat-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.stat-item dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-item dd {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--red);
}

/* ---- 英雄区视觉 ---- */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.poster-frame {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(230, 59, 59, 0.28);
  background:
    radial-gradient(420px 420px at 50% 20%, rgba(255, 201, 60, 0.3), transparent 65%),
    radial-gradient(360px 360px at 85% 85%, rgba(230, 59, 59, 0.2), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #fdf1ec 100%);
  box-shadow: 0 24px 56px rgba(230, 59, 59, 0.22);
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  transition: transform 0.3s ease;
}

.poster-frame:hover { transform: rotate(0deg) scale(1.02); }

.poster-frame img {
  width: 74%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(230, 59, 59, 0.35);
}

.poster-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a1a00;
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- 通用区块 ---- */
.section { padding: 92px 0; }

.section-head { text-align: center; margin-bottom: 52px; }

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--red);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.3;
}

.section-sub { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

/* ---- 软件亮点 ---- */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 59, 59, 0.5);
  box-shadow: var(--shadow);
}

.feature-shot {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.feature-item:hover .feature-shot img { transform: scale(1.04); }

.feature-body { padding: 20px 22px 24px; }
.feature-body h3 { font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; }
.feature-body p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---- 热门连载 ---- */
.hot { background: var(--bg-soft); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.chip-list li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--card);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.chip-list li:hover { color: var(--red); border-color: rgba(230, 59, 59, 0.5); }

.hot-list {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hot-item:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 59, 59, 0.5);
}

.hot-rank {
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.hot-info h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.hot-info p { color: var(--muted); font-size: 0.85rem; }

.hot-update {
  font-size: 0.82rem;
  color: var(--red);
  border: 1px solid rgba(230, 59, 59, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  background: rgba(230, 59, 59, 0.06);
}

/* ---- 人气榜（深砖红章节） ---- */
.ranking {
  background: var(--deep);
  color: #fdf1ec;
}

.ranking .section-head h2 { color: #fdf1ec; }
.ranking .section-sub { color: rgba(253, 241, 236, 0.55); }

.ranking .section-kicker {
  color: var(--yellow);
  border-color: var(--line-dark);
}

.rank-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 1fr 120px;
  align-items: center;
  gap: 20px;
  background: var(--deep-soft);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 18px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 201, 60, 0.55);
}

.rank-no {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.rank-body h3 { font-size: 1.05rem; margin-bottom: 10px; }

.rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rank-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.rank-heat { font-size: 0.84rem; color: rgba(253, 241, 236, 0.75); text-align: right; }

.rank-quote {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  color: rgba(253, 241, 236, 0.9);
}

.rank-quote p { font-weight: 700; font-size: 1.15rem; line-height: 1.8; }

.rank-quote footer { margin-top: 12px; font-size: 0.86rem; color: rgba(253, 241, 236, 0.5); }

.rank-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rank-cta-note { color: rgba(253, 241, 236, 0.6); font-size: 0.9rem; }

.btn-light {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-light:hover {
  border-color: var(--yellow);
  color: #4a1a00;
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(255, 201, 60, 0.3);
}

/* ---- 更新手记 ---- */
.notes-container { max-width: 820px; }

.notes-list { display: flex; flex-direction: column; }

.note-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

.note-item:last-child { border-bottom: none; }

.note-date {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
}

.note-body h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.note-body p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---- 关于板砖漫画 ---- */
.about { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-copy h2 { font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.4; }

.about-copy > p { margin-top: 18px; color: var(--ink-soft); font-size: 0.98rem; }

.about-points { display: flex; flex-direction: column; gap: 22px; }

.about-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.point-mark {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 7px;
}

.about-points h3 { font-size: 1.02rem; margin-bottom: 4px; }
.about-points p { color: var(--ink-soft); font-size: 0.88rem; }

/* ---- 常见问题 ---- */
.faq-container { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: rgba(230, 59, 59, 0.55); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 22px;
  transition: background 0.25s ease;
}

.faq-question:hover { background: rgba(230, 59, 59, 0.06); }

.faq-arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--red);
  transition: transform 0.3s ease;
}

.faq-arrow svg { width: 20px; height: 20px; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

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

.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0 22px 20px;
}

/* ---- 下载 CTA ---- */
.download-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--grad);
}

.download-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 380px at 50% 120%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(520px 320px at 15% 0%, rgba(255, 201, 60, 0.4), transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner h2 {
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: #fff;
}

.cta-inner > p { margin-top: 12px; color: rgba(255, 255, 255, 0.88); }

.btn-cta {
  margin-top: 32px;
  background: var(--yellow);
  color: #4a1a00;
  box-shadow: 0 14px 34px rgba(43, 35, 32, 0.28);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(43, 35, 32, 0.34);
  filter: brightness(1.04);
}

.cta-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
}

.cta-points li { position: relative; }

.cta-points li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
}

.cta-points li:first-child::before { display: none; }

/* ---- 页脚（无备案号） ---- */
.site-footer {
  background: var(--deep);
  color: #fdf1ec;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.site-footer .brand-name { color: #fdf1ec; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }

.footer-nav a {
  color: rgba(253, 241, 236, 0.75);
  font-size: 0.9rem;
  padding: 10px 8px;
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-copy { color: rgba(253, 241, 236, 0.5); font-size: 0.86rem; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 246, 240, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 6%;
    display: none;
  }

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

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

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

  .hot-item { grid-template-columns: 36px 1fr; gap: 14px; }
  .hot-update { grid-column: 2; justify-self: start; }

  .rank-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .rank-heat { display: none; }

  .note-item { grid-template-columns: 1fr; gap: 8px; }

  .section { padding: 68px 0; }
  .hero { padding: 48px 0 68px; }
}

@media (max-width: 560px) {
  .stat-item { padding-right: 16px; margin-right: 16px; }
}

/* ---- 无障碍：尊重系统减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
