/* ============================================================
   腐宅漫画 官网 v2 — 杂志文艺风
   配色：米白 #faf6f1 / 深紫棕 #2a2028 / 豆沙红 #c4546e / 暖棕 #8b6f47
   ============================================================ */

:root {
  --bg: #faf6f1;
  --bg-soft: #f3ece2;
  --ink: #2a2028;
  --ink-soft: #6b5d66;
  --line: #e6dccf;
  --rose: #c4546e;
  --rose-deep: #a83a55;
  --bronze: #8b6f47;
  --card: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== 顶部导航 ========== */
.site-header {
  padding: 28px 0 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px; height: 42px;
  border-radius: 10px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-cta {
  font-family: var(--serif);
  font-size: 15px;
  padding: 10px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ========== Hero ========== */
.hero {
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--rose);
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  padding: 14px 38px;
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  padding: 14px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 1px;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone img {
  width: 290px;
  border-radius: 32px;
  border: 10px solid #fff;
  box-shadow: 0 30px 60px rgba(42, 32, 40, 0.18);
}

/* ========== 通用 Section ========== */
.section { padding: 80px 0; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 560px;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-head-row h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
}
.section-head-row .more {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ========== 精选作品卡 ========== */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
}
.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(42, 32, 40, 0.08);
}
.pick-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
  background: var(--bg-soft);
}
.pick-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--bronze);
  margin: 14px 0 6px;
}
.pick-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.pick-card span {
  font-size: 12px;
  color: var(--ink-soft);
}

/* ========== 六种阅读气质 ========== */
.moods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mood-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s ease;
}
.mood-cell:hover { background: var(--bg-soft); }
.mood-cell h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 8px;
}
.mood-cell p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ========== 排行榜 ========== */
.rank-list {
  border-top: 1px solid var(--line);
}
.rank-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rank-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}
.rank-item:nth-child(1) .rank-num { color: var(--rose); }
.rank-item:nth-child(2) .rank-num { color: var(--bronze); }
.rank-item:nth-child(3) .rank-num { color: var(--ink); }
.rank-info h4 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 4px;
}
.rank-info span {
  font-size: 13px;
  color: var(--ink-soft);
}
.rank-heat {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--rose);
}

/* ========== 引语区 ========== */
.quote {
  background: var(--bg-soft);
  padding: 80px 32px;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 20px;
  font-weight: 400;
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

/* ========== FAQ / 更新手记 ========== */
.notes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.note-card {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.note-date {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--bronze);
  margin-bottom: 10px;
}
.note-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.note-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.note-card a {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ========== 关于 ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-feature {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.about-feature svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--rose);
}
.about-feature h4 {
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 4px;
}
.about-feature p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ========== 下载 CTA ========== */
.download-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 32px;
  text-align: center;
  border-radius: 4px;
}
.download-cta h2 {
  font-family: var(--serif);
  font-size: 34px;
  margin-bottom: 14px;
}
.download-cta p {
  color: #b8a8b0;
  margin-bottom: 32px;
}
.download-cta .btn-primary {
  background: var(--rose);
}
.download-cta .btn-primary:hover { background: var(--rose-deep); }

/* ========== Footer ========== */
.site-footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
.site-footer .brand {
  justify-content: center;
  margin-bottom: 10px;
}
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .brand-name { font-size: 16px; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-phone img { width: 230px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .moods-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 20px; right: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 20px;
    gap: 16px;
    z-index: 100;
  }
}
@media (max-width: 560px) {
  .moods-grid { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 50px 1fr; }
  .rank-heat { grid-column: 2; }
  .quote blockquote { font-size: 20px; }
  .section-head h2, .section-head-row h2 { font-size: 26px; }
}
