:root {
  color-scheme: light;
  --brand: #2563eb;
  --ink: #162d53;
  --text: #33445e;
  --muted: #62748f;
  --line: #dce6f3;
  --soft: #eef5ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f0f5fc; color: var(--text); font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #6ca1ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; min-height: 76px; margin: auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-link:hover { text-decoration: none; }
.brand-avatar { display: block; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.5; }
.brand-copy strong { font-size: 15px; letter-spacing: .02em; }
.brand-copy span { color: var(--muted); font-size: 11px; }
.header-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.header-nav a { padding: 7px 12px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { background: var(--soft); color: var(--brand); text-decoration: none; }
.page-shell { max-width: 1064px; padding: 28px 28px 24px; margin: auto; }
.page-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.heading-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.page-heading h1 { color: var(--ink); font-size: clamp(22px, 2.5vw, 26px); line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.heading-main > a { font-size: 13px; white-space: nowrap; }
.heading-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 12px; }
.period { color: var(--muted); font-size: 12px; }
.stats-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.heading-meta .stats-strip { margin-top: 0; }
.stat { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.stat strong { color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }
.content-panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; padding: 24px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-heading h2 { font-size: 18px; color: var(--ink); font-weight: 650; }
.archive-tools { display: flex; gap: 10px; align-items: center; }
.search-input, .archive-tools select { padding: 9px 12px; height: 42px; background: #f8faff; border: 1px solid #d4dfef; border-radius: 7px; color: var(--text); }
.search-input { min-width: 0; width: 270px; }
.search-input::placeholder { color: #71839d; }
.archive-tools select { max-width: 120px; }
.quiet-button { padding: 8px 4px; border: 0; background: transparent; color: var(--brand); cursor: pointer; white-space: nowrap; font-size: 13px; }
.result-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.result-note:empty { display: none; }
.archive-year { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 14px; }
.archive-year:first-child { margin-top: 0; }
.archive-year > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--soft); color: var(--ink); font-size: 16px; font-weight: 650; cursor: pointer; list-style: none; }
.archive-year > summary::-webkit-details-marker { display: none; }
.archive-year > summary::after { content: "+"; margin-left: auto; color: var(--brand); font: 22px/1 sans-serif; }
.archive-year[open] > summary::after { content: "−"; }
.archive-year summary span { color: var(--muted); font-size: 12px; font-weight: 400; }
.year-items { padding: 0 18px; }
.update-item { padding: 18px 0; }
.update-plugin > .update-item { padding-inline: 16px; }
.update-item + .update-item { border-top: 1px solid #e8edf5; }
.update-item-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; }
.version-number { color: var(--ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.version-number::before { content: "版本 "; color: var(--muted); font-size: 11px; font-weight: 400; }
.update-date { color: var(--muted); font-size: 12px; }
.update-detail { display: flex; align-items: baseline; gap: 10px; margin-top: 7px; font-size: 14px; line-height: 1.85; }
.update-tag { display: inline-block; flex: 0 0 auto; min-width: 34px; padding: 0 5px; border-radius: 4px; background: #f0f3f7; color: #65758b; font-size: 10px; line-height: 1.85; text-align: center; }
.update-tag-new { background: #e7f5ee; color: #226a4a; }
.update-tag-optimize { background: #fff4dc; color: #886215; }
.update-tag-fix { background: #fdeeed; color: #9d4a43; }
.change-text { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 78ch; }
.update-plugin { margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; scroll-margin-top: 24px; }
.update-plugin:first-child { margin-top: 0; }
.update-plugin-title { padding: 12px 16px; background: var(--soft); color: var(--ink); font-size: 16px; font-weight: 650; }
.update-items { padding: 0 18px; }
.empty-state { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-state p { margin-bottom: 10px; }
.retry-button { border: 1px solid #bdcff0; background: #eef4ff; border-radius: 7px; color: var(--brand); padding: 7px 14px; cursor: pointer; font-size: 13px; }
button:disabled, input:disabled, select:disabled { opacity: .6; cursor: default; }
.load-error { color: #9d4a43; }
.site-footer { color: var(--muted); font-size: 11px; text-align: center; padding: 24px 12px 0; }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* 插件日志以连续时间线组织年份和版本，保留原生折叠。 */
.plugin-log #update-list { position: relative; padding-left: 24px; }
.plugin-log #update-list::before { content: ""; position: absolute; left: 5px; top: 26px; bottom: 24px; width: 1px; background: #cad8eb; }
.plugin-log .archive-year { border: 0; border-radius: 0; overflow: visible; margin-top: 12px; }
.plugin-log .archive-year:first-child { margin-top: 0; }
.plugin-log .archive-year > summary { position: relative; padding: 12px 0; background: transparent; }
.plugin-log .archive-year > summary::before { content: ""; position: absolute; left: -25px; top: 20px; width: 12px; height: 12px; border: 2px solid #7592b8; background: #fff; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.plugin-log .year-items { padding: 0; }
.plugin-log .year-items > .update-item { position: relative; padding: 14px 0 18px; border: 0; }
.plugin-log .year-items > .update-item::before { content: ""; position: absolute; left: -23px; top: 21px; width: 8px; height: 8px; background: #7592b8; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
/* 月报按插件组织，版本日志保留独立的检索层级。 */
.monthly-update .heading-main { align-items: center; }
.monthly-update .heading-main .search-input { width: 270px; max-width: 100%; }
.monthly-update #update-list { margin-left: 5px; }
.monthly-update .update-plugin { position: relative; margin: 0; padding: 0 0 24px 22px; border: 0; border-left: 1px solid #cad8eb; border-radius: 0; overflow: visible; }
.monthly-update .update-plugin:last-child { padding-bottom: 0; }
.monthly-update .update-plugin::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #7592b8; box-shadow: 0 0 0 3px #fff; }
.monthly-update .update-plugin-title { padding: 0; margin-bottom: 12px; background: transparent; color: #405e85; font-size: 17px; font-weight: 600; }
.monthly-update .update-plugin > .update-item { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.monthly-update .update-item-meta { margin-bottom: 10px; }
.monthly-update .version-number { color: var(--muted); font-size: 12px; font-weight: 400; }
@media (max-width: 760px) {
  .header-inner { padding: 12px 18px; min-height: 68px; }
  .brand-copy strong { font-size: 13px; }
  .brand-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .brand-link { gap: 9px; }
  .header-nav { gap: 0; font-size: 12px; }
  .header-nav a { padding: 7px 8px; }
  .header-nav a:nth-child(n+3) { display: none; }
  .page-shell { padding: 18px 16px 22px; }
  .page-heading { padding-bottom: 16px; margin-bottom: 16px; }
  .content-panel { padding: 18px; border-radius: 12px; }
  .panel-heading { gap: 12px; }
  .archive-tools { width: 100%; gap: 8px; }
  .archive-tools .search-input { flex: 1; width: 0; }
  .search-input { width: 100%; }
  .year-items, .update-items { padding: 0 14px; }
  .update-detail { gap: 8px; }
  .monthly-update .heading-main .search-input { width: 100%; }
  .monthly-update .update-plugin { padding-left: 16px; }
  .monthly-update .update-plugin > .update-item { padding: 16px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; padding-inline: 14px; }
  .brand-copy span { display: none; }
  .brand-copy strong { font-size: 12px; }
  .header-nav a:nth-child(n+2) { display: none; }
  .content-panel { padding: 14px; }
  .archive-tools select { max-width: 100px; font-size: 12px; padding-inline: 6px; }
  .archive-tools .search-input { font-size: 12px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.update-plugin-title a { color: inherit; }

.update-controls { display: flex; align-items: center; gap: 10px; min-width: 0; }
.update-controls select { height: 42px; padding: 9px 12px; border: 1px solid #d4dfef; border-radius: 7px; background: #f8faff; color: var(--text); }
@media (max-width: 640px) {
  .update-controls { width: 100%; gap: 8px; }
  .update-controls select { flex: 0 0 auto; padding-inline: 8px; }
  .monthly-update .heading-main .update-controls .search-input { flex: 1; width: 0; }
}

.header-nav a.nav-ai, .header-nav a[aria-current="page"] { display: block; }

/* Shared header: fixed labels and geometry across guides and reports. */
html { scrollbar-gutter: stable; }
.unified-header.site-header { background: #fff; border-color: #dce6f3; }
.unified-header .header-inner { max-width: 1176px; min-height: 76px; padding: 14px 28px; gap: 20px; }
.unified-header .brand-link { flex-shrink: 0; gap: 12px; color: #162d53; }
.unified-header .brand-avatar { width: 42px; height: 42px; border-radius: 12px; }
.unified-header .brand-copy strong { font-size: 15px; font-weight: 700; }
.unified-header .brand-copy span { display: block; font-size: 11px; color: #62748f; }
.unified-header .header-nav { gap: 8px; }
.unified-header .header-nav a { display: block; padding: 7px 12px; border-radius: 7px; font-size: 13px; color: #62748f; }
.unified-header .header-nav a:hover, .unified-header .header-nav a.active { background: #eef5ff; color: #2563eb; }
@media (max-width: 760px) {
  .unified-header .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 18px; }
  .unified-header .header-nav { width: 100%; gap: 4px; overflow-x: auto; }
  .unified-header .header-nav a { display: block; flex-shrink: 0; padding: 7px 9px; font-size: 12px; }
}
