/* 姐妹超芯 · 读书 —— 文艺书卷风 */
:root {
  --paper:      #f5efe3;
  --paper-2:    #fbf7ee;
  --card:       #fffdf8;
  --ink:        #2b2521;
  --ink-soft:   #5a5048;
  --ink-faint:  #8a7f72;
  --accent:     #9c4a2f;   /* 赭石/朱 */
  --accent-2:   #4a5a58;   /* 黛青 */
  --line:       #e6dcc8;
  --line-soft:  #efe7d6;
  --shadow:     0 6px 24px rgba(70, 50, 30, .08);
  --shadow-sm:  0 2px 10px rgba(70, 50, 30, .06);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
           "Source Han Serif CN", "SimSun", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(155, 120, 70, .035) 1px, transparent 1px);
  background-size: 4px 4px;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #7c3622; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, .85);
  backdrop-filter: saturate(120%) blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; color: var(--ink); }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; font-weight: 400; }
.site-nav { display: flex; gap: 26px; flex-shrink: 0; }
.site-nav a {
  color: var(--ink-soft); font-size: 16px; position: relative; padding: 2px 0;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* ---- Main / fade ---- */
main.wrap { padding-top: 40px; padding-bottom: 64px; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Hero ---- */
.hero { text-align: center; padding: 36px 0 28px; }
.hero-title { font-size: 40px; margin: 0 0 12px; letter-spacing: .06em; font-weight: 700; }
.hero-sub { color: var(--ink); font-size: 21px; margin: 0 auto; max-width: 36em; letter-spacing: .04em; }
.hero-by { color: var(--ink-faint); font-size: 13.5px; margin: 8px 0 0; letter-spacing: .02em; }
.hero::after {
  content: "❧"; display: block; color: var(--accent); opacity: .5;
  margin: 22px auto 0; font-size: 22px;
}

/* 首页题记 */
.home-epigraph {
  max-width: 36em; margin: 4px auto 30px; text-align: center;
  padding: 22px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.home-epigraph .epi-en {
  margin: 0 0 4px; font-style: italic; font-size: 19px; color: var(--ink);
  letter-spacing: .01em; line-height: 1.5;
}
.home-epigraph .epi-en:nth-of-type(2) { margin-bottom: 14px; }
.home-epigraph .epi-cn {
  margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.9;
}
.home-epigraph .epi-by { margin: 0; color: var(--ink-faint); font-size: 13px; }

/* ---- Sections ---- */
.section { margin: 44px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px;
}
.section-head h2 { font-size: 21px; margin: 0; font-weight: 700; letter-spacing: .03em; }
.section-head .count {
  font-size: 13px; color: var(--ink-faint); margin-left: 8px; font-weight: 400;
}
.section-head .more { font-size: 14px; color: var(--ink-faint); }
.section-head .more:hover { color: var(--accent); }

.page-head { padding: 8px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-head h1 { font-size: 30px; margin: 0; letter-spacing: .04em; }
.page-sub { color: var(--ink-faint); margin: 8px 0 0; font-size: 15px; }
.empty-hint { color: var(--ink-faint); padding: 24px 0; }

/* ---- Post cards ---- */
.post-list { display: flex; flex-direction: column; gap: 4px; }
.post-card { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.post-card:last-child { border-bottom: none; }
.post-card-title {
  font-size: 22px; margin: 0 0 8px; color: var(--ink); font-weight: 700;
  transition: color .2s;
}
.post-card-link:hover .post-card-title { color: var(--accent); }
.post-card-excerpt { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
.post-card-meta {
  font-size: 13.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px;
}
.post-card-meta .dot { opacity: .5; }
.from-book { color: var(--accent-2); }
.card-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12.5px; color: var(--ink-faint); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Tag bar ---- */
.tag-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 26px; }
.tag-bar a {
  font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 14px; background: var(--card);
}
.tag-bar a:hover, .tag-bar a.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
}

/* ---- Book grid ---- */
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 26px 22px;
}
.book-card { color: var(--ink); }
.book-cover {
  position: relative; aspect-ratio: 3/4.3; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card);
  transition: transform .25s, box-shadow .25s;
}
.book-card:hover .book-cover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(70,50,30,.16); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover.no-img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #efe6d4, #e2d4b8);
}
.book-cover-ph {
  font-size: 19px; color: #8a6f47; letter-spacing: .04em; text-align: center;
  padding: 12px; font-weight: 700; line-height: 1.5; word-break: break-word;
  writing-mode: horizontal-tb;
}
.book-cover-ph.big { font-size: 26px; line-height: 1.4; }
.book-badge {
  position: absolute; top: 8px; left: 8px; font-size: 11.5px; color: #fff;
  padding: 1px 8px; border-radius: 999px; letter-spacing: .05em;
  background: var(--accent-2);
}
.book-badge.inline { position: static; display: inline-block; margin-bottom: 10px; }
.book-badge.st-reading { background: var(--accent); }
.book-badge.st-finished { background: var(--accent-2); }
.book-badge.st-want { background: #8a7f72; }
.book-info { padding-top: 10px; }
.book-title { font-size: 15.5px; margin: 0 0 2px; font-weight: 700; line-height: 1.4; }
.book-author { font-size: 13px; color: var(--ink-faint); margin: 0; }
.book-stars { color: var(--accent); font-size: 13px; margin: 4px 0 0; letter-spacing: 2px; }

/* ---- Book detail ---- */
.book-hero { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 12px; }
.book-hero-cover {
  flex-shrink: 0; width: 180px; aspect-ratio: 3/4.3; border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow);
}
.book-hero-cover.no-img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #efe6d4, #e2d4b8);
}
.book-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-hero-info h1 { font-size: 28px; margin: 4px 0 6px; }
.bh-author { color: var(--ink-soft); margin: 0 0 12px; }
.bh-stars { color: var(--accent); letter-spacing: 3px; margin: 0 0 14px; font-size: 18px; }
.bh-review {
  color: var(--ink); font-size: 16px; border-left: 3px solid var(--accent);
  padding-left: 14px; margin: 14px 0;
}
.bh-dates { color: var(--ink-faint); font-size: 13.5px; margin: 6px 0 0; }
.bh-pdf { margin: 14px 0 0; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px;
  color: #fff; background: var(--accent); padding: 8px 18px; border-radius: 8px;
  box-shadow: var(--shadow-sm); transition: background .2s;
}
.pdf-btn:hover { background: #843c25; color: #fff; }

/* ---- Quote cards ---- */
.quote-list { display: grid; gap: 18px; }
.quote-wall { columns: 2; column-gap: 22px; }
.quote-wall .quote-card { break-inside: avoid; margin-bottom: 22px; }
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 20px; box-shadow: var(--shadow-sm); position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -14px; left: 14px; font-size: 72px;
  color: var(--accent); opacity: .14; font-family: Georgia, serif;
}
.quote-card blockquote {
  margin: 0; font-size: 17px; line-height: 1.9; color: var(--ink);
  position: relative; z-index: 1;
}
.quote-card figcaption {
  margin-top: 14px; text-align: right; color: var(--ink-faint); font-size: 14px;
}

/* ---- Article ---- */
.article { max-width: 720px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 28px; }
.article-title { font-size: 32px; margin: 0 0 14px; line-height: 1.4; letter-spacing: .03em; }
.article-meta {
  color: var(--ink-faint); font-size: 14px; display: flex; gap: 12px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}
.article-cover { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-body { font-size: 17.5px; line-height: 1.95; color: #322b25; }
.article-body > *:first-child { margin-top: 0; }
.article-body h1, .article-body h2, .article-body h3 {
  letter-spacing: .02em; line-height: 1.5; margin: 1.8em 0 .7em;
}
.article-body h1 { font-size: 26px; }
.article-body h2 {
  font-size: 22px; padding-bottom: .3em; border-bottom: 1px solid var(--line-soft);
}
.article-body h3 { font-size: 19px; }
.article-body p { margin: 1.1em 0; }
.article-body a { border-bottom: 1px solid rgba(156,74,47,.35); }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body blockquote {
  margin: 1.5em 0; padding: 6px 20px; border-left: 3px solid var(--accent);
  color: var(--ink-soft); background: var(--paper-2); border-radius: 0 8px 8px 0;
}
.article-body blockquote p { margin: .5em 0; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin: .4em 0; }
.article-body img { border-radius: 8px; margin: 1.4em auto; box-shadow: var(--shadow-sm); }
.article-body code {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em;
  background: #efe7d6; padding: 2px 6px; border-radius: 5px; color: #7c3622;
}
.article-body pre {
  background: #2b2521; color: #f0e9dc; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; font-size: 14.5px; line-height: 1.7;
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--paper-2); }

.article-aside { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.related-book { font-size: 16px; margin-bottom: 16px; }
.rb-label { color: var(--ink-faint); margin-right: 8px; }
.quote-list.mt { margin-top: 12px; }
.article-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px;
  color: var(--ink-faint); font-size: 13.5px; text-align: center;
}
.site-footer p { margin: 0; }

/* ---- 首页进度概览条 ---- */
.progress-strip{
  display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
  margin:0 auto 8px;padding:12px 22px;max-width:640px;
  background:var(--card);border:1px solid var(--line);border-radius:999px;
  color:var(--ink-soft);font-size:14.5px;box-shadow:var(--shadow-sm);
}
.progress-strip b{color:var(--accent);font-weight:700;}
.progress-strip .strip-sep{color:var(--line);margin:0 2px;}
.progress-strip .strip-more{color:var(--ink-faint);}
.progress-strip:hover{border-color:var(--accent);}
.progress-strip:hover .strip-more{color:var(--accent);}

/* ---- 年度目标 ---- */
.goal-hero{display:flex;align-items:center;gap:32px;background:var(--card);
  border:1px solid var(--line);border-radius:16px;padding:28px 32px;box-shadow:var(--shadow-sm);margin-bottom:28px;}
.goal-hero.no-goal{justify-content:flex-start;}
.goal-text h2{margin:0 0 8px;font-size:21px;}
.goal-line{margin:0 0 6px;color:var(--ink-soft);}
.goal-line b{color:var(--accent);}
.goal-hint{margin:0;color:var(--ink-faint);font-size:14.5px;}
.ring-wrap{position:relative;flex-shrink:0;width:132px;height:132px;}
.ring{display:block;}
.ring-bg{fill:none;stroke:var(--line-soft);stroke-width:9;}
.ring-fg{fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;
  transition:stroke-dashoffset 1s ease;}
.ring-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.ring-pct{font-size:28px;font-weight:700;color:var(--ink);line-height:1;}
.ring-sub{font-size:13px;color:var(--ink-faint);margin-top:4px;}

/* ---- 统计卡 ---- */
.stat-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:28px;}
.stat-card{background:var(--card);border:1px solid var(--line);border-radius:12px;
  padding:16px 10px;text-align:center;}
.stat-num{display:block;font-size:26px;font-weight:700;color:var(--accent);line-height:1.1;}
.stat-num small{font-size:13px;font-weight:400;color:var(--ink-faint);margin-left:2px;}
.stat-label{display:block;font-size:12.5px;color:var(--ink-faint);margin-top:5px;}

/* ---- 进度条 ---- */
.bar{height:8px;background:var(--line-soft);border-radius:999px;overflow:hidden;}
.bar-fill{display:block;height:100%;border-radius:999px;transition:width .9s ease;}
.bar-fill.accent{background:var(--accent);}
.bar-fill.accent2{background:var(--accent-2);}
.bar-fill.green{background:#5f7a4f;}

/* ---- 在读 / 学习进度条目 ---- */
.rp-list,.learn-list{display:grid;gap:18px;}
.rp-item,.learn-item{display:block;background:var(--card);border:1px solid var(--line);
  border-radius:12px;padding:16px 18px;color:var(--ink);}
.rp-item:hover{border-color:var(--accent);}
.rp-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:9px;gap:10px;}
.rp-title{font-weight:600;font-size:16px;}
.rp-pct{color:var(--accent);font-weight:700;font-size:14px;flex-shrink:0;}
.rp-detail{display:block;color:var(--ink-faint);font-size:13px;margin-top:8px;}
.learn-cat{font-size:12px;color:#fff;background:var(--accent-2);border-radius:999px;padding:1px 8px;margin-left:6px;font-weight:400;vertical-align:middle;}

/* ---- 月柱状图 ---- */
.month-chart{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px 18px 12px;margin-bottom:8px;}
.mc-bars{display:flex;align-items:flex-end;gap:6px;height:120px;}
.mc-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;}
.mc-val{font-size:11px;color:var(--accent);height:14px;}
.mc-bar{width:100%;max-width:26px;background:linear-gradient(var(--accent),#c2785c);
  border-radius:4px 4px 0 0;min-height:2px;transition:height .8s ease;}
.mc-label{font-size:11px;color:var(--ink-faint);margin-top:6px;}
.mc-cap{text-align:center;color:var(--ink-faint);font-size:12.5px;margin-top:12px;}

/* ---- 成长时间线 ---- */
.timeline{list-style:none;margin:0;padding:0;position:relative;}
.timeline::before{content:"";position:absolute;left:13px;top:6px;bottom:6px;width:2px;background:var(--line);}
.tl-item{position:relative;padding:0 0 22px 44px;}
.tl-dot{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;
  background:var(--card);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:14px;z-index:1;}
.tl-body{display:flex;flex-direction:column;}
.tl-date{font-size:12.5px;color:var(--ink-faint);}
.tl-title{font-size:16px;font-weight:600;margin-top:1px;}
.tl-title a{color:var(--ink);} .tl-title a:hover{color:var(--accent);}
.tl-detail{font-size:13.5px;color:var(--ink-soft);margin-top:2px;}
.tl-book .tl-dot{border-color:var(--accent);} .tl-post .tl-dot{border-color:var(--accent-2);}
.bh-progress{margin:6px 0 14px;max-width:280px;}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .goal-hero{flex-direction:column;text-align:center;gap:18px;}
  .stat-row{grid-template-columns:repeat(3,1fr);}
  .mc-val{display:none;}
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 20px; }
  .hero-title { font-size: 30px; }
  .article-title { font-size: 25px; }
  .book-hero { flex-direction: column; gap: 18px; }
  .book-hero-cover { width: 140px; }
  .quote-wall { columns: 1; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px 16px; }
}
