:root {
  --bg: #e8eef2;
  --bg-deep: #d5e0e8;
  --ink: #0f1c24;
  --muted: #5a6b76;
  --line: #c5d0d8;
  --accent: #0c6b7a;
  --accent-hot: #c45c26;
  --accent-soft: #d4eef2;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #f7fafb;
  --warn: #9a4a1c;
  --admin: #1e293b;
  --admin-bg: #f1f5f9;
  --max: 1080px;
  --font: "Fraunces", "Georgia", "Noto Serif SC", serif;
  --ui: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 12px 40px rgba(15, 28, 36, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(12, 107, 122, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f7f9 0%, var(--bg) 38%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent); }
a:hover { color: var(--ink); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 249, 0.78);
  border-bottom: 1px solid rgba(197, 208, 216, 0.7);
}
.site-header .inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.95rem 0; flex-wrap: wrap;
}
.brand {
  font-family: var(--font);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--accent); }
.nav {
  display: flex; gap: 1.1rem; flex-wrap: wrap;
  font-family: var(--ui); font-size: 0.9rem; font-weight: 500;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.site-search {
  display: flex; gap: 0.35rem; margin-left: auto; font-family: var(--ui);
}
.site-search input {
  width: min(200px, 42vw); padding: 0.45rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.85); font: inherit;
}
.site-search button {
  border: none; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 600;
}
.site-search button:hover { background: var(--accent); }

/* Home hero — brand + one promise + legal-path CTAs */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 3.25rem;
  margin-bottom: 0.5rem;
  background-color: #0f1c24;
  background-image:
    linear-gradient(120deg, rgba(15, 28, 36, 0.92) 0%, rgba(15, 28, 36, 0.72) 48%, rgba(12, 107, 122, 0.35) 100%),
    var(--hero-cover, none);
  background-size: cover;
  background-position: center 20%;
  color: #f3f7f9;
  overflow: hidden;
}
.hero.hero-compact {
  min-height: auto;
  padding: 2.75rem 0 2.25rem;
  align-items: center;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 280px at 80% 20%, rgba(196, 92, 38, 0.22), transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(15, 28, 36, 0.55) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 40rem; }
.hero-brand {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}
.hero-title {
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
  font-weight: 700;
}
.hero-sub {
  font-family: var(--ui);
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(243, 247, 249, 0.88);
  margin: 0 0 1.35rem;
  max-width: 36em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn.hero-ghost, .hero-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn.hero-ghost:hover, .hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.section-solo-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}
.section-solo-sub {
  font-family: var(--ui);
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 40em;
  line-height: 1.55;
}
.section-solo-sub.tight { margin-bottom: 0.85rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.85rem;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
}
.steps h3 {
  font-family: var(--ui);
  font-size: 1rem;
  margin: 0.15rem 0 0.35rem;
  letter-spacing: -0.01em;
}
.steps p {
  font-family: var(--ui);
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.promise {
  border-top: 1px solid rgba(197, 208, 216, 0.85);
  margin-top: 0.5rem;
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  font-family: var(--ui);
}
.promise-grid h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.promise-grid ul {
  margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.65;
}
.promise-cta {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.steps-inline {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) {
  .steps-inline { grid-template-columns: 1fr; }
}

.about-page .lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}
.about-page h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.about-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-top: 1.75rem;
}

.why-here {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.15rem;
  font-family: var(--ui);
}
.why-here h2 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.why-here > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.why-steps {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.65;
  font-size: 0.92rem;
}
.why-steps li { margin: 0.25rem 0; }
.detail-actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 0.9rem 0 0;
}
.cta-note {
  font-family: var(--ui);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem !important;
}
.footer-promise {
  max-width: 40em;
  line-height: 1.55;
}

.card-path {
  border-color: rgba(12, 107, 122, 0.35);
}
.path-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.path-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.path-step-num {
  font-family: var(--ui);
  font-weight: 700;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.path-step-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.path-cover {
  width: 64px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line);
}
.path-step h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.path-step h3 a { color: inherit; text-decoration: none; }
.path-step h3 a:hover { color: var(--accent); }
.path-excerpt {
  font-family: var(--ui);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.35rem 0 0.45rem;
  line-height: 1.5;
}
.path-links {
  font-family: var(--ui);
  font-size: 0.85rem;
  margin: 0;
}
.list-body { margin: 0.75rem 0 1.25rem; }

.buy-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
  font-family: var(--ui);
}
.buy-title {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.buy-box > p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.buy-box .btn { margin-bottom: 0.35rem; }
.affiliate-note {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  margin: 0.5rem 0 0 !important;
  line-height: 1.45 !important;
}

@media (max-width: 700px) {
  .path-step-main { grid-template-columns: 52px 1fr; }
  .path-cover { width: 52px; }
}

.section-home { padding-top: 1.25rem; }
.section-head.compact { margin-bottom: 0.55rem; }
.cat-bar-inline { margin: 0 0 0.9rem; }

.continue-path {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.05rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(12, 107, 122, 0.35);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-family: var(--ui);
}
.continue-path[hidden] { display: none !important; }
.continue-cover {
  width: 56px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.continue-body { flex: 1; min-width: 0; }
.continue-kicker {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.continue-sub {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.continue-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.path-next {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  padding: 1.05rem 1.15rem;
  margin: 1.1rem 0;
  font-family: var(--ui);
}
.path-next-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.path-next-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.path-next-title a { color: inherit; text-decoration: none; }
.path-next-title a:hover { color: var(--accent); }
.path-next-label {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.path-next-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(243, 247, 249, 0.9);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.path-next-card:hover {
  border-color: rgba(12, 107, 122, 0.45);
  transform: translateY(-1px);
}
.path-next-card img {
  width: 48px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 5px;
}
.path-next-card strong { display: block; font-size: 0.95rem; }
.path-next-card .meta { display: block; margin: 0.15rem 0 0.25rem; }
.path-next-done { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.path-next-prev { margin: 0.65rem 0 0; }

.home-lead { margin: 0 0 1.15rem; max-width: 36rem; }
.home-h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.home-tag {
  font-family: var(--ui);
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* 首页路径：封面递进条（可点进导读），不是空介绍卡 */
.path-rail-title {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.path-rail {
  list-style: none;
  margin: 0.85rem 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.35rem 0.15rem;
}
.path-rail > li {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.path-rail-card {
  display: flex;
  flex-direction: column;
  width: 104px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.path-rail-card img,
.path-rail-empty {
  width: 104px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #cfd8de;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.path-rail-card:hover img { transform: scale(1.03); }
.path-rail-step {
  position: absolute;
  top: 6px; left: 6px;
  z-index: 1;
  width: 1.35rem; height: 1.35rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-family: var(--ui); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.path-rail-name {
  font-family: var(--ui);
  font-size: 0.72rem;
  line-height: 1.25;
  margin-top: 0.4rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.path-rail-arrow {
  font-family: var(--ui);
  color: var(--muted);
  padding: 0 0.2rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 700px) {
  .path-rail-card { width: 88px; }
  .path-rail-card img, .path-rail-empty { width: 88px; }
}

@media (max-width: 700px) {
  .hero { min-height: auto; padding: 3.25rem 0 2.5rem; }
  .promise-grid { grid-template-columns: 1fr; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-size: 0.92rem; font-weight: 600;
  border: none; border-radius: 999px; padding: 0.7rem 1.2rem; cursor: pointer;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.secondary { background: #475569; }
.btn.danger { background: #b91c1c; }

.section { padding: 1.15rem 0 2rem; }
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.section-head h2 { margin: 0; }
.section-head .meta { font-weight: 600; text-decoration: none; }
.sort-links a { color: var(--muted); text-decoration: none; font-family: var(--ui); }
.sort-links a.on, .sort-links a:hover { color: var(--accent); }

.cat-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.25rem;
  font-family: var(--ui);
}
.chip {
  display: inline-block; padding: 0.38rem 0.8rem;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover, .chip.on {
  background: var(--ink); color: #fff; transform: translateY(-1px);
}

/* Book grid — cover-led */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1.15rem;
}
.grid-lists {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(197, 208, 216, 0.85);
  padding: 1rem 1.05rem;
  text-decoration: none; color: inherit;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 107, 122, 0.45);
  box-shadow: 0 18px 48px rgba(15, 28, 36, 0.12);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.card-book {
  display: flex; flex-direction: column; padding: 0.7rem;
  animation: rise 0.6s ease both;
}
.card-book .cover {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block;
  border-radius: 10px; background: #cfd8de; margin: 0 0 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 28, 36, 0.12);
  transition: transform 0.35s ease;
}
.card-book:hover .cover { transform: scale(1.03); }
.cover-empty {
  background:
    linear-gradient(145deg, #b7c8d1, #8aa0ad 40%, #0c6b7a);
}
.card-body { min-width: 0; padding: 0 0.2rem 0.35rem; }
.card-kicker {
  display: flex; justify-content: space-between; gap: 0.4rem; flex-wrap: wrap;
  font-family: var(--ui); font-size: 0.68rem; color: var(--muted); margin: 0 0 0.35rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.card-kicker a { color: inherit; text-decoration: none; }
.card-book h3 {
  font-size: 1rem; line-height: 1.25; margin: 0 0 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
  font-family: var(--ui); font-size: 0.8rem; color: var(--muted);
  margin: 0.4rem 0 0.45rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { margin: 0 0 0.4rem; display: none; }
.card-cta {
  font-family: var(--ui); font-size: 0.8rem; color: var(--accent); font-weight: 700;
}
.meta { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); margin: 0; }

.badge {
  display: inline-block; font-family: var(--ui); font-size: 0.72rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  padding: 0.18rem 0.5rem; border-radius: 999px; margin: 0 0.25rem 0.25rem 0;
}
a.badge { text-decoration: none; }
a.badge:hover { filter: brightness(0.96); }

.detail-head {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem;
  align-items: start; margin-bottom: 1.25rem;
}
.cover-lg {
  width: 160px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: #cfd8de;
  box-shadow: var(--shadow);
}
.prose { max-width: 44rem; }
.prose h1 { margin: 0.2rem 0 0.35rem; letter-spacing: -0.03em; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.detail-pitch {
  font-family: var(--ui); font-size: 0.95rem; color: var(--muted);
  margin: 0.65rem 0 0; line-height: 1.55; max-width: 36em;
}
.box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  padding: 1.05rem 1.15rem; margin: 1.1rem 0;
  border-radius: var(--radius);
  font-family: var(--ui);
}
.meta-box p { margin: 0.35rem 0; }
.tag-row { margin-top: 0.55rem !important; }

.guide-intro { margin: 1.75rem 0 0.85rem; }
.guide-intro-title {
  font-size: 1.35rem; margin: 0 0 0.35rem; letter-spacing: -0.02em;
}
.guide-intro-sub {
  font-family: var(--ui); font-size: 0.92rem; color: var(--muted);
  margin: 0; line-height: 1.5; max-width: 38em;
}
.guide-ai-note {
  font-family: var(--ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
  max-width: 40em;
  line-height: 1.45;
  opacity: 0.9;
}

.guide { font-size: 1.02rem; margin: 0 0 1.25rem; }
.guide-sections {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.guide-block {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem 1.15rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.guide-block.guide-who-it-s-for { border-left-color: #0f766e; }
.guide-block.guide-why-read-it { border-left-color: #b45309; }
.guide-block.guide-how-to-read { border-left-color: #1d4ed8; }
.guide-block.guide-what-you-ll-gain { border-left-color: #7c3aed; }
.guide-block.guide-read-legally { border-left-color: #334155; }

.guide-h {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
.guide-body p {
  margin: 0 0 0.65rem;
  line-height: 1.7;
  color: var(--ink);
}
.guide-body p:last-child { margin-bottom: 0; }
.guide-list {
  margin: 0.15rem 0 0.35rem;
  padding-left: 1.15rem;
  line-height: 1.65;
}
.guide-list li { margin: 0.28rem 0; }
.guide-flow p { margin: 0 0 0.85rem; line-height: 1.7; }

.cta-lead {
  font-family: var(--ui); font-weight: 600; margin: 0 0 0.65rem !important;
  color: var(--ink);
}
.notice { color: var(--warn); font-size: 0.95rem; font-family: var(--ui); }
.cta-box .btn { font-size: 1rem; }

.tag-cloud-block { margin-bottom: 1.4rem; }
.tag-cloud-block h3 {
  font-size: 1.05rem; margin: 0 0 0.7rem; color: var(--ink); letter-spacing: -0.02em;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; font-family: var(--ui); }
.tag-cloud a {
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.28rem 0.65rem; font-size: 0.8rem;
  background: rgba(255,255,255,0.55);
  transition: 0.2s ease;
}
.tag-cloud a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.tag-cloud a span { font-weight: 700; margin-left: 0.15rem; }
.tag-cloud-lg a { font-size: 0.92rem; padding: 0.4rem 0.8rem; }

.search-panel {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0 1rem;
  font-family: var(--ui);
}
.search-panel input {
  flex: 1; min-width: 200px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.8); font: inherit;
}

.site-footer {
  margin-top: 2.5rem; padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(197, 208, 216, 0.8);
  font-family: var(--ui); font-size: 0.88rem; color: var(--muted);
  background: rgba(255,255,255,0.25);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-book, .card { animation: none; }
  .card:hover, .card-book:hover .cover, .btn:hover { transform: none; }
}
@media (max-width: 700px) {
  .detail-head { grid-template-columns: 110px 1fr; gap: 1rem; }
  .cover-lg { width: 110px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.85rem; }
  .site-search { width: 100%; margin-left: 0; }
  .site-search input { flex: 1; width: auto; }
}

/* Admin leftovers (Jinja legacy / shared) */
body.admin { background: var(--admin-bg); font-family: var(--ui); }
.admin-header { background: var(--admin); color: #e2e8f0; }
.admin-header .brand, .admin-header a { color: #e2e8f0; text-decoration: none; }
.admin-header .inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.85rem 0; flex-wrap: wrap;
}
.panel {
  background: white; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 140px; background: white; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 1rem;
}
.stat strong { display: block; font-size: 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid #e2e8f0; }
.form-row { margin-bottom: 0.85rem; }
.form-row label { display: block; font-size: 0.85rem; color: #475569; margin-bottom: 0.25rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit;
}
.form-row textarea { min-height: 110px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.flash {
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
  padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem;
}
.error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 0.75rem 1rem; border-radius: 6px;
}
.hint { font-size: 0.85rem; color: #64748b; }
.checks { max-height: 220px; overflow: auto; border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; }
.checks label { display: block; margin: 0.25rem 0; font-size: 0.9rem; }
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.filter-row input[type="search"] {
  flex: 1; min-width: 180px; padding: 0.55rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 6px;
}
.filter-row select { padding: 0.55rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.bulk-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0;
}
.bulk-bar select { padding: 0.45rem 0.55rem; border-radius: 6px; border: 1px solid #cbd5e1; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; font-size: 0.9rem; }
.pill { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.45rem; border-radius: 999px; }
.pill.draft { background: #fef3c7; color: #92400e; }
.pill.ok { background: #d1fae5; color: #065f46; }
.actions { white-space: nowrap; font-size: 0.85rem; }
.actions a, .actions .linkish {
  margin-right: 0.35rem; color: var(--accent); background: none; border: none;
  padding: 0; cursor: pointer; font: inherit; text-decoration: underline;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }
.cover-preview img { max-width: 120px; border-radius: 4px; border: 1px solid #e2e8f0; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
