/* 全站唯一样式档——1198 页新闻共用，改版只动这一个文件（皮肤可整体换，骨架 HTML 永不动） */
:root { --green:#3EB370; --cream:#F5F1E8; --ink:#222; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
       color:var(--ink); background:var(--cream); line-height:1.85; font-size:18px; }

.site-header { background:var(--green); padding:.9rem 1.2rem;
               display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; }
.site-header .logo { color:#fff; font-weight:700; font-size:1.15rem; text-decoration:none; letter-spacing:.05em; }
.site-header nav a { color:#fff; opacity:.9; text-decoration:none; margin-left:1rem; font-size:.95rem; }
.site-header nav a:hover { opacity:1; text-decoration:underline; }

.post-page { max-width:720px; margin:0 auto; padding:1.5rem 1.2rem 3rem; }
.crumb { font-size:.85rem; color:#888; margin-bottom:1.4rem; }
.crumb a { color:#888; text-decoration:none; }
.crumb a:hover { color:var(--green); }

article h1 { font-size:1.55rem; line-height:1.45; color:var(--green); margin-bottom:.4rem; }
article time { display:block; font-size:.9rem; color:#888; margin-bottom:1.6rem; }
article .body p { margin-bottom:1.1em; }
article .body a { color:var(--green); word-break:break-all; }

.figures figure { margin:1.6rem 0; }
.figures img { max-width:100%; height:auto; display:block; border-radius:6px; }
.figures figcaption { font-size:1rem; color:#666; margin-top:.5rem; } /* 图注不小于 16px（用户铁律） */
.figures .video-embed { position:relative; padding-top:56.25%; margin:1.6rem 0; }
.figures .video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:6px; }

.pager { display:flex; justify-content:space-between; gap:1rem; margin-top:2.5rem;
         padding-top:1.2rem; border-top:1px solid #ddd; font-size:.95rem; }
.pager a { color:var(--green); text-decoration:none; max-width:48%; }
.pager a:hover { text-decoration:underline; }

.site-footer { background:#2a2a2a; color:#bbb; text-align:center; padding:1.4rem 1rem; font-size:.85rem; }

/* 年度索引页卡片（P4 生成的 news/YYYY/index.html 共用本档） */
.year-list { max-width:720px; margin:0 auto; padding:1.5rem 1.2rem 3rem; }
.year-list h1 { color:var(--green); font-size:1.6rem; margin-bottom:1.2rem; }
.year-list .post-card { background:#fff; border-radius:8px; padding:1rem 1.2rem; margin-bottom:.9rem;
                        box-shadow:0 1px 4px rgba(0,0,0,.06); }
.year-list .post-card time { font-size:.82rem; color:#888; }
.year-list .post-card a { color:var(--ink); text-decoration:none; font-weight:600; display:block; margin-top:.15rem; }
.year-list .post-card a:hover { color:var(--green); }
.year-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.5rem; }
.year-nav a { background:#fff; border-radius:999px; padding:.25rem .9rem; text-decoration:none;
              color:var(--ink); font-size:.9rem; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.year-nav a.on, .year-nav a:hover { background:var(--green); color:#fff; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior:smooth; }
}
