:root {
  color-scheme: light;
  --canvas: #f8f7f4;
  --surface: #fff;
  --rail: #fbfbf9;
  --ink: #182a32;
  --muted: #52636a;
  --line: #dbe3df;
  --accent: #17636a;
  --active: #e4edeb;
  --hero: #132d34;
  --hero-line: #49676d;
  --mint: #c9f1e7;
  font: 15px/1.55 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: -20em; z-index: 2; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; }
aside { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 180px; padding: 30px 12px 18px; background: var(--rail); border-right: 1px solid var(--line); }
.brand { display: flex; gap: 8px; align-items: center; margin-left: 4px; font-size: 22px; font-weight: 750; letter-spacing: -.04em; }
.brand::before { content: ""; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
aside nav { display: grid; gap: 5px; margin-top: 52px; }
aside nav a { border-radius: 8px; color: var(--muted); padding: 10px 13px; }
aside nav a[aria-current="page"] { color: var(--ink); background: var(--active); font-weight: 650; }
.repo { margin-top: auto; padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; text-align: center; font-size: 13px; }
main { max-width: 1720px; margin-left: 180px; padding: 24px 28px 0; }
.hero { overflow: hidden; color: #f3f8f7; background: var(--hero); border-radius: 14px; }
.hero-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; padding: 26px 28px 28px; }
h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; letter-spacing: -.045em; }
.hero-main p { margin-top: 12px; color: #d2e4e3; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.action { border: 1px solid #729691; padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 650; }
.action.primary { background: var(--mint); color: var(--hero); border-color: var(--mint); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--hero-line); border-radius: 10px; background: var(--hero-line); }
.topics a { display: flex; height: 100%; justify-content: space-between; align-items: center; padding: 11px 13px; background: #1c3a43; font-size: 13px; }
.topics li:first-child a { border-top-left-radius: 9px; }
.topics li:nth-child(2) a { border-top-right-radius: 9px; }
.topics li:nth-last-child(2) a { border-bottom-left-radius: 9px; }
.topics li:last-child a { border-bottom-right-radius: 9px; }
.topics a:hover { background: #2e535b; }
.topics span { color: #a3d6ce; }
.references { border-top: 1px solid var(--hero-line); padding: 14px 28px 16px; font-size: 13px; }
.references h2 { font-size: inherit; color: var(--mint); margin-bottom: 5px; }
.references ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.references span { margin-left: 4px; color: #aac7c8; }
#articles { margin-top: 24px; scroll-margin-top: 12px; }
.feed-heading,.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.feed-heading h2 { font-size: 23px; }
.feed-heading time, .feed-status, footer, .metadata { color: var(--muted); font-size: 13px; }
.toolbar { margin: 12px 0; }
#filters { display: flex; flex-wrap: wrap; gap: 4px; }
#filters a { padding: 6px 9px; border-radius: 20px; color: var(--muted); font-size: 13px; }
#filters a[aria-current="page"] { background: var(--active); color: var(--ink); font-weight: 650; }
#search { display: flex; gap: 6px; align-items: center; }
#search input { min-width: 0; width: min(185px, 60vw); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; }
.feed-status { margin: 8px 0; }
.feed { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.entry { padding: 13px 17px; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry a { font-size: 16px; font-weight: 630; overflow-wrap: anywhere; }
.entry a:hover { color: var(--accent); }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; margin-top: 4px; }
.tag { color: var(--accent); }
#more { display: block; margin: 13px auto 0; }
footer { padding: 24px 0; }
@media (max-width: 990px) {
  .hero-main { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  aside { position: relative; display: block; width: auto; padding: 11px 16px; border-right: 0; }
  .brand { margin-left: 0; font-size: 17px; }
  aside nav { position: fixed; display: grid; grid-template-columns: repeat(3, 1fr); inset: auto 0 0; z-index: 1; margin: 0; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); background: var(--rail); border-top: 1px solid var(--line); text-align: center; }
  aside nav a { padding: 8px 5px; font-size: 13px; }
  .repo { display: none; }
  main { margin: 0; padding: 0 16px 55px; }
  .hero-main { padding: 20px; gap: 19px; }
  .references { padding: 12px 20px 14px; }
  .references ul { grid-template-columns: 1fr; }
  .feed-heading h2 { font-size: 21px; }
  .entry { padding: 11px 13px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --canvas: #101b1e; --surface: #172629; --rail: #142124; --ink: #e6efed; --muted: #aabfbc; --line: #385052; --active: #284649; --accent: #a0dcd0; }
}
