/* ==========================================================================
   拾卷 · 四大名著阅读空间
   layout.css — 页面结构、导航、页脚、卡片与各页面模块
   ========================================================================== */

/* ==========================================================================
   1. 顶部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 236, 0.95);
  box-shadow: 0 14px 34px -30px rgba(41, 39, 32, 0.6);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--dark);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 0.3s var(--ease), transform 0.5s var(--ease);
}

.brand-seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(246, 243, 236, 0.32);
  border-radius: 1px;
}

.brand:hover .brand-seal {
  background: var(--accent-2);
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2em;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover {
  color: var(--accent-2);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  position: relative;
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.nav-toggle-line {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease),
    top 0.35s var(--ease);
}

.nav-toggle-line:nth-child(1) {
  top: 18px;
}

.nav-toggle-line:nth-child(2) {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 95;
  background: rgba(41, 39, 32, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   2. 首页主视觉
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(148, 118, 80, 0.09), transparent 32%),
    radial-gradient(circle at 8% 78%, rgba(63, 90, 78, 0.05), transparent 30%);
}

.hero-landscape {
  position: absolute;
  inset: 0;
  background: url("../assets/images/background/hero-mountains.svg") no-repeat center bottom / cover;
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--accent-2);
  font-size: 11.5px;
  letter-spacing: 0.24em;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(66px, 8.4vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-indent: -0.06em;
  color: var(--ink);
}

.hero-name::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 0 16px 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-slogan {
  margin-top: 20px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.hero-lead {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-stat span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(440px, 88%);
  aspect-ratio: 1;
  border: 1px solid rgba(148, 118, 80, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 118, 80, 0.12), rgba(148, 118, 80, 0) 68%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(350px, 72%);
  aspect-ratio: 1;
  border: 1px dashed rgba(148, 118, 80, 0.16);
  border-radius: 50%;
}

.cover-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: min(432px, 88%);
}

.stage-cover {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--paper-2);
  box-shadow: 0 22px 40px -26px rgba(41, 39, 32, 0.7);
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0));
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.stage-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.stage-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(41, 39, 32, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.stage-cover:nth-child(1) {
  --rot: -3.4deg;
  --ty: 12px;
}

.stage-cover:nth-child(2) {
  --rot: 2.8deg;
  --ty: -6px;
}

.stage-cover:nth-child(3) {
  --rot: 2.2deg;
  --ty: -10px;
}

.stage-cover:nth-child(4) {
  --rot: -2.8deg;
  --ty: 8px;
}

.hero-visual:hover .stage-cover {
  transform: rotate(0deg) translateY(0);
  box-shadow: 0 28px 48px -28px rgba(41, 39, 32, 0.55);
}

.hero-seal {
  position: absolute;
  right: -10px;
  bottom: -18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(148, 118, 80, 0.35);
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.92);
  color: var(--accent-2);
  box-shadow: var(--shadow-sm);
  transform: rotate(6deg);
  backdrop-filter: blur(6px);
}

.hero-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(148, 118, 80, 0.3);
  border-radius: 50%;
}

.hero-seal-main {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.hero-seal-small {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  opacity: 0.75;
}

.hero-note {
  position: absolute;
  left: -18px;
  top: 6%;
  z-index: 2;
  padding: 18px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  line-height: 1;
  writing-mode: vertical-rl;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(4px);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.26em;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

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

.section--tight {
  padding: 64px 0;
}

.section--top {
  padding-top: 72px;
}

.section--bottom {
  padding-bottom: 36px;
}

.section--paper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head-copy {
  max-width: 720px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.section-desc {
  max-width: 54ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.section-head .link-arrow {
  flex: none;
  padding-bottom: 6px;
}

/* ==========================================================================
   4. 书籍卡片
   ========================================================================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.3s var(--ease);
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.book-cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: var(--paper-2);
}

.book-cover {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  text-align: left;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.book-card:hover .book-cover img {
  transform: scale(1.035);
}

.book-card > .status-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  pointer-events: none;
}

.book-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 6px 6px;
}

.book-cat {
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.book-title {
  margin: 8px 0 3px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.book-title a:hover {
  color: var(--accent-2);
}

.book-author {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.book-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.book-progress {
  margin-top: 16px;
}

.book-progress-bar {
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.book-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

.book-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.book-card--slim .book-excerpt {
  display: none;
}

.book-card--slim .book-body {
  padding-top: 16px;
}

/* ==========================================================================
   5. 笔记卡片
   ========================================================================== */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-grid--list {
  grid-template-columns: repeat(2, 1fr);
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}

.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.note-card:hover::before {
  opacity: 1;
}

.note-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.note-book {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
}

.note-book::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.note-card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.note-card h3 a:hover {
  color: var(--accent-2);
}

.note-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.note-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-tags .tag {
  padding: 2px 9px;
  font-size: 10.5px;
}

.note-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(158, 59, 51, 0.22);
  border-radius: 999px;
  background: rgba(158, 59, 51, 0.05);
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.note-card-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.note-card:hover .note-card-tools,
.note-card:focus-within .note-card-tools {
  opacity: 1;
}

.note-card-tools .icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
}

.note-card--custom .note-card-top {
  padding-right: 66px;
}

/* ==========================================================================
   6. 摘录卡片
   ========================================================================== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.quote-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}

.quote-card::after {
  content: "\201D";
  position: absolute;
  top: -24px;
  right: 18px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 140px;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.quote-card.is-highlight {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(148, 118, 80, 0.1), var(--shadow-sm);
  animation: quotePulse 1.2s var(--ease);
}

@keyframes quotePulse {
  0% {
    background: rgba(148, 118, 80, 0.1);
  }
  100% {
    background: var(--card);
  }
}

.quote-text {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.quote-grid--home .quote-text {
  font-size: 18px;
}

.quote-source {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.quote-source::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent-soft);
}

.quote-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.quote-note span {
  margin-right: 6px;
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.icon-btn:hover {
  border-color: var(--accent-soft);
  background: #fff;
  color: var(--accent-2);
}

.icon-btn.is-favorite {
  border-color: rgba(158, 59, 51, 0.26);
  background: rgba(158, 59, 51, 0.06);
  color: var(--red);
}

.icon-btn.is-favorite svg {
  fill: currentColor;
}

.quote-actions .icon-btn:last-child {
  margin-left: auto;
}

/* ==========================================================================
   7. 阅读感悟（深色区块）
   ========================================================================== */
.essay-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(circle at 82% 12%, rgba(148, 118, 80, 0.18), transparent 32%),
    radial-gradient(circle at 6% 96%, rgba(63, 90, 78, 0.16), transparent 30%),
    var(--dark);
  color: var(--paper);
}

.essay-band::before {
  content: "读";
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(246, 243, 236, 0.035);
  font-family: var(--font-serif);
  font-size: 420px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.essay-head {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.essay-head .section-eyebrow {
  color: var(--accent-soft);
}

.essay-head .section-eyebrow::before {
  background: var(--accent-soft);
}

.essay-head .section-title {
  color: var(--paper);
  font-size: clamp(30px, 3.8vw, 44px);
}

.essay-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  margin-top: 48px;
}

.essay-quote {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(246, 243, 236, 0.16);
}

.essay-quote p {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.essay-quote footer {
  margin-top: 20px;
  color: rgba(246, 243, 236, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

.essay-copy p {
  margin-bottom: 18px;
  color: rgba(246, 243, 236, 0.66);
  font-size: 14.5px;
  line-height: 2;
}

.essay-copy p:last-child {
  margin-bottom: 0;
}

.impression-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(246, 243, 236, 0.12);
}

.impression {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 30px;
  border-left: 1px solid rgba(246, 243, 236, 0.1);
  transition: background-color 0.3s var(--ease);
}

.impression:first-child {
  border-left: 0;
  padding-left: 0;
}

.impression:hover {
  background: rgba(246, 243, 236, 0.035);
}

.impression-book {
  color: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.impression p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(246, 243, 236, 0.58);
  font-size: 12.5px;
  line-height: 1.9;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.impression-arrow {
  margin-top: auto;
  color: rgba(246, 243, 236, 0.35);
  font-family: var(--font-en);
  font-size: 16px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.impression:hover .impression-arrow {
  color: var(--accent-soft);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   8. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  background: var(--dark);
  color: rgba(246, 243, 236, 0.7);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(246, 243, 236, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 48px;
  padding: 72px 0 54px;
}

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

.footer-brand .brand-sub {
  color: rgba(246, 243, 236, 0.38);
}

.footer-brand .brand-seal {
  background: var(--paper);
  color: var(--dark);
}

.footer-brand .brand-seal::after {
  border-color: rgba(48, 46, 40, 0.3);
}

.footer-brand .brand:hover .brand-seal {
  background: var(--accent-soft);
}

.footer-desc {
  max-width: 32ch;
  margin-top: 22px;
  color: rgba(246, 243, 236, 0.5);
  font-size: 13px;
  line-height: 1.95;
}

.footer-motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.footer-motto::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(201, 179, 146, 0.5);
}

.footer-col h4 {
  margin-bottom: 20px;
  color: rgba(246, 243, 236, 0.9);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: rgba(246, 243, 236, 0.48);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-col p {
  color: rgba(246, 243, 236, 0.44);
  font-size: 12.5px;
  line-height: 1.95;
}

.footer-col p + p {
  margin-top: 10px;
}

.footer-meta-tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: 999px;
  color: rgba(246, 243, 236, 0.42);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(246, 243, 236, 0.08);
  color: rgba(246, 243, 236, 0.34);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer-bottom .en {
  letter-spacing: 0.08em;
}

/* ==========================================================================
   9. 内页头部
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 90% 0%, rgba(148, 118, 80, 0.09), transparent 34%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.page-hero-copy {
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.breadcrumb .sep {
  color: var(--line-strong);
}

.page-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.12;
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.page-hero-aside {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 26px;
  padding-bottom: 6px;
}

.page-hero-stat {
  text-align: right;
}

.page-hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.page-hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.page-hero-mark {
  position: absolute;
  right: 4%;
  bottom: -46px;
  z-index: 0;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(130px, 17vw, 240px);
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   10. 筛选工具栏
   ========================================================================== */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar-label {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.toolbar-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.toolbar-count strong {
  margin: 0 2px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.toolbar-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.toolbar-reset:hover {
  color: var(--accent-2);
}

.toolbar-reset svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   11. 书籍详情弹窗
   ========================================================================== */
.book-modal-grid {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 44px;
  padding: 6px 46px 48px;
}

.book-modal-side {
  min-width: 0;
}

.book-modal-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 30px 50px -32px rgba(41, 39, 32, 0.55);
}

.book-modal-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-modal-side-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.book-modal-side-card .side-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.book-modal-side-card blockquote {
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.85;
}

.book-modal-main {
  min-width: 0;
  padding-top: 10px;
}

.book-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.book-modal-title {
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.book-modal-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.book-modal-author {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.book-modal-author b {
  color: var(--ink-2);
  font-weight: 500;
}

.book-section {
  margin-top: 30px;
}

.book-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.book-section h3::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.book-section p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.book-section p:last-child {
  margin-bottom: 0;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.char-item {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.char-item strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.char-item span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.book-reflection {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(239, 233, 221, 0.55);
}

.book-reflection h3 {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}

.book-reflection p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.95;
}

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

.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 2px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 13.5px;
  transition: color 0.25s var(--ease);
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item span:first-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.related-item time,
.related-item .related-arrow {
  flex: none;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.related-item:hover {
  color: var(--accent-2);
}

.related-item:hover .related-arrow {
  color: var(--accent);
}

.related-empty {
  color: var(--muted-2);
  font-size: 12.5px;
}

.book-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   12. 笔记阅读器
   ========================================================================== */
.notes-browser {
  padding-top: 40px;
}

.note-reader {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 0 20px;
}

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}

.reader-back:hover {
  color: var(--accent-2);
}

.reader-back svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.reader-back:hover svg {
  transform: translateX(-3px);
}

.reader-actions,
.reader-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.reader-book {
  color: var(--accent-2);
}

.reader-title {
  margin: 20px 0 18px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.reader-summary {
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--accent-soft);
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.reader-content p {
  margin-bottom: 24px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 2.1;
  letter-spacing: 0.015em;
}

.reader-insight {
  margin: 40px 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239, 233, 221, 0.8), rgba(255, 255, 255, 0.5));
}

.reader-insight h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.18em;
}

.reader-insight h2::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.reader-insight p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}

.reader-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.reader-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 46%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.pager-link:hover {
  border-color: var(--accent-soft);
  background: #fff;
}

.pager-link span {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.pager-link strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.pager-link--next {
  margin-left: auto;
  text-align: right;
}

.reader-progress {
  position: fixed;
  left: 0;
  top: var(--header-h);
  z-index: 99;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.reader-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ==========================================================================
   13. 新建 / 编辑笔记表单
   ========================================================================== */
.note-form {
  max-width: 780px;
  margin: 0 auto;
  padding: 4px 46px 44px;
}

.note-form-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.note-form-head h2 {
  font-size: 30px;
  letter-spacing: 0.04em;
}

.note-form-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.note-form .form-grid {
  gap: 20px;
}

.note-form .form-actions {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   14. 摘录页
   ========================================================================== */
.quote-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  margin-bottom: 40px;
  padding: clamp(30px, 4.8vw, 52px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 179, 146, 0.16), transparent 34%),
    var(--dark);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}

.quote-spotlight::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(246, 243, 236, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.quote-spotlight::after {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: -36px;
  color: rgba(246, 243, 236, 0.06);
  font-family: var(--font-en);
  font-size: 240px;
  line-height: 1;
  pointer-events: none;
}

.spotlight-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.spotlight-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-soft);
  font-size: 10.5px;
  letter-spacing: 0.22em;
}

.spotlight-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(201, 179, 146, 0.6);
}

.spotlight-text {
  max-width: 26em;
  margin: 20px 0 18px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(23px, 3.1vw, 36px);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.spotlight-source {
  color: rgba(246, 243, 236, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.spotlight-note {
  max-width: 62ch;
  margin-top: 16px;
  color: rgba(246, 243, 236, 0.64);
  font-size: 13px;
  line-height: 1.9;
}

.spotlight-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 132px;
}

.spotlight-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.quote-detail {
  padding: 0 48px 48px;
}

.quote-detail-mark {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 76px;
  line-height: 0.7;
  opacity: 0.25;
}

.quote-detail-text {
  margin: 26px 0 24px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.quote-detail-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.quote-detail-note {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 233, 221, 0.55);
}

.quote-detail-note h3 {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.quote-detail-note p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 2;
}

.quote-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quote-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

/* ==========================================================================
   15. 关于页
   ========================================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 2.05;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .about-lead {
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.about-copy .about-lead::first-letter {
  color: var(--accent);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.about-fact {
  padding: 18px 20px 0;
  border-left: 1px solid var(--line);
}

.about-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.about-fact span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: min(380px, 90%);
  aspect-ratio: 1;
  border: 1px dashed rgba(148, 118, 80, 0.28);
  border-radius: 50%;
}

.avatar-frame {
  position: relative;
  width: min(330px, 82%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 36px 60px -42px rgba(41, 39, 32, 0.7);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-caption {
  position: absolute;
  right: 2%;
  bottom: 6%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
  backdrop-filter: blur(4px);
}

.avatar-caption small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.philosophy-card {
  position: relative;
  overflow: hidden;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.philosophy-num {
  position: absolute;
  top: 14px;
  right: 24px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  opacity: 0.12;
}

.philosophy-book {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.philosophy-book::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.philosophy-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  letter-spacing: 0.03em;
}

.philosophy-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent-2);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.feature-card .link-arrow {
  margin-top: auto;
  padding-top: 22px;
}

.info-panel {
  padding: 36px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(239, 233, 221, 0.55);
}

.info-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 20px;
}

.info-panel h3::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}

.info-panel p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.info-panel strong {
  color: var(--ink-2);
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.info-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--paper);
}

.about-cta h3 {
  color: var(--paper);
  font-size: clamp(22px, 2.6vw, 30px);
}

.about-cta p {
  margin-top: 8px;
  color: rgba(246, 243, 236, 0.55);
  font-size: 13px;
}

.about-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   16. 补充组件
   ========================================================================== */
.page-body {
  padding: 44px 0 16px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  flex: none;
  padding-bottom: 4px;
}

.section-head-actions .link-arrow {
  padding-bottom: 0;
}

.book-title-btn {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  transition: color 0.25s var(--ease);
}

.book-title-btn:hover {
  color: var(--accent-2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-grid > .empty-state,
.note-grid > .empty-state,
.note-grid > .data-error {
  grid-column: 1 / -1;
}

.textarea--sm {
  min-height: 96px;
}

.reader-book-link {
  color: var(--accent-2);
}

.reader-book-link:hover {
  color: var(--ink);
}

.reader-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reader-custom-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(158, 59, 51, 0.24);
  border-radius: 999px;
  background: rgba(158, 59, 51, 0.05);
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.list-note-tools {
  display: flex;
  gap: 4px;
}

.list-note-tools .icon-btn {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10.5px;
}

.note-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.note-list-head h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.note-list-head p {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .page-body {
    padding: 30px 0 10px;
  }

  .section-head-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 0;
  }

  .page-hero-actions {
    margin-top: 20px;
  }
}


.quote-disclaimer {
  margin: -8px 0 34px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 233, 221, 0.45);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.quote-disclaimer strong {
  color: var(--ink-2);
  font-weight: 600;
}

.spotlight-actions .spotlight-ghost {
  border-color: rgba(246, 243, 236, 0.2);
  background: rgba(246, 243, 236, 0.05);
  color: var(--paper);
}

.spotlight-actions .spotlight-ghost:hover {
  border-color: rgba(246, 243, 236, 0.36);
  background: rgba(246, 243, 236, 0.1);
  color: #fff;
}

.chip svg {
  width: 13px;
  height: 13px;
}

.icon-btn.is-favorite svg,
.btn.is-favorite svg {
  fill: currentColor;
}

.btn.is-favorite {
  border-color: rgba(158, 59, 51, 0.3);
  background: rgba(158, 59, 51, 0.06);
  color: var(--red);
}

.btn--on-dark {
  border-color: rgba(246, 243, 236, 0.24);
  background: rgba(246, 243, 236, 0.06);
  color: var(--paper);
}

.btn--on-dark:hover {
  border-color: rgba(246, 243, 236, 0.42);
  background: rgba(246, 243, 236, 0.12);
  color: #fff;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-panel code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
}

@media (max-width: 860px) {
  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-seal {
    right: -4px;
    bottom: -10px;
  }

  .quote-disclaimer {
    margin-top: 0;
    padding: 12px 14px;
    font-size: 11.5px;
  }
}

.impression-arrow svg {
  width: 16px;
  height: 16px;
}

.impression-arrow {
  display: inline-flex;
}

/* 笔记表单：操作栏固定在弹窗底部，长表单也始终可以保存 */
.note-form {
  padding-bottom: 100px;
}

.note-form .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 26px -46px 0;
  padding: 16px 46px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.72), var(--paper) 38%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.note-form .form-error {
  position: relative;
  z-index: 5;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .note-form {
    padding-bottom: 94px;
  }

  .note-form .form-actions {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 640px) {
  .note-form .form-actions {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* 阅读模式：打开笔记时收起页头，进入更专注的阅读状态 */
body.is-reading .page-hero {
  display: none;
}

body.is-reading .page-body {
  padding-top: 14px;
}

body.is-reading .note-reader {
  padding-top: 24px;
}

@media (max-width: 760px) {
  body.is-reading .note-reader {
    padding-top: 18px;
  }
}


.quote-text a {
  color: inherit;
}

.quote-text a:hover {
  color: var(--accent-2);
}
