/* ==========================================================================
   7REE · 林间笔记 —— 前台样式
   ========================================================================== */

:root {
  --bg: #f5f2eb;
  --bg-soft: #ebe7de;
  --surface: #ffffff;
  --surface-2: #f8faf6;

  --text: #17352c;
  --text-soft: #586c62;
  --text-faint: #789083;

  --line: #e2e7e0;
  --line-strong: #cdd7cd;
  --chip: #e4e8e0;

  --brand: #17352c;
  --brand-2: #2c5948;
  --accent: #d87347;
  --accent-soft: #f5c9a8;
  --accent-deep: #bf6844;

  --hero-scrim: linear-gradient(115deg, #163a30e0, #163a3070);
  --shadow: 0 3px 14px #16352a0c;
  --shadow-lg: 0 18px 45px #16352a1f;

  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1200px;

  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Microsoft YaHei", serif;
  --font-display: "DM Serif Display", "Noto Serif SC", Georgia, "Songti SC", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #101512;
  --bg-soft: #0b0f0c;
  --surface: #1a211d;
  --surface-2: #202823;

  --text: #e7eee8;
  --text-soft: #a9bab0;
  --text-faint: #84978b;

  --line: #2a342d;
  --line-strong: #38443b;
  --chip: #242e28;

  --brand: #0d1a15;
  --brand-2: #16352c;
  --accent: #e2905f;
  --accent-soft: #e6b189;
  --accent-deep: #e2905f;

  --hero-scrim: linear-gradient(115deg, #04120cdd, #04120c99);
  --shadow: 0 3px 14px #00000066;
  --shadow-lg: 0 18px 45px #00000066;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.8 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ 导航 */

nav.topbar {
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
nav.topbar.scrolled { border-bottom-color: var(--line); }

.brand {
  font: 700 25px var(--font-display);
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlink {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-soft);
  padding: 7px 11px;
  border-radius: 8px;
  transition: .2s;
}
.navlink:hover, .navlink.active { color: var(--text); background: var(--chip); }

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  transition: .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-box input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: 14px var(--font-ui);
  outline: none;
  width: 130px;
}
.search-box button {
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-faint); font-size: 15px; padding: 0 2px; line-height: 1;
}
.search-box button:hover { color: var(--accent); }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-soft);
  transition: .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-btn .i-sun { display: none; }
html:not([data-theme="dark"]) .icon-btn .i-moon { display: none; }

/* 阅读进度条 */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 60; transition: width .1s linear;
}

/* ------------------------------------------------------------------ Hero */

.hero {
  min-height: 460px;
  margin: 10px 5%;
  border-radius: var(--radius-lg);
  background: var(--hero-scrim), var(--hero-image, none) center/cover no-repeat, linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: flex-end;
  padding: 60px;
  color: #fff;
  overflow: hidden;
}
.hero > div { max-width: 650px; }
.eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  font: 12px var(--font-ui);
  color: var(--accent-soft);
}
.hero h1 {
  font: clamp(44px, 7vw, 86px) var(--font-display);
  line-height: 1.06;
  margin: 13px 0;
}
.hero p { font-size: 18px; line-height: 1.8; margin: 0 0 4px; }

.pulse {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffffff22; padding: 8px 12px; border-radius: 999px;
  font: 13px var(--font-ui); margin-top: 16px;
}
.pulse i {
  width: 8px; height: 8px; background: #b9de9c; border-radius: 50%;
  box-shadow: 0 0 0 4px #b9de9c33; animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px #b9de9c11; } }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #ffffff24; border: 1px solid #ffffff24; border-radius: 14px;
  overflow: hidden; max-width: 520px; margin-top: 28px;
}
.facts div { padding: 13px 17px; background: #17352c66; font: 13px var(--font-ui); }
.facts b { display: block; font: 23px var(--font-display); color: #fff; margin-bottom: 4px; }

/* ------------------------------------------------------------------ 布局 */

.wrap { max-width: calc(var(--maxw) + 96px); margin: 0 auto; padding: 65px clamp(20px, 4vw, 56px); }

/* 大屏：给 1920 及以上更宽的舞台 */
@media (min-width: 1680px) {
  :root { --maxw: 1320px; }
}

.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.intro h2, .section-title { font: 42px var(--font-display); margin: 0 0 20px; }
.intro p { line-height: 2; color: var(--text-soft); font-size: 18px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head .more { font: 14px var(--font-ui); color: var(--accent-deep); }

/* 筛选 / 标签 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 45px 0 25px; }
.filters a {
  padding: 8px 15px; border-radius: 999px; background: var(--chip);
  font-family: var(--font-ui); font-size: 14px; color: var(--text-soft);
  transition: .2s;
}
.filters a:hover { color: var(--text); }
.filters a.active { background: var(--brand-2); color: #fff; }

/* ------------------------------------------------------------------ 卡片 */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cover {
  height: 200px;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.meta { font: 12px var(--font-ui); color: var(--text-faint); }
.card h3 { font-size: 22px; margin: 10px 0; line-height: 1.4; }
.card p { color: var(--text-soft); line-height: 1.7; font-size: 14px; margin: 0; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block; font: 11px var(--font-ui); letter-spacing: .5px;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-deep);
}
.badge-soft { background: var(--chip); color: var(--text-faint); }
html[data-theme="dark"] .badge-soft { color: var(--text-soft); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* ------------------------------------------------------------------ 大事记 / Now / 信件 */

.focus { margin: 70px 0; background: var(--bg-soft); border-radius: 20px; padding: 38px; }
.focus-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; gap: 16px; flex-wrap: wrap; }
.focus-head p { margin: 0; color: var(--text-soft); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.focus-item { background: var(--surface-2); border-radius: 12px; padding: 22px; min-height: 170px; }
.focus-item span { font: 13px var(--font-ui); color: var(--accent-deep); }
.focus-item h3 { font-size: 22px; margin: 16px 0 9px; }
.focus-item p { margin: 0; color: var(--text-soft); line-height: 1.7; font-size: 14px; }

.journey { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; margin: 80px 0; }
.timeline { border-left: 1px solid var(--line-strong); padding-left: 25px; }
.timeline article { position: relative; padding: 0 0 26px; }
.timeline article:before {
  content: ''; position: absolute; left: -31px; top: 5px; width: 11px; height: 11px;
  background: var(--accent); border-radius: 50%; border: 3px solid var(--bg);
}
.timeline time { font: 12px var(--font-ui); color: var(--accent-deep); }
.timeline h3 { font-size: 20px; margin: 6px 0; }
.timeline p { color: var(--text-soft); line-height: 1.7; margin: 0; }

.letter {
  padding: 38px; border-radius: 18px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #eaf0e8; display: flex; justify-content: space-between; align-items: center; gap: 25px;
}
.letter h2 { font: 36px var(--font-display); margin: 0 0 8px; }
.letter p { margin: 0; opacity: .78; }
.letter a {
  padding: 11px 16px; background: var(--accent-soft); color: #17352c;
  border-radius: 8px; white-space: nowrap; font-family: var(--font-ui); font-weight: 700;
}

/* ------------------------------------------------------------------ 文章页 */

.article {
  max-width: 780px; margin: 40px auto 60px; background: var(--surface);
  padding: 46px; border-radius: 18px; line-height: 2;
  box-shadow: var(--shadow);
}
.article .back { font: 14px var(--font-ui); color: var(--text-faint); }
.article .back:hover { color: var(--accent); }
.article h1 { font: 600 clamp(30px, 4.4vw, 42px)/1.3 var(--font-body); margin: 18px 0 12px; }
.article .lede { color: var(--text-soft); font-size: 17px; margin: 0 0 20px; }
.article .hero-img {
  display: block; margin: 8px auto 24px;
  width: auto; max-width: 100%; max-height: 620px;
  border-radius: 12px;
}
.article video { max-width: 100%; border-radius: 12px; margin: 8px 0 22px; }
.article img { max-width: 100%; border-radius: 10px; }

.article-body h2 { font: 600 26px/1.5 var(--font-body); margin: 42px 0 14px; padding-left: 14px; border-left: 4px solid var(--accent); }
.article-body h3 { font: 600 21px/1.5 var(--font-body); margin: 32px 0 12px; }
.article-body h4 { font-size: 18px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body a { color: var(--accent-deep); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body blockquote {
  margin: 24px 0; padding: 6px 22px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--text-soft);
}
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 18px; }
.article-body li { margin: 6px 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.article-body code {
  font: 14px var(--font-mono); background: var(--chip); padding: 2px 6px; border-radius: 5px;
}
.article-body pre {
  background: #16241e; color: #d9e6dd; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font: 14px/1.7 var(--font-mono); margin: 0 0 20px;
}
html[data-theme="dark"] .article-body pre { background: #0a0f0c; }
.article-body pre code { background: transparent; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--surface-2); }

/* 目录 */
.toc {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 28px;
}
.toc strong { font: 14px var(--font-ui); color: var(--text-faint); letter-spacing: 1px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 15px; }
.toc li.lv3 { margin-left: 14px; list-style: circle; }
.toc a:hover { color: var(--accent); }

/* 文章底部 */
.article-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share button, .share a {
  font: 13px var(--font-ui); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-soft); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: .2s;
}
.share button:hover, .share a:hover { color: var(--accent); border-color: var(--accent); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list a {
  font: 12px var(--font-ui); background: var(--chip); color: var(--text-soft);
  padding: 4px 11px; border-radius: 999px; transition: .2s;
}
.tag-list a:hover { background: var(--accent); color: #fff; }

/* 上下篇 */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 0 auto 60px; }
.postnav a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; transition: .2s;
}
.postnav a:hover { border-color: var(--accent); transform: translateY(-2px); }
.postnav small { font: 12px var(--font-ui); color: var(--text-faint); }
.postnav strong { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.postnav .next { text-align: right; }

/* 相关文章 */
.related { max-width: 780px; margin: 0 auto 70px; }
.related .section-title { font-size: 26px; margin-bottom: 18px; }

/* ------------------------------------------------------------------ 归档 / 标签页 */

.page-head { padding-top: 10px; margin-bottom: 30px; }
.page-head h1 { font: 46px var(--font-display); margin: 0 0 10px; }
.page-head p { color: var(--text-soft); margin: 0; }

.archive-year { margin-bottom: 40px; }
.archive-year > h2 {
  font: 30px var(--font-display); margin: 0 0 16px; color: var(--accent-deep);
}
.archive-list { border-left: 1px solid var(--line-strong); padding-left: 24px; }
.archive-list article { position: relative; padding: 0 0 22px; }
.archive-list article:before {
  content: ''; position: absolute; left: -30px; top: 7px; width: 9px; height: 9px;
  background: var(--accent); border-radius: 50%; border: 3px solid var(--bg);
}
.archive-list time { font: 12px var(--font-ui); color: var(--text-faint); }
.archive-list h3 { font-size: 20px; margin: 5px 0; }
.archive-list p { color: var(--text-soft); font-size: 14px; margin: 0; }

.cloud { display: flex; gap: 10px; flex-wrap: wrap; }
.cloud a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-family: var(--font-ui); font-size: 15px; transition: .2s;
}
.cloud a:hover { border-color: var(--accent); color: var(--accent); }
.cloud a sup { color: var(--text-faint); font-size: 11px; margin-left: 4px; }

/* ------------------------------------------------------------------ 页脚 */

footer {
  margin-top: auto;
  padding: 50px clamp(20px, 4vw, 56px); background: var(--brand); color: #eaf0e8;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer .brand { color: #fff; }
footer p { margin: 8px 0 0; opacity: .72; font-size: 14px; }
footer .foot-right { text-align: right; font: 14px var(--font-ui); }
footer .foot-right a { opacity: .78; }
footer .foot-right a:hover { opacity: 1; color: var(--accent-soft); }
footer .foot-links { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 8px; }

/* ------------------------------------------------------------------ 其它 */

#to-top {
  position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-soft); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
}
#to-top.show { opacity: 1; pointer-events: auto; }
#to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: var(--brand-2); color: #fff; padding: 11px 20px; border-radius: 999px;
  font: 14px var(--font-ui); opacity: 0; pointer-events: none; transition: .25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notfound { text-align: center; padding: 90px 20px; }
.notfound h1 { font: 90px var(--font-display); margin: 0; color: var(--accent); }
.notfound p { color: var(--text-soft); }

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  nav.topbar { padding: 14px 5%; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: 1fr; }
  .hero { margin: 0; border-radius: 0; min-height: 420px; padding: 30px; }
  .wrap { padding: 48px 7%; }
  .article { margin: 0; border-radius: 0; padding: 26px; }
  .facts, .focus-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .focus { padding: 25px; }
  .letter { display: block; }
  .letter a { display: inline-block; margin-top: 20px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
  footer { display: block; }
  footer .foot-right { text-align: left; margin-top: 20px; }
  footer .foot-links { justify-content: flex-start; }
  #to-top { right: 16px; bottom: 16px; }
}

/* 窄屏：导航收进汉堡菜单 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--text-soft);
}

@media (max-width: 900px) {
  nav.topbar { padding: 13px 5%; }
  nav.topbar .brand { font-size: 22px; }
  .nav-toggle { display: flex; }
  .nav-actions {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 5% 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-actions.open { display: flex; }
  .navlink { padding: 11px 12px; font-size: 15px; border-radius: 10px; }
  .search-box { margin-top: 10px; }
  .search-box input { width: 100%; }
  .nav-actions .icon-btn { align-self: flex-start; margin-top: 10px; }
}

/* ==================================================================
 *  组件层：天气 / 诗词 / 热榜 / 地图 / 相册 / 统计 …
 * ================================================================== */

.fx {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fx-in .5s ease both;
}
@keyframes fx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fx-eyebrow {
  display: block;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.fx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fx-head .fx-eyebrow { margin-bottom: 4px; }
.fx-head h3 {
  font: 700 21px var(--font-display);
  margin: 0;
  color: var(--text);
}
.fx-sub { font: 12px var(--font-ui); color: var(--text-faint); }
.fx-more summary {
  cursor: pointer;
  font: 13px var(--font-ui);
  color: var(--accent-deep);
  margin-top: 12px;
  list-style: none;
}
.fx-more summary::-webkit-details-marker { display: none; }
.fx-more summary::after { content: ' ▾'; }

/* ---------- 天气 ---------- */
.wx-now { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.wx-icon { width: 74px; height: 74px; flex: none; }
.wx-temp { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.wx-temp b { font: 700 52px/1 var(--font-display); color: var(--text); letter-spacing: -1px; }
.wx-temp i { font: 400 20px var(--font-display); color: var(--text-soft); font-style: normal; }
.wx-temp span {
  flex: 1 1 100%;
  font: 14px var(--font-ui);
  color: var(--text-soft);
  margin-top: 4px;
}
.wx-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wx-meta li { display: flex; flex-direction: column; gap: 4px; }
.wx-meta span { font: 12px var(--font-ui); color: var(--text-faint); }
.wx-meta b { font: 600 15px var(--font-ui); color: var(--text); }

.wx-air {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font: 13px var(--font-ui);
  background: var(--chip);
  color: var(--text-soft);
}
.wx-air b { font: 700 20px var(--font-ui); color: var(--text); }
.wx-air em { margin-left: auto; font-style: normal; color: var(--text-faint); }
.wx-air.good { background: color-mix(in srgb, #6aa84f 16%, var(--surface)); }
.wx-air.ok   { background: color-mix(in srgb, #c9a227 16%, var(--surface)); }
.wx-air.mid  { background: color-mix(in srgb, #e2905f 18%, var(--surface)); }
.wx-air.bad, .wx-air.worse { background: color-mix(in srgb, #c0553f 18%, var(--surface)); }

.wx-sun {
  display: flex;
  gap: 22px;
  font: 13px var(--font-ui);
  color: var(--text-soft);
  margin-bottom: 14px;
}
.wx-sun b { color: var(--text); }

.wx-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.wx-chips span {
  font: 12px var(--font-ui);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-soft);
}

.wx-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}
.wx-days > div {
  flex: 0 0 74px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
}
.wx-days > div.today { background: var(--chip); }
.wx-days img { width: 32px; height: 32px; }
.wx-days .d { font: 11px var(--font-ui); color: var(--text-faint); white-space: nowrap; }
.wx-days .c { font: 12px var(--font-ui); color: var(--text-soft); }
.wx-days .t { font: 12px var(--font-ui); color: var(--text-faint); }
.wx-days .t b { color: var(--text); }

/* ---------- 一言 / 诗词 ---------- */
.fx-quote blockquote {
  margin: 0 0 12px;
  font: 400 19px/1.8 var(--font-body);
  color: var(--text);
  border-left: 3px solid var(--accent-soft);
  padding-left: 16px;
}
.fx-quote cite, .fx-poem cite {
  font: 13px var(--font-ui);
  font-style: normal;
  color: var(--text-faint);
}
.fx-poem p {
  margin: 0 0 12px;
  font: 400 19px/1.9 var(--font-body);
  color: var(--text);
  letter-spacing: .5px;
}

/* ---------- 每日 60 秒 ---------- */
.news-cover {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font: 15px/1.75 var(--font-ui);
  color: var(--text-soft);
}
.news-list li:last-child { border-bottom: 0; }
.news-list i {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--chip);
  color: var(--text-faint);
  font: 600 11px var(--font-ui);
  font-style: normal;
  margin-top: 3px;
}

/* ---------- 历史上的今天 ---------- */
.fx-history ul { list-style: none; margin: 0; padding: 0; }
.fx-history li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font: 15px/1.7 var(--font-ui);
  color: var(--text-soft);
}
.fx-history li:last-child { border-bottom: 0; }
.fx-history b {
  flex: none;
  font: 600 13px var(--font-ui);
  color: var(--accent-deep);
  background: var(--chip);
  padding: 3px 9px;
  border-radius: 999px;
  height: fit-content;
  margin-top: 2px;
}

/* ---------- 热搜榜 ---------- */
.fx-hot ol { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.fx-hot li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.fx-hot li:last-child { border-bottom: 0; }
.fx-hot i {
  flex: none;
  width: 20px;
  font: 700 13px var(--font-ui);
  font-style: normal;
  color: var(--text-faint);
  text-align: center;
}
.fx-hot li.top i { color: var(--accent); }
.fx-hot a {
  font: 15px/1.5 var(--font-ui);
  color: var(--text-soft);
  flex: 1;
  min-width: 0;
}
.fx-hot li.top a { color: var(--text); font-weight: 600; }
.fx-hot a:hover { color: var(--accent-deep); }
.fx-hot em {
  flex: none;
  font: 11px var(--font-ui);
  font-style: normal;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- 每日壁纸 ---------- */
.fx-bing { padding: 0; }
.fx-bing img { width: 100%; display: block; aspect-ratio: 16/7; object-fit: cover; }
.fx-bing figcaption {
  padding: 18px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.fx-bing figcaption strong { font: 600 16px var(--font-ui); color: var(--text); }
.fx-bing figcaption span { font: 12px var(--font-ui); color: var(--text-faint); flex: 1 1 100%; }
.fx-bing figcaption a { font: 13px var(--font-ui); color: var(--accent-deep); }

/* ---------- 音乐 ---------- */
.mu-now { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mu-pic {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--chip);
  flex: none;
}
.mu-now b { display: block; font: 600 15px var(--font-ui); color: var(--text); }
.mu-now span { font: 12px var(--font-ui); color: var(--text-faint); }
.mu-ctrl { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mu-ctrl button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font: 12px var(--font-ui);
  transition: .2s;
}
.mu-ctrl button:hover { color: var(--accent); border-color: var(--accent); }
.mu-ctrl .mu-play { min-width: 52px; font-size: 13px; }
.fx-music.playing .mu-pic { animation: mu-spin 14s linear infinite; }
@keyframes mu-spin { to { transform: rotate(360deg); } }
.mu-count { margin-left: auto; font: 12px var(--font-ui); color: var(--text-faint); }
.mu-list { list-style: none; margin: 0; padding: 0; max-height: 230px; overflow-y: auto; }
.mu-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: 13px var(--font-ui);
  color: var(--text-soft);
}
.mu-list li:hover { background: var(--chip); }
.mu-list li.on { background: var(--chip); color: var(--text); font-weight: 600; }
.mu-list li i { font-style: normal; color: var(--text-faint); width: 16px; flex: none; }
.mu-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-list li em { font-style: normal; color: var(--text-faint); font-size: 12px; }

/* ---------- 统计 ---------- */
.st-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.st-nums div { display: flex; flex-direction: column; gap: 4px; }
.st-nums b { font: 700 26px/1 var(--font-display); color: var(--text); }
.st-nums span { font: 12px var(--font-ui); color: var(--text-faint); }
.st-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 74px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.st-bars div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.st-bars i {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  display: block;
}
.st-bars span { font: 10px var(--font-ui); color: var(--text-faint); }

/* ---------- 地图 ---------- */
.fx-map { padding: 0; height: var(--map-h, 420px); background: var(--chip); }
.fx-map-canvas { width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; }
.fx-map-error, .fx-map-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 160px;
  color: var(--text-faint);
  font: 13px var(--font-ui);
  padding: 20px;
  text-align: center;
}
.tdt-pop { font: 13px var(--font-ui); padding: 4px 2px; }
.tdt-pop b { display: block; margin-bottom: 4px; }
.tdt-pop span { color: #7b8b83; display: block; margin-bottom: 4px; }
.tdt-pop a { color: #bf6844; }

/* ---------- 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.g-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--chip);
  border: 1px solid var(--line);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  font: 11px var(--font-ui);
  color: #fff;
  background: linear-gradient(transparent, #0009);
  opacity: 0;
  transition: .3s;
}
.g-item:hover span { opacity: 1; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: #0b0f0cd9;
  backdrop-filter: blur(6px);
}
.lb.show { display: grid; }
.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 70px #0008;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  border: 0;
  background: #ffffff1f;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #ffffff38; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 13px var(--font-ui);
  opacity: .8;
}

/* ---------- 足迹列表 ---------- */
.geo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.geo-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: .25s;
}
.geo-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.geo-item b { display: block; font: 600 16px var(--font-ui); color: var(--text); margin-bottom: 6px; }
.geo-item span { font: 12px var(--font-ui); color: var(--text-faint); }

/* ---------- 首页 / 关于 的补充块 ---------- */
.today { margin-bottom: 20px; }
.today-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.today-grid > .fx { height: 100%; }
.today-grid .fx-quote,
.today-grid .fx-poem { display: flex; flex-direction: column; justify-content: center; }
.home-gallery { margin-top: 65px; }
.about-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.about-links a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font: 14px var(--font-ui);
  color: var(--text-soft);
  transition: .25s;
}
.about-links a:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

.article-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13px var(--font-ui);
  color: var(--text-faint);
  margin: 0 0 20px;
}
.article-place svg { color: var(--accent); }
.article-place a { color: var(--accent-deep); }

/* ---------- 此刻 页面栅格 ---------- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
}
.now-col { display: grid; gap: 22px; }
.now-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.now-duo > *:only-child { grid-column: 1 / -1; }
.now-grid > .fx-news,
.now-grid > .fx-bing,
.now-grid > .fx-music,
.now-grid > .fx-stats { grid-column: 1 / -1; }

/* 数据源偶尔失败时的占位提示 */
.fx-empty-tip {
  margin: 12px 0 2px;
  font: 14px/1.8 var(--font-ui);
  color: var(--text-faint);
}

/* ---------- 正文里的短代码块 ---------- */
.article-body .fx { margin: 28px 0; }
.sc-note {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font: 15px/1.85 var(--font-ui);
  color: var(--text-soft);
}
.sc-btn { margin: 26px 0; }
.sc-btn a {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--brand-2);
  color: #fff;
  font: 14px var(--font-ui);
}

@media (max-width: 1000px) {
  .today-grid { grid-template-columns: 1fr 1fr; }
  .today-grid > .fx-weather { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .geo-list { grid-template-columns: repeat(2, 1fr); }
  .about-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .fx { padding: 22px 20px; border-radius: 14px; }
  .today-grid, .now-grid { grid-template-columns: 1fr; }
  .now-duo { grid-template-columns: 1fr; }
  .now-grid > .fx-news, .now-grid > .fx-bing, .now-grid > .fx-music { grid-column: auto; }
  .today-grid .fx-quote, .today-grid .fx-poem { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .geo-list { grid-template-columns: 1fr; }
  .about-links { grid-template-columns: 1fr; }
  .wx-temp b { font-size: 44px; }
  .wx-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .st-nums { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-img { max-width: 94vw; }
}

@media print {
  nav.topbar, footer, #to-top, .share, .postnav, .related, .toc,
  .today, .now-grid, .gallery, .fx-map, .fx-music { display: none !important; }
  .article { box-shadow: none; margin: 0; padding: 0; }
}
