@property --sr-ground {
  syntax: "<color>";
  inherits: true;
  initial-value: #1a1e24;
}

:root {
  --sr-palette-canvas: #edf1f3;
  --sr-palette-surface: #f7faf9;
  --sr-palette-raised: #ffffff;
  --sr-palette-primary: #243238;
  --sr-palette-secondary: #43575f;
  --sr-palette-muted: #586c74;
  --sr-palette-border: #aab8c1;
  --sr-palette-border-strong: #718491;
  --sr-palette-accent: #246f6b;
  --sr-palette-accent-contrast: #ffffff;
  --sr-palette-success: #17633d;
  --sr-palette-success-contrast: #ffffff;
  --sr-palette-warning: #79520a;
  --sr-palette-warning-contrast: #ffffff;
  --sr-palette-danger: #a32632;
  --sr-palette-danger-contrast: #ffffff;
  --sr-palette-info: #2859a4;
  --sr-palette-info-contrast: #ffffff;
  --sr-palette-focus: #075e83;
  --sr-semantic-canvas: var(--sr-palette-canvas);
  --sr-semantic-surface: var(--sr-palette-surface);
  --sr-semantic-surface-raised: var(--sr-palette-raised);
  --sr-semantic-text-primary: var(--sr-palette-primary);
  --sr-semantic-text-secondary: var(--sr-palette-secondary);
  --sr-semantic-text-muted: var(--sr-palette-muted);
  --sr-semantic-border: var(--sr-palette-border);
  --sr-semantic-border-strong: var(--sr-palette-border-strong);
  --sr-semantic-accent: var(--sr-palette-accent);
  --sr-semantic-accent-contrast: var(--sr-palette-accent-contrast);
  --sr-semantic-success: var(--sr-palette-success);
  --sr-semantic-success-contrast: var(--sr-palette-success-contrast);
  --sr-semantic-warning: var(--sr-palette-warning);
  --sr-semantic-warning-contrast: var(--sr-palette-warning-contrast);
  --sr-semantic-danger: var(--sr-palette-danger);
  --sr-semantic-danger-contrast: var(--sr-palette-danger-contrast);
  --sr-semantic-info: var(--sr-palette-info);
  --sr-semantic-info-contrast: var(--sr-palette-info-contrast);
  --sr-semantic-focus-ring: var(--sr-palette-focus);
  --sr-paper: var(--sr-semantic-canvas);
  --sr-panel: var(--sr-palette-surface);
  --sr-card: rgba(250, 252, 251, .78);
  --sr-ink: var(--sr-palette-primary);
  --sr-secondary: var(--sr-palette-secondary);
  --sr-muted: var(--sr-palette-muted);
  --sr-line: color-mix(in srgb, var(--sr-palette-border) 70%, transparent);
  --sr-line-strong: color-mix(in srgb, var(--sr-palette-border-strong) 70%, transparent);
  --sr-shine: rgba(255, 255, 255, .62);
  --sr-shadow: rgba(27, 50, 61, .08);
  --sr-shadow-soft: 0 8px 24px -18px var(--sr-shadow);
  --sr-shadow-surface: 0 14px 36px -24px var(--sr-shadow);
  --sr-accent: var(--sr-palette-accent);
  --sr-accent-soft: rgba(40, 124, 120, .09);
  --sr-warm: #8c673d;
  --sr-rail: 76px;
  --sr-gutter: clamp(88px, 6.67vw, 128px);
  --sr-safe: var(--sr-gutter);
  --sr-copy-inset: 64px;
  --sr-aside-width: clamp(216px, 19vw, 280px);
  --sr-ease: cubic-bezier(.23, 1, .32, 1);
  --sr-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sr-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, "Times New Roman", serif;
  color-scheme: light;
}

html[data-palette-preset="signal"] { --sr-palette-accent: #a43d18; --sr-palette-focus: #a43d18; }
html[data-palette-preset="spectrum"] { --sr-palette-accent: #5541a6; --sr-palette-focus: #5541a6; }
html[data-palette-preset="vermilion"] { --sr-palette-accent: #a33222; --sr-palette-focus: #a33222; }
html[data-palette-preset="botanic"] { --sr-palette-accent: #32613b; --sr-palette-focus: #32613b; }
html.lill-dark[data-palette-preset="signal"] { --sr-palette-accent: #ff986d; --sr-palette-focus: #ff986d; }
html.lill-dark[data-palette-preset="spectrum"] { --sr-palette-accent: #b7a6ff; --sr-palette-focus: #b7a6ff; }
html.lill-dark[data-palette-preset="vermilion"] { --sr-palette-accent: #ff927f; --sr-palette-focus: #ff927f; }
html.lill-dark[data-palette-preset="botanic"] { --sr-palette-accent: #92d69a; --sr-palette-focus: #92d69a; }

html[data-display-mode="light"] {
  color-scheme: light;
}

html[data-display-mode="dark"] {
  color-scheme: dark;
}

html.lill-dark {
  --sr-palette-canvas: #151c22;
  --sr-palette-surface: #202a32;
  --sr-palette-raised: #2a3741;
  --sr-palette-primary: #f2f6f8;
  --sr-palette-secondary: #c4d0d7;
  --sr-palette-muted: #aebdc6;
  --sr-palette-border: #667985;
  --sr-palette-border-strong: #91a4af;
  --sr-palette-accent: #70c8ef;
  --sr-paper: var(--sr-palette-canvas);
  --sr-panel: var(--sr-palette-surface);
  --sr-card: var(--sr-palette-raised);
  --sr-ink: var(--sr-palette-primary);
  --sr-secondary: var(--sr-palette-secondary);
  --sr-muted: var(--sr-palette-muted);
  --sr-line: color-mix(in srgb, var(--sr-palette-border) 70%, transparent);
  --sr-line-strong: color-mix(in srgb, var(--sr-palette-border-strong) 70%, transparent);
  --sr-shine: rgba(255, 255, 255, .12);
  --sr-shadow: rgba(0, 0, 0, .2);
  --sr-shadow-soft: 0 8px 24px -18px var(--sr-shadow);
  --sr-shadow-surface: 0 14px 36px -24px var(--sr-shadow);
  --sr-accent: var(--sr-palette-accent);
  --sr-accent-soft: rgba(158, 215, 203, .1);
  --sr-warm: #dec19b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  min-width: 280px;
  background: var(--sr-paper);
  scrollbar-color: var(--sr-muted) var(--sr-paper);
}
body {
  margin: 0;
  min-width: 280px;
  background: var(--sr-paper);
  color: var(--sr-ink);
  font: 15px/1.8 var(--sr-font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body:has(.sr-sidebar.is-open) { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.35; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
button, input, textarea, select { color: inherit; font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button, a, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .5; }
input, textarea { caret-color: var(--sr-accent); accent-color: var(--sr-accent); }
::placeholder { color: var(--sr-secondary); opacity: 1; }
::selection { background: var(--sr-accent); color: var(--sr-paper); }
:focus-visible { outline: 2px solid var(--sr-palette-focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.sr-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  padding: 8px 16px;
  transform: translate(-50%, -160%);
  border-radius: 6px;
  background: var(--sr-accent);
  color: var(--sr-paper);
  font-size: 12px;
}
.sr-skip:focus { transform: translate(-50%, 0); }

.sr-shell {
  min-height: 100svh;
  background: var(--sr-paper);
  isolation: isolate;
}
.sr-shell.is-sidebar-open { --sr-safe: calc(32px + var(--sr-aside-width) + 36px); }
.sr-workspace {
  min-height: 100svh;
  margin-left: var(--sr-rail);
}

.sr-rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sr-rail);
  border-right: 1px solid var(--sr-line);
  color: var(--sr-secondary);
  background: color-mix(in srgb, var(--sr-paper) 82%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.sr-shell:has(.sr-scene) > .sr-rail {
  border-color: rgba(255, 255, 255, .14);
  color: #edf4f4;
  background: rgba(12, 20, 27, .38);
}
.sr-shell:has(.sr-scene[data-surface="light"]) > .sr-rail {
  border-color: rgba(54, 78, 86, .14);
  color: var(--sr-ink);
  background: rgba(237, 241, 243, .58);
}
.sr-rail__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 24px 10px;
}
.sr-rail__brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--sr-line);
  border-radius: 50%;
  color: var(--sr-ink);
  background: color-mix(in srgb, var(--sr-panel) 76%, transparent);
  font: 500 18px/1 var(--sr-serif);
}
.sr-rail__brand:hover { border-color: var(--sr-line-strong); color: var(--sr-accent); }
.sr-rail__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 180px;
}
.sr-rail__nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  min-height: 46px;
  color: var(--sr-muted);
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}
.sr-rail__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  transition: width 180ms var(--sr-ease), height 180ms var(--sr-ease), opacity 180ms ease;
}
.sr-rail__nav a:hover,
.sr-rail__nav a.is-active { color: var(--sr-ink); }
.sr-rail__nav a.is-active .sr-rail__dot,
.sr-rail__nav a:hover .sr-rail__dot {
  width: 6px;
  height: 6px;
  opacity: 1;
  background: var(--sr-accent);
}
.sr-rail__actions { display: flex; flex-direction: column; gap: 5px; }
.sr-rail__button,
.sr-icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sr-secondary);
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.sr-rail__button:hover,
.sr-icon-button:hover { background: var(--sr-accent-soft); color: var(--sr-accent); }
.sr-rail__button:active,
.sr-icon-button:active { transform: scale(.94); }
.sr-rail__button svg,
.sr-icon-button svg { width: 16px; height: 16px; flex: 0 0 auto; }

.sr-announcement:empty { display: none; }
.sr-announcement {
  width: calc(100% - var(--sr-gutter) - var(--sr-safe));
  margin-left: var(--sr-gutter);
}
.sr-announcement .lill-hello-banner {
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid var(--sr-line);
  border-radius: 6px;
  font-size: 12px;
}

.sr-page,
.sr-reading,
.sr-footer {
  width: calc(100% - var(--sr-gutter) - var(--sr-safe));
  margin-left: var(--sr-gutter);
  transition: width 240ms var(--sr-ease);
}
.sr-page { position: relative; z-index: 1; padding-bottom: 52px; }
.sr-page:has(.sr-scene) {
  width: calc(100% + var(--sr-rail));
  margin-left: calc(-1 * var(--sr-rail));
}
.sr-scene {
  --sr-ground: #1a1e24;
  --sr-scene-ink: #f4f8f7;
  --sr-scene-secondary: #d1dce1;
  --sr-story-protection: var(--sr-ground);
  position: relative;
  color: var(--sr-scene-ink);
  background: var(--sr-ground);
  transition: --sr-ground 280ms var(--sr-ease), background 280ms var(--sr-ease);
}
.sr-scene[data-surface="light"] {
  --sr-scene-ink: #28353b;
  --sr-scene-secondary: #50636a;
}

.sr-hero {
  position: relative;
  height: calc(100svh - 40px);
  min-height: 460px;
  overflow: hidden;
}
.sr-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 260px;
  background: linear-gradient(transparent, var(--sr-ground));
  pointer-events: none;
}
.sr-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--sr-ground);
  animation: sr-reveal 850ms var(--sr-ease) both;
}
.sr-hero__image,
.sr-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sr-media-position, 50% 50%);
}
.sr-hero__video { opacity: 0; transition: opacity 280ms ease; }
.sr-hero[data-media="video"] .sr-hero__video { opacity: 1; }
.sr-hero[data-video-failed] .sr-hero__video { opacity: 0; }
.sr-hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 22, .03), transparent 30%, rgba(8, 15, 22, .12) 60%, rgba(8, 15, 22, .34) 88%),
    linear-gradient(90deg, rgba(8, 15, 22, .1), transparent 45%);
  pointer-events: none;
}
.sr-scene[data-surface="light"] .sr-hero__shade {
  background: linear-gradient(180deg, transparent 38%, rgba(255, 255, 255, .09));
}
.sr-hero__copy {
  position: absolute;
  z-index: 2;
  left: calc(var(--sr-gutter) + var(--sr-copy-inset));
  right: calc(var(--sr-safe) + 32px);
  bottom: 170px;
  width: min(680px, 100%);
  container: sr-copy / inline-size;
}
.sr-hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32px -36px;
  border-radius: 40%;
  background: rgba(8, 15, 22, .18);
  filter: blur(42px);
  pointer-events: none;
}
.sr-scene[data-surface="light"] .sr-hero__copy::before { background: rgba(255, 255, 255, .18); }
.sr-hero__signature { display: block; color: inherit; text-shadow: 0 2px 24px rgba(4, 10, 17, .36); }
.sr-scene[data-surface="light"] .sr-hero__signature { text-shadow: 0 2px 20px rgba(255, 255, 255, .34); }
.sr-hero__title {
  display: block;
  max-width: 620px;
  font: 600 72px/1.15 var(--sr-serif);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.sr-hero[data-selected] .sr-hero__title {
  max-width: 520px;
  font-size: 44px;
  line-height: 1.32;
  text-wrap: balance;
}
.sr-hero__description {
  display: block;
  width: 360px;
  max-width: 100%;
  margin-top: 16px;
  color: var(--sr-scene-secondary);
  font: 14px/1.95 var(--sr-font);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sr-hero[data-selected] .sr-hero__description { max-width: 460px; }
.sr-hero__about {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: inherit;
  font: 12px/1.5 var(--sr-font);
  text-decoration: none;
}
.sr-hero__about:hover, .sr-hero__latest:hover { color: var(--sr-scene-ink); }

.sr-hero__foot {
  position: absolute;
  z-index: 3;
  left: calc(var(--sr-gutter) + var(--sr-copy-inset));
  right: calc(var(--sr-safe) + 32px);
  bottom: 56px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.sr-hero__latest {
  display: flex;
  min-width: 0;
  max-width: min(360px, calc(100% - 336px));
  align-items: center;
  gap: 10px;
  color: var(--sr-scene-ink);
  font: 12px/1.5 var(--sr-font);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(4, 10, 17, .4);
}
.sr-hero__latest[hidden] { display: none; }
.sr-hero__latest-label { flex: 0 0 auto; color: var(--sr-scene-secondary); }
.sr-hero__latest [data-sr-latest-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-deck {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  max-width: 100%;
  height: 56px;
  color: var(--sr-scene-ink);
}
.sr-deck__sheets { position: relative; height: 56px; }
.sr-sheet {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(238, 246, 250, .22);
  border-radius: 999px;
  background: rgba(23, 31, 40, .62);
  color: #e8eef1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 18px rgba(5, 12, 18, .12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font: 11px/38px var(--sr-font);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 240ms var(--sr-ease), background 160ms ease, border-color 160ms ease;
}
.sr-sheet[aria-pressed="true"] { border-color: rgba(255, 255, 255, .36); background: rgba(32, 44, 54, .74); }
.sr-scene[data-surface="light"] .sr-sheet {
  border-color: rgba(255, 255, 255, .54);
  background: rgba(246, 250, 248, .68);
  color: var(--sr-scene-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 18px rgba(27, 50, 61, .08);
}
.sr-scene[data-surface="light"] .sr-sheet[aria-pressed="true"] { background: rgba(250, 253, 251, .84); }
.sr-sheet[data-depth="0"] { z-index: 3; transform: translateY(12px); padding-right: 50px; }
.sr-sheet[data-depth="1"] { z-index: 2; transform: translateY(6px) scaleX(.96); }
.sr-sheet[data-depth="2"] { z-index: 1; transform: scaleX(.92); }
.sr-deck[data-expanded] .sr-sheet[data-depth="1"] { transform: translateY(-16px) scaleX(.98); }
.sr-deck[data-expanded] .sr-sheet[data-depth="2"] { transform: translateY(-44px) scaleX(.96); }
.sr-deck__actions {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 8px;
  display: flex;
  gap: 1px;
}
.sr-deck__actions .sr-icon-button {
  width: 30px;
  height: 32px;
  color: var(--sr-scene-ink);
}
.sr-deck__actions [data-sr-scroll] { display: grid; place-items: center; }
.sr-deck__actions [data-sr-scroll] svg { width: 18px; height: 18px; }

.sr-content { position: relative; min-height: 1px; padding: 0 0 40px; }
.sr-scene > .sr-content {
  width: calc(100% - var(--sr-gutter) - var(--sr-safe));
  margin-left: var(--sr-gutter);
}
.sr-feed { position: relative; min-width: 0; }
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sr-post-card {
  --sr-story-accent: var(--sr-accent);
  position: relative;
  display: block;
  min-width: 0;
  height: 160px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: rgba(172, 187, 194, .12);
  box-shadow: var(--sr-shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--sr-scene-ink);
  transition: transform 220ms var(--sr-ease), border-color 180ms ease;
}
.sr-post-card:nth-child(3n) { --sr-story-accent: var(--sr-warm); }
.sr-post-card__cover {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  transition: transform 300ms var(--sr-ease), filter 180ms ease;
}
.sr-post-card__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sr-story-protection) 76%, transparent) 32px, transparent 64px),
    linear-gradient(90deg, color-mix(in srgb, var(--sr-story-protection) 90%, transparent), color-mix(in srgb, var(--sr-story-protection) 82%, transparent) 45%, color-mix(in srgb, var(--sr-story-protection) 64%, transparent) 72%, color-mix(in srgb, var(--sr-story-protection) 7%, transparent));
}
.sr-post-card__top {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--sr-story-accent);
  color: oklch(from var(--sr-story-accent) max(0.82, l) c h);
  font-size: 10px;
  line-height: 1.8;
}
.sr-post-card__category { white-space: nowrap; }
.sr-post-card__top time { color: var(--sr-scene-secondary); font-variant-numeric: tabular-nums; }
.sr-post-card__body {
  position: absolute;
  z-index: 2;
  top: 51px;
  left: 20px;
  right: 20px;
  bottom: 17px;
  display: block;
  min-width: 0;
  padding-right: 36%;
}
.sr-post-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.sr-post-card__body small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--sr-scene-secondary);
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.sr-post-card[hidden] { display: none !important; }

.sr-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 20px;
}
.sr-filter,
.sr-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--sr-scene-secondary);
  font: 11px/1.5 var(--sr-font);
}
.sr-filter:hover,
.sr-filter[aria-pressed="true"] { background: rgba(236, 244, 246, .09); color: var(--sr-scene-ink); }
.sr-scene[data-surface="light"] .sr-filter:hover,
.sr-scene[data-surface="light"] .sr-filter[aria-pressed="true"] { background: rgba(40, 124, 120, .08); }
.sr-filter span {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: var(--sr-muted);
  font-size: 9px;
}
.sr-filter-reset { width: 32px; padding: 0; }
.sr-filter-reset svg { width: 13px; height: 13px; }
.sr-empty { padding: 32px 0; color: var(--sr-secondary); font-size: 13px; }

.sr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  color: var(--sr-muted);
  font-size: 11px;
}
.sr-pagination a,
.sr-pagination > span:not(:only-of-type) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--sr-line);
  border-radius: 5px;
}
.sr-pagination a:hover { border-color: var(--sr-line-strong); color: var(--sr-ink); }
.sr-pagination [aria-current="page"] { background: var(--sr-accent-soft); color: var(--sr-accent); }
.sr-pagination .is-disabled { opacity: .35; }
.sr-scene .sr-pagination { color: var(--sr-scene-secondary); }
.sr-scene .sr-filter span { color: var(--sr-scene-secondary); }

.sr-sidebar {
  position: fixed;
  z-index: 45;
  top: 32px;
  right: 32px;
  bottom: 32px;
  width: var(--sr-aside-width);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--sr-panel) 88%, transparent);
  color: var(--sr-secondary);
  box-shadow: inset 0 1px 0 var(--sr-shine), 0 24px 72px var(--sr-shadow);
  backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 220ms var(--sr-ease), transform 220ms var(--sr-ease);
}
.sr-sidebar.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sr-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sr-line);
}
.sr-sidebar__head span { color: var(--sr-ink); font: 500 28px/1.2 var(--sr-serif); }
.sr-sidebar__head p { margin-top: 8px; color: var(--sr-muted); font-size: 11px; line-height: 1.75; }
.sr-sidebar__search {
  display: flex;
  align-items: center;
  margin-top: 20px;
  border: 1px solid var(--sr-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--sr-paper) 58%, transparent);
}
.sr-sidebar__search:focus-within { border-color: var(--sr-accent); }
.sr-sidebar__search input {
  width: 100%;
  min-width: 0;
  padding: 9px 4px 9px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.sr-sidebar__search button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sr-muted);
}
.sr-sidebar__search svg { width: 15px; height: 15px; }
.sr-sidebar__section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sr-line); }
.sr-sidebar__section h2 {
  margin-bottom: 12px;
  color: var(--sr-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}
.sr-sidebar__nav { display: grid; gap: 2px; }
.sr-sidebar__nav a {
  display: block;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--sr-secondary);
  font-size: 12px;
}
.sr-sidebar__nav a:hover,
.sr-sidebar__nav a[aria-current="page"] { background: var(--sr-accent-soft); color: var(--sr-accent); }
.sr-sidebar__posts { display: grid; gap: 12px; }
.sr-sidebar__posts li { display: grid; gap: 3px; }
.sr-sidebar__posts a { color: var(--sr-secondary); font-size: 12px; line-height: 1.7; }
.sr-sidebar__posts a:hover { color: var(--sr-accent); }
.sr-sidebar__posts time { color: var(--sr-muted); font-size: 9px; }
.sr-sidebar__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-sidebar__chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--sr-line);
  border-radius: 4px;
  color: var(--sr-secondary);
  font-size: 10px;
}
.sr-sidebar__chips span { color: var(--sr-muted); font-size: 9px; }
.sr-sidebar__tags { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.sr-sidebar__tags a { color: var(--sr-muted); font-size: 10px; }
.sr-sidebar__tags a:hover { color: var(--sr-accent); }
.sr-scrim {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(9, 14, 18, .42);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.sr-toggle__close { position: absolute; right: 18px; top: 16px; }

.sr-reading {
  min-height: calc(100svh - 120px);
  padding: 64px 0 72px;
}
.sr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--sr-muted);
  font-size: 11px;
}
.sr-breadcrumb a:hover { color: var(--sr-accent); }
.sr-article {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 20px;
}
.sr-article__cover {
  height: clamp(260px, 42vw, 470px);
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 8px;
}
.sr-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.sr-article__head { max-width: 720px; margin: 0 auto 36px; }
.sr-article__eyebrow,
.sr-page-head__eyebrow {
  color: var(--sr-accent);
  font-size: 10px;
  line-height: 1.7;
}
.sr-article__head h1 {
  margin-top: 14px;
  font: 500 clamp(38px, 5vw, 64px)/1.2 var(--sr-serif);
  letter-spacing: 0;
  text-wrap: balance;
}
.sr-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 18px;
  color: var(--sr-muted);
  font-size: 11px;
}
.sr-article__content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--sr-ink);
  font-size: 16px;
  line-height: 2.05;
  overflow-wrap: anywhere;
}
.sr-article__content > * + * { margin-top: 1.15em; }
.sr-article__content h1,
.sr-article__content h2,
.sr-article__content h3,
.sr-article__content h4 {
  margin-top: 1.8em;
  color: var(--sr-ink);
  font-family: var(--sr-serif);
}
.sr-article__content h1 { font-size: 32px; }
.sr-article__content h2 { font-size: 28px; }
.sr-article__content h3 { font-size: 23px; }
.sr-article__content h4 { font-size: 19px; }
.sr-article__content a { color: var(--sr-accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sr-article__content img,
.sr-article__content video,
.sr-article__content iframe { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 6px; }
.sr-article__content ul,
.sr-article__content ol { padding-left: 1.5em; list-style: revert; }
.sr-article__content li + li { margin-top: .35em; }
.sr-article__content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--sr-accent);
  color: var(--sr-secondary);
}
.sr-article__content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--sr-line);
  border-radius: 6px;
  background: var(--sr-panel);
  color: var(--sr-ink);
  font-size: 13px;
  line-height: 1.75;
}
.sr-article__content pre code { color: inherit; }
.sr-article__content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.sr-article__content :not(pre) > code { padding: .1em .35em; border-radius: 3px; background: var(--sr-accent-soft); color: var(--sr-ink); }
.sr-article__content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.sr-article__content th,
.sr-article__content td { padding: 8px 12px; border: 1px solid var(--sr-line); text-align: left; }
.sr-article__tags { display: flex; flex-wrap: wrap; gap: 7px; max-width: 720px; margin: 36px auto 0; }
.sr-article__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 10px;
  border: 1px solid var(--sr-line);
  border-radius: 4px;
  color: var(--sr-secondary);
  font-size: 10px;
}
.sr-article__tags a:hover { border-color: var(--sr-line-strong); color: var(--sr-accent); }
.sr-article__adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 720px;
  margin: 54px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--sr-line);
  font-size: 13px;
}
.sr-article__adjacent a { display: grid; gap: 5px; color: var(--sr-secondary); }
.sr-article__adjacent a:hover { color: var(--sr-accent); }
.sr-article__adjacent a span { color: var(--sr-secondary); font-size: 10px; }
.sr-article__adjacent .is-next { text-align: right; }

.sr-page-head { max-width: 900px; margin: 0 auto 40px; padding-bottom: 24px; border-bottom: 1px solid var(--sr-line); }
.sr-page-head h1 { margin-top: 12px; font: 500 clamp(38px, 5vw, 64px)/1.2 var(--sr-serif); }
.sr-page-head > p:last-child { margin-top: 12px; color: var(--sr-muted); font-size: 12px; }

.sr-listing { --sr-listing-measure: 100%; }
@media (min-width: 621px) {
  .sr-reading.sr-listing { width: calc(100% - var(--sr-gutter) - 32px); }
}
@media (min-width: 1153px) {
  .sr-reading.sr-listing { margin-left: 24px; width: calc(100% - 40px); }
}
.sr-listing .sr-page-head { max-width: 100%; margin: 0 0 28px; padding-bottom: 0; text-align: left; border-bottom: 0; }
.sr-listing .sr-page-head h1 { margin-top: 0; color: var(--sr-accent); font: 500 clamp(24px, 3vw, 32px)/1.2 var(--sr-serif); }
.sr-listing .sr-page-head > p:last-child { margin-top: 6px; color: var(--sr-muted); font-size: 12px; }
.sr-listing .sr-category-count { position: relative; top: -.62em; margin-left: 8px; color: var(--sr-accent); font: 400 .42em/1 var(--sr-font); letter-spacing: .02em; opacity: .85; }
.sr-listing .sr-list { display: grid; max-width: 100%; margin: 0; }

/* 列表页（分类/搜索/标签）：单栏 4 列大方卡，封面铺满整张卡，标题压卡底 */
.sr-list.sr-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1152px) { .sr-list.sr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sr-list.sr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 560px) { .sr-list.sr-list { grid-template-columns: 1fr; gap: 16px; } }

.sr-list .sr-post-card {
  --sr-list-ink: var(--sr-scene-ink, #f4f8f7);
  --sr-list-ink-soft: rgba(244, 248, 247, .78);
  --sr-story-protection: var(--sr-ground, #1a1e24);
  --sr-story-accent: var(--sr-accent);
  height: auto;
  aspect-ratio: 1 / 1.08;
  display: block;
  overflow: hidden;
  color: var(--sr-list-ink);
  background: var(--sr-ground, #1a1e24);
  border-radius: 14px;
}
.sr-list .sr-post-card:nth-child(4n) { --sr-story-accent: var(--sr-warm); }
.sr-list .sr-post-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  mask-image: none;
  -webkit-mask-image: none;
  box-shadow: none;
}
.sr-list .sr-post-card__veil {
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sr-story-protection) 92%, transparent) 0, color-mix(in srgb, var(--sr-story-protection) 55%, transparent) 72px, transparent 132px),
    linear-gradient(0deg, color-mix(in srgb, var(--sr-story-protection) 97%, transparent) 0, color-mix(in srgb, var(--sr-story-protection) 88%, transparent) 70px, color-mix(in srgb, var(--sr-story-protection) 46%, transparent) 126px, transparent 176px);
}
.sr-list .sr-post-card__top {
  top: 16px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(8, 14, 18, .6);
}
.sr-list .sr-post-card__top time { color: var(--sr-list-ink-soft); }
.sr-list .sr-post-card__body {
  top: auto;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 0;
  min-height: 60px;
  display: block;
  text-align: left;
}
.sr-list .sr-post-card__body strong {
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  text-shadow: 0 1px 3px rgba(8, 14, 18, .6);
}
.sr-list .sr-post-card__body small { display: none; }
@media (max-width: 620px) {
  .sr-list .sr-post-card__body strong { font-size: 19px; }
}
.sr-listing > .sr-pagination {
  max-width: 100%;
  margin-top: 48px;
  margin-inline: 0;
  gap: 7px;
}
.sr-listing > .sr-pagination a,
.sr-listing > .sr-pagination > span:not(:only-of-type) {
  min-height: 28px;
  border-radius: 10px;
}
.sr-listing > .sr-empty {
  max-width: 100%;
  padding: 72px 0;
  margin-inline: 0;
  font-size: 14px;
  text-align: center;
}
.sr-search-empty {
  max-width: 620px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: var(--sr-card);
}
.sr-search-empty form { display: flex; gap: 8px; margin-top: 18px; }
.sr-search-empty input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sr-line);
  border-radius: 5px;
  background: var(--sr-panel);
}
.sr-search-empty button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--sr-ink);
  color: var(--sr-paper);
}

.sr-archive .sr-page-head { max-width: 100%; margin: 0 0 34px; padding-bottom: 18px; text-align: right; border-bottom: 1px solid var(--sr-line); }
.sr-archive .sr-page-head h1 { margin-top: 12px; font: 500 clamp(30px, 3.4vw, 44px)/1.2 var(--sr-serif); }
.sr-archive .sr-page-head__eyebrow { color: var(--sr-accent); letter-spacing: .12em; font-size: 11px; }
.sr-archive__groups { display: grid; gap: 24px; max-width: 100%; margin: 0; }
.sr-archive__group h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sr-line);
  color: var(--sr-ink);
  font: 500 22px/1.4 var(--sr-serif);
}
.sr-archive__group h2 span { color: var(--sr-accent); font: 10px/1.6 var(--sr-font); font-variant-numeric: tabular-nums; }
.sr-archive__group ul { padding-top: 8px; }
.sr-archive__group li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sr-line) 32%, transparent);
}
.sr-archive__group a { grid-column: 2; grid-row: 1; color: var(--sr-secondary); font-size: 14px; }
.sr-archive__group a:hover { color: var(--sr-accent); }
.sr-archive__group time { grid-column: 1; grid-row: 1; flex: none; color: var(--sr-muted); font: 11px/1.6 var(--sr-font); font-variant-numeric: tabular-nums; }
.sr-not-found { max-width: 900px; margin: 0 auto; }
.sr-not-found h1 { margin-top: 12px; font: 500 clamp(44px, 7vw, 82px)/1.15 var(--sr-serif); }
.sr-not-found > p:not(:first-child) { margin-top: 16px; color: var(--sr-muted); }
.sr-not-found__links { display: flex; gap: 10px; margin-top: 30px; }
.sr-not-found__links a { padding: 8px 14px; border: 1px solid var(--sr-line); border-radius: 5px; font-size: 11px; }

.sr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding: 24px 0;
  border-top: 1px solid var(--sr-line);
  color: var(--sr-muted);
  font-size: 10px;
}
.sr-footer p { flex: 1; min-width: 120px; }
.sr-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.sr-footer a:hover { color: var(--sr-accent); }
.sr-footer > [data-lill-hello]:empty { display: none; }

.sr-comments { max-width: 720px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--sr-line); }
.article-body .sr-comments { width: 100%; max-width: none; }
.sr-comments__head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 24px; }
.sr-comments__head h2 { font: 500 28px/1.3 var(--sr-serif); }
.sr-comments__head span { color: var(--sr-muted); font-size: 10px; }
.sr-comment-list { display: grid; gap: 20px; }
.sr-comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.sr-comment__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sr-accent-soft);
  color: var(--sr-accent);
  font-size: 11px;
}
.sr-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sr-comment__body { min-width: 0; }
.sr-comment__body header { display: flex; align-items: baseline; gap: 10px; }
.sr-comment__body strong { font-size: 12px; font-weight: 500; }
.sr-comment__body time { color: var(--sr-muted); font-size: 9px; }
.sr-comment__text { margin-top: 6px; color: var(--sr-secondary); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.sr-comment__body blockquote { margin: 8px 0; padding: 5px 10px; border-left: 2px solid var(--sr-line-strong); color: var(--sr-muted); font-size: 11px; }
.sr-comment__reply,
.sr-reply-target button {
  min-height: 30px;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sr-muted);
  font-size: 10px;
}
.sr-comment__reply:hover,
.sr-reply-target button:hover { color: var(--sr-accent); }
.sr-comment__replies { display: grid; gap: 16px; margin: 16px 0 0 46px; padding-left: 18px; border-left: 1px solid var(--sr-line); }
.sr-comment-empty,
.sr-comment-closed { color: var(--sr-muted); font-size: 12px; }
.sr-comment-pagination { margin: 24px 0; }
.sr-comment-form { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--sr-line); }
.sr-comment-form h3 { font: 500 22px/1.4 var(--sr-serif); }
.sr-reply-target { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 7px 10px; background: var(--sr-accent-soft); color: var(--sr-accent); font-size: 10px; }
.sr-comment-form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.sr-comment-form input,
.sr-comment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--sr-line);
  border-radius: 5px;
  outline: 0;
  background: color-mix(in srgb, var(--sr-panel) 76%, transparent);
  font-size: 12px;
}
.sr-comment-form input { min-height: 40px; padding: 0 11px; }
.sr-comment-form textarea { min-height: 120px; margin-top: 8px; padding: 11px; resize: vertical; line-height: 1.8; }
.sr-comment-form input:focus,
.sr-comment-form textarea:focus { border-color: var(--sr-accent); }
.sr-comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.lill-comment-msg { color: var(--sr-muted); font-size: 10px; }
.lill-comment-msg.is-error { color: #b14a4a; }
.lill-comment-msg.is-ok { color: var(--sr-accent); }
.sr-comment-form [type="submit"] {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--sr-ink);
  color: var(--sr-paper);
  font-size: 11px;
}

.sr-hero[data-animating] .sr-hero__copy { pointer-events: none; }
.sr-media-transition {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sr-media-position, 50% 50%);
  pointer-events: none;
}

@keyframes sr-reveal {
  from { opacity: .45; transform: scale(1.015); }
  to { opacity: 1; transform: none; }
}
@keyframes sr-copy-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes sr-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .sr-post-card:hover { border-color: var(--sr-line-strong); transform: translateY(-2px); }
  .sr-post-card:hover .sr-post-card__cover { transform: scale(1.035); }
  .sr-sheet:hover { border-color: rgba(255, 255, 255, .38); background: rgba(35, 46, 57, .76); }
  .sr-scene[data-surface="light"] .sr-sheet:hover { border-color: rgba(40, 124, 120, .26); background: rgba(250, 253, 251, .9); }
}

@media (max-width: 1180px) {
  .sr-shell { --sr-copy-inset: 32px; }
  .sr-hero__copy { bottom: 196px; }
  .sr-grid,
  .sr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sr-post-card { height: 164px; }
  .sr-post-card__body { top: 48px; }
  .sr-post-card__body strong { font-size: 14px; line-height: 1.55; }
  .sr-post-card__body small { margin-top: 5px; line-height: 1.65; }
}

@media (max-width: 820px) {
  .sr-shell { --sr-rail: 64px; --sr-gutter: 28px; --sr-safe: 28px; --sr-copy-inset: 16px; }
  .sr-rail__label { display: none; }
  .sr-rail__nav a { width: 40px; min-height: 34px; }
  .sr-rail__nav { gap: 13px; }
  .sr-rail__inner { padding-inline: 7px; }
  .sr-hero { height: calc(100svh - 30px); min-height: 440px; }
  .sr-page:has(.sr-scene) { width: calc(100% + var(--sr-rail)); margin-left: calc(-1 * var(--sr-rail)); }
  .sr-hero__copy { left: calc(var(--sr-gutter) + var(--sr-copy-inset)); right: var(--sr-gutter); bottom: 236px; width: auto; }
  .sr-hero__title { font-size: 48px; }
  .sr-hero[data-selected] .sr-hero__title { font-size: 34px; line-height: 1.38; }
  .sr-hero__description { width: 300px; font-size: 13px; }
  .sr-hero__foot { left: calc(var(--sr-gutter) + var(--sr-copy-inset)); right: var(--sr-gutter); bottom: 78px; }
  .sr-deck { width: 320px; max-width: calc(100vw - var(--sr-gutter) - var(--sr-safe)); }
  .sr-sheet { padding-inline: 15px; font-size: 10px; }
  .sr-grid,
  .sr-list { grid-template-columns: 1fr; }
  .sr-sidebar { top: 16px; right: 16px; bottom: 16px; }
  .sr-layout-open .sr-workspace { margin-left: var(--sr-rail); }
  .sr-article__head h1 { font-size: clamp(34px, 9vw, 48px); }
  .sr-reader .sr-reading { padding-top: 42px; }
  .sr-footer { flex-wrap: wrap; gap: 10px 18px; padding-block: 22px; }
  .sr-footer p { flex-basis: 100%; }
}

@media (max-width: 620px) {
  .sr-shell { --sr-rail: 0px; --sr-gutter: 24px; --sr-safe: 24px; --sr-copy-inset: 16px; }
  .sr-workspace { margin-left: 0; }
  .sr-rail {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--sr-line);
    background: color-mix(in srgb, var(--sr-paper) 88%, transparent);
  }
  .sr-rail__inner { flex-direction: row; min-height: 58px; padding: 9px 14px; }
  .sr-rail__brand { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; }
  .sr-rail__nav { flex: 1; flex-direction: row; justify-content: center; gap: 7px; min-height: 0; }
  .sr-rail__nav a { width: 32px; min-height: 32px; }
  .sr-rail__dot { width: 5px; height: 5px; }
  .sr-rail__actions { flex-direction: row; }
  .sr-rail__button { width: 34px; height: 34px; }
  .sr-announcement { width: calc(100% - 36px); margin-left: 18px; }
  .sr-page:has(.sr-scene) { width: 100%; margin-left: 0; }
  .sr-hero { height: calc(100svh - 28px); min-height: 440px; }
  .sr-hero__copy { left: calc(var(--sr-gutter) + var(--sr-copy-inset)); right: calc(var(--sr-safe) + 16px); bottom: 240px; }
  .sr-hero__title { font-size: 42px; }
  .sr-hero[data-selected] .sr-hero__title { font-size: 30px; }
  .sr-hero__description { width: 270px; font-size: 12px; line-height: 1.9; }
  .sr-hero__foot { left: calc(var(--sr-gutter) + var(--sr-copy-inset)); right: calc(var(--sr-safe) + 16px); bottom: 84px; }
  .sr-deck { width: 320px; }
  .sr-post-card { height: 164px; }
  .sr-post-card__top { left: 16px; right: 16px; top: 15px; font-size: 9px; }
  .sr-post-card__body { left: 16px; right: 16px; top: 45px; bottom: 15px; padding-right: 28%; }
  .sr-post-card__body strong { font-size: 14px; line-height: 1.5; }
  .sr-post-card__body small { font-size: 10px; }
  .sr-filters { padding-top: 18px; }
  .sr-sidebar { inset: 0; width: 100%; max-width: none; border: 0; border-radius: 0; padding: 24px 22px; }
  .sr-sidebar__head { padding-bottom: 18px; }
  .sr-sidebar__search { margin-top: 18px; }
  .sr-article__head h1 { font-size: 34px; }
  .sr-article__cover { height: 260px; margin-bottom: 32px; }
  .sr-article__adjacent { grid-template-columns: 1fr; gap: 18px; }
  .sr-article__adjacent .is-next { text-align: left; }
  .sr-comment-form__row { grid-template-columns: 1fr; }
  .sr-search-empty { padding: 22px; }
  .sr-search-empty form { flex-direction: column; }
  .sr-search-empty button { width: 100%; }
  .sr-page-head h1 { font-size: 40px; }
  .sr-reading { padding-top: 42px; }
  .sr-not-found h1 { font-size: 46px; }
}

@media (max-height: 620px) and (max-width: 900px) {
  .sr-hero { min-height: 380px; }
  .sr-hero__copy { bottom: 200px; }
  .sr-hero__title { font-size: 38px; }
  .sr-hero[data-selected] .sr-hero__title { font-size: 28px; }
  .sr-hero__description { font-size: 11px; line-height: 1.7; }
}

@media (max-height: 560px) and (min-width: 901px) {
  .sr-hero { height: calc(100svh - 28px); min-height: 300px; }
  .sr-hero__copy { bottom: 158px; width: 600px; }
  .sr-hero__title { font-size: 38px; }
  .sr-hero[data-selected] .sr-hero__title { font-size: 28px; }
  .sr-hero__description { width: 280px; font-size: 11px; line-height: 1.7; }
  .sr-hero__foot { bottom: 45px; }
}

@media (max-height: 540px) and (min-width: 821px) {
  .sr-hero { height: calc(100svh - 28px); min-height: 280px; }
  .sr-hero__copy { right: calc(var(--sr-safe) + 24px); bottom: 172px; width: 560px; }
  .sr-hero__title { font-size: 38px; }
  .sr-hero[data-selected] .sr-hero__title { font-size: 28px; line-height: 1.35; }
  .sr-hero__description { width: 280px; font-size: 12px; line-height: 1.8; }
  .sr-hero__foot { right: calc(var(--sr-safe) + 24px); bottom: 52px; }
  .sr-deck { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-scene { transition: none; }
  .sr-shell *,
  .sr-shell *::before,
  .sr-shell *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .sr-post-card:hover { transform: none; }
  .sr-shell:has(.sr-scene) .sr-hero__media,
  .sr-shell:has(.sr-scene) .sr-hero__copy::before { animation: none; filter: none; }
  .sr-shell:has(.sr-scene) .sr-hero__copy::before { opacity: 0; }
  .nav-glow::before,
  .mobile-rail .nav-glow::before { display: none; }
}

/* Home parity with the approved home-study composition.
   Keep the Lill data contract above, but restore the original geometry:
   full-bleed scene, floating rail, compact cards, and a shared content axis. */
:root {
  --sr-home-gutter: 96px;
  --sr-home-safe: 96px;
}

.sr-shell:has(.sr-scene) {
  padding: 20px;
}

.sr-shell:has(.sr-scene) > .sr-workspace {
  margin-left: 0;
}

.sr-shell:has(.sr-scene) > .sr-rail {
  position: fixed;
  z-index: 30;
  inset: 20px auto auto 20px;
  width: 60px;
  height: calc(100dvh - 40px);
  border: 0;
  border-radius: 20px;
  color: rgba(244, 244, 242, .74);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__inner {
  min-height: 100%;
  padding: 16px 0;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__brand {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
  color: #f4f4f2;
  background: rgba(10, 15, 20, .78);
  font: 500 18px/1 var(--sr-serif);
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav {
  gap: 20px;
  min-height: 180px;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a {
  position: relative;
  width: 48px;
  min-height: 46px;
  color: rgba(244, 244, 242, .66);
  font-size: 0;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 1px;
  height: 0;
  background: var(--sr-accent);
  transform: translateY(-50%);
  transition: height 220ms var(--sr-ease);
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a.is-active::after,
.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a:hover::after {
  height: 46px;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a.is-active,
.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a:hover {
  color: #62d8ca;
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.sr-shell:has(.sr-scene) > .sr-rail .sr-rail__actions {
  margin-top: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 320ms var(--sr-ease), transform 320ms var(--sr-ease);
}

.sr-shell:has(.sr-scene).is-scrolled > .sr-rail {
  color: var(--sr-secondary);
  background: color-mix(in srgb, var(--sr-paper) 72%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sr-shell:has(.sr-scene).is-scrolled > .sr-rail .sr-rail__actions {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.sr-shell:has(.sr-scene).is-scrolled > .sr-rail .sr-rail__nav a {
  color: var(--sr-muted);
}

.sr-shell:has(.sr-scene).is-scrolled > .sr-rail .sr-rail__nav a.is-active,
.sr-shell:has(.sr-scene).is-scrolled > .sr-rail .sr-rail__nav a:hover {
  color: var(--sr-accent);
}

.sr-shell:has(.sr-scene) .sr-page {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: -20px;
}

.sr-shell:has(.sr-scene) .sr-scene > .sr-content {
  width: calc(100% - var(--sr-home-gutter) - var(--sr-home-safe));
  margin-left: var(--sr-home-gutter);
  padding-bottom: 56px;
}

.sr-shell:has(.sr-scene) .sr-hero__media {
  animation: sr-reveal 1000ms var(--sr-ease) both;
}

.sr-shell:has(.sr-scene) .sr-hero__copy {
  left: calc(var(--sr-home-gutter) + 64px);
  right: calc(var(--sr-home-safe) + 32px);
  bottom: 184px;
  width: auto;
  max-width: 680px;
}

.sr-shell:has(.sr-scene) .sr-hero__copy::before {
  inset: -32px -36px;
  border-radius: 40%;
  background: rgba(8, 15, 22, .2);
  filter: blur(40px);
}

.sr-shell:has(.sr-scene) .sr-hero__title {
  max-width: 11ch;
  font: 600 64px/1.2 var(--sr-serif);
  text-wrap: balance;
}

.sr-shell:has(.sr-scene) .sr-hero__description {
  width: min(360px, 100%);
  margin-top: 12px;
  font: 14px/1.8 var(--sr-font);
}

.sr-shell:has(.sr-scene) .sr-hero__foot {
  left: calc(var(--sr-home-gutter) + 64px);
  right: calc(var(--sr-home-safe) + 32px);
  bottom: 56px;
}

.sr-shell:has(.sr-scene) .sr-deck {
  width: 320px;
  height: 56px;
}

.sr-shell:has(.sr-scene) .sr-sheet {
  height: 40px;
  padding: 0 48px 0 18px;
  border: 1px solid rgba(237, 246, 255, .22);
  border-radius: 999px;
  background: rgba(24, 32, 42, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 12px rgba(4, 12, 20, .12);
  font: 11px/38px var(--sr-font);
}

.sr-shell:has(.sr-scene) .sr-sheet[aria-pressed="true"] {
  background: rgba(30, 42, 54, .7);
}

.sr-shell:has(.sr-scene) .sr-scene[data-surface="light"] .sr-sheet {
  color: var(--sr-scene-ink);
  background: rgba(245, 249, 247, .58);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 12px rgba(30, 50, 45, .08);
}

.sr-shell:has(.sr-scene) .sr-scene[data-surface="light"] .sr-sheet[aria-pressed="true"] {
  background: rgba(245, 249, 247, .76);
}

.sr-shell:has(.sr-scene) .sr-post-card {
  height: 160px;
  border: 0;
  border-radius: 8px;
  background: rgba(173, 187, 197, .12);
  box-shadow: 0 8px 24px -16px var(--sr-shadow);
}

.sr-shell:has(.sr-scene) .sr-post-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid var(--sr-line);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  pointer-events: none;
}

.sr-shell:has(.sr-scene) .sr-post-card__top {
  top: 18px;
  left: 20px;
  right: 20px;
  font: 11px/1.8 var(--sr-font);
}

.sr-shell:has(.sr-scene) .sr-post-card__body {
  top: 50px;
  bottom: 18px;
  left: 20px;
  right: 20px;
  padding-right: 0;
}

.sr-shell:has(.sr-scene) .sr-post-card__body strong {
  font: 600 16px/1.65 var(--sr-font);
}

.sr-shell:has(.sr-scene) .sr-post-card__body small {
  max-width: 72%;
  margin-top: 8px;
  font: 12px/1.8 var(--sr-font);
}

.sr-shell:has(.sr-scene) .sr-post-card:hover {
  border-color: transparent;
  transform: none;
}

@media (max-width: 1180px) and (min-width: 621px) {
  :root {
    --sr-home-gutter: 32px;
    --sr-home-safe: 32px;
  }

  .sr-shell:has(.sr-scene) .sr-hero__copy {
    bottom: 210px;
    left: calc(var(--sr-home-gutter) + 32px);
  }

  .sr-shell:has(.sr-scene) .sr-hero__title {
    font-size: clamp(44px, 6vw, 58px);
  }

  .sr-shell:has(.sr-scene) .sr-hero__foot {
    left: calc(var(--sr-home-gutter) + 32px);
    right: calc(var(--sr-home-safe) + 32px);
  }
}

@media (max-width: 620px) {
  :root {
    --sr-home-gutter: 24px;
    --sr-home-safe: 24px;
  }

  .sr-shell:has(.sr-scene) {
    padding: 32px 16px 144px;
  }

  .sr-shell:has(.sr-scene) > .sr-rail {
    inset: auto auto 16px 50%;
    width: auto;
    height: 52px;
    border-radius: 22px;
    color: var(--sr-secondary);
    background: color-mix(in srgb, var(--sr-paper) 72%, transparent);
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--sr-ease), transform 220ms var(--sr-ease);
  }

  .sr-shell:has(.sr-scene).is-scrolled > .sr-rail {
    opacity: 1;
    pointer-events: auto;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__inner {
    flex-direction: row;
    min-height: 52px;
    padding: 4px;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__brand,
  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__actions {
    display: none;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 4px;
    min-height: 0;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a {
    width: 44px;
    min-height: 44px;
    border-radius: 50%;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a::after {
    display: none;
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav a.is-active {
    color: var(--sr-accent);
  }

  .sr-shell:has(.sr-scene) > .sr-rail .sr-rail__nav svg {
    width: 20px;
    height: 20px;
  }

  .sr-shell:has(.sr-scene) .sr-page {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-top: -32px;
  }

  .sr-shell:has(.sr-scene) .sr-hero__copy {
    left: 40px;
    right: 40px;
    bottom: 240px;
    width: auto;
  }

  .sr-shell:has(.sr-scene) .sr-hero__copy {
    bottom: 256px;
  }

  .sr-shell:has(.sr-scene) .sr-hero__title {
    max-width: 12ch;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1.24;
  }

  .sr-shell:has(.sr-scene) .sr-hero[data-selected] .sr-hero__title {
    font-size: 32px;
    line-height: 1.4;
  }

  .sr-shell:has(.sr-scene) .sr-hero__description {
    width: min(280px, 100%);
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.75;
  }

  .sr-shell:has(.sr-scene) .sr-hero__about {
    margin-top: 12px;
  }

  .sr-shell:has(.sr-scene) .sr-hero__foot {
    left: 24px;
    right: 24px;
    bottom: 84px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sr-shell:has(.sr-scene) .sr-hero__latest {
    max-width: 100%;
  }

  .sr-shell:has(.sr-scene) .sr-deck {
    width: min(320px, 100%);
    flex-basis: min(320px, 100%);
  }

  .sr-shell:has(.sr-scene) .sr-post-card {
    height: 164px;
  }

  .sr-shell:has(.sr-scene) .sr-post-card__top {
    top: 16px;
    left: 16px;
    right: 16px;
    font-size: 10px;
  }

  .sr-shell:has(.sr-scene) .sr-post-card__body {
    top: 46px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .sr-shell:has(.sr-scene) .sr-post-card__body strong {
    font-size: 15px;
    line-height: 1.5;
  }

  .sr-shell:has(.sr-scene) .sr-post-card__body small {
    font-size: 11px;
  }
}

@media (max-width: 620px) and (max-height: 620px) {
  .sr-shell:has(.sr-scene) .sr-hero__copy {
    bottom: 216px;
  }
}

/* Shared navigation and article reading layout from the Solbrin study. */
.sr-shell {
  --sr-rail: 112px;
  --rail-w: 60px;
  --rail-gap: 20px;
  --dur-1: .2s;
  --dur-2: .5s;
  --dur-3: .8s;
  --ease: cubic-bezier(.6, .1, 0, 1);
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
}

.sr-workspace { margin-left: var(--sr-rail); }
.rail-slot { display: contents; }
.rail {
  position: fixed;
  z-index: 40;
  top: var(--rail-gap);
  left: var(--rail-gap);
  display: flex;
  width: var(--rail-w);
  height: calc(100dvh - var(--rail-gap) * 2);
  flex-direction: column;
  align-items: center;
  padding: var(--s4) 0;
  overflow: visible;
  border-radius: 20px;
  background: var(--sr-card);
  box-shadow: inset 0 1px 0 var(--sr-shine);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  isolation: isolate;
  --nav-offset-y: calc(var(--s4) + 38px + var(--s5));
  transition: background-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.rail::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(168deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 36%, transparent 62%, rgba(6,10,16,.05));
  content: "";
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.brand,
.nav,
.rail-foot { position: relative; z-index: 2; }
.brand {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sr-ink);
  color: var(--sr-paper);
  font: 600 16px/1 var(--sr-serif);
}
.brand:hover { color: var(--sr-accent); }
.nav {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  width: 48px;
  margin-top: var(--s5);
  transition: opacity var(--dur-3) var(--ease), translate var(--dur-3) var(--ease);
}
.nav a,
.mobile-rail a {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--sr-secondary);
  transition: color var(--dur-2) var(--ease);
}
.nav a svg { position: relative; z-index: 1; display: block; width: 21px; height: 21px; }
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"],
.mobile-rail a:hover,
.mobile-rail a:focus-visible,
.mobile-rail a[aria-current="page"] { color: var(--nav-accent, var(--sr-accent)); }
.nav a:focus-visible,
.mobile-rail a:focus-visible { outline: 2px solid var(--sr-accent); outline-offset: 3px; }
.nav a::before {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  padding: 8px 12px;
  transform: translate(-6px, -50%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(24,24,27,.88);
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  color: #f4f4f2;
  content: attr(data-label);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.nav a:hover::before,
.nav a:focus-visible::before { transform: translate(0, -50%); opacity: 1; }
.nav-indicator {
  position: absolute;
  z-index: 5;
  top: 0;
  right: calc((var(--rail-w) - 48px) / -2 - 1px);
  width: 2px;
  height: var(--nav-indicator-len, 48px);
  transform: translateY(var(--nav-indicator-y, 0px));
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
  will-change: transform, height;
}
.nav-indicator::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-indicator-color, var(--sr-accent));
  content: "";
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.nav-indicator.is-visible { opacity: 1; }
.nav-glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.nav-glow::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 36px 34px at 100% calc(var(--nav-offset-y, 0px) + var(--nav-indicator-y, 0px) + var(--nav-indicator-len, 48px) / 2), color-mix(in srgb, var(--nav-indicator-color, var(--sr-accent)) 22%, transparent), transparent 100%),
    radial-gradient(circle 26px at 50% calc(var(--nav-offset-y, 0px) + var(--nav-indicator-y, 0px) + var(--nav-indicator-len, 48px) / 2), color-mix(in srgb, var(--nav-indicator-color, var(--sr-accent)) 9%, transparent), transparent 100%);
  content: "";
  filter: blur(3px);
  mix-blend-mode: plus-lighter;
}
.nav-glow.is-visible { opacity: 1; }
.rail-foot {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  margin-top: auto;
  transition: opacity var(--dur-3) var(--ease), translate var(--dur-3) var(--ease);
}
.aside-btn,
.theme-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--sr-line);
  border-radius: 50%;
  background: transparent;
  color: var(--sr-secondary);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.aside-btn:hover,
.theme-btn:hover { background: var(--sr-accent-soft); color: var(--sr-accent); }
.aside-btn svg,
.theme-btn svg { width: 18px; height: 18px; }
.mobile-rail { display: none; }
.sr-shell:has(.sr-scene):not(.is-scrolled) .rail {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sr-shell:has(.sr-scene):not(.is-scrolled) .rail::after { opacity: 0; }
.sr-shell:has(.sr-scene):not(.is-scrolled) .nav a { color: rgba(244,244,242,.72); }
.sr-shell:has(.sr-scene):not(.is-scrolled) .nav a[aria-current="page"],
.sr-shell:has(.sr-scene):not(.is-scrolled) .nav a:hover,
.sr-shell:has(.sr-scene):not(.is-scrolled) .nav a:focus-visible { color: var(--nav-accent, #fff); }
.sr-shell:has(.sr-scene):not(.is-scrolled) .nav a svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.sr-shell:has(.sr-scene):not(.is-scrolled) .rail-foot { opacity: 0; pointer-events: none; translate: 0 -6px; }
.sr-shell.is-scrolled .rail { background: var(--sr-card); box-shadow: inset 0 1px 0 var(--sr-shine); }
.sr-shell:has(.sr-scene) .rail { transition: background-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), backdrop-filter var(--dur-3) var(--ease); }
html[data-rail-reveal="collapsed"] .rail { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-rail-reveal="collapsed"] .nav,
html[data-rail-reveal="collapsed"] .rail-foot { opacity: 0; pointer-events: none; }
html[data-rail-reveal="collapsed"] .nav { translate: 0 -14px; }
html[data-rail-reveal="collapsed"] .rail-foot { translate: 0 14px; }
html[data-rail-reveal="collapsed"] .nav-glow { opacity: 0; }
html.lill-dark .rail { --sr-shine: rgba(255,255,255,.12); }

html.lill-dark .prose,
html.lill-dark .sr-article__content,
html.lill-dark .sr-reading--post { color: var(--sr-ink); }
html.lill-dark .prose pre,
html.lill-dark .sr-article__content pre { background: var(--sr-panel); color: var(--sr-ink); }
html.lill-dark .reader-tools { background: var(--sr-panel); }

.sr-reading--post {
  --post-measure: 750px;
  --post-font-size: 17px;
  --post-line-height: 1.8;
  --post-center: 50%;
  --post-toc-w: 184px;
  --post-rail-w: 184px;
  --post-rail-top: 176px;
  --post-rail-bottom: 32px;
  --post-rail-right-offset: 456px;
  --post-rail-left-offset: 640px;
  min-height: calc(100svh - 120px);
  width: calc(100% - var(--sr-gutter) - var(--sr-safe));
  max-width: none;
  margin-left: var(--sr-gutter);
  padding: 72px 0 100px;
  color: var(--sr-secondary);
}
.page-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--sr-accent), color-mix(in srgb, var(--sr-accent) 56%, #8db6d5));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.page-progress.is-active { opacity: 1; }
.article-shell,
.article-read { display: block; }
.article-read { padding-right: calc(var(--rail-w) + var(--s6)); }
.article-body {
  width: min(var(--post-measure), 100%);
  margin-inline: auto;
}
.article-body > .eyebrow {
  margin: 0 0 var(--s3);
  color: var(--sr-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article-body > h1 {
  margin: 0 0 var(--s5);
  color: var(--sr-ink);
  font: 600 clamp(34px, 3.6vw, 44px)/1.18 var(--sr-serif);
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s5);
  color: var(--sr-muted);
  font-size: 11px;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.article-meta .tag {
  padding: var(--s1) var(--s3);
  border-radius: 999px;
  background: var(--sr-accent-soft);
  color: var(--sr-secondary);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.article-meta .tag:hover { background: var(--sr-accent); color: var(--sr-paper); }
.prose {
  max-width: var(--post-measure);
  color: var(--sr-ink);
  font-size: var(--post-font-size, 17px);
  line-height: var(--post-line-height, 1.8);
  overflow-wrap: anywhere;
}
.prose > * + * { margin-top: var(--s5); }
.prose h2,
.prose h3,
.prose h4 { color: var(--sr-ink); font-family: var(--sr-serif); font-weight: 600; }
.prose h2 { margin-top: var(--s7, 48px); font-size: 24px; line-height: 1.35; }
.prose h3 { margin-top: var(--s6); font-size: 17px; }
.prose strong { color: var(--sr-ink); font-weight: 600; }
.prose a { color: var(--sr-accent); text-underline-offset: 3px; }
.prose ul,
.prose ol { padding-left: var(--s5); list-style: revert; }
.prose li + li { margin-top: var(--s2); }
.prose blockquote {
  margin: var(--s6) 0;
  padding: var(--s2) 0 var(--s2) var(--s5);
  border-left: 2px solid var(--sr-warm);
  color: var(--sr-ink);
}
.prose code {
  padding: 2px var(--s1);
  border-radius: 6px;
  background: color-mix(in srgb, var(--sr-accent-soft) 76%, transparent);
  color: var(--sr-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}
.prose pre {
  max-width: 100%;
  margin: var(--s6) 0;
  padding: var(--s4) var(--s5);
  overflow-x: auto;
  border: 1px solid var(--sr-line);
  border-radius: 6px;
  background: var(--sr-panel);
}
.prose pre code { padding: 0; background: transparent; font-size: .9em; line-height: 1.7; }
.prose img,
.prose video,
.prose iframe { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 6px; }
.prose figure { margin: var(--s6) 0; }
.prose figcaption { margin-top: var(--s2); color: var(--sr-secondary); font-size: 11px; text-align: center; }
.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s4);
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--sr-line);
  font-size: 13px;
}
.pager a { display: grid; gap: 5px; min-width: 0; color: var(--sr-secondary); }
.pager a:hover { color: var(--sr-accent); }
.pager .k { color: var(--sr-muted); font-size: 10px; }
.pager .v { overflow-wrap: anywhere; }
.pager .next { text-align: right; }
.article-toc {
  border-left: 1px solid var(--sr-line);
  padding-left: var(--s5);
  opacity: 1;
  transition: opacity var(--dur-2) var(--ease);
}
.article-toc.is-off { opacity: 0; pointer-events: none; }
.article-toc > .eyebrow {
  margin: 0 0 var(--s2);
  color: var(--sr-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}
.article-toc nav { display: grid; gap: 2px; }
.article-toc a {
  display: block;
  padding-block: var(--s2);
  color: var(--sr-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  transition: color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.article-toc a[data-level="3"] { padding-left: 16px; color: color-mix(in srgb, var(--sr-muted) 72%, transparent); }
.article-toc a:hover,
.article-toc a.is-current { transform: translateX(2px); color: var(--sr-accent); }
.reader-tools {
  display: flex;
  flex-direction: column;
  padding: var(--s2);
  border: 1px solid var(--sr-line);
  border-radius: 14px;
  background: var(--sr-panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.reader-tools__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reader-tools__actions button,
.reader-settings__reset {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--sr-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.reader-tools__actions button:hover,
.reader-settings__reset:hover { border-color: var(--sr-line-strong); background: var(--sr-accent-soft); color: var(--sr-ink); }
.reader-tools__actions button:active,
.reader-settings__reset:active { transform: scale(.97); }
.reader-settings { margin-top: 8px; border-top: 1px solid var(--sr-line); }
.reader-settings summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s2) var(--s2) var(--s1);
  color: var(--sr-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  list-style: none;
  user-select: none;
}
.reader-settings summary::-webkit-details-marker { display: none; }
.reader-settings summary::after {
  width: 7px;
  height: 7px;
  flex: none;
  transform: rotate(45deg) translateY(-2px);
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transition: transform var(--dur-1) var(--ease);
}
.reader-settings[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.reader-settings__body { display: grid; gap: var(--s4); padding: var(--s3) var(--s2); }
.reader-setting { display: grid; gap: 9px; }
.reader-setting__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); color: var(--sr-muted); font-size: 11px; }
.reader-setting__head output { color: var(--sr-ink); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.reader-setting input[type="range"] { width: 100%; height: 16px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.reader-setting input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: linear-gradient(to right, var(--sr-accent) 0 var(--reader-range-progress, 50%), var(--sr-line-strong) var(--reader-range-progress, 50%) 100%); }
.reader-setting input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: linear-gradient(to right, var(--sr-accent) 0 var(--reader-range-progress, 50%), var(--sr-line-strong) var(--reader-range-progress, 50%) 100%); }
.reader-setting input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -4px; appearance: none; border: 2px solid var(--sr-panel); border-radius: 50%; background: var(--sr-ink); box-shadow: 0 0 0 1px var(--sr-accent); }
.reader-setting input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid var(--sr-panel); border-radius: 50%; background: var(--sr-ink); box-shadow: 0 0 0 1px var(--sr-accent); }
.reader-settings__reset { min-height: auto; align-self: flex-start; padding: 0; border: 0; }
.reader-settings__reset:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.reader-tools__feedback { margin: 0; color: var(--sr-accent); font-size: 11px; }

@media (min-width: 1440px) {
  .article-toc,
  .reader-tools {
    position: fixed;
    top: var(--post-rail-top);
    max-height: calc(100dvh - var(--post-rail-top) - var(--post-rail-bottom));
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .reader-tools { z-index: 19; left: calc(var(--post-center) + var(--post-rail-right-offset)); width: var(--post-rail-w); }
  .article-toc { z-index: 20; left: max(32px, calc(var(--post-center) - var(--post-rail-left-offset))); width: var(--post-toc-w); }
}
@media (max-width: 1439px) {
  .article-read { display: flex; flex-direction: column; padding-right: 0; }
  .article-toc,
  .reader-tools { position: static; inset: auto; width: min(var(--post-measure), 100%); max-width: none; max-height: none; margin: var(--s6) auto 0; overflow: visible; }
  .article-body { order: 1; width: min(var(--post-measure), 100%); }
  .article-toc { order: 2; }
  .reader-tools { order: 3; }
}
@media (max-width: 820px) {
  .sr-shell { --sr-rail: 0px; }
  .sr-workspace { margin-left: 0; }
  .rail-slot { display: none; }
  .mobile-rail {
    position: fixed;
    z-index: 40;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    gap: 4px;
    padding: 4px;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 22px;
    background: var(--sr-card);
    box-shadow: inset 0 1px 0 var(--sr-shine);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
  }
  .mobile-rail a { z-index: 2; width: 44px; height: 44px; }
  .mobile-rail a svg { position: relative; z-index: 1; width: 20px; height: 20px; }
  .mobile-rail .nav-indicator {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 0;
    width: var(--nav-indicator-len, 44px);
    height: 2px;
    transform: translateX(var(--nav-indicator-y, 0px));
  }
  .mobile-rail .nav-indicator::after { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .mobile-rail .nav-glow::before {
    inset: auto auto 100% 50%;
    width: calc(var(--nav-indicator-len, 44px) + 18px);
    height: 22px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center bottom, color-mix(in srgb, var(--nav-indicator-color, var(--sr-accent)) 34%, transparent), transparent 100%);
  }
  html[data-dock="hidden"] .mobile-rail { transform: translate(-50%, calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .sr-reading--post { padding-top: 42px; padding-bottom: 112px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; }
  .sr-reading--post .sr-comments { margin-top: 44px; }
}
@media (min-width: 821px) {
  .mobile-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rail,
  .nav,
  .rail-foot,
  .nav a,
  .nav a::before,
  .mobile-rail { transition-duration: .01ms; }
}
@media print {
  .rail-slot,
  .mobile-rail,
  .reader-tools,
  .article-toc,
  .page-progress,
  .sr-comments,
  .sr-footer { display: none !important; }
  .sr-workspace { margin: 0 !important; }
  .sr-reading--post { width: 100%; margin: 0; padding: 0; }
  .article-read { padding: 0; }
  .article-body { width: 100%; }
}

/* 2026-10-30：左侧导航去掉渐变底色；所有文章卡片去掉描边与阴影 */
.rail::after { background: none; }
.sr-post-card,
.sr-shell:has(.sr-scene) .sr-post-card { border: 0; box-shadow: none; }
.sr-post-card::after,
.sr-shell:has(.sr-scene) .sr-post-card::after { border: 0; box-shadow: none; }

/* 2026-10-30 B 方案：满图卡统一色调 + 修圆角毛边 */
.sr-list .sr-post-card { transform: translateZ(0); backface-visibility: hidden; }
.sr-list .sr-post-card__cover { filter: saturate(.72) contrast(1.04) brightness(.94); border-radius: inherit; }
.sr-list .sr-post-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(24,32,42,.30) 0%, rgba(24,32,42,.12) 42%, rgba(24,32,42,.62) 100%);
}
.sr-list .sr-post-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.sr-list .sr-post-card__top,
.sr-list .sr-post-card__body { z-index: 2; }
