/* 果果科学阅读 — 米黄纸质感 · 护眼阅读样式 */
:root {
  --bg: #FBF7EC;
  --bg-card: #FFFDF7;
  --text: #2E2A22;
  --text-2: #6B6355;
  --text-3: #9A9080;
  --line: #E7DDC9;
  --accent: #B4652A;
  --accent-soft: #F3E7D2;
  --shadow: 0 1px 2px rgba(90, 70, 40, .05), 0 8px 24px rgba(90, 70, 40, .06);
  --bar: rgba(251, 247, 236, .92);
  --fs: 19px;
  --lh: 1.95;
  --w: 34em;
}
html[data-theme="dark"] {
  --bg: #191713;
  --bg-card: #221F19;
  --text: #E9E3D5;
  --text-2: #A79D89;
  --text-3: #7C7364;
  --line: #363128;
  --accent: #D2975A;
  --accent-soft: #2E2820;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --bar: rgba(25, 23, 19, .92);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--fs);
  line-height: var(--lh);
  transition: background .25s, color .25s;
  padding-bottom: 60px;
}
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* 顶部工具条 */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: var(--w); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 8px;
}
.brand { font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-right: auto; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.btn {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; line-height: 1;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.btn:active { transform: scale(.96); }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-fs { min-width: 34px; font-weight: 600; }

/* 文章头 */
.head { padding: 34px 0 18px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.tag { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.62em; line-height: 1.4; font-weight: 600;
  margin: 0 0 16px; letter-spacing: .01em;
}
.meta { font-size: 13px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }

/* 播放条 */
.player {
  margin: 22px 0 6px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.play {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.play:active { transform: scale(.93); }
.play svg { width: 18px; height: 18px; fill: #fff; }
.p-main { flex: 1; min-width: 0; }
.p-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 7px; }
.track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; cursor: pointer; }
.track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .2s linear; }
.rate { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 999px; font-size: 12px; padding: 5px 9px; cursor: pointer; font-family: inherit; }
.hint { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }

/* 正文 */
article { padding: 8px 0 20px; }
article p { margin: 0 0 1.15em; }
article h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.2em; font-weight: 600; margin: 1.9em 0 .7em;
  padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.5;
}
article strong { color: var(--accent); font-weight: 600; }
article em { font-style: normal; background: var(--accent-soft); border-radius: 3px; padding: 0 3px; }
article blockquote {
  margin: 1.4em 0; padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 10px; font-size: .95em; color: var(--text-2);
}
article blockquote p:last-child { margin-bottom: 0; }
article ul, article ol { padding-left: 1.2em; margin: 0 0 1.15em; }
article li { margin-bottom: .5em; }

/* 想一想 */
.think {
  margin: 40px 0 30px; padding: 22px 22px 10px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.think h3 { margin: 0 0 16px; font-size: 1em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.think h3::before { content: ""; width: 4px; height: 15px; background: var(--accent); border-radius: 2px; }
.think ol { padding-left: 1.2em; margin: 0 0 14px; }
.think li { margin-bottom: 12px; font-size: .95em; color: var(--text-2); line-height: 1.8; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 22px 0 40px; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.foot a { color: var(--text-2); }
.back { display: inline-block; margin-top: 14px; color: var(--accent); text-decoration: none; font-size: 14px; }

/* 首页 */
.list { padding: 10px 0 40px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow); transition: .15s;
}
.card:active { transform: scale(.99); }
.card h2 { margin: 0 0 8px; font-size: 1.06em; font-weight: 600; line-height: 1.5; font-family: "Songti SC", Georgia, serif; }
.card p { margin: 0 0 10px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.card .row { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); }
.hero { padding: 44px 0 26px; }
.hero h1 { font-size: 1.85em; margin-bottom: 12px; }
.hero p { color: var(--text-2); font-size: 15px; margin: 0; line-height: 1.8; }

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .bar-in { padding: 9px 14px; }
  h1 { font-size: 1.48em; }
  .brand { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
