/* ============================================================
   七毛漫画官网（qimaomh.cn）- 样式表（亮色版）
   主题：奶黄白底 + 明黄签名色 + 浅蓝章节
   ============================================================ */

/* ---- 设计变量 ---- */
:root {
  --bg: #fff9e8;            /* 页面底色：奶黄白 */
  --bg-soft: #fff3cc;       /* 区块底色：浅黄 */
  --card: #ffffff;          /* 卡片面 */
  --ink: #232325;           /* 主文字：墨黑 */
  --ink-soft: #5a5a60;      /* 次级文字 */
  --muted: #9a947e;         /* 弱化文字 */
  --yellow: #ffd60a;        /* 明黄（呼应 Logo） */
  --yellow-deep: #f0b400;
  --blue: #3b6fe0;          /* 电光蓝 */
  --blue-deep: #1f3f9e;
  --blue-bg: linear-gradient(160deg, #eaf1ff 0%, #f6f9ff 100%);
  --line: rgba(35, 35, 37, 0.1);
  --line-strong: rgba(35, 35, 37, 0.16);
  --grad: linear-gradient(135deg, #ffd60a 0%, #ffb800 100%);
  --radius: 16px;
  --shadow: 0 16px 36px rgba(35, 35, 37, 0.1);
  --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(255, 250, 235, 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(35, 35, 37, 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;
}

.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(--yellow-deep);
  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: #232325;
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(240, 180, 0, 0.35);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(240, 180, 0, 0.45);
  filter: brightness(1.04);
}

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

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--yellow);
  border-color: var(--yellow-deep);
}

.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(255, 214, 10, 0.32), transparent 65%),
    radial-gradient(560px 420px at 92% 88%, rgba(59, 111, 224, 0.14), 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: #232325;
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 22px;
}

.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-strong);
  padding-top: 24px;
}

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

.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(--yellow-deep);
}

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

.logo-card {
  width: min(260px, 78vw);
  aspect-ratio: 1;
  border-radius: 32px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 50px rgba(240, 180, 0, 0.4);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.logo-card:hover { transform: rotate(0deg) scale(1.02); }

.logo-card img { width: 80%; height: 80%; object-fit: contain; }

.hero-note { color: var(--muted); font-size: 0.88rem; }

/* ---- 通用区块 ---- */
.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(--yellow-deep);
  border: 1px solid var(--line-strong);
  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: 24px;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-media {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--bg-soft);
}

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

.feature-card:hover .feature-media img { transform: scale(1.04); }

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

/* ---- 热门推荐（浅蓝章节） ---- */
.hot {
  background: var(--blue-bg);
}

.hot .section-head h2 { color: var(--ink); }
.hot .section-sub { color: var(--muted); }

.section-kicker.light { color: var(--blue); }

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

.hot-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid rgba(59, 111, 224, 0.18);
  border-radius: 14px;
  padding: 16px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hot-item:hover {
  transform: translateX(6px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(59, 111, 224, 0.14);
}

.hot-rank {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.hot-item h3 { font-size: 1.02rem; margin-bottom: 8px; }

.hot-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 111, 224, 0.12);
  overflow: hidden;
}

.hot-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b6fe0, #6f9bff);
}

.hot-quote {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

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

.hot-quote footer { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }

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

.hot-cta-note { color: var(--muted); font-size: 0.9rem; }

/* ---- 题材分类 ---- */
.categories { background: var(--bg-soft); }

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}

.chip {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.chip:hover {
  transform: translateY(-3px);
  border-color: var(--yellow-deep);
  background: var(--yellow);
}

/* ---- 更新手记 ---- */
.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-strong);
}

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

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

.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(--yellow-deep);
  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: var(--yellow-deep); }

.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(255, 214, 10, 0.18); }

.faq-arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--yellow-deep);
  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.45), transparent 70%),
    radial-gradient(520px 320px at 15% 0%, rgba(35, 35, 37, 0.08), 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: #232325;
}

.cta-inner > p { margin-top: 12px; color: rgba(35, 35, 37, 0.78); }

.btn-cta {
  margin-top: 32px;
  background: #1f3f9e;
  color: #ffd60a;
  box-shadow: 0 14px 34px rgba(31, 63, 158, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 63, 158, 0.4);
}

.cta-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  color: rgba(35, 35, 37, 0.78);
  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: #232325;
  transform: translateY(-50%);
}

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

/* ---- 页脚（无备案号） ---- */
.site-footer {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

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

.site-footer .brand-name { color: var(--ink); }

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

.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 10px 8px;
  transition: color 0.25s ease;
}

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

.footer-copy { color: var(--muted); 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(255, 250, 235, 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: 48px 1fr; gap: 16px; }

  .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; }
}
