
/* 智者洞察 SageInsight —— 简牍设计系统 v8 */
* { box-sizing: border-box; }

:root {
  /* v14 品牌 token：纸色 #FCF9F0 / 深蓝 #0B2443 / 金 #BD934B。
     品牌三色另存 --brand-* 固定值，供分享图与个人中心组件在明暗主题下通用。 */
  --bg: #FCF9F0;
  --surface: #FFFFFF;
  --bg-2: #F5F0E4;
  --line: #E8DFCC;
  --ink: #0B2443;
  --text: #2E2D2A;
  --muted: #6F6B64;
  --accent: #BD934B;
  --accent-soft: #F5EEDF;
  --insight: #6D5333;
  --insight-soft: #F3EEE5;
  --brand-paper: #FCF9F0;
  --brand-navy: #0B2443;
  --brand-gold: #BD934B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 12px 36px rgba(0,0,0,.06);
  --r: 14px;
  --display: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #141312;
  --surface: #1A1917;
  --bg-2: #242320;
  --line: #2E2C28;
  --ink: #F7F4ED;
  --text: #E8E4DB;
  --muted: #9C968A;
  --accent: #D4AF6A;
  --accent-soft: #2E271C;
  --insight: #D4B483;
  --insight-soft: #2E271C;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 16px 44px rgba(0,0,0,.45);
}
/* 深色模式下深蓝作为「文字色」的地方改用浅色，作为背景/图形色时仍是品牌深蓝 */
html[data-theme="dark"] .me-hero-brand b,
html[data-theme="dark"] .me-note-group h3 { color: var(--brand-gold); }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.82;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-soft); color: var(--insight); }

/* ---------- Header ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,249,240,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] .topnav { background: rgba(20,19,18,.96); }
.navwrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; max-width: 1120px; }
/* v14 导航多一个「我的」入口：所有项都禁止收缩，避免中文被压成竖排。 */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
/* v15 横向品牌全标：透明背景 SVG、无光晕、控制图标高度。
   用 CSS 背景而非两个 <img>，浏览器只下载当前主题那一张。 */
.brand-lockup, .about-lockup {
  display: block; font-size: 0; line-height: 0;
  background-image: url("/assets/brand-lockup.svg?v=8bbd0489");
  background-repeat: no-repeat; background-position: left center;
  background-size: contain;
}
html[data-theme="dark"] .brand-lockup {
  background-image: url("/assets/brand-lockup-dark.svg?v=df9aa296");
}
.brand .brand-lockup { width: 240px; height: 32px; }
.navlinks { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: 0 0 auto; }
.navlinks > a, .navlinks > button {
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent; background: transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap; flex: 0 0 auto;
}
.navlinks > a.active { color: var(--ink); background: var(--accent-soft); }
.navlinks > a:hover, .ser-btn-nav:hover, .theme-toggle:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.insights-back { margin: 26px 0 -30px; font-size: 13.5px; color: var(--muted); }
.insights-back a { color: var(--accent); font-weight: 600; }
.insights-back span { margin-left: 6px; }
.today-empty { text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 16px; }
.ser-btn-nav { display: inline-flex; align-items: center; gap: 6px; border-color: var(--line); color: var(--text); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.ic-moon { display: none; }
html[data-theme="dark"] .ic-sun { display: none; }
html[data-theme="dark"] .ic-moon { display: block; }
/* 小屏：导航项仍不换行（避免中文竖排），改由导航自身横向滚动，
   否则固定约 800px 的 .navlinks 会把 body 撑宽，关于页品牌全标也会被裁。 */
@media (max-width: 1000px) {
  .navwrap { gap: 6px; }
  .brand .brand-lockup { width: 184px; height: 25px; }
  .navlinks { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .navlinks::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 74px 0 42px; text-align: center; }
.hero-title {
  margin: 0 0 18px; font-family: var(--display); font-size: clamp(44px, 7vw, 76px);
  font-weight: 700; color: var(--ink); letter-spacing: 2px; line-height: 1.12;
}
.hero-sub { margin: 0 auto 26px; max-width: none; font-size: 17px; color: var(--muted); line-height: 1.8; white-space: nowrap; }
.hero-rule { width: 64px; height: 1px; background: var(--accent); margin: 0 auto 22px; }
.hero-stats { display: inline-flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); letter-spacing: .3px; }
.hero-stats b { color: var(--ink); font-weight: 700; margin-right: 4px; font-size: 15px; }
@media (max-width: 900px) { .hero-sub { white-space: normal; font-size: 15px; } }

/* ---------- Sage Directory ---------- */
.sage-dir { margin: 6px 0 52px; }
.sage-dir-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase;
}
.sage-dir-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sage-item { }
.sage-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 96px; padding: 14px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.sage-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
.sage-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 15px; font-weight: 700;
}
.sage-body { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sage-name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sage-count { font-size: 12px; color: var(--muted); }

/* ---------- Filters ---------- */
.filters { margin: 0 0 34px; }
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.filter-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.filter-select {
  appearance: none; padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--text); font-size: 13.5px; font-family: inherit; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F6B64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.filter-select:focus { outline: none; border-color: var(--accent); }
.search-box { flex: 1; min-width: 180px; position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.sort-box { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Grid & Cards ---------- */
.grid-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 20px; }
.grid-title { margin: 0; font-family: var(--display); font-size: 20px; color: var(--ink); font-weight: 700; }
.grid-count { font-size: 13px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.person-avatar {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 12px; font-weight: 700;
}
.badge { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.badge:hover { color: var(--accent); text-decoration: none; }
.date { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.card-title { margin: 0 0 14px; font-size: 18px; line-height: 1.45; color: var(--ink); font-weight: 800; letter-spacing: .2px; }
.point { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.8; }
.quote {
  margin: 0 0 16px; padding: 16px 18px;
  border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0;
  background: var(--accent-soft); color: var(--insight);
  font-family: var(--display); font-size: 17px; line-height: 1.72;
}
.insight { margin: 0 0 16px; font-size: 14px; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.insight-label { flex: 0 0 auto; background: var(--insight-soft); color: var(--insight); font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .5px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 11.5px; color: var(--muted); background: var(--bg-2); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); }
.src { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); font-size: 16px; }

/* ---------- Serendipity ---------- */
.serendipity { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(20,19,18,.94); }
.serendipity.open { display: flex; }
.ser-close { position: absolute; top: 24px; right: 24px; background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; opacity: .7; }
.ser-close:hover { opacity: 1; }
.ser-inner { max-width: 740px; text-align: center; color: #f0ece4; }
.ser-mark { font-family: var(--display); font-size: 100px; line-height: 1; color: var(--accent); opacity: .35; margin-bottom: 12px; }
.ser-quote { font-family: var(--display); font-size: clamp(24px, 4vw, 36px); line-height: 1.55; margin: 0 0 24px; }
.ser-meta { font-size: 15px; color: rgba(240,236,228,.75); margin-bottom: 28px; }
.ser-actions { display: inline-flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ser-btn { padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.ser-btn:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ---------- Person page ---------- */
.crumbs { margin: 24px 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.person-head { padding: 32px 0 28px; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.person-head h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(32px, 5vw, 48px); color: var(--ink); font-weight: 700; }
.person-tags { justify-content: center; }
.person-meta { color: var(--muted); font-size: 15px; margin-top: 8px; }
.page-title { margin: 0 0 8px; font-family: var(--display); font-size: 32px; color: var(--ink); font-weight: 700; }
.page-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.page-head { margin: 44px 0 6px; }
.page-head h1 { margin: 0 0 6px; }
.desc { color: var(--muted); font-size: 16px; line-height: 1.85; margin: 0 0 30px; }
.desc.lead { font-size: 18px; color: var(--text); max-width: 760px; line-height: 1.9; }
.daily-list, .synth-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.list-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.list-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.list-item p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.75; }
.list-meta { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- Daily ---------- */
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.date-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.date-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
.date-card-date { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.date-card-meta { font-size: 13.5px; color: var(--muted); }
.date-card-avatars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--display); }
.date-card-arrow { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.daily-body { margin-top: 8px; }
.daily-group { margin-bottom: 48px; }
.daily-group-head {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px 10px 10px; box-shadow: var(--shadow-sm); margin: 0 0 20px;
}
.daily-group-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; font-weight: 700;
}
.daily-group-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.daily-group-count { font-size: 13px; color: var(--muted); font-weight: 500; }
.daily-grid { margin-bottom: 28px; }
.daily-text-card .person-avatar { background: transparent; color: var(--accent); font-size: 15px; }

/* ---------- Synthesis Index ---------- */
.syn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.syn-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.syn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
.syn-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; font-weight: 700; }
.syn-card-name { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.syn-card-period { font-size: 12px; color: var(--accent); font-weight: 600; }
.syn-card-summary { font-size: 14px; color: var(--text); line-height: 1.75; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.syn-card-arrow { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.syn-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.syn-search-box { flex: 1; min-width: 240px; max-width: 420px; }
.syn-count { font-size: 13px; color: var(--muted); }

/* ---------- Synthesis Detail Page ---------- */
.synthesis-page { max-width: 760px; margin: 0 auto; }
.synthesis-head { text-align: center; margin-bottom: 42px; }
.synthesis-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.synthesis-head h1 { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.synthesis-period { font-size: 14px; color: var(--accent); font-weight: 600; margin: 0; }
.synthesis-article { font-size: 16px; line-height: 1.85; color: var(--text); }
.synthesis-article h1 { font-family: var(--display); font-size: 28px; color: var(--ink); margin: 42px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.synthesis-article h2 { font-family: var(--display); font-size: 22px; color: var(--ink); margin: 36px 0 14px; }
.synthesis-article h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.synthesis-article p { margin: 0 0 16px; }
.synthesis-article ul { margin: 0 0 18px; padding-left: 24px; }
.synthesis-article li { margin-bottom: 8px; }
.synthesis-article blockquote { margin: 24px 0; padding: 18px 22px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; color: var(--insight); font-family: var(--display); font-size: 16px; line-height: 1.75; }
.synthesis-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.synthesis-article ol { margin: 0 0 18px; padding-left: 24px; }
.synthesis-article ol li { margin-bottom: 10px; }
.synthesis-article hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.synthesis-article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.synthesis-article th, .synthesis-article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.synthesis-article th { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.synthesis-foot { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.synthesis-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.synthesis-back:hover { text-decoration: none; }

/* ---------- Synthesis Teaser (on person page) ---------- */
.synthesis-teaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 42px; text-align: center; }
.syn-teaser-head { margin-bottom: 12px; }
.syn-teaser-kicker { display: block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.syn-teaser-head h3 { font-family: var(--display); font-size: 22px; color: var(--ink); margin: 0; }
.syn-teaser-desc { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 560px; margin: 0 auto 18px; }
.syn-teaser-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.syn-teaser-btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); text-decoration: none; }

/* ---------- About Page ---------- */
.about-hero { text-align: center; padding: 22px 0 46px; }
/* 品牌全标替代原「小圆 logo + 关于 智者洞察」文字标题。
   v15 换成横向紧凑全标（1654:221 真矢量 SVG），高度约 110px，
   不再有旧版的大块上下留白。h1 内保留可读文字供屏幕阅读器 / SEO。 */
.about-lockup {
  width: min(820px, 100%); aspect-ratio: 1654 / 221;
  margin: 0 auto 30px; position: relative;
  background-position: center;
}
.about-lockup span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
html[data-theme="dark"] .about-lockup {
  background-image: url("/assets/brand-lockup-dark.svg?v=df9aa296");
}
.about-lead { max-width: 680px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: var(--text); }
@media (max-width: 640px) {
  .about-hero { padding: 16px 0 34px; }
  .about-lockup { margin-bottom: 20px; }
  .about-lead { font-size: 16px; }
}
.about-section { margin-bottom: 56px; }
.about-section-title { font-family: var(--display); font-size: 22px; color: var(--ink); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.about-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.about-card-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.about-card h3 { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 10px 0 8px; }
.about-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.about-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.about-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.about-step strong { font-family: var(--display); font-size: 17px; color: var(--ink); }
.about-step span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.about-reads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.about-read { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.about-read:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
.about-read-title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); }
.about-read span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.about-note { max-width: 760px; margin: 0 auto; }
.about-note blockquote { margin: 0; padding: 22px 26px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; color: var(--insight); font-size: 15px; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; padding: 42px 0; border-top: 1px solid var(--line); text-align: center; }
.foot-brand .brand-lockup { width: 260px; height: 35px; background-position: center; margin: 0 auto 10px; }
/* 加宽到 880px：免责声明前半句 +「建议反馈：」约 58 个全角字，
   760px 会把「馈：」挤到下一行；留 120px 余量兼容不同系统字体渲染。 */
.site-footer .foot-note { margin: 12px auto 0; max-width: 880px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .navwrap { height: 56px; }
  .brand .brand-lockup { width: 160px; height: 22px; }
  .foot-brand .brand-lockup { width: 210px; height: 28px; }
  .navlinks > a { font-size: 13px; padding: 6px 8px; }
  .hero { padding: 44px 0 28px; }
  .hero-stats { flex-direction: column; gap: 6px; }
  .sage-list { gap: 8px; }
  .sage-item { flex: 1 1 130px; min-width: 130px; max-width: 100%; }
  .filter-bar { border-radius: var(--r); gap: 8px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card { padding: 20px; }
  .ser-quote { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .sage-link { transition: none; }
}

.subscribe{margin:40px 0;display:flex;justify-content:center}
.sub-inner{max-width:760px;width:100%;background:linear-gradient(180deg,#fffdf8,#f6f1e7);border:1px solid #e7ddc9;border-radius:18px;padding:34px 28px;text-align:center;box-shadow:0 10px 30px rgba(60,45,20,.06)}
.sub-title{font-family:var(--display);font-size:23px;font-weight:700;color:var(--ink);margin:0 0 8px}
.sub-desc{color:var(--muted);font-size:15px;line-height:1.7;margin:0 0 20px}
.sub-action{display:flex;justify-content:center}
.sub-btn{display:inline-block;background:var(--accent);color:#fff;font-weight:600;padding:12px 22px;border-radius:999px;text-decoration:none;font-size:15px}
.sub-btn:hover{filter:brightness(1.05)}
.sub-note{color:var(--muted);font-size:14px;margin:0}
.sub-rss-line{margin:16px 0 0;font-size:13px;color:var(--muted)}
.sub-rss-line a{color:var(--accent);font-weight:600}
.foot-links{margin:10px 0 0;font-size:13px;color:var(--muted)}
.foot-links a{color:var(--accent);text-decoration:none}

/* ---------- 今日精选：2 列网格 ---------- */
.today-hero{text-align:center;padding:52px 0 30px}
.today-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 18px;border-radius:999px;
  background:var(--bg-2);color:var(--muted);font-size:13px;font-weight:600;letter-spacing:1px}
.today-h1{margin:18px 0 8px;font-family:var(--display);font-size:clamp(38px,5.4vw,60px);
  font-weight:700;color:var(--ink);letter-spacing:3px;line-height:1.15}
.today-date{margin:0;color:var(--muted);font-size:15px;letter-spacing:1px}
.today-lead{max-width:660px;margin:16px auto 0;color:var(--text);font-size:16px;line-height:1.9}
.today-jump{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0 0}
.today-jump a{padding:8px 16px;border:1px solid var(--line);border-radius:999px;
  font-size:13.5px;color:var(--muted);background:var(--surface)}
.today-jump a:hover{color:var(--ink);border-color:var(--accent);text-decoration:none}
.today-empty{max-width:660px;margin:32px auto;padding:28px;border:1px dashed var(--line);
  border-radius:14px;color:var(--muted);font-size:15px;line-height:1.9}
.pick-list{max-width:1120px;margin:0 auto;display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:stretch}
.pick-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:18px;padding:28px 30px 24px;box-shadow:var(--shadow-md)}
.pick-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pick-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 15px;border-radius:999px;
  border:1px solid var(--line);background:var(--bg-2);color:var(--muted);
  font-family:inherit;font-size:14px;font-weight:600;letter-spacing:.5px;cursor:pointer;
  transition:background .15s,color .15s,border-color .15s}
.pick-badge:hover{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.pick-badge-star{display:inline-flex;align-items:center}
.pick-badge-star svg{display:block}
.pick-save[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
.pick-save[aria-pressed="true"] .pick-badge-star path{fill:currentColor}
.pick-rank{font-size:12px;color:var(--muted);letter-spacing:1.5px}
.pick-title{margin:20px 0 22px;font-family:var(--display);font-size:clamp(23px,2.5vw,32px);
  font-weight:700;line-height:1.4;letter-spacing:.3px;color:var(--ink)}
.pick-quote{position:relative;margin:0;padding:20px 22px 18px 58px;border-radius:14px;
  background:var(--bg-2);border:1px solid var(--line)}
.pick-quote-mark{position:absolute;left:14px;top:4px;font-family:var(--display);
  font-size:58px;line-height:1;color:var(--accent);opacity:.45}
.pick-quote blockquote{margin:0;font-family:var(--display);font-size:clamp(16px,1.5vw,18px);
  line-height:1.75;color:var(--text);letter-spacing:.2px}
.pick-quote-kind{display:block;margin-top:10px;font-size:11.5px;letter-spacing:1px;color:var(--muted)}
.pick-rule{border:0;border-top:1px solid var(--line);margin:22px 0}
.pick-insight-head{display:flex;align-items:center;gap:10px}
.pick-bulb{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:50%;background:#2f6fd0;color:#fff;flex:0 0 32px}
.pick-insight-head h3{margin:0;font-family:var(--display);font-size:21px;font-weight:700;color:#2f6fd0}
.pick-insight-text{margin:12px 0 0;font-size:clamp(15px,1.4vw,16.5px);line-height:1.85;color:var(--text)}
.pick-author{display:flex;align-items:center;gap:12px}
.pick-pencil{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
  border-radius:50%;border:1px solid var(--line);color:var(--muted);flex:0 0 40px}
.pick-author-body{display:flex;flex-direction:column;gap:7px}
.pick-name{font-family:var(--display);font-size:18px;font-weight:700;color:var(--ink)}
.pick-name:hover{color:var(--accent);text-decoration:none}
.pick-tags{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.pick-tag{display:inline-block;padding:3px 11px;border-radius:999px;background:var(--bg-2);
  color:var(--muted);font-size:12.5px}
.pick-tag-dot{color:var(--muted);font-size:13px}
.pick-more{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
.pick-more summary{cursor:pointer;font-size:13.5px;color:var(--muted);list-style:none}
.pick-more summary::-webkit-details-marker{display:none}
.pick-more summary::before{content:"＋";margin-right:8px;color:var(--accent)}
.pick-more[open] summary::before{content:"－"}
.pick-more-body{padding:14px 2px 2px;font-size:13.5px;color:var(--text);line-height:1.85}
.pick-point{margin:0 0 10px}
.pick-src{color:var(--accent);font-weight:600;font-size:13px}
.today-out{text-align:center;margin:40px 0 12px;display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.today-out a{padding:12px 24px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);font-size:14.5px;color:var(--text);font-weight:600}
.today-out a.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.today-out a:hover{text-decoration:none;filter:brightness(1.04)}
.today-index-list{list-style:none;padding:0;margin:18px 0 0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.today-index-list a{display:block;padding:14px 16px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);font-size:14px}
.today-index-list a:hover{text-decoration:none;border-color:var(--accent)}
.today-index-list b{display:block;color:var(--ink);font-size:15px}
.today-index-list span{color:var(--muted);font-size:12.5px}
/* ---------- 收藏：导航入口 + 抽屉 ---------- */
.fav-btn-nav{display:inline-flex;align-items:center;gap:6px}
.fav-btn-nav svg{display:block}
.fav-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
  padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700}
.fav-overlay{position:fixed;inset:0;z-index:200;display:none;justify-content:center;
  align-items:flex-start;padding:8vh 16px 16px;background:rgba(20,18,14,.55);overflow:auto}
.fav-overlay.open{display:flex}
.fav-panel{width:min(640px,100%);max-height:82vh;overflow:auto;padding:26px 28px 28px;
  border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-md)}
.fav-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fav-head h2{margin:0;font-family:var(--display);font-size:24px;color:var(--ink)}
.fav-close{border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.fav-note{margin:8px 0 18px;font-size:13px;color:var(--muted);line-height:1.7}
.fav-item{padding:16px 0;border-top:1px solid var(--line)}
.fav-item h3{margin:0 0 8px;font-family:var(--display);font-size:18px;line-height:1.5;color:var(--ink)}
.fav-item-q,.fav-item-i{margin:0 0 8px;font-size:14px;line-height:1.75;color:var(--text)}
.fav-item-i{margin-bottom:10px}
.fav-item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12.5px;color:var(--muted)}
.fav-item-meta a{color:var(--accent);font-weight:600}
.fav-item-meta a:hover{text-decoration:none;filter:brightness(1.1)}
.fav-remove{margin-left:auto;padding:4px 12px;border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--muted);font-family:inherit;font-size:12.5px;cursor:pointer}
.fav-remove:hover{color:var(--accent);border-color:var(--accent)}
.fav-empty{margin:22px 0 0;text-align:center;font-size:14px;line-height:1.9;color:var(--muted)}
html[data-theme="dark"] .pick-bulb{background:#3d7bdc}
html[data-theme="dark"] .pick-insight-head h3{color:#8fb6f0}
html[data-theme="dark"] .pick-quote{background:var(--bg-2)}
html[data-theme="dark"] .fav-overlay{background:rgba(0,0,0,.66)}
@media(max-width:900px){
  .pick-list{grid-template-columns:1fr;max-width:680px;gap:22px}
  .pick-title{font-size:clamp(24px,4vw,30px)}
}
@media(max-width:760px){
  .today-hero{padding:40px 0 22px}
  .pick-card{padding:24px 22px 22px;border-radius:14px}
  .pick-quote{padding:20px 18px 18px 52px}
  .pick-quote-mark{left:12px;font-size:52px}
  .pick-title{margin:18px 0 20px}
  .pick-rule{margin:20px 0}
  .today-out{margin:32px 0 8px}
  .fav-overlay{padding:4vh 12px 12px}
  .fav-panel{padding:20px 18px 22px;max-height:90vh}
}
.fav-count[hidden]{display:none}

/* ---------- 主题学习：栏目首页 3 列 ---------- */
.topic-teaser{max-width:1120px;margin:46px auto 0;padding:28px 30px 30px;
  border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}
.topic-teaser-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap}
.topic-teaser-head h2{margin:0;font-family:var(--display);font-size:23px;color:var(--ink)}
.topic-teaser-head a{font-size:13.5px;color:var(--accent);font-weight:600}
.topic-teaser-head a:hover{text-decoration:none;filter:brightness(1.1)}
.topic-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.topic-mini{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border:1px solid var(--line);
  border-radius:12px;background:var(--bg-2);color:var(--ink)}
.topic-mini:hover{text-decoration:none;border-color:var(--accent);background:var(--accent-soft)}
.topic-mini b{font-size:14.5px;font-weight:700}
.topic-mini span{font-size:12px;color:var(--muted)}
.topics-hero{text-align:center;padding:52px 0 34px}
.topics-kicker{display:inline-flex;align-items:center;padding:7px 18px;border-radius:999px;
  background:var(--bg-2);color:var(--muted);font-size:13px;font-weight:600;letter-spacing:1px}
.topics-h1{margin:18px 0 10px;font-family:var(--display);font-size:clamp(38px,5.4vw,58px);
  font-weight:700;color:var(--ink);letter-spacing:3px;line-height:1.15}
.topics-lead{max-width:700px;margin:0 auto;color:var(--text);font-size:16px;line-height:1.9}
.topics-summary{margin:14px 0 0;color:var(--muted);font-size:14px;letter-spacing:.5px}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1120px;margin:0 auto}
.topic-tile{position:relative;display:flex;flex-direction:column;gap:16px;padding:26px 26px 22px;
  border:1px solid var(--line);border-radius:16px;background:var(--surface);
  box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s,transform .15s}
.topic-tile:hover{text-decoration:none;border-color:#3f74c9;box-shadow:var(--shadow-md);
  transform:translateY(-2px)}
.topic-tile-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;
  border-radius:12px;background:#eaf1fd;color:#2f6fd0;flex:0 0 46px}
.topic-tile-body h2{margin:0 0 8px;font-family:var(--display);font-size:23px;color:var(--ink)}
.topic-tile-body p{margin:0;min-height:52px;font-size:13.5px;line-height:1.8;color:var(--muted)}
.topic-tile-go{display:inline-block;margin-top:12px;font-size:13.5px;font-weight:700;color:#2f6fd0}
.topic-tile-count{display:block;padding-top:14px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--muted)}
.topics-foot{margin:46px auto 20px;max-width:1120px;text-align:center}
.topics-foot h2{font-family:var(--display);font-size:22px;color:var(--ink)}
.topics-foot p{color:var(--muted);font-size:14px}
.topics-foot-links,.topic-bottom-actions{display:flex;justify-content:center;align-items:center;
  gap:12px;flex-wrap:wrap;margin-top:16px}
.topics-foot-links a{padding:11px 22px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);font-size:14px;color:var(--text);font-weight:600}
.topics-foot-links a.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.topics-foot-links a:hover{text-decoration:none;border-color:var(--accent)}
/* ---------- 主题详情：左主栏 + 右侧栏 ---------- */
.topic-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;
  max-width:1180px;margin:0 auto;padding:38px 0 20px}
.topic-main{min-width:0}
.topic-hero{display:flex;gap:24px;align-items:flex-start;padding-bottom:26px;
  border-bottom:1px solid var(--line)}
.topic-hero-icon{display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;
  border-radius:50%;background:#eaf1fd;color:#2f6fd0;flex:0 0 88px}
.topic-hero-icon svg{width:46px;height:46px}
.topic-hero-body{min-width:0}
.topic-back{font-size:13px;color:var(--muted)}
.topic-back:hover{text-decoration:none;color:var(--accent)}
.topic-h1{margin:8px 0 8px;font-family:var(--display);font-size:clamp(34px,4.4vw,48px);
  font-weight:700;color:var(--ink);letter-spacing:2px;line-height:1.2}
.topic-lead{margin:0 0 8px;font-size:16px;line-height:1.8;color:var(--text)}
.topic-meta-line{margin:0;font-size:13px;line-height:1.8;color:var(--muted)}
.topic-meta-line b{color:var(--text);font-weight:600}
.topic-progress{margin-top:18px}
.topic-progress-label{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.topic-progress-label b{color:#2f6fd0;font-size:15px}
.topic-progress-track{height:8px;margin-top:8px;border-radius:999px;background:var(--bg-2);overflow:hidden}
.topic-progress-fill{height:100%;width:0;border-radius:999px;background:#2f6fd0;transition:width .25s}
.topic-progress-note{margin:8px 0 0;font-size:12px;color:var(--muted)}
.topic-path{margin-top:26px}
.topic-path h2,.topic-cards-head h2,.topic-bottom h2,.topic-aside-card h2{
  font-family:var(--display);font-size:21px;color:var(--ink);margin:0 0 14px}
.topic-path-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.topic-path-btn{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;
  border:1px solid var(--line);border-radius:10px;background:var(--surface);
  font-family:inherit;font-size:14.5px;color:var(--text);text-align:left;cursor:pointer}
.topic-path-btn:hover{border-color:#3f74c9}
.topic-path-btn.is-active{border-color:#3f74c9;background:#eaf1fd;color:#1f4f9c;font-weight:700}
.topic-path-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;
  border-radius:50%;background:#2f6fd0;color:#fff;font-size:12px;font-weight:700;flex:0 0 24px}
.topic-path-btn:not(.is-active) .topic-path-num{background:var(--bg-2);color:var(--muted)}
.topic-path-name{flex:1}
.topic-path-count{font-size:12.5px;color:var(--muted);font-weight:400}
.topic-path-btn.is-active .topic-path-count{color:#1f4f9c}
.topic-path-arrow{font-size:16px;color:var(--muted)}
.topic-cards-head{display:flex;align-items:center;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin:30px 0 14px}
.topic-cards-head h2{margin:0}
.topic-sort{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);
  border-radius:999px;background:var(--surface)}
.topic-sort button{padding:7px 15px;border:0;border-radius:999px;background:transparent;
  font-family:inherit;font-size:13px;color:var(--muted);cursor:pointer}
.topic-sort button.is-active{background:#2f6fd0;color:#fff;font-weight:600}
.topic-cards{display:flex;flex-direction:column;gap:14px}
.topic-card{border:1px solid var(--line);border-radius:14px;background:var(--surface);
  padding:20px 22px 16px;box-shadow:var(--shadow-sm)}
.topic-card[hidden]{display:none}
.topic-card.is-read{border-color:#c9dbf3;background:#fbfdff}
.topic-card-top{display:flex;gap:14px;align-items:flex-start}
.topic-qmark{flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:9px;background:#eaf1fd;color:#2f6fd0;
  font-family:var(--display);font-size:26px;line-height:1}
.topic-card-body{min-width:0;flex:1}
.topic-card-title{margin:0 0 8px;font-family:var(--display);font-size:18px;
  line-height:1.5;color:var(--ink)}
.topic-card-quote{margin:0 0 8px;font-family:var(--display);font-size:15.5px;
  line-height:1.75;color:var(--text);font-weight:600}
.topic-quote-kind{margin-left:8px;font-size:11px;font-weight:400;color:var(--muted);
  letter-spacing:.5px}
.topic-card-insight{margin:0;font-size:13.5px;line-height:1.8;color:var(--text)}
.topic-card-insight b{color:#2f6fd0}
.topic-card-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px;
  font-size:12px;color:var(--muted)}
.topic-card-meta a{font-weight:700;color:#2f6fd0}
.topic-card-meta a:hover{text-decoration:none;filter:brightness(1.1)}
.topic-tags{display:inline-flex;gap:6px;flex-wrap:wrap}
.topic-tag{padding:2px 9px;border-radius:999px;background:var(--bg-2);font-size:11.5px}
.topic-card-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 0 auto}
.topic-save{font-size:12.5px;padding:5px 12px}
.topic-share{padding:5px 12px;border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--muted);font-family:inherit;font-size:12.5px;cursor:pointer}
.topic-share:hover{color:var(--accent);border-color:var(--accent)}
.topic-read{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;
  color:var(--muted);cursor:pointer;white-space:nowrap}
.topic-read input{width:15px;height:15px;accent-color:#2f6fd0;cursor:pointer}
.topic-more{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.topic-more summary{cursor:pointer;font-size:12.5px;color:var(--muted);list-style:none}
.topic-more summary::-webkit-details-marker{display:none}
.topic-more summary::before{content:"＋";margin-right:7px;color:#2f6fd0}
.topic-more[open] summary::before{content:"－"}
.topic-more-body{padding:10px 2px 2px;font-size:13px;line-height:1.8;color:var(--text)}
.topic-more-body p{margin:0 0 8px}
.topic-src{color:var(--accent);font-weight:600;font-size:12.5px}
.topic-empty{padding:28px;text-align:center;border:1px dashed var(--line);
  border-radius:12px;color:var(--muted);font-size:14px;line-height:1.9}
.topic-layout .topic-aside{display:flex;flex-direction:column;gap:16px}
.topic-aside-card{padding:20px;border:1px solid var(--line);border-radius:14px;
  background:var(--surface)}
.topic-aside-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.topic-aside-head a{font-size:12.5px;color:#2f6fd0;font-weight:600;white-space:nowrap}
.topic-aside-head a:hover{text-decoration:none;filter:brightness(1.1)}
.topic-related-list{display:flex;flex-direction:column;gap:12px}
.topic-related-item{display:flex;gap:12px;padding:12px;border:1px solid var(--line);
  border-radius:11px;background:var(--surface)}
.topic-related-item:hover{text-decoration:none;border-color:#3f74c9;background:var(--bg-2)}
.topic-related-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:10px;background:#eaf1fd;color:#2f6fd0;flex:0 0 38px}
.topic-related-icon svg{width:21px;height:21px}
.topic-related-item span{display:flex;flex-direction:column;gap:4px;min-width:0}
.topic-related-item b{font-size:14px;color:var(--ink)}
.topic-related-item small{font-size:12px;line-height:1.6;color:var(--muted)}
.topic-related-item em{font-style:normal;font-size:11.5px;color:var(--muted)}
.topic-note-btn{width:100%;padding:14px 18px;border:0;border-radius:11px;background:#2f6fd0;
  color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.topic-note-btn:hover{filter:brightness(1.07)}
.topic-note-hint{margin:-8px 0 0;text-align:center;font-size:12px;color:var(--muted)}
.topic-why{background:#f2f6fe;border-color:#dbe7fa}
html[data-theme="dark"] .topic-why{background:#1b2434;border-color:#2b3a52}
.topic-why h2{margin-bottom:10px}
.topic-why p{margin:0;font-size:13px;line-height:1.9;color:var(--text)}
.topic-bottom{margin-top:34px;padding-top:26px;border-top:1px solid var(--line)}
.topic-bottom-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.topic-bottom-head a{font-size:13px;color:#2f6fd0;font-weight:600}
.topic-bottom-head a:hover{text-decoration:none;filter:brightness(1.1)}
.topic-bottom .topic-related-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.topic-bottom-actions{margin-top:26px}
.topic-bottom-actions .topic-note-btn{width:auto;padding:12px 22px}
.topic-share-page{padding:12px 22px;border:1px solid #2f6fd0;border-radius:11px;
  background:transparent;color:#2f6fd0;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.topic-share-page:hover{background:#eaf1fd}
.topic-bottom-actions span{flex-basis:100%;text-align:center;font-size:12px;color:var(--muted)}
.topic-toast{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);z-index:300;
  padding:11px 20px;border-radius:999px;background:var(--ink);color:var(--surface);
  font-size:13.5px;box-shadow:var(--shadow-md)}
html[data-theme="dark"] .topic-tile-icon,html[data-theme="dark"] .topic-hero-icon,
html[data-theme="dark"] .topic-qmark,html[data-theme="dark"] .topic-related-icon{background:#1b2a45}
html[data-theme="dark"] .topic-path-btn.is-active{background:#1b2a45;color:#a9c8f5}
html[data-theme="dark"] .topic-path-btn.is-active .topic-path-count{color:#a9c8f5}
html[data-theme="dark"] .topic-card.is-read{background:#172131;border-color:#2b3a52}
@media(max-width:1000px){
  .topic-layout{grid-template-columns:1fr}
  .topic-layout .topic-aside{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-note-aside,.topic-note-hint{grid-column:1 / -1}
}
@media(max-width:900px){
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-bottom .topic-related-list{grid-template-columns:1fr}
}
@media(max-width:620px){
  .topics-hero{padding:38px 0 24px}
  .topic-grid,.topic-mini-grid{grid-template-columns:1fr}
  .topic-tile-body p{min-height:0}
  .topic-hero{gap:14px;flex-direction:column}
  .topic-hero-icon{width:64px;height:64px;flex-basis:64px}
  .topic-hero-icon svg{width:34px;height:34px}
  .topic-card-top{flex-wrap:wrap}
  .topic-card-actions{flex-direction:row;width:100%;justify-content:flex-start;flex-wrap:wrap}
  .topic-layout .topic-aside{grid-template-columns:1fr}
  .topic-note-aside,.topic-note-hint{grid-column:auto}
  .topic-teaser{padding:22px 18px}
}

/* ---------- 品牌补件 / 个人中心 / 分享图（v14） ---------- */
.brand-tagline{margin:10px 0 0;font-family:var(--display);font-size:17px;
  letter-spacing:2px;color:var(--brand-navy)}
html[data-theme="dark"] .brand-tagline{color:var(--brand-gold)}
.foot-slogan{margin:2px 0 0;font-size:12.5px;letter-spacing:1.4px;color:var(--brand-gold)}
.me-btn-nav{display:inline-flex;align-items:center;gap:6px;background:none;border:0;
  color:var(--muted);font-size:13.5px;cursor:pointer;padding:6px 8px;border-radius:8px;
  font-family:inherit}
.me-btn-nav:hover{color:var(--brand-gold);background:var(--accent-soft)}
.me-btn-nav svg{flex:none}

/* 关注 / 加入笔记 / 生成分享图 */
.me-follow{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:9px 20px;
  border:1px solid var(--brand-gold);border-radius:999px;background:transparent;
  color:var(--brand-gold);font-size:14px;font-weight:600;font-family:inherit;cursor:pointer}
.me-follow:hover{background:var(--brand-gold);color:#fff}
.me-follow[aria-pressed="true"]{background:var(--brand-gold);color:#fff}
.me-follow-plus{font-size:17px;line-height:1}
.me-note-add,.me-poster-btn{border:1px solid var(--line);background:var(--surface);
  color:var(--muted);border-radius:999px;padding:5px 12px;font-size:12.5px;
  font-family:inherit;cursor:pointer;white-space:nowrap}
.me-note-add:hover,.me-poster-btn:hover{border-color:var(--brand-gold);color:var(--brand-gold)}
.me-note-add.is-on{background:var(--accent-soft);border-color:var(--brand-gold);
  color:var(--brand-gold)}
.me-poster-btn{margin-left:auto}
.pick-share-row{display:flex;align-items:center;gap:8px;margin-top:16px;
  padding-top:14px;border-top:1px solid var(--line)}

/* ---------- 个人中心 ---------- */
.me-hero{display:flex;align-items:center;gap:22px;padding:44px 0 30px;
  border-bottom:1px solid var(--line)}
.me-hero-mark{width:104px;height:104px;flex:none;
  background-image:url("/assets/brand-mark.svg?v=6ef72278");
  background-repeat:no-repeat;background-position:center;background-size:contain}
html[data-theme="dark"] .me-hero-mark{background-image:url("/assets/brand-mark-dark.svg?v=233b1971")}
.me-hero-body{flex:1;min-width:0}
.me-kicker{font-size:11.5px;letter-spacing:2.2px;color:var(--brand-gold);font-weight:600}
.me-h1{font-family:var(--display);font-size:34px;margin:6px 0 6px;color:var(--ink)}
.me-lead{margin:0;color:var(--muted);font-size:15px}
.me-hero-brand{text-align:right;flex:none;display:flex;flex-direction:column;gap:4px}
.me-hero-brand b{font-family:var(--display);font-size:17px;color:var(--brand-navy)}
.me-hero-brand span{font-size:12px;letter-spacing:1.2px;color:var(--brand-gold)}
.me-card{margin:26px 0;padding:26px 28px;background:var(--surface);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}
.me-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-bottom:18px}
.me-sec-head h2{font-family:var(--display);font-size:22px;margin:0;color:var(--ink)}
.me-sec-head a,.me-link-btn{font-size:13.5px;color:var(--brand-gold);font-weight:600;
  text-decoration:none;background:none;border:0;cursor:pointer;font-family:inherit;padding:0}
.me-sec-note{font-size:12.5px;color:var(--muted)}
.me-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}
.me-stat{background:var(--bg-2);border-radius:12px;padding:16px 12px;text-align:center}
.me-stat b{display:block;font-family:var(--display);font-size:30px;color:var(--brand-navy);
  line-height:1.2}
html[data-theme="dark"] .me-stat b{color:var(--brand-gold)}
.me-stat span{font-size:12.5px;color:var(--muted)}
.me-heat{display:grid;grid-template-columns:repeat(15,1fr);
  grid-template-rows:repeat(2,1fr);gap:5px;max-width:520px}
.me-heat i{display:block;aspect-ratio:1;border-radius:3px;background:var(--bg-2)}
.me-heat i.on{background:var(--brand-gold)}
.me-heat i.today{outline:2px solid var(--brand-navy);outline-offset:1px}
.me-heat-legend{font-size:12.5px;color:var(--muted);margin:12px 0 24px}
.me-sub{font-size:15px;margin:0 0 14px;color:var(--ink)}
.me-topic-progress{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 24px}
.me-tp-row{display:flex;align-items:center;gap:10px;font-size:13px}
.me-tp-row a{color:var(--text);flex:none;width:104px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.me-tp-track{flex:1;height:6px;background:var(--bg-2);border-radius:99px;overflow:hidden}
.me-tp-fill{height:100%;background:var(--brand-gold);border-radius:99px}
.me-tp-num{flex:none;font-size:12px;color:var(--muted);min-width:44px;text-align:right}
.me-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;
  border-bottom:1px solid var(--line)}
.me-row:last-child{border-bottom:0}
.me-row-body{flex:1;min-width:0}
.me-row-body h3{margin:0 0 5px;font-size:15.5px;font-family:var(--display);color:var(--ink)}
.me-row-body p{margin:0;font-size:13px;color:var(--muted);line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.me-row-meta{font-size:12px;color:var(--muted);margin-top:6px}
.me-row-meta a{color:var(--brand-gold)}
.me-row-del{border:0;background:none;color:var(--muted);font-size:12.5px;
  cursor:pointer;font-family:inherit;padding:4px 6px;white-space:nowrap}
.me-row-del:hover{color:var(--brand-gold)}
.me-empty{color:var(--muted);font-size:14px;line-height:1.8;margin:6px 0}
.me-export-btn{border:1px solid var(--brand-gold);background:transparent;
  color:var(--brand-gold);border-radius:999px;padding:7px 16px;font-size:13px;
  font-weight:600;cursor:pointer;font-family:inherit}
.me-export-btn:hover{background:var(--brand-gold);color:#fff}
.me-note-group{margin:0 0 16px}
.me-note-group h3{font-size:14.5px;margin:0 0 6px;color:var(--brand-navy)}
html[data-theme="dark"] .me-note-group h3{color:var(--brand-gold)}
.me-note-group ul{margin:0;padding-left:20px;color:var(--muted);font-size:13px;line-height:1.9}
.me-paths{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:30px 0 18px}
.me-path{display:flex;flex-direction:column;gap:5px;padding:20px 22px;
  border:1px solid var(--line);border-radius:14px;background:var(--surface);
  text-decoration:none;transition:border-color .2s}
.me-path:hover{border-color:var(--brand-gold);text-decoration:none}
.me-path.primary{background:var(--brand-navy);border-color:var(--brand-navy)}
.me-path.primary b,.me-path.primary span{color:#fff}
.me-path b{font-family:var(--display);font-size:17px;color:var(--ink)}
.me-path span{font-size:12.5px;color:var(--muted)}
.me-privacy{font-size:12.5px;color:var(--muted);text-align:center;margin:0 0 40px}
.me-toast{position:fixed;left:50%;bottom:36px;transform:translateX(-50%);z-index:400;
  background:var(--brand-navy);color:#fff;padding:11px 22px;border-radius:999px;
  font-size:14px;box-shadow:var(--shadow-md)}

/* ---------- 分享图弹层 ---------- */
.poster-overlay{position:fixed;inset:0;z-index:350;background:rgba(11,36,67,.62);
  display:none;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(4px)}
.poster-overlay.open{display:flex}
.poster-panel{width:min(560px,100%);max-height:94vh;overflow:auto;background:var(--surface);
  border-radius:18px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.poster-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:12px}
.poster-head h2{margin:0;font-family:var(--display);font-size:19px;color:var(--ink)}
.poster-close{border:0;background:none;font-size:22px;color:var(--muted);cursor:pointer;
  line-height:1;padding:2px 6px}
.poster-tabs{display:flex;gap:8px;margin-bottom:14px}
.poster-tab{flex:1;border:1px solid var(--line);background:var(--bg-2);color:var(--muted);
  border-radius:9px;padding:8px;font-size:13px;font-family:inherit;cursor:pointer}
.poster-tab.is-active{border-color:var(--brand-gold);color:var(--brand-gold);
  background:var(--accent-soft);font-weight:600}
.poster-img{display:block;width:100%;height:auto;border-radius:10px;
  border:1px solid var(--line);background:var(--brand-paper)}
.poster-tip{font-size:13px;color:var(--muted);line-height:1.7;margin:12px 0}
.poster-tip b{color:var(--brand-gold)}
.poster-actions{display:flex;gap:10px}
.poster-save{flex:1;border:0;border-radius:999px;background:var(--brand-navy);color:#fff;
  padding:11px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer}
.poster-save:hover{filter:brightness(1.12)}

@media (max-width:720px){
  .me-hero{gap:14px;padding:30px 0 22px}
  .me-hero-mark{width:74px;height:74px}
  .me-hero-brand{display:none}
  .me-h1{font-size:27px}
  .me-stat-grid{grid-template-columns:repeat(2,1fr)}
  .me-topic-progress{grid-template-columns:1fr}
  .me-paths{grid-template-columns:1fr}
  .me-card{padding:20px 18px}
  .me-heat{grid-template-columns:repeat(15,1fr);max-width:none}
}
