/* ==========================================================================
   Reads with Colin — 全局样式
   极简 newsletter 风格：微暖白底 · 衬线标题 · 细分隔线 · 深绿点缀
   ========================================================================== */

:root {
  --bg: #fffdf9;            /* 微暖白 */
  --bg-soft: #f7f4ee;       /* 浅米色块 */
  --text: #1c1b18;          /* 近黑 */
  --text-light: #77726a;     /* 次要文字 */
  --text-faint: #a8a29a;     /* 弱化文字 */
  --border: #e9e4db;         /* 分隔线 */
  --accent: #2d5a3d;         /* 深绿（书卷气） */
  --accent-dark: #214931;
  --accent-soft: #eef3ef;    /* 绿色浅底 */
  --quote-bg: #faf8f3;

  --serif: "Playfair Display", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;

  --content-w: 700px;        /* 阅读宽度 */
  --wide-w: 860px;           /* 列表宽度 */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 27, 24, 0.04), 0 8px 24px rgba(28, 27, 24, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

::selection { background: #cfe3d6; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Logo：图标 + 文字 */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand:hover .nav-logo { color: var(--accent); }
.nav-brand .nav-logo-img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 7px;
  flex: none;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav-logo .amp { color: var(--accent); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-links a.nav-cta:hover { background: var(--accent); }

/* 语言切换器 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.lang-switch a:hover { color: var(--accent); text-decoration: none; }
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(45, 90, 61, 0.3);
}

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-links { gap: 12px; }
  .nav-links a.nav-link-plain { display: none; }
  .lang-switch a { padding: 4px 9px; font-size: 11.5px; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 18px; }
  .nav-cta { padding: 7px 14px !important; font-size: 13px !important; }
}

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  text-align: center;
  padding: 92px 24px 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 380px at 50% -8%, #f3efe6 0%, transparent 65%),
    var(--bg);
}

.hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.hero-tagline {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-light);
  margin: 0 auto 10px;
  max-width: 560px;
}
.hero-tagline .sep { margin: 0 10px; color: var(--text-faint); }

.hero-sub {
  font-size: 14.5px;
  color: var(--text-faint);
  margin: 0 0 36px;
}

.hero-motto {
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin: -22px 0 38px;
  opacity: 0.85;
}
.hero-motto em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* 订阅表单（Hero 版） */
.subscribe-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.subscribe-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 10px 8px 10px 18px;
  color: var(--text);
}
.subscribe-form input::placeholder { color: var(--text-faint); }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--text);
  padding: 11px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(0.98); }

.subscribe-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 14px;
}
.subscribe-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid #d4e2d9;
  color: var(--accent-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.subscribe-success.show { display: block; }

@media (max-width: 520px) {
  .hero { padding: 64px 20px 48px; }
  .subscribe-form { flex-direction: column; border-radius: 18px; }
  .subscribe-form input { padding: 12px 16px; }
  .btn { width: 100%; }
}

/* ==========================================================================
   首页文章列表
   ========================================================================== */
.post-list-wrap {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.list-heading h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.list-heading .list-sub {
  font-size: 13.5px;
  color: var(--text-faint);
}

.post-card {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--border);
}
.post-card:first-of-type { border-top: 1px solid var(--border); }

.post-meta {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}
.post-meta .dot { margin: 0 7px; }

.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 3.2vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }

.post-card .post-title-cn {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  margin: 0 0 12px;
  line-height: 1.6;
}

.post-teaser {
  font-size: 15px;
  color: var(--text-light);
  margin: 0 0 16px;
  line-height: 1.7;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-light);
}
.post-author a { color: var(--text-light); font-weight: 600; }
.post-author a:hover { color: var(--accent); text-decoration: none; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4a8a63 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.list-end {
  text-align: center;
  padding-top: 40px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* ==========================================================================
   文章页
   ========================================================================== */
.post-page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.post-header {
  text-align: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.post-header .post-meta {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.post-header .post-meta .dot { margin: 0 8px; }

.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 16px 0 10px;
}

.post-header .subtitle {
  font-size: 17px;
  color: var(--text-light);
  margin: 0 0 18px;
  line-height: 1.65;
}

.post-header .lead-line {
  font-size: 14.5px;
  color: var(--text-light);
  font-style: italic;
  margin: 0 auto;
  max-width: 520px;
}

/* 正文排版 */
.post-body { font-size: 17px; }
.post-body p { margin: 0 0 22px; }

.post-body h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  margin: 52px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.post-body h2:first-of-type { border-top: none; padding-top: 0; }
.post-body h2 .sec-en { color: var(--text); }
.post-body h2 .sec-zh {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2.5px;
  margin-top: 6px;
}

.post-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 12px;
}

.post-body h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 26px 0 10px;
}

.post-body blockquote {
  margin: 26px 0;
  padding: 22px 28px;
  background: var(--quote-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16.5px;
}
.post-body blockquote p { margin: 0 0 12px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote .q-src {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
  font-style: normal;
}

.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 26px; }
.post-body li { margin-bottom: 10px; }
.post-body li::marker { color: var(--accent); }

.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* 名言卡片 */
.quote-grid { margin: 26px 0; }
.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  margin-bottom: 18px;
}
.quote-card .q-mark {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--accent-soft);
}
.quote-card .q-text {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0 0 8px;
  position: relative;
}
.quote-card .q-text-zh {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 0 0 10px;
  line-height: 1.7;
}
.quote-card .q-author {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

/* 书籍卡片 */
.book-card {
  display: flex;
  gap: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
}
.book-card .book-cover {
  flex: none;
  width: 92px;
  height: 132px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: #fff;
  font-family: var(--serif);
}
.book-card .book-cover .bc-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.book-card .book-cover .bc-author { font-size: 10.5px; margin-top: 8px; opacity: 0.85; font-family: var(--sans); }
.book-card .book-info h4 { margin: 2px 0 4px; font-size: 17px; }
.book-card .book-info .book-sub {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 10px;
}
.book-card .book-info p { font-size: 14.5px; line-height: 1.7; margin: 0; color: var(--text-light); }
@media (max-width: 540px) {
  .book-card { flex-direction: column; }
  .book-card .book-cover { width: 100%; height: 120px; flex-direction: row; gap: 14px; }
}

/* 阅读小贴士 */
.tip-box {
  background: var(--accent-soft);
  border: 1px dashed #bfd4c6;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}
.tip-box .tip-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tip-box p { margin: 0; font-size: 15.5px; }

/* 问候语 */
.greeting {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text);
}

/* 文章结尾 */
.post-signoff {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
}
.post-signoff p { margin: 0; font-size: 15.5px; color: var(--text-light); }
.post-signoff .signoff-en { font-family: var(--serif); font-style: italic; }

/* 分享与翻页 */
.post-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 8px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.post-share .share-label { font-size: 13px; color: var(--text-faint); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 10px;
}
.post-nav a {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav a:hover .pn-title { color: var(--accent); }
.post-nav .pn-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.post-nav .pn-title { font-weight: 600; color: var(--text); font-size: 14.5px; }
.post-nav .pn-next { text-align: right; }
@media (max-width: 560px) { .post-nav { flex-direction: column; } }

/* 文章内订阅框 */
.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 0;
  padding: 24px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-byline .post-byline-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
  padding: 6px;
}
.post-byline-name {
  font-family: "Playfair Display", Georgia, "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.post-byline-tag {
  font-size: 13.5px;
  color: var(--text-light);
  font-style: italic;
  font-family: "Playfair Display", "Noto Serif SC", serif;
}
@media (max-width: 600px) {
  .post-byline { padding: 18px; gap: 12px; }
  .post-byline .post-byline-avatar { width: 44px; height: 44px; }
  .post-byline-name { font-size: 16px; }
}

.post-subscribe {
  margin: 44px 0 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.post-subscribe h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
}
.post-subscribe p {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 0 0 20px;
}
.post-subscribe .subscribe-form { box-shadow: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 520px) {
  .post-subscribe { padding: 26px 18px; }
  .post-subscribe .subscribe-form { flex-direction: column; border-radius: 18px; }
  .post-subscribe .btn { width: 100%; }
}

/* ==========================================================================
   关于页
   ========================================================================== */
.about-page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 64px 24px 60px;
}
.about-hero { text-align: center; margin-bottom: 48px; }
.about-hero .avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4a8a63 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.about-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  margin: 0 0 10px;
}
.about-hero .about-tag { font-size: 16px; color: var(--text-light); margin: 0; }

.about-section { margin-bottom: 44px; }
.about-section h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.about-section p { margin: 0 0 16px; font-size: 16.5px; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.fact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.fact-card .fact-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}
.fact-card .fact-label { font-size: 13px; color: var(--text-light); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 44px 24px 40px;
}
.footer-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-tag { font-size: 13px; color: var(--text-light); margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13.5px;
  color: var(--text-light);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  max-width: var(--wide-w);
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 顶部小工具：返回顶部 */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 17px;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.back-top:hover { opacity: 1; }
.back-top.show { display: flex; }

/* ==========================================================================
   分享按钮组（含中文平台）
   ========================================================================== */
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 8px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.share-row .share-label {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.share-btn .ic { font-size: 14px; line-height: 1; }
.share-btn.wechat { color: #1aad19; }
.share-btn.wechat:hover { border-color: #1aad19; color: #1aad19; }
.share-btn.weibo { color: #e6162d; }
.share-btn.weibo:hover { border-color: #e6162d; color: #e6162d; }
.share-btn.xhs { color: #ff2442; }
.share-btn.xhs:hover { border-color: #ff2442; color: #ff2442; }

/* WeChat 弹层 */
.wx-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(28, 27, 24, 0.5);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.wx-modal.show { display: flex; }
.wx-modal .wx-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.wx-modal h4 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
}
.wx-modal p { font-size: 13.5px; color: var(--text-light); margin: 0 0 18px; }
.wx-modal .wx-link {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  margin-bottom: 16px;
}
.wx-modal .wx-close {
  font-size: 13px;
  color: var(--text-light);
  background: none;
  border: 1px solid var(--border);
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.wx-modal .wx-close:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   i18n：默认隐藏 [lang-en] / [lang-zh] 中不该出现的内容
   - html[lang=zh] [lang-en] { display: none; }
   - html[lang=en] [lang-zh] { display: none; }
   ========================================================================== */
html[lang="zh"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="zh"] { display: none !important; }

/* hero 字体：英文版用衬线更优雅，中文版用思源宋体更稳 */
html[lang="en"] .hero h1,
html[lang="en"] .post-header h1,
html[lang="en"] .post-card h3,
html[lang="en"] .page-hero h1,
html[lang="en"] .archive-card h3,
html[lang="en"] .cat-head h2,
html[lang="en"] .cat-item h3 { font-family: "Playfair Display", Georgia, serif; }
html[lang="zh"] .hero h1,
html[lang="zh"] .post-header h1,
html[lang="zh"] .post-card h3,
html[lang="zh"] .page-hero h1,
html[lang="zh"] .archive-card h3,
html[lang="zh"] .cat-head h2,
html[lang="zh"] .cat-item h3 { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }

/* 中文版稍微加宽行距 */
html[lang="zh"] body { line-height: 1.85; font-size: 17.5px; }
html[lang="zh"] .post-body { font-size: 17.5px; }
html[lang="zh"] .post-body p { line-height: 1.95; }


/* ==========================================================================
   Page Hero（archive / categories 复用）
   ========================================================================== */
.page-hero {
  text-align: center;
  padding: 72px 24px 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.page-sub {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  font-style: italic;
  font-family: var(--serif);
}

/* ==========================================================================
   Archive（仿 readswithravi.beehiiv.com 网格）
   ========================================================================== */
.archive-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.archive-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.archive-search {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .18s;
}
.archive-search:focus { border-color: var(--accent); }
.archive-count {
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  color: var(--text);
}
.archive-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(28, 27, 24, .06);
  text-decoration: none;
}
.archive-card-meta {
  font-size: 13px;
  color: var(--text-faint);
}
.archive-card-meta .dot { margin: 0 6px; }

/* Hero: 封面 + slogan 双栏 */
.archive-card-hero {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: stretch;
}
.archive-card-cover {
  width: 100%;
  aspect-ratio: 165 / 250;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(28, 27, 24, .12);
  display: block;
  background: var(--bg-soft);
}
.archive-card-slogan {
  background: #d8d4ca;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.archive-card-slogan-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: rgba(43, 42, 38, .28);
  font-style: italic;
  margin-right: 4px;
  margin-top: -8px;
}
.archive-card-slogan-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

/* 中文版 slogan 用思源宋体 */
html[lang="zh"] .archive-card-slogan-text {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
}

.archive-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}
.archive-card-teaser {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* 底部：作者署名 + 点赞心 */
.archive-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.archive-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
}
.archive-card-author .archive-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
}
.archive-card-author-name {
  text-transform: uppercase;
}

.archive-card-heart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 13px;
  font-family: inherit;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .15s, transform .12s, background .15s;
}
.archive-card-heart svg {
  display: block;
  transition: transform .15s ease;
}
.archive-card-heart:hover {
  color: #e0464e;
  background: rgba(224, 70, 78, .06);
}
.archive-card-heart:hover svg {
  transform: scale(1.08);
}
.archive-card-heart.liked {
  color: #e0464e;
}
.archive-card-heart.liked svg {
  transform: scale(1.05);
}
.archive-card-heart.pulse {
  animation: heartPulse .35s ease;
}
.archive-card-heart .heart-count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-light);
}
.archive-card-heart.liked .heart-count {
  color: #e0464e;
  font-weight: 600;
}
@keyframes heartPulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  60%  { transform: scale(.95); }
  100% { transform: scale(1); }
}

/* 移动端：封面+slogan 改为上下堆叠 */
@media (max-width: 600px) {
  .archive-card-hero {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }
  .archive-card-slogan-quote { font-size: 32px; margin-top: -4px; }
  .archive-card-slogan-text { font-size: 12.5px; }
}
@media (max-width: 420px) {
  .archive-card-hero {
    grid-template-columns: 1fr;
  }
  .archive-card-cover {
    max-width: 160px;
    margin: 0 auto;
  }
}

.archive-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 60px 20px;
  font-size: 15px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color .18s, background .18s, color .18s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--text-faint);
  font-size: 14px;
}

/* ==========================================================================
   Categories（分类页）
   ========================================================================== */
.cat-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
}
.chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 13px;
  text-decoration: none;
  transition: all .18s;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.cat-section {
  margin: 0 0 52px;
  padding-top: 8px;
}
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.cat-count {
  font-size: 13px;
  color: var(--text-faint);
}
.cat-quote {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  font-family: var(--serif);
  margin: 0 0 14px;
}
.cat-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { text-decoration: none; }
.cat-item:hover h3 { color: var(--accent); }
.cat-item .item-meta {
  font-size: 13px;
  color: var(--text-faint);
  min-width: 92px;
  flex-shrink: 0;
}
.cat-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  transition: color .18s;
}
