@font-face {
  font-family: 'Kosugi Maru';
  src: url('/font/Kosugi_Maru/KosugiMaru-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alimama';
  src: url('/font/ALiMaMaFangYuanTi/AlimamaFangYuanTiVF-Thin.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
:root {
  --site-layout-width: 1440px;
  --site-layout-height: 900px;

  color-scheme: light;
  --page: #f0f6fa;
  --surface: #fff;
  --ink: #263e50;
  --muted: #657b8c;
  --accent: #267da9;
  --soft: #eaf5fc;
  --line: #dbe8f0;
  --button: #287da8;
  --button-ink: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #16171b;
    --surface: #22262e;
    --ink: #e5edf3;
    --muted: #a2b3c1;
    --accent: #8dcced;
    --soft: #293b49;
    --line: #354451;
    --button: #8dcced;
    --button-ink: #142a38;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #16171b;
  --surface: #22262e;
  --ink: #e5edf3;
  --muted: #a2b3c1;
  --accent: #8dcced;
  --soft: #293b49;
  --line: #354451;
  --button: #8dcced;
  --button-ink: #142a38;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { width: var(--site-layout-width); min-width: var(--site-layout-width); overflow-x: clip; margin: 0; background: var(--page); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.7; }
/* 沿用站内的星轨花纹，按固定画布定位，缩窗时与页面一起裁剪。 */
body {
  background-image: url('/decor/content-left.svg'), url('/decor/content-right.svg'),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0.8px, transparent 1px);
  background-size: clamp(150px, calc(var(--site-layout-width) * 0.12), 220px) auto,
    clamp(150px, calc(var(--site-layout-width) * 0.12), 220px) auto, 28px 28px;
  background-position: left top 110px, right top 70px, 0 0;
  background-repeat: repeat-y, repeat-y, repeat;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button[hidden] { display: none; }
::selection { background: #8dcced66; }
.wrap { width: min(960px, var(--site-layout-width)); padding: 0 40px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Kosugi Maru', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 35px; height: 35px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.language-switch { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: repeat(2, minmax(58px, 1fr)); flex-shrink: 0; gap: 3px; padding: 4px; border: 0; border-radius: 999px; background: var(--surface); }
.language-switch::before { content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc((100% - 11px) / 2); border-radius: inherit; background: var(--button); transform: translateX(0); transition: transform .28s cubic-bezier(.22, 1, .36, 1), background-color .18s; }
html[lang="en"] .language-switch::before { transform: translateX(calc(100% + 3px)); }
.language-switch[hidden] { display: none; }
.language-switch button { position: relative; z-index: 1; min-height: 34px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .18s, color .18s, transform .15s; }
.language-switch button:hover { color: var(--accent); background: var(--soft); }
.language-switch button:active { transform: scale(.96); }
.language-switch button[aria-pressed="true"] { background: transparent; color: var(--button-ink); }
footer a:hover { color: var(--accent); }
.intro { position: relative; padding: 39px 0 36px; }
h1 { position: relative; z-index: 1; margin: 21px 0 17px; font-family: 'Alimama', sans-serif; font-size: clamp(28px, calc(var(--site-layout-width) * 0.04), 42px); line-height: 1.4; letter-spacing: -.04em; }
.title-accent { color: var(--accent); }
.title-dot { color: #71b8db; }
.intro-orbit { position: absolute; right: 12px; top: 47px; width: 116px; height: 116px; color: var(--accent); pointer-events: none; }
.subscribe { position: relative; border: 0; border-radius: 22px; background: var(--surface); padding: 25px 28px 20px; overflow: hidden; }
.subscribe::before { content: ""; position: absolute; top: 25px; bottom: 25px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.subscribe-heading { display: flex; align-items: center; gap: 15px; }
.rss-symbol { flex-shrink: 0; width: 40px; height: 40px; padding: 8px; border-radius: 13px; color: var(--accent); background: var(--soft); }
.subscribe h2 { margin: 0 0 3px; font-size: 16px; }
.subscribe-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.subscribe-address { display: flex; gap: 10px; margin-top: 19px; }
.subscribe-address input { width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: 15px/1.8 Consolas, monospace; }
.subscribe-address button { flex-shrink: 0; border: 0; padding: 10px 17px; border-radius: 10px; background: var(--button); color: var(--button-ink); font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .18s; }
.subscribe-address button:hover { filter: brightness(1.1); }
.subscribe-address button > .fas { margin-right: 7px; }
.subscribe-address button { min-width: 150px; white-space: nowrap; }
.copy-status { margin: 10px 0 0; min-height: 21px; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 42px 0 17px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: 'Alimama', sans-serif; font-size: 18px; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font: 14px Consolas, monospace; }
.article-list { border: 0; border-radius: 22px; background: var(--surface); overflow: hidden; }
article { display: flex; gap: 23px; margin: 0 28px; padding: 25px 0 27px; }
article + article { border-top: 1px solid var(--line); }
.article-number { padding-top: 2px; color: var(--muted); opacity: .65; font: 15px/1.8 Consolas, monospace; }
.article-content { min-width: 0; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 10px; min-height: 23px; color: var(--muted); font-size: 14px; }
.date { font-variant-numeric: tabular-nums; }
.latest { background: var(--soft); color: var(--accent); padding: 0 7px; border-radius: 5px; font-size: 12px; line-height: 20px; }
h3 { margin: 7px 0 6px; font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
h3 a { display: flex; gap: 20px; justify-content: space-between; transition: color .18s; }
h3 a:hover { color: var(--accent); }
.article-arrow { flex-shrink: 0; color: var(--accent); font-weight: 400; font-size: 20px; transition: transform .18s; }
h3 a:hover .article-arrow { transform: translate(2px, -2px); }
.item-description { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 13px 0 0; }
.tags li { padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; }
.empty { padding: 28px; color: var(--muted); }
footer { padding: 37px 0 34px; text-align: center; color: var(--muted); font-size: 14px; }
.footer-star { color: var(--accent); font-size: 20px; }
.footer-info { margin-top: 8px; }
footer a { font-size: 15px; }
.footer-label { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); font: 14px Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[lang="en"] h1 { max-width: calc(100% - 140px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
