/* ============================================================
   《给名字一个安处：美国商标从新人到匠人》阅读站样式
   治愈系 · 纸面 · 慢读
   ============================================================ */

:root {
  --paper: #f7f3ec;        /* 暖纸底 */
  --paper-deep: #efe9dd;   /* 深一度的纸 */
  --ink: #33302b;          /* 墨色正文 */
  --ink-soft: #6b6357;     /* 弱化文字 */
  --ink-faint: #9a9083;    /* 更弱的注释 */
  --accent: #9a6b4f;       /* 暖棕强调 */
  --accent-soft: #c2a38b;  /* 浅强调 */
  --hairline: #d8cfc0;     /* 发丝线 */
  --quote-bg: #f1ebe0;     /* 引文底 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 17px;
  line-height: 2.05;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 页面骨架 ---------- */

.page {
  max-width: 46em;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ---------- 卷首语块：此时的你 ---------- */

.at-you {
  text-align: center;
  margin: 24px auto 56px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0;
  max-width: 30em;
}
.at-you .label {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

/* ---------- 房间标签 ---------- */

.room-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 20px;
  background: rgba(154, 107, 79, 0.05);
}

h1.chapter-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  margin: 8px 0 8px;
}

.chapter-sub {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

/* ---------- 正文段落 ---------- */

h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 56px 0 18px;
  line-height: 1.7;
}
h2 .num {
  color: var(--accent);
  margin-right: 10px;
  font-size: 17px;
}

p {
  margin: 0 0 20px;
  max-width: 42em;
}

strong { font-weight: 700; }
em { font-style: normal; color: var(--accent); }

/* ---------- 官文引文 ---------- */

blockquote {
  background: var(--quote-bg);
  border-left: 3px solid var(--accent-soft);
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 16px;
  line-height: 1.95;
  border-radius: 0 8px 8px 0;
}
blockquote .en {
  display: block;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.85;
}

/* ---------- 留一句 ---------- */

.leave-a-word {
  margin: 72px auto 40px;
  padding: 30px 26px;
  text-align: center;
  background: var(--paper-deep);
  border-radius: 12px;
  max-width: 34em;
}
.leave-a-word .label {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.leave-a-word p {
  margin: 0;
  font-size: 17.5px;
  line-height: 2.1;
}

/* ---------- 匠人手记 ---------- */

.craft-note {
  margin: 56px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 30px 30px 26px;
  background: rgba(255, 255, 255, 0.45);
}
.craft-note .label {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 16px;
}
.craft-note h3 {
  font-size: 19px;
  margin-bottom: 14px;
}
.craft-note ol, .craft-note ul {
  padding-left: 24px;
  margin: 0 0 16px;
}
.craft-note li { margin-bottom: 10px; }
.craft-note .close-line {
  color: var(--accent);
  font-size: 15.5px;
  border-top: 1px dashed var(--hairline);
  padding-top: 14px;
  margin-top: 6px;
}

/* ---------- 插图位 ---------- */

.illus {
  margin: 30px 0;
  border: 1.5px dashed var(--accent-soft);
  border-radius: 12px;
  background: rgba(194, 163, 139, 0.06);
  padding: 34px 24px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.9;
}
.illus .illus-label {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 1px 12px;
  margin-bottom: 8px;
}
/* 图片就位后：删除 .illus 占位块，改用下面的 figure.img */
figure.img { margin: 34px 0; text-align: center; }
figure.img img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(51, 48, 43, 0.08);
}
figure.img figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- 注脚与来源 ---------- */

.source-note {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.95;
}

.next-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- 上一节 / 下一节 ---------- */

.pager {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pager a {
  flex: 1;
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,255,255,0.4);
  transition: border-color .2s, background .2s;
}
.pager a:hover { border-color: var(--accent-soft); background: #fff; }
.pager a .dir {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.pager a.next { text-align: right; }
.pager a.muted { opacity: .45; cursor: default; }
.pager a.muted:hover { border-color: var(--hairline); background: rgba(255,255,255,0.4); }

/* ---------- 顶部极简导航 ---------- */

.topbar {
  max-width: 46em;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
}
.topbar a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topbar a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
.topbar .crumbs { color: var(--ink-faint); }

/* =========================== 封面 / 目录页 =========================== */

.cover {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 30px;
}
.cover .book-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  margin: 18px 0 6px;
}
.cover .book-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.cover .door {
  width: 54px;
  height: 78px;
  border: 2px solid var(--accent-soft);
  border-radius: 26px 26px 4px 4px;
  position: relative;
  margin: 0 auto;
}
.cover .door::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 36px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.cover .open-hint {
  margin-top: 46px;
  font-size: 14px;
  color: var(--ink-soft);
}
.cover .open-hint a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

/* 房子目录 */
.house {
  max-width: 46em;
  margin: 0 auto;
  padding: 40px 24px 120px;
}
.house h2 {
  text-align: center;
  font-size: 22px;
  margin: 30px 0 8px;
}
.house .house-sub {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 36px;
}
.room-list { list-style: none; }
.room-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 6px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.room-list .room-name {
  font-weight: 700;
  min-width: 6.5em;
}
.room-list .room-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  flex: 1;
  min-width: 14em;
}
.room-list .chapters {
  font-size: 13px;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: 32em;
  line-height: 2.2;
}
.room-list .chapters a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  white-space: nowrap;
}
.room-list .chapters .soon {
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
  white-space: nowrap;
}
.house .two-promises {
  margin: 44px auto 0;
  max-width: 34em;
  background: var(--paper-deep);
  border-radius: 12px;
  padding: 26px 30px;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink);
}
.house .two-promises .label {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* 窄屏 */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding: 40px 18px 90px; }
  h1.chapter-title { font-size: 25px; }
  .cover .book-title { font-size: 30px; }
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; }
}
