/* ============================================================
   浪漫哲学 Romantic Philosophy · 视觉系统
   深夜蓝 / 暖白 / 香槟金 / 雾紫 / 月光银
   ============================================================ */

:root {
  --bg: #f8f5ef;
  --bg-2: #f1ece1;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;
  --ink: #1a2030;
  --ink-2: #414a5c;
  --muted: #79818f;
  --line: rgba(26, 32, 48, .12);
  --line-strong: rgba(26, 32, 48, .22);
  --gold: #a9865a;
  --gold-2: #c9a86a;
  --gold-soft: rgba(169, 134, 90, .12);
  --plum: #83719f;
  --teal: #5f8480;
  --rose: #a9737c;
  --night: #0b1220;
  --night-2: #101a2c;
  --star: #e6d7b8;
  --shadow: 0 24px 64px -28px rgba(20, 26, 44, .28);
  --shadow-soft: 0 10px 30px -18px rgba(20, 26, 44, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #080d18;
  --bg-2: #0c1322;
  --surface: #101827;
  --surface-2: #0d1524;
  --ink: #ece7dc;
  --ink-2: #c3c8d2;
  --muted: #8e97a8;
  --line: rgba(236, 231, 220, .13);
  --line-strong: rgba(236, 231, 220, .24);
  --gold: #d3b184;
  --gold-2: #e0c69c;
  --gold-soft: rgba(211, 177, 132, .14);
  --plum: #a596bd;
  --teal: #8fb2ad;
  --rose: #c89aa2;
  --shadow: 0 26px 70px -30px rgba(0, 0, 0, .8);
  --shadow-soft: 0 12px 34px -18px rgba(0, 0, 0, .75);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #080d18;
    --bg-2: #0c1322;
    --surface: #101827;
    --surface-2: #0d1524;
    --ink: #ece7dc;
    --ink-2: #c3c8d2;
    --muted: #8e97a8;
    --line: rgba(236, 231, 220, .13);
    --line-strong: rgba(236, 231, 220, .24);
    --gold: #d3b184;
    --gold-2: #e0c69c;
    --gold-soft: rgba(211, 177, 132, .14);
    --plum: #a596bd;
    --teal: #8fb2ad;
    --rose: #c89aa2;
    --shadow: 0 26px 70px -30px rgba(0, 0, 0, .8);
    --shadow-soft: 0 12px 34px -18px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.22; margin: 0 0 .5em; letter-spacing: .01em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
::selection { background: var(--gold-2); color: #10131a; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .22; }

/* ---------------- 头部 ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-head { background: var(--bg); }
}
.head-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); background: var(--gold-soft);
}
.brand-mark .ico { width: 19px; height: 19px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-family: var(--font-display); font-size: 1.24rem; letter-spacing: .06em; font-weight: 600; }
.brand-word i { font-style: normal; font-size: .54rem; letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.nav-main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border: 0; background: none;
  font-size: .92rem; color: var(--ink-2); border-radius: 999px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--gold-soft); }
.nav-link.is-active { color: var(--gold); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 1px; background: var(--gold);
}
.nav-link .chev { width: 12px; height: 12px; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s var(--ease); display: flex; flex-direction: column; gap: 2px;
}
.dropdown-right { left: auto; right: 0; }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 8px 12px; border-radius: 9px; font-size: .9rem; color: var(--ink-2); }
.dropdown a:hover { background: var(--bg-2); color: var(--ink); }
.dropdown .dd-accent { color: var(--gold); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid transparent; background: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); transition: all .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.lang-switch {
  font-size: .76rem; letter-spacing: .12em; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .t-light { display: none; }
[data-theme="dark"] .theme-toggle .t-dark { display: none; }
[data-theme="dark"] .theme-toggle .t-light { display: block; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .theme-toggle .t-dark { display: none; }
  [data-theme="auto"] .theme-toggle .t-light { display: block; }
}
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; background: radial-gradient(120% 100% at 70% 0%, #16233a 0%, #0b1220 55%, #070c15 100%);
  color: #efe8da; min-height: 88vh; display: flex; align-items: center; padding: 96px 0 120px;
}
.hero-sky { position: absolute; inset: 0; color: var(--star); }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.nebula.n1 { width: 620px; height: 620px; left: -120px; top: -160px; background: radial-gradient(circle, rgba(139, 123, 168, .55), transparent 65%); }
.nebula.n2 { width: 760px; height: 520px; right: -180px; bottom: -200px; background: radial-gradient(circle, rgba(79, 116, 134, .42), transparent 68%); }
.hero-inner { position: relative; z-index: 3; }
.kicker {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px; font-weight: 500;
}
.kicker-light { color: #cbb287; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.1rem); font-weight: 300; line-height: 1.12; margin: 0 0 28px;
  letter-spacing: .02em; max-width: 15em;
}
.hero-title em { font-style: italic; color: #e4c898; }
.hero-text { font-size: 1.02rem; line-height: 1.9; color: #c3c8d2; max-width: 36em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; font-size: .92rem; letter-spacing: .02em; transition: all .25s var(--ease);
}
.btn .ico { width: 16px; height: 16px; }
.btn-gold { background: linear-gradient(135deg, #d3b182, #b08d57); color: #14110b; box-shadow: 0 12px 30px -12px rgba(200, 165, 110, .55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(200, 165, 110, .65); }
.btn-ghost { border-color: rgba(239, 232, 218, .3); color: #efe8da; }
.btn-ghost:hover { border-color: #cbb287; color: #e4c898; background: rgba(203, 178, 135, .08); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--gold); color: #14110b; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 44px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(239, 232, 218, .16); }
.hero-stats dt { font-family: var(--font-display); font-size: 2rem; color: #e4c898; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-size: .76rem; letter-spacing: .12em; color: #98a1b2; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 2; }
.moon-art { position: absolute; right: 6vw; top: 50%; transform: translateY(-50%); width: min(38vw, 460px); aspect-ratio: 1; z-index: 1; }
.moon {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf0 0%, #f0e0c4 40%, #d8c19a 70%, #b99d72 100%);
  box-shadow: 0 0 60px 10px rgba(240, 224, 196, .25), inset -18px -12px 40px rgba(120, 100, 70, .35);
}
.moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 68% 62%, rgba(150, 128, 96, .28) 0 6%, transparent 7%),
              radial-gradient(circle at 42% 72%, rgba(150, 128, 96, .22) 0 4%, transparent 5%),
              radial-gradient(circle at 58% 38%, rgba(150, 128, 96, .18) 0 3%, transparent 4%);
}
.moon-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(240, 224, 196, .18), transparent 62%); }
.orbit { position: absolute; inset: 0; color: #cbb287; }

/* ---------------- 通用 section ---------------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-2); }
.section-night { background: var(--night); color: #e8e2d6; }
.section-night .section-title { color: #efe8da; }
.section-night .section-text { color: #aeb6c4; }
.section-night .text-link { color: #d3b184; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 400; margin: 0 0 12px; }
.section-title.small { font-size: 1.6rem; margin-top: 56px; }
.section-text { color: var(--muted); max-width: 44em; margin: 0; font-size: .96rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; letter-spacing: .08em; color: var(--gold); white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.text-link:hover { border-color: var(--gold); }
.text-link .ico { width: 15px; height: 15px; }
.margin-note { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.8; color: var(--ink-2); margin: 12px 0 22px; }

/* ---------------- 心情条 ---------------- */
.mood-strip { padding: 44px 0 8px; }
.mood-strip-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.mood-strip-head h2 { font-size: 1.5rem; margin: 0; font-weight: 400; }
.mood-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mood-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .88rem; color: var(--ink-2);
  transition: all .22s var(--ease);
}
.mood-chip:hover { border-color: var(--mc, var(--gold)); transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--ink); }
.mood-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mc, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc, var(--gold)) 18%, transparent); }
.mood-chip-all { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-link { display: block; height: 100%; }
.card-art { position: relative; height: 148px; overflow: hidden; color: var(--star); display: flex; align-items: center; justify-content: center; }
.card-art .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-emotion { background: linear-gradient(135deg, #1b2b3f, #27424f 60%, #1b3038); }
.art-friction { background: linear-gradient(135deg, #26223a, #3b3352 60%, #241f33); }
.art-love { background: linear-gradient(135deg, #34202a, #4d2b36 60%, #2b1a22); }
.art-self { background: linear-gradient(135deg, #1e2b36, #354a56 60%, #1a252e); }
.art-stress { background: linear-gradient(135deg, #2a2823, #454036 60%, #24221d); }
.art-psychology { background: linear-gradient(135deg, #1b2933, #2d4650 60%, #17242c); }
.art-life { background: linear-gradient(135deg, #232d3c, #3a4a5e 60%, #1d2531); }
.art-story { background: linear-gradient(135deg, #2b2418, #473a24 60%, #221c13); }
.art-meditation { background: linear-gradient(135deg, #1c2a2a, #2f4845 60%, #172222); }
.art-glyph { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(230, 215, 184, .35); color: #e6d7b8; background: rgba(255, 255, 255, .04); }
.art-glyph .ico { width: 21px; height: 21px; }
.art-line { position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(230, 215, 184, .35), transparent); }
.card-body { padding: 22px 24px 24px; }
.card-kicker { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.card h3 { font-size: 1.24rem; margin: 0 0 10px; font-weight: 500; }
.card-sum { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); letter-spacing: .05em; margin: 0; }
.card-meta .ico { width: 14px; height: 14px; }

/* ---------------- 流派 ---------------- */
.school-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.school-pill {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); transition: background .25s, padding .25s;
}
.school-pill:nth-child(4n) { border-right: 0; }
.school-pill:hover { background: var(--surface); padding-left: 26px; }
.school-pill .num { font-size: .66rem; letter-spacing: .2em; color: var(--gold); }
.school-pill b { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; }
.school-pill i { font-style: normal; font-size: .76rem; color: var(--muted); letter-spacing: .06em; }

/* ---------------- 思想家 ---------------- */
.thinker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.thinker-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: all .28s var(--ease); overflow: hidden;
}
.thinker-card:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.mono {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.mono.gold { background: linear-gradient(135deg, rgba(201, 168, 106, .22), rgba(201, 168, 106, .05)); color: #8a6b3f; border-color: rgba(169, 134, 90, .45); }
.mono.plum { background: linear-gradient(135deg, rgba(139, 123, 168, .22), rgba(139, 123, 168, .05)); color: var(--plum); border-color: rgba(139, 123, 168, .4); }
.mono.teal { background: linear-gradient(135deg, rgba(95, 132, 128, .22), rgba(95, 132, 128, .05)); color: var(--teal); border-color: rgba(95, 132, 128, .4); }
.mono.rose { background: linear-gradient(135deg, rgba(169, 115, 124, .22), rgba(169, 115, 124, .05)); color: var(--rose); border-color: rgba(169, 115, 124, .4); }
.mono.ink { background: linear-gradient(135deg, rgba(60, 72, 94, .22), rgba(60, 72, 94, .05)); color: var(--ink-2); }
.mono.mist { background: linear-gradient(135deg, rgba(150, 160, 172, .25), rgba(150, 160, 172, .05)); color: var(--muted); }
.thinker-meta { display: flex; flex-direction: column; gap: 2px; }
.thinker-meta b { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; }
.thinker-meta i { font-style: normal; font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.thinker-meta em { font-style: normal; font-size: .7rem; color: var(--gold); margin-top: 2px; }
.thinker-tag { font-size: .82rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- 人生哲学列表 ---------------- */
.life-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid rgba(232, 226, 214, .16); }
.life-item { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(232, 226, 214, .16); transition: all .25s; }
.life-item:hover { padding-left: 8px; }
.life-item .idx { font-size: .7rem; letter-spacing: .16em; color: #cbb287; width: 24px; flex-shrink: 0; }
.life-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.life-txt b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; color: #efe8da; }
.life-txt i { font-style: normal; font-size: .78rem; color: #98a1b2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.life-item .ico { width: 16px; height: 16px; color: #cbb287; opacity: 0; transition: opacity .25s; }
.life-item:hover .ico { opacity: 1; }

/* ---------------- 每日 ---------------- */
.daily-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.daily-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); transition: all .28s var(--ease); min-height: 230px;
}
.daily-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.daily-quote { background: linear-gradient(150deg, #152135, #0e1728); color: #efe8da; border-color: transparent; }
.daily-quote blockquote { font-family: var(--font-display); font-size: 1.36rem; line-height: 1.75; margin: 6px 0; }
.dc-label { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0; }
.daily-quote .dc-label { color: #cbb287; }
.dc-by { font-size: .8rem; color: #98a1b2; margin: 0; }
.daily-card h3 { font-size: 1.16rem; margin: 4px 0 0; font-weight: 500; }
.daily-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 0; }
.daily-quote p { color: #c3c8d2; }
.dc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--gold); }
.daily-story { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }

/* ---------------- 书籍 ---------------- */
.book-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.book-mini { display: flex; flex-direction: column; gap: 12px; }
.book-mini b { font-size: .86rem; font-weight: 500; line-height: 1.5; }
.book-cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  aspect-ratio: 3 / 4.1; padding: 18px 16px; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 12px 28px -16px rgba(20, 26, 44, .6), inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #f3ead8; overflow: hidden; transition: transform .3s var(--ease);
}
.book-mini:hover .book-cover, .book-card:hover .book-cover { transform: translateY(-4px) rotate(-.6deg); }
.book-cover::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); }
.book-cover i { font-family: var(--font-display); font-style: normal; font-size: 1.06rem; line-height: 1.4; position: relative; z-index: 1; }
.book-cover em { font-style: normal; font-size: .68rem; letter-spacing: .1em; opacity: .72; position: relative; z-index: 1; }
.book-cover.c1 { background: linear-gradient(150deg, #1f3247, #0e1a29); }
.book-cover.c2 { background: linear-gradient(150deg, #3b2a2f, #1d1216); }
.book-cover.c3 { background: linear-gradient(150deg, #2b3a33, #131d19); }
.book-cover.c4 { background: linear-gradient(150deg, #3a3323, #1d1910); }
.book-cover.c5 { background: linear-gradient(150deg, #2c2b3f, #14131f); }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.book-card { display: flex; gap: 18px; align-items: flex-start; }
.book-card .book-cover { width: 104px; flex-shrink: 0; }
.book-info { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.book-info b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.book-info i { font-style: normal; font-size: .74rem; color: var(--gold); }
.book-info em { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ---------------- 社区 teaser ---------------- */
.community-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.ct-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ct-text p { color: var(--muted); }
.ct-text .btn { margin-top: 10px; }
.ct-cards { display: flex; flex-direction: column; gap: 14px; }
.ct-card {
  padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); transform: rotate(-.4deg);
}
.ct-card:nth-child(2) { transform: rotate(.6deg) translateX(18px); }
.ct-card p { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.7; margin: 0 0 8px; color: var(--ink-2); }
.ct-card span { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

/* ---------------- newsletter ---------------- */
.newsletter { padding: 64px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nl-inner h2 { font-size: 1.8rem; margin: 0 0 6px; }
.nl-inner p { color: var(--muted); margin: 0; font-size: .9rem; max-width: 34em; }
.nl-form { display: flex; gap: 10px; flex-shrink: 0; }
.nl-form input {
  width: 260px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem;
}
.nl-form input:focus { outline: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); outline-offset: 1px; }

/* ---------------- 页头 ---------------- */
.page-hero { position: relative; overflow: hidden; padding: 68px 0 72px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero.small { padding: 48px 0 52px; }
.page-hero-bg { position: absolute; inset: 0; color: var(--gold); opacity: .45; }
.page-hero-bg .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 400; margin: 10px 0 16px; }
.page-title.small { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-lede { max-width: 42em; color: var(--ink-2); font-size: 1.02rem; line-height: 1.85; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-style: normal; opacity: .5; }
.breadcrumb span { color: var(--ink-2); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.subnav a {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2);
  background: var(--surface);
}
.subnav a:hover { border-color: var(--gold); color: var(--gold); }
.subnav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------------- 文章 ---------------- */
.article-head { position: relative; padding: 52px 0 0; overflow: hidden; }
.article-head .wrap { position: relative; z-index: 2; }
.article-title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 400; line-height: 1.24; margin: 12px 0 16px; max-width: 20em; }
.article-sub { font-size: 1.06rem; color: var(--ink-2); max-width: 34em; line-height: 1.8; }
.article-question { font-family: var(--font-display); font-size: 1.36rem; color: var(--gold); margin: 6px 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 22px; padding: 22px 0; margin-top: 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); letter-spacing: .05em; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 14px; height: 14px; }
.dot-sep { margin: 0 8px; color: var(--line-strong); }
.reviewed { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); letter-spacing: 0; }
.reviewed .ico { width: 14px; height: 14px; }
.article-hero-art { position: relative; height: 190px; margin-top: 10px; color: var(--gold); overflow: hidden; }
.article-hero-art .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.article-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--bg) 78%); }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 70px; padding: 30px 0 90px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc-title { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; font-size: .8rem; color: var(--muted); line-height: 1.5; border-left: 1px solid transparent; margin-left: -1px; }
.toc li a:hover, .toc li a.on { color: var(--ink); border-color: var(--gold); }
.toc-actions { display: flex; gap: 6px; margin-top: 20px; }
.mini-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 8px; font-size: .68rem; color: var(--muted); }
.mini-btn:hover { color: var(--gold); border-color: var(--gold); }
.article-body { max-width: 720px; font-size: 1.06rem; line-height: 1.95; color: var(--ink-2); }
.article-body.fs-small { font-size: .98rem; }
.article-body.fs-large { font-size: 1.16rem; }
.art-sec { margin-bottom: 46px; scroll-margin-top: 100px; }
.art-sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.56rem; margin: 0 0 18px; color: var(--ink); }
.sec-num { font-family: var(--font-body); font-size: .66rem; letter-spacing: .16em; color: var(--gold); }
.article-body p { margin-bottom: 1.15em; }
.article-body p.first::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.4em; line-height: .86; padding: 6px 12px 0 0; color: var(--gold);
}
.art-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.art-list li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.art-list li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.art-steps { padding-left: 20px; }
.art-steps li { margin-bottom: 12px; padding-left: 6px; }
.art-steps li::marker { color: var(--gold); font-family: var(--font-display); }
.art-quote { margin: 30px 0; padding: 24px 28px; border-left: 2px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; }
.art-quote p { font-family: var(--font-display); font-size: 1.24rem; line-height: 1.8; margin: 0 0 8px; color: var(--ink); }
.art-quote cite { font-style: normal; font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0; margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.act-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .82rem; color: var(--ink-2); transition: all .2s;
}
.act-btn:hover { border-color: var(--gold); color: var(--gold); }
.act-btn.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.act-btn b { font-weight: 500; font-size: .78rem; }
.act-btn .ico { width: 16px; height: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row.big .tag { font-size: .86rem; padding: 7px 14px; }
.tag { font-size: .74rem; color: var(--muted); padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; }
.tag:hover { color: var(--gold); border-color: var(--gold); }
.source-box { margin: 26px 0; padding: 20px 22px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.sb-title { display: flex; align-items: center; gap: 7px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.source-box p { font-size: .84rem; color: var(--muted); line-height: 1.75; margin: 0 0 6px; }
.sb-fine { font-size: .76rem !important; opacity: .85; }
.sb-fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.inline-quotes { margin: 40px 0 20px; }
.iq-title { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prev-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; }
.pn { display: flex; flex-direction: column; gap: 4px; max-width: 46%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: all .2s; }
.pn:hover { border-color: var(--gold); }
.pn i { font-style: normal; font-size: .68rem; letter-spacing: .14em; color: var(--gold); }
.pn b { font-family: var(--font-display); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.pn.next { text-align: right; }
.read-progress { position: fixed; left: 0; top: 0; height: 2px; background: linear-gradient(to right, var(--gold), var(--plum)); width: 0; z-index: 100; transition: width .1s linear; }

/* ---------------- 语录 ---------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-grid.wide { grid-template-columns: repeat(3, 1fr); }
.quote-card { margin: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.section-night .quote-card { background: rgba(255, 255, 255, .04); border-color: rgba(232, 226, 214, .16); }
.qmark { color: var(--gold); opacity: .7; }
.qmark .ico { width: 22px; height: 22px; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.78; color: var(--ink); }
.section-night .quote-card blockquote { color: #efe8da; }
.quote-card figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: .76rem; color: var(--muted); }
.quote-card figcaption a { color: var(--gold); }
.quote-card figcaption i { font-style: normal; opacity: .8; }
.quote-card.inline { background: var(--gold-soft); border-color: transparent; margin: 22px 0; }

/* ---------------- 图书馆详情 ---------------- */
.book-hero { padding-top: 40px; }
.book-hero-inner { position: relative; }
.book-detail { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; margin-top: 24px; }
.book-cover.big { width: 200px; aspect-ratio: 3 / 4.15; padding: 28px 24px; }
.book-cover.big i { font-size: 1.5rem; }
.book-cover.big em { font-size: .8rem; }
.book-author { color: var(--gold); font-size: .9rem; letter-spacing: .04em; margin: -4px 0 18px; }
.chapter-list { list-style: none; padding: 0; counter-reset: ch; }
.chapter-list li { position: relative; padding: 14px 0 14px 42px; border-bottom: 1px solid var(--line); }
.chapter-list li::before { counter-increment: ch; content: counter(ch, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: .7rem; letter-spacing: .1em; color: var(--gold); }
.chapter-list b { display: block; font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; margin-bottom: 3px; }
.chapter-list span { font-size: .86rem; color: var(--muted); line-height: 1.7; }

/* ---------------- 思想家详情 ---------------- */
.thinker-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.thinker-hero-inner { position: relative; z-index: 2; }
.th-main { display: flex; gap: 42px; align-items: flex-start; margin-top: 10px; }
.th-monogram {
  width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line-strong); position: relative; background: var(--surface);
}
.th-monogram span { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; }
.th-monogram i { position: absolute; bottom: 14px; font-style: normal; font-size: .68rem; letter-spacing: .2em; color: var(--muted); }
.th-monogram.gold span { color: var(--gold); }
.th-monogram.plum span { color: var(--plum); }
.th-monogram.teal span { color: var(--teal); }
.th-monogram.rose span { color: var(--rose); }
.th-main .page-title { margin-top: 0; }
.th-alt { font-size: .9rem; color: var(--muted); letter-spacing: .05em; margin: -8px 0 14px; }
.th-alt span { color: var(--gold); margin-left: 8px; }
.th-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.th-tags span { font-size: .72rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.thinker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; align-items: start; }
.prose { font-size: 1.04rem; line-height: 1.92; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin: 42px 0 14px; color: var(--ink); }
.prose p { margin-bottom: 1.15em; }
.fact-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.fc-title { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.fact-card dl { margin: 0 0 8px; }
.fact-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.fact-card dt { color: var(--muted); flex-shrink: 0; }
.fact-card dd { margin: 0; text-align: right; color: var(--ink-2); }
.fc-works { list-style: none; padding: 0; margin: 0; }
.fc-works li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.fc-works b { font-weight: 500; }
.fc-works i { font-style: normal; color: var(--muted); font-size: .72rem; }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.idea-grid.two { grid-template-columns: repeat(2, 1fr); margin: 22px 0 34px; }
.idea-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.section-tint .idea-card { background: var(--bg); }
.idea-num { display: block; font-size: .68rem; letter-spacing: .18em; color: var(--gold); margin-bottom: 12px; }
.idea-card h3 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 500; }
.idea-card p { font-size: .9rem; color: var(--muted); line-height: 1.8; margin: 0; }
.figure-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.figure-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.figure-item b { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.figure-item i { font-style: normal; font-size: .8rem; color: var(--muted); }

/* ---------------- 心情页 ---------------- */
.mood-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 34px; }
.mood-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: all .25s var(--ease);
}
.mood-tile:hover, .mood-tile.on { border-color: var(--mc); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.mood-orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--mc) 70%); opacity: .85; box-shadow: 0 0 18px -4px var(--mc); }
.mood-tile b { font-size: .84rem; font-weight: 500; }
.mood-tile i { font-style: normal; font-size: .64rem; color: var(--muted); letter-spacing: .04em; }
.mood-result { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: start; padding-top: 20px; }
.mr-headline { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin: 6px 0 18px; }
.mr-text { font-size: 1.02rem; line-height: 1.9; color: var(--ink-2); }
.mr-prompt { margin-top: 26px; padding: 20px 22px; border-radius: 12px; background: var(--gold-soft); }
.mr-prompt p { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.mr-side { display: flex; flex-direction: column; gap: 18px; }
.mr-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mr-card h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.mr-card p { font-size: .88rem; color: var(--muted); }
.mr-card .thinker-card { padding: 12px 0 0; border: 0; background: none; box-shadow: none; flex-direction: row; align-items: center; gap: 10px; }
.mr-card .thinker-card .thinker-tag { display: none; }
.mr-card .mono { width: 38px; height: 38px; font-size: 1.1rem; }

/* ---------------- 信件 ---------------- */
.letter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.letter-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 24px;
  border: 1px solid var(--line); border-radius: 4px 16px 16px 4px; background: var(--surface);
  box-shadow: var(--shadow-soft); transition: all .3s var(--ease);
}
.letter-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--gold), transparent); opacity: .6; }
.letter-card:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow); border-color: var(--line-strong); }
.lc-seal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); margin-bottom: 6px; }
.lc-seal .ico { width: 16px; height: 16px; }
.letter-card b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; }
.letter-card i { font-style: normal; font-size: .72rem; color: var(--gold); }
.letter-card em { font-style: normal; font-size: .82rem; color: var(--muted); line-height: 1.7; margin: 4px 0 10px; }
.lc-open { margin-top: auto; font-size: .76rem; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.letter-paper {
  position: relative; max-width: 720px; margin: 34px auto; padding: 56px 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--shadow); background-image: linear-gradient(transparent 96%, var(--line) 96%); background-size: 100% 2.1em;
}
.letter-paper p { font-family: var(--font-display); font-size: 1.12rem; line-height: 2.1; color: var(--ink-2); }
.lp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: .7rem; letter-spacing: .2em; color: var(--gold); }
.lp-close { margin-top: 28px; text-align: right; font-style: italic; color: var(--gold); }
.letter-personalize { margin: 48px auto 0; max-width: 720px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.letter-personalize > p { font-size: .9rem; color: var(--muted); }
.letter-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.letter-form input, .letter-form textarea {
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; font-size: .9rem; resize: vertical;
}
.letter-form input:focus, .letter-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.letter-form .btn { align-self: flex-start; }
.letter-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.letter-result .letter-paper { margin: 0; padding: 30px 0; box-shadow: none; border: 0; background: none; }
.my-letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ml-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ml-item:hover { border-color: var(--gold); }
.ml-item b { font-size: .9rem; font-weight: 500; }
.ml-item span { font-size: .72rem; color: var(--muted); }

/* ---------------- 社区 ---------------- */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }
.post-form-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.post-form-card textarea {
  width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-size: .95rem; resize: vertical; min-height: 110px;
}
.pf-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pf-row input, .pf-row select {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-size: .86rem;
}
.pf-row input { flex: 1; min-width: 140px; }
.pf-row .btn { margin-left: auto; }
.pf-rule { display: flex; gap: 8px; font-size: .76rem; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.pf-rule .ico { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; color: var(--teal); }
.mood-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 18px; }
.mood-filter a { font-size: .76rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mood-filter a.on, .mood-filter a:hover { border-color: var(--gold); color: var(--gold); }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item { padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); }
.post-who { display: flex; flex-direction: column; line-height: 1.3; }
.post-who b { font-size: .84rem; font-weight: 500; }
.post-who i { font-style: normal; font-size: .68rem; color: var(--muted); }
.post-mood { margin-left: auto; font-size: .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.post-title { font-size: 1.1rem; margin: 0 0 8px; }
.post-body { font-size: .94rem; line-height: 1.85; color: var(--ink-2); margin: 0 0 14px; }
.post-actions { display: flex; gap: 16px; }
.mini-act { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font-size: .74rem; color: var(--muted); padding: 0; }
.mini-act:hover { color: var(--gold); }
.mini-act .ico { width: 14px; height: 14px; }
.post-comments { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pc-item { font-size: .84rem; line-height: 1.7; }
.pc-item b { color: var(--gold); font-weight: 500; margin-right: 8px; }
.pc-form { display: flex; gap: 8px; margin-top: 4px; }
.pc-form input { flex: 1; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .82rem; }
.pc-form button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0 14px; font-size: .78rem; }
.community-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.side-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.side-card p { font-size: .86rem; color: var(--muted); line-height: 1.75; }

/* ---------------- AI ---------------- */
.ai-wrap { max-width: 860px; }
.ai-chat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; box-shadow: var(--shadow-soft); }
.ai-msg { padding: 16px 20px; border-radius: 14px; margin-bottom: 14px; font-size: .94rem; line-height: 1.8; }
.ai-sys { background: var(--gold-soft); color: var(--ink-2); }
.ai-user { background: var(--ink); color: var(--bg); margin-left: 60px; }
.ai-bot { background: var(--bg-2); border: 1px solid var(--line); }
.ai-bot h3 { font-size: 1.06rem; margin: 16px 0 8px; color: var(--ink); }
.ai-bot h3:first-child { margin-top: 0; }
.ai-bot p { margin-bottom: .9em; }
.ai-bot ul, .ai-bot ol { padding-left: 1.3em; }
.ai-bot li { margin-bottom: 7px; }
.ai-bot .src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.ai-bot .src a { color: var(--gold); margin-right: 12px; }
.ai-crisis { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, var(--surface)); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; align-items: center; }
.ai-examples .dc-label { width: 100%; margin-bottom: 4px; }
.ai-ex { font-size: .8rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.ai-ex:hover { border-color: var(--gold); color: var(--gold); }
.ai-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.ai-form textarea { flex: 1; border: 0; background: none; resize: none; font: inherit; font-size: .94rem; color: var(--ink); padding: 8px; max-height: 160px; }
.ai-form textarea:focus { outline: none; }
.ai-fine { display: flex; gap: 8px; font-size: .74rem; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.ai-fine .ico { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

/* ---------------- 搜索 ---------------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 20, .62); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 14vh; }
.search-panel { width: min(640px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.search-form { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-strong); border-radius: 12px; }
.search-form input { flex: 1; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 0; }
.search-form input:focus { outline: none; }
.search-hint { font-size: .74rem; color: var(--muted); margin: 12px 4px 6px; }
.search-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 4px; }
.search-quick a { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.search-quick a:hover { color: var(--gold); }
body.overlay-open { overflow: hidden; }
.search-page-form { display: flex; gap: 10px; margin-top: 26px; max-width: 640px; }
.search-page-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.search-count { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.search-results { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sr-item { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.sr-item:hover { padding-left: 12px; background: var(--surface); }
.sr-badge { font-size: .66rem; letter-spacing: .1em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; flex-shrink: 0; }
.sr-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sr-body b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.45; }
.sr-body i { font-style: normal; font-size: .82rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item .ico { color: var(--gold); width: 16px; height: 16px; }
.empty-state { padding: 60px 0; }
.fav-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

/* ---------------- 每日详情 ---------------- */
.day-nav { display: flex; gap: 22px; margin-top: 26px; font-size: .8rem; }
.day-nav a { color: var(--gold); }
.daily-full { max-width: 860px; }
.d-block { display: block; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.d-quote { background: linear-gradient(150deg, #152135, #0e1728); color: #efe8da; border: 0; }
.d-quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.7; margin: 12px 0 16px; }
.d-quote .dc-by a { color: #cbb287; }
.d-quote .d-note { color: #a9b1c0; font-size: .86rem; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.d-two .d-block { margin-bottom: 18px; }
.d-block h3 { font-size: 1.24rem; margin: 8px 0 10px; }
.d-block p { font-size: .92rem; color: var(--muted); line-height: 1.8; }
.d-thought { font-family: var(--font-display); font-size: 1.16rem !important; color: var(--ink-2) !important; line-height: 1.8; }
.d-fine { font-size: .76rem !important; color: var(--muted); }
.d-book-inner { display: flex; gap: 22px; align-items: flex-start; margin-top: 10px; }
.d-book-inner .book-cover { width: 92px; flex-shrink: 0; }

/* ---------------- 静态页 ---------------- */
.legal h2 { margin-top: 40px; font-size: 1.36rem; }
.legal p { font-size: .96rem; color: var(--ink-2); line-height: 1.9; }
.legal h2:first-child { margin-top: 0; }

/* ---------------- 404 ---------------- */
.nf { position: relative; padding: 120px 0 140px; }
.nf-stars { position: absolute; inset: 0; color: var(--gold); opacity: .4; }
.nf-stars .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------------- 页脚 ---------------- */
.site-foot { background: var(--night); color: #b9c0cc; padding: 72px 0 28px; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 44px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: #efe8da; margin-bottom: 16px; }
.foot-logo .ico { color: #cbb287; }
.foot-brand p { font-size: .86rem; line-height: 1.8; color: #8f98a8; max-width: 26em; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #cbb287; }
.foot-contact .ico { width: 14px; height: 14px; }
.foot-col h4 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #cbb287; margin: 0 0 16px; font-weight: 500; }
.foot-col a { display: block; font-size: .86rem; color: #8f98a8; padding: 4px 0; }
.foot-col a:hover { color: #efe8da; }
.foot-help p { font-size: .8rem; line-height: 1.75; color: #7f8898; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.foot-legal a { font-size: .76rem; color: #8f98a8; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .74rem; color: #6f7888; }
.icp { color: #8f98a8; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 1px; }
.icp:hover { color: #cbb287; border-color: #cbb287; }
.foot-note { margin-left: auto; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: .84rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  box-shadow: var(--shadow); max-width: calc(100% - 40px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1120px) {
  .nav-main { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: .86rem; }
  .grid-4, .thinker-grid { grid-template-columns: repeat(3, 1fr); }
  .mood-grid { grid-template-columns: repeat(4, 1fr); }
  .letter-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .quote-grid.wide { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .school-strip { grid-template-columns: repeat(2, 1fr); }
  .school-pill:nth-child(4n) { border-right: 1px solid var(--line); }
  .school-pill:nth-child(2n) { border-right: 0; }
  .article-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 44px; }
  .moon-art { width: 320px; right: 4vw; opacity: .85; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding: 68px 0; }
  .head-inner { height: 64px; gap: 12px; }
  .nav-main {
    position: fixed; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 18px 22px; gap: 2px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
    max-height: calc(100vh - 64px); overflow: auto;
  }
  .nav-main.open { transform: none; opacity: 1; visibility: visible; }
  .nav-item { width: 100%; }
  .nav-link { display: flex; width: 100%; padding: 12px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-link.is-active::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 18px; display: none; background: none; }
  .has-menu:hover .dropdown { display: none; }
  .has-menu.open .dropdown { display: flex; }
  .nav-toggle { display: grid; }
  .hero { min-height: auto; padding: 64px 0 90px; }
  .hero-title { font-size: clamp(2.3rem, 8.4vw, 3.4rem); }
  .moon-art { position: relative; right: auto; top: auto; transform: none; width: 180px; margin: 34px 0 0; opacity: .9; }
  .hero-stats { gap: 28px; margin-top: 10px; }
  .hero-stats dt { font-size: 1.6rem; }
  .hero-stats dd { font-size: .68rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .thinker-grid { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: 1fr 1fr; }
  .daily-quote { grid-column: 1 / -1; }
  .life-list { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; }
  .toc li a { padding: 2px 0; border: 0; font-size: .78rem; }
  .toc-title { margin-bottom: 8px; }
  .toc-actions { display: none; }
  .thinker-layout { grid-template-columns: 1fr; gap: 34px; }
  .fact-card { position: static; }
  .idea-grid, .idea-grid.two { grid-template-columns: 1fr 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .community-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1; min-width: 240px; }
  .mood-result { grid-template-columns: 1fr; gap: 30px; }
  .book-row { grid-template-columns: repeat(3, 1fr); }
  .community-teaser { grid-template-columns: 1fr; gap: 30px; }
  .ct-card:nth-child(2) { transform: rotate(.6deg); }
  .nl-inner { flex-direction: column; align-items: flex-start; }
  .nl-form { width: 100%; }
  .nl-form input { flex: 1; width: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot-note { margin-left: 0; width: 100%; }
  .article-title { font-size: clamp(1.8rem, 6.4vw, 2.5rem); }
  .article-body { font-size: 1rem; }
  .th-main { flex-direction: column; gap: 22px; }
  .th-monogram { width: 100px; height: 100px; }
  .th-monogram span { font-size: 2.6rem; }
  .book-detail { grid-template-columns: 140px 1fr; gap: 26px; }
  .book-cover.big { width: 140px; }
  .d-two { grid-template-columns: 1fr; }
  .letter-paper { padding: 36px 28px; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .thinker-grid, .quote-grid, .quote-grid.wide, .book-grid, .letter-grid, .daily-grid { grid-template-columns: 1fr; }
  .school-strip { grid-template-columns: 1fr; }
  .school-pill, .school-pill:nth-child(2n), .school-pill:nth-child(4n) { border-right: 0; }
  .mood-grid { grid-template-columns: repeat(3, 1fr); }
  .idea-grid, .idea-grid.two { grid-template-columns: 1fr; }
  .book-row { grid-template-columns: repeat(2, 1fr); }
  .book-grid .book-card { flex-direction: column; }
  .book-grid .book-cover { width: 120px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .mood-strip-head { gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .letter-paper { padding: 28px 20px; }
  .letter-paper p { font-size: 1rem; }
  .article-question { font-size: 1.1rem; }
  .prev-next { flex-direction: column; }
  .pn { max-width: 100%; }
  .pn.next { text-align: left; }
  .iq-row { grid-template-columns: 1fr; }
  .ai-form { flex-direction: column; align-items: stretch; }
  .ai-form .btn { justify-content: center; }
  .ai-user { margin-left: 0; }
  .ai-chat { padding: 18px; }
  .pf-row .btn { width: 100%; justify-content: center; }
  .pf-row input, .pf-row select { width: 100%; }
  .search-page-form { flex-direction: column; }
  .book-detail { grid-template-columns: 1fr; }
  .book-cover.big { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
