/* ---- design tokens (light) ---- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-sunk: #f5f5f5;
  --line: #ececec;
  --line-strong: #d4d4d4;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --ink-3: #595959;
  --ink-4: #707070;
  --accent: #0066ff;
  --accent-soft: #e6efff;
  --accent-2: #003fb8;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --ok-text: #15803d;
  --warn: #ca8a04;
  --warn-soft: #fef9c3;
  --warn-text: #854d0e;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --danger-text: #b91c1c;

  --error-fg: #991b1b;
  --error-bg: #fee2e2;
  --code-bg: #f5f5f7;

  --sans: 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.04);
  --shadow-2: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-3: 0 8px 28px rgba(0,0,0,.08);

  color-scheme: light;
}

/* ---- design tokens (dark) ---- */
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-sunk: #1a1a1a;
  --line: #262626;
  --line-strong: #404040;
  --ink: #fafafa;
  --ink-2: #d4d4d4;
  --ink-3: #b8b8b8;
  --ink-4: #8a8a8a;
  --accent: #4d8eff;
  --accent-soft: #0d2547;
  --accent-2: #80abff;
  --ok: #22c55e;
  --ok-soft: #052e16;
  --ok-text: #86efac;
  --warn: #eab308;
  --warn-soft: #422006;
  --warn-text: #fde68a;
  --danger: #ef4444;
  --danger-soft: #450a0a;
  --danger-text: #fca5a5;
  --error-fg: #fca5a5;
  --error-bg: #450a0a;
  --code-bg: #1a1a1c;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 3px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
  --shadow-3: 0 8px 28px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* prefers-color-scheme fallback when user hasn't picked manually */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --bg-sunk: #1a1a1a;
    --line: #262626;
    --line-strong: #404040;
    --ink: #fafafa;
    --ink-2: #d4d4d4;
    --ink-3: #b8b8b8;
    --ink-4: #8a8a8a;
    --accent: #4d8eff;
    --accent-soft: #0d2547;
    --accent-2: #80abff;
    --ok: #22c55e;
    --ok-soft: #052e16;
    --ok-text: #86efac;
    --warn: #eab308;
    --warn-soft: #422006;
    --warn-text: #fde68a;
    --danger: #ef4444;
    --danger-soft: #450a0a;
    --danger-text: #fca5a5;
    --error-fg: #fca5a5;
    --error-bg: #450a0a;
    --code-bg: #1a1a1c;
    color-scheme: dark;
  }
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ---- a11y: focus-visible / skip-link / sr-only ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 8px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---- helpers ---- */
.hf-mono { font-family: var(--mono); }
.hf-muted { color: var(--ink-3); }
.hf-soft { color: var(--ink-2); }
.hf-faint { color: var(--ink-4); }
.hf-tiny { font-size: 11px; }
.hf-sm { font-size: 12px; }
.hf-md { font-size: 14px; }
.hf-lg { font-size: 16px; }
.hf-grow { flex: 1; min-width: 0; }
.hf-row { display: flex; }
.hf-col { display: flex; flex-direction: column; }

/* ---- ui primitives ---- */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 36px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
  text-decoration: none;
}
.ui-btn:hover { border-color: var(--ink-3); }
.ui-btn:disabled { opacity: .5; cursor: not-allowed; }
.ui-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.ui-btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.ui-btn--ghost { background: transparent; border-color: var(--line); }
.ui-btn--danger { color: var(--danger-text); border-color: var(--danger-soft); }
.ui-btn--sm { padding: 6px 11px; min-height: 30px; font-size: 12px; }
.ui-btn--icon { padding: 0; width: 36px; height: 36px; }

.ui-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.6;
  font-family: inherit;
}
.ui-tag--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.ui-tag--ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-text); }
.ui-tag--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); }
.ui-tag--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger-text); }
.ui-tag--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
button.ui-tag { cursor: pointer; }
.ui-tag[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-2);
}

.ui-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.ui-input {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 10px;
  min-height: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
}
.ui-input:focus,
.ui-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.ui-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.ui-toggle:checked,
.ui-toggle[aria-checked="true"] { background: var(--accent); }
.ui-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
  pointer-events: none;
}
.ui-toggle:checked::after,
.ui-toggle[aria-checked="true"]::after { left: 18px; }

.ui-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background: var(--bg);
  vertical-align: -3px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.ui-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.ui-check:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ui-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  cursor: pointer;
  padding: 4px 0;
}

.ui-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #a855f7);
}

.ui-kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink-3);
  line-height: 1.4;
}

.ui-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: 0;
  margin-right: 5px;
  background: var(--ink-3);
}
.ui-dot--ok { background: var(--ok); }
.ui-dot--warn { background: var(--warn); }
.ui-dot--danger { background: var(--danger); }
.ui-dot--accent { background: var(--accent); }

.ui-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.ui-badge--public { color: var(--ok-text); background: var(--ok-soft); border-color: transparent; }
.ui-badge--unlisted { color: var(--warn-text); background: var(--warn-soft); border-color: transparent; }
.ui-badge--link-only { color: var(--accent-2); background: var(--accent-soft); border-color: transparent; }
.ui-badge--private { color: var(--ink-3); background: var(--bg-sunk); }

/* ---- dropdown / modal / toast / tooltip (component CSS) ---- */
.ui-dropdown {
  position: relative;
  display: inline-block;
}
.ui-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px); right: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 4px;
  z-index: 50;
}
.ui-dropdown__item {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.ui-dropdown__item:hover { background: var(--bg-soft); }

.ui-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.ui-modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow: auto;
  border: 1px solid var(--line);
}
.ui-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ui-modal__body { padding: 16px 20px; }
.ui-modal__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ui-toast-region {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.ui-toast {
  pointer-events: auto;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  min-width: 240px;
}
.ui-toast--error { border-color: var(--danger); color: var(--danger-text); }
.ui-toast--success { border-color: var(--ok); color: var(--ok-text); }

.ui-tooltip {
  position: relative;
  display: inline-block;
}
.ui-tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 60;
}
.ui-tooltip:hover .ui-tooltip__bubble,
.ui-tooltip:focus-within .ui-tooltip__bubble { opacity: 1; }

/* ---- admin shell ---- */
.ui-admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
.ui-admin__sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 14px 12px;
  overflow: auto;
}
.ui-admin__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 14px;
}
.ui-admin__logo {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.ui-admin__group-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 10px 4px;
}
.ui-admin__nav { list-style: none; padding: 0; margin: 0; }
.ui-admin__nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 400;
  min-height: 32px;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.ui-admin__nav-item:hover { background: var(--bg-sunk); }
.ui-admin__nav-item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
}
.ui-admin__nav-item[aria-disabled="true"] {
  color: var(--ink-4);
  cursor: not-allowed;
}
.ui-admin__nav-item[aria-disabled="true"]:hover { background: transparent; }
.ui-admin__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
}
.ui-admin__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
  min-height: 56px;
}
.ui-admin__crumbs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.ui-admin__crumbs a { color: var(--accent); text-decoration: none; }
.ui-admin__topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  min-height: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 220px;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  text-align: left;
  font-family: inherit;
}
.ui-admin__content {
  flex: 1;
  overflow: auto;
  background: var(--bg);
  padding: 24px 28px;
}

/* ---- public layout ---- */
.ui-public {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
.ui-public__nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ui-public__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 15px;
}
.ui-public__brand-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.ui-public__nav-list {
  display: flex;
  gap: 4px;
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
}
.ui-public__nav-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  border-radius: var(--radius);
  position: relative;
}
.ui-public__nav-link:hover { color: var(--ink); }
.ui-public__nav-link[aria-current="page"] { color: var(--ink); }
.ui-public__nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--accent);
}
.ui-public__main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.ui-public__footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

@media (max-width: 720px) {
  .ui-admin {
    grid-template-columns: 1fr;
    grid-template-rows: 74px auto;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
  }
  .ui-admin__sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    height: 74px;
    max-height: 74px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .ui-admin__sidebar::-webkit-scrollbar { display: none; }
  .ui-admin__brand {
    flex: 0 0 auto;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-1);
  }
  .ui-admin__brand-text { display: none; }
  .ui-admin__sidebar > div:not(.ui-admin__brand) {
    flex: 0 0 auto;
    min-width: 0;
  }
  .ui-admin__group-label { display: none; }
  .ui-admin__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  .ui-admin__nav li { flex: 0 0 auto; }
  .ui-admin__nav-item {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    white-space: nowrap;
  }
  .ui-admin__nav-item span {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ui-admin__main {
    height: auto;
    min-height: 0;
  }
  .ui-admin__topbar {
    min-height: 56px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ui-admin__topbar::-webkit-scrollbar { display: none; }
  .ui-admin__topbar > .hf-grow { display: none; }
  .ui-admin__topbar .ui-btn,
  .ui-admin__topbar .ui-avatar {
    flex: 0 0 auto;
  }
  .ui-admin__topbar .ui-btn {
    white-space: nowrap;
  }
  .ui-admin__topbar .ui-btn--sm {
    min-height: 42px;
    padding-inline: 10px;
  }
  .ui-admin__crumbs {
    flex: 1 1 auto;
    min-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-admin__topbar-search {
    flex: 0 0 42px;
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .ui-admin__topbar-search .hf-grow,
  .ui-admin__topbar-search .ui-kbd { display: none; }
  .ui-admin__content {
    padding: 14px 12px;
    overflow-x: auto;
    overflow-y: visible;
  }
  .ui-public__nav {
    padding: 0 12px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .ui-public__nav::-webkit-scrollbar { display: none; }
  .ui-public__brand { flex: 0 0 auto; }
  .ui-public__brand span:last-child { display: none; }
  .ui-public__nav-list {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .ui-public__nav-link {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }
  .ui-public__main {
    width: 100%;
    padding: 32px 16px;
  }
  .ui-public__footer { padding: 20px 16px; }
}


/* ---- legacy compat aliases for templates that reference older names ---- */
:root {
  --fg: var(--ink);
  --muted: var(--ink-3);
  --border: var(--line);
}

/* ---- typography for article body — 主体 prose 在 obsidian.css 里 ---- */
a { color: var(--accent); }
.post-list { list-style: none; padding: 0; }
.opennote-broken-link { color: var(--ink-3); text-decoration: line-through dotted; cursor: help; }
.opennote-math-error { color: var(--error-fg); background: var(--error-bg); padding: 2px 6px; border-radius: 3px; }

/* ====================================================================== */
/* WS-A — public 内容页样式                                                  */
/* ====================================================================== */

/* hero blob animation (re-declared here so prototype-style classes work) */
@keyframes wsa-blob-a { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(20px,-15px) scale(1.05)} 66%{transform:translate(-15px,12px) scale(.97)} }
@keyframes wsa-blob-b { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-22px,18px) scale(1.08)} }
.hf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
}
.hf-divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.hf-hover:hover { background: var(--bg-soft); }

/* 把 ui-public__main 的窄容器限制还原成宽容器,内容页要三栏 */
body.ui-public { background: var(--bg); }
.ui-public__main { max-width: none; padding: 0; margin: 0; }

/* override footer to be wider */
.ui-public__footer { max-width: 1280px; }

/* ---- prose for article body — 由 @opennote/obsidian/styles/obsidian.css 提供 ---- */
/* (此处保留 host wrappers,obsidian.css 接管 .hf-prose / .ob-canvas / .ob-html-embed) */
.ob-canvas-host { padding: 0; margin: 0; }
.ob-html-host { padding: 0; margin: 0; }

/* ---- HOME ---- */
.wsa-home { width: 100%; }
.wsa-hero {
  position: relative;
  padding: 64px 28px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.wsa-hero__inner { position: relative; max-width: 920px; margin: 0 auto; }
.wsa-hero__blob-a {
  width: 360px; height: 360px;
  background: var(--accent);
  top: -80px; right: -40px;
  animation: wsa-blob-a 18s ease-in-out infinite;
}
.wsa-hero__blob-b {
  width: 260px; height: 260px;
  background: #a855f7;
  bottom: -60px; left: 200px;
  animation: wsa-blob-b 22s ease-in-out infinite;
}
.wsa-hero__pre { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.wsa-hero__title {
  font-size: 52px; font-weight: 900;
  line-height: 1.1; margin: 0;
  letter-spacing: -0.02em;
}
.wsa-hero__intro {
  font-size: 17px; color: var(--ink-3);
  max-width: 620px; margin-top: 16px;
  line-height: 1.65;
}
.wsa-hero__cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.wsa-grid {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px;
  gap: 0;
}

/* LEFT catalog */
.wsa-cat { padding-right: 24px; border-right: 1px solid var(--line); min-width: 0; }
.wsa-cat__head {
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: .05em;
}
.wsa-cat__group { margin-bottom: 16px; }
.wsa-cat__title { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.wsa-cat__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wsa-cat__row {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  min-height: 32px;
  align-items: center;
}
.wsa-cat__row:hover { background: var(--bg-soft); color: var(--ink); }
.wsa-cat__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* MIDDLE feed */
.wsa-feed { padding: 0 24px; min-width: 0; }
.wsa-feed__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.wsa-feed__h { font-size: 22px; font-weight: 700; margin: 0; }
.wsa-empty { color: var(--ink-3); }

.wsa-pinned {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  position: relative;
}
.wsa-pinned__badge { position: absolute; top: 12px; right: 12px; }
.wsa-pinned__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 8px; padding: 0; list-style: none;
}
.wsa-pinned__title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0; }
.wsa-pinned__title a { color: inherit; text-decoration: none; }
.wsa-pinned__title a:hover { color: var(--accent); }
.wsa-pinned__sum { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 8px 0 12px; }
.wsa-pinned__meta { display: flex; gap: 12px; color: var(--ink-4); flex-wrap: wrap; }

.wsa-row {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: start;
}
.wsa-row__date { padding-top: 4px; }
.wsa-row__title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.4; }
.wsa-row__title a { color: inherit; text-decoration: none; }
.wsa-row__title a:hover { color: var(--accent); }
.wsa-row__sum { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; line-height: 1.6; }
.wsa-row__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; }
.wsa-row__meta { padding-top: 4px; text-align: right; line-height: 1.5; }

/* RIGHT side */
.wsa-side { padding-left: 24px; border-left: 1px solid var(--line); min-width: 0; }
.wsa-side__profile { text-align: center; }
.wsa-side__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 22px; font-weight: 700;
}
.wsa-side__name { font-weight: 700; font-size: 15px; }
.wsa-side__bio { margin-top: 2px; }
.wsa-side__social {
  display: flex; justify-content: center; gap: 6px;
  margin: 10px 0 0; padding: 0; list-style: none; flex-wrap: wrap;
}
.wsa-side__section { margin-top: 24px; }
.wsa-side__h {
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 700;
}
.wsa-side__notes { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.wsa-side__note {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.wsa-side__note-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.wsa-side__note-title { font-weight: 500; line-height: 1.4; }
.wsa-side__cloud { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }

/* ---- POST ---- */
.wsa-post { width: 100%; position: relative; }
.wsa-progress {
  position: sticky;
  top: 56px;
  z-index: 9;
  height: 2px;
  background: transparent;
}
.wsa-progress__bar {
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width .15s;
}
.wsa-post__grid {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px;
  gap: 20px;
}
.wsa-post__left { min-width: 0; }
.wsa-series, .wsa-outline {
  list-style: none; padding: 0;
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 2px;
}
.wsa-series__row {
  display: block;
  padding: 5px 10px; border-radius: 4px;
  font-size: 13px; color: var(--ink-2);
  border-left: 2px solid transparent;
  text-decoration: none;
}
.wsa-series__row:hover { background: var(--bg-soft); color: var(--ink); }
.wsa-outline__item { padding: 0; }
.wsa-outline__item a {
  display: block;
  padding: 4px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  text-decoration: none;
}
.wsa-outline__item a:hover { color: var(--accent); }
.wsa-outline__item--3 a { padding-left: 22px; font-size: 11px; }

.wsa-actbar {
  display: flex; gap: 6px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* PR-F — 文章左栏 1-hop backlinks 小图 (A-2) */
.wsa-minigraph {
  margin: 0 0 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.wsa-minigraph__svg {
  display: block;
  overflow: visible;
}
.wsa-minigraph__edge {
  stroke: var(--line-strong, var(--line));
  stroke-width: 1;
  opacity: 0.7;
}
.wsa-minigraph__node {
  fill: var(--bg);
  stroke: var(--line-strong, var(--line));
  stroke-width: 1.5;
  transition: fill .15s, stroke .15s, r .15s;
}
.wsa-minigraph__node--center {
  fill: var(--accent);
  stroke: var(--accent);
}
.wsa-minigraph__nodelink { cursor: pointer; }
.wsa-minigraph__nodelink:hover .wsa-minigraph__node--neighbor,
.wsa-minigraph__nodelink:focus-visible .wsa-minigraph__node--neighbor {
  fill: var(--accent);
  stroke: var(--accent);
}
.wsa-minigraph__nodelink:hover .wsa-minigraph__label,
.wsa-minigraph__nodelink:focus-visible .wsa-minigraph__label {
  fill: var(--accent);
}
.wsa-minigraph__label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  fill: var(--ink-3);
  pointer-events: none;
}

.wsa-post__main { padding: 0 8px; min-width: 0; position: relative; }
.wsa-post__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 0; list-style: none;
}
.wsa-post__title {
  font-size: 36px; font-weight: 800;
  line-height: 1.2; margin: 0;
  letter-spacing: -0.01em;
}
.wsa-post__summary { font-size: 18px; color: var(--ink-3); margin-top: 8px; font-weight: 400; line-height: 1.5; }
.wsa-post__meta { margin-top: 14px; display: flex; gap: 12px; color: var(--ink-4); flex-wrap: wrap; align-items: center; }
.wsa-post__divider { margin: 20px 0; }
.wsa-prose { min-width: 0; }

.wsa-cta {
  display: flex; gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.wsa-cta__avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.wsa-cta__name { font-weight: 700; }
.wsa-cta__sub { margin-top: 2px; }

.wsa-post__right { min-width: 0; }
.wsa-comments-stub {
  position: sticky; top: 80px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}
.wsa-comments-stub__msg { margin: 8px 0 0; }

/* ---- TAG ---- */
.wsa-tag { width: 100%; }
.wsa-tag__head {
  padding: 40px 28px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.wsa-tag__blob {
  width: 280px; height: 280px;
  background: var(--accent);
  top: -80px; right: 80px;
  animation: wsa-blob-a 18s ease-in-out infinite;
}
.wsa-tag__head-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.wsa-tag__crumbs { margin-bottom: 6px; }
.wsa-tag__crumbs a { color: var(--ink-3); }
.wsa-tag__h {
  font-size: 44px; font-weight: 900;
  line-height: 1.1; margin: 0;
  letter-spacing: -0.02em;
}
.wsa-tag__desc {
  font-size: 15px; color: var(--ink-3);
  max-width: 600px; margin-top: 10px;
  line-height: 1.65;
}
.wsa-tag__stats {
  display: flex; gap: 14px;
  margin: 16px 0 0; padding: 0;
  list-style: none; align-items: center;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap;
}
.wsa-tag__stats b { color: var(--ink); font-family: var(--mono); }
.wsa-tag__stats-spacer { flex: 1; }

.wsa-tag__grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.wsa-tag__main { min-width: 0; }
.wsa-tag__year { margin-bottom: 32px; }
.wsa-tag__year-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.wsa-tag__year-h { font-size: 18px; font-weight: 700; margin: 0; }
.wsa-tag__row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.wsa-tag__date { padding-top: 3px; }
.wsa-tag__title { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.4; }
.wsa-tag__title a { color: inherit; text-decoration: none; }
.wsa-tag__title a:hover { color: var(--accent); }
.wsa-tag__sum { margin: 4px 0 0; line-height: 1.5; }
.wsa-tag__meta { padding-top: 3px; text-align: right; }
.wsa-tag__side { min-width: 0; }
.wsa-tag__related { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0 0 24px; }
.wsa-tag__hot {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
}
.wsa-tag__hot--bordered { border-top: 1px solid var(--line); }
.wsa-tag__hot-title { font-weight: 500; line-height: 1.4; }
.wsa-tag__hot-meta { margin-top: 2px; }

/* ---- TAG INDEX ---- */
.wsa-tagindex { max-width: 1100px; margin: 0 auto; padding: 48px 28px; }
.wsa-tagindex__head { margin-bottom: 24px; }
.wsa-tagindex__title { font-size: 36px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.wsa-tagindex__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.wsa-tagindex__empty {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  padding: 28px;
  max-width: 560px;
}
.wsa-tagindex__empty-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 800; font-size: 24px;
}
.wsa-tagindex__empty h2 { margin: 14px 0 8px; font-size: 20px; }
.wsa-tagindex__empty p { margin: 0; line-height: 1.7; }
.wsa-tagindex__empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---- 404 ---- */
.wsa-404 {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.wsa-404__visual { position: relative; display: inline-block; margin-bottom: 24px; }
.wsa-404__big {
  font-family: var(--mono); font-size: 140px; font-weight: 900;
  color: var(--ink); line-height: 1; letter-spacing: -0.05em;
}
.wsa-404__big--ghost {
  position: absolute; inset: 0;
  color: var(--accent); opacity: .35;
  mix-blend-mode: difference;
  transform: translate(3px, 2px);
}
.wsa-404__title {
  font-size: 28px; font-weight: 800;
  margin: 0; letter-spacing: -0.01em;
}
.wsa-404__sub {
  font-size: 15px; color: var(--ink-3);
  max-width: 480px; margin: 14px auto 0;
  line-height: 1.7;
}
.wsa-404__diag {
  margin: 32px auto 0; max-width: 480px; padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
.wsa-404__diag .wsa-side__h { margin-bottom: 8px; }
.wsa-404__diag-body { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.wsa-404__diag-row { display: flex; gap: 8px; }
.wsa-404__diag-key { width: 100px; flex-shrink: 0; }
.wsa-404__cta { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.wsa-404__alts { margin-top: 40px; text-align: left; }
.wsa-404__alts-list { list-style: none; padding: 0; margin: 0; }
.wsa-404__alts-list li { border-top: 1px solid var(--line); }
.wsa-404__alt { display: block; padding: 10px 0; text-decoration: none; color: inherit; }
.wsa-404__alt-title { font-size: 14px; font-weight: 500; }
.wsa-404__alt-meta { margin-top: 2px; }

/* ---- ABOUT ---- */
.wsa-about { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.wsa-about__hero { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.wsa-about__avatar {
  width: 88px; height: 88px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 800; font-size: 38px;
  box-shadow: 0 12px 32px rgba(0, 102, 255, .25);
  flex-shrink: 0;
}
.wsa-about__pre { margin-bottom: 4px; }
.wsa-about__title {
  font-size: 36px; font-weight: 900;
  margin: 0; letter-spacing: -0.02em;
  line-height: 1.1;
}
.wsa-about__sub { margin-top: 6px; }
.wsa-about__bio {
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
  margin-bottom: 20px;
}
.wsa-about__bio p { margin: 0 0 14px; }
.wsa-about__sec-h { margin: 40px 0 14px; }
.wsa-about__card { padding: 18px; }
.wsa-about__contact { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wsa-about__contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.wsa-about__contact-platform { min-width: 100px; flex-shrink: 0; }
.wsa-about__contact-handle { color: var(--accent); font-weight: 500; }
.wsa-about__subscribe { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- responsive (粗略,详细 mobile 在 WS-C) ---- */
@media (max-width: 900px) {
  .wsa-grid { grid-template-columns: 1fr; }
  .wsa-cat, .wsa-side { padding: 0; border: 0; }
  .wsa-feed { padding: 0; }
  .wsa-post__grid { grid-template-columns: 1fr; }
  .wsa-tag__grid { grid-template-columns: 1fr; }
  .wsa-about__contact { grid-template-columns: 1fr; }
  .wsa-hero__title { font-size: 36px; }
  .wsa-post__title { font-size: 28px; }
}


/* ====================================================================== */
/* WS-C — RSS 阅读页 (/feed/)                                                */
/* ====================================================================== */

.wsc-rss { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.wsc-rss__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.wsc-rss__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-family: var(--mono); font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
  flex-shrink: 0;
}
.wsc-rss__head-text { min-width: 0; }
.wsc-rss__title {
  font-size: 30px; font-weight: 800; margin: 2px 0 0;
  letter-spacing: -0.01em; line-height: 1.15;
}
.wsc-rss__lede {
  font-size: 15px; color: var(--ink-3);
  line-height: 1.7; margin: 0 0 32px;
}
.wsc-rss__sec-h {
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  margin: 32px 0 8px;
  font-weight: 600;
}
.wsc-rss__feeds {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.wsc-feed-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.wsc-feed-row--rec { border-color: var(--accent); }
.wsc-feed-row__main { flex: 1; min-width: 0; }
.wsc-feed-row__head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.wsc-feed-row__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.wsc-feed-row__url {
  display: block; margin-top: 4px;
  color: var(--ink-3);
  word-break: break-all;
  font-size: 11px;
  background: none; padding: 0;
}
.wsc-feed-row__actions {
  display: flex; gap: 6px; align-items: center;
  flex-shrink: 0;
}
.wsc-rss__readers {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.wsc-reader {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}
.wsc-reader__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.wsc-reader__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsc-reader__arrow { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.wsc-rss__about { padding: 16px; margin-top: 4px; }
.wsc-rss__about p { margin: 0; }
.wsc-rss__about code {
  background: var(--bg-sunk);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
  word-break: break-all;
}

@media (max-width: 768px) {
  .wsc-rss { padding: 32px 16px 64px; }
  .wsc-rss__title { font-size: 24px; }
  .wsc-rss__lede { font-size: 14px; margin-bottom: 24px; }
  .wsc-feed-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wsc-feed-row__actions {
    justify-content: flex-end;
  }
  .wsc-feed-row__actions .ui-btn { min-height: 36px; }
  .wsc-rss__readers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .wsc-rss { padding-left: 14px; padding-right: 14px; }
  .wsc-rss__title { font-size: 22px; }
  .wsc-rss__readers { grid-template-columns: 1fr; }
}


/* ---- SEARCH ---- */
.wsb-search { width: 100%; }
.wsb-search__bar {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.wsb-search__bar-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.wsb-search__form {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.wsb-search__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wsb-search__icon { color: var(--ink-3); display: inline-flex; }
.wsb-search__form:focus-within .wsb-search__icon { color: var(--accent); }
.wsb-search__input {
  flex: 1; min-width: 0;
  border: 0; outline: none;
  background: transparent;
  font: inherit; font-size: 16px;
  color: var(--ink);
}
.wsb-search__kbd { white-space: nowrap; }
.wsb-search__status { margin-top: 8px; min-height: 18px; }
.wsb-search__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; padding: 4px; margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.08));
  z-index: 20;
  max-height: 320px; overflow: auto;
}
.wsb-search__suggest li {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  min-height: 32px;
  display: flex; align-items: center;
}
.wsb-search__suggest li:hover { background: var(--bg-soft); color: var(--accent); }

.wsb-search__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  gap: 24px;
}
.wsb-search__filters { min-width: 0; }
.wsb-search__facet { margin-bottom: 22px; }
.wsb-search__facet-h {
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.wsb-search__facet-list { display: flex; flex-direction: column; gap: 2px; }
.wsb-search__facet-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink-2);
  min-height: 28px;
}
.wsb-search__facet-item input {
  appearance: none; -webkit-appearance: none;
  width: 12px; height: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.wsb-search__facet-item input:checked { border-color: var(--accent); }
.wsb-search__facet-item input:checked::after {
  content: ''; position: absolute; inset: 2px;
  background: var(--accent); border-radius: 50%;
}
.wsb-search__facet-item.is-active {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.wsb-search__facet-item span:nth-of-type(1) { flex: 1; }

.wsb-search__main { min-width: 0; }
.wsb-search__sort { margin-bottom: 12px; }
.wsb-search__empty {
  padding: 64px 24px; text-align: center;
}
.wsb-search__empty-icon { color: var(--ink-4); margin-bottom: 12px; opacity: .55; }
.wsb-search__list { list-style: none; padding: 0; margin: 0; }
.wsb-search__result {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.wsb-search__result-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.wsb-search__result-title { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.4; }
.wsb-search__result-title a { color: inherit; text-decoration: none; }
.wsb-search__result-title a:hover { color: var(--accent); }
.wsb-search__result-title em,
.wsb-search__result-excerpt em {
  font-style: normal;
  background: var(--accent-soft); color: var(--accent);
  padding: 0 2px; border-radius: 2px;
}
.wsb-search__result-excerpt { margin: 6px 0 8px; line-height: 1.6; }
.wsb-search__result-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---- GRAPH ---- */
.wsb-graph {
  width: 100%;
  height: calc(100vh - 56px);
  min-height: 500px;
  position: relative;
}
.wsb-graph__noscript {
  padding: 64px 24px; text-align: center; max-width: 720px; margin: 0 auto;
}
.wsb-graph__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: 100%;
}
.wsb-graph__canvas {
  position: relative;
  background: radial-gradient(circle at 50% 50%, var(--bg-soft) 0%, var(--bg-sunk) 100%);
  overflow: hidden;
}
html[data-theme="dark"] .wsb-graph__canvas {
  background: radial-gradient(circle at 50% 50%, #0f0f0f 0%, #000 100%);
}
.wsb-graph__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .25;
  pointer-events: none;
}
.wsb-graph__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.wsb-graph__node { cursor: pointer; }
.wsb-graph__node:focus { outline: none; }
.wsb-graph__node:focus-visible circle {
  stroke: var(--accent); stroke-width: 3px;
}
.wsb-graph__legend {
  position: absolute; top: 16px; left: 16px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0,0,0,.06));
  min-width: 200px;
}
.wsb-graph__legend-h {
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.wsb-graph__legend-list { display: flex; flex-direction: column; gap: 4px; }
.wsb-graph__legend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  background: transparent; border: 0; padding: 4px 6px;
  text-align: left; cursor: pointer; color: inherit;
  border-radius: 4px;
  min-height: 24px;
}
.wsb-graph__legend-row:hover { background: var(--bg-soft); }
.wsb-graph__legend-row.is-off { opacity: .35; }
.wsb-graph__legend-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  flex-shrink: 0;
}
.wsb-graph__legend-name { flex: 1; }
.wsb-graph__zoom {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0,0,0,.06));
}
.wsb-graph__overlay {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wsb-graph__side {
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 18px;
  background: var(--bg);
}
.wsb-graph__side-h {
  color: var(--ink-4);
  text-transform: uppercase;
  margin: 18px 0 8px;
  letter-spacing: .05em;
}
.wsb-graph__side-h:first-child { margin-top: 0; }
.wsb-graph__side-empty { padding: 24px 0; }
.wsb-graph__side-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wsb-graph__side-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.wsb-graph__side-title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.3; }
.wsb-graph__side-meta { margin-bottom: 10px; }
.wsb-graph__side-desc { color: var(--ink-2); line-height: 1.6; margin-top: 0; }
.wsb-graph__side-actions { display: flex; gap: 6px; margin-top: 12px; }
.wsb-graph__side-actions > * { flex: 1; justify-content: center; }
.wsb-graph__neighbors { list-style: none; padding: 0; margin: 0; }
.wsb-graph__neighbor {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--line);
  font-size: 12px;
}
.wsb-graph__neighbor:first-child { border-top: 0; }
.wsb-graph__neighbor a { flex: 1; color: inherit; text-decoration: none; }
.wsb-graph__neighbor a:hover { color: var(--accent); }

/* ---- ARTICLE COMMENTS (WS-B 替换 stub) ---- */
.wsb-comments { min-width: 0; }
.wsb-comments__sticky { position: sticky; top: 80px; }
.wsb-comments__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.wsb-comments__title { font-size: 14px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; }
.wsb-comments__hint {
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.wsb-comments__list { list-style: none; padding: 0; margin: 0 0 12px; }
.wsb-comments__card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
}
.wsb-comments__card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wsb-comments__card-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.wsb-comments__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-weight: 700; font-size: 11px;
  flex-shrink: 0;
  background: var(--ink-3);
}
.wsb-comments__author { font-weight: 600; font-size: 12px; flex: 1; }
.wsb-comments__quote {
  border-left: 2px solid var(--accent);
  padding: 4px 8px;
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--accent-soft);
  border-radius: 0 4px 4px 0;
}
.wsb-comments__body { line-height: 1.6; color: var(--ink-2); }
.wsb-comments__empty { padding: 18px 0; text-align: center; }
.wsb-comments__compose {
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.wsb-comments__input {
  flex: 1; min-width: 100px;
  border: 0; background: transparent; font: inherit;
  color: inherit; padding: 6px;
  outline: none;
  min-height: 24px;
}
.wsb-comments__input[aria-invalid="true"] { color: var(--danger-text, #b91c1c); }
.wsb-comments__error { color: var(--danger-text, #b91c1c); width: 100%; margin: 4px 0 0; }
.wsb-comments__foot { margin-top: 10px; text-align: right; }

/* reply button + nested replies */
.wsb-comments__card-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 6px;
}
.wsb-comments__reply-btn {
  background: transparent; border: 0;
  color: var(--ink-3);
  font: inherit; cursor: pointer;
  padding: 2px 6px; border-radius: 4px;
}
.wsb-comments__reply-btn:hover { background: var(--bg-soft); color: var(--accent); }
.wsb-comments__replies {
  list-style: none; padding: 0;
  margin: 6px 0 0 14px;
  border-left: 2px solid var(--line);
  padding-left: 8px;
}
.wsb-comments__card--reply { margin-bottom: 6px; }

/* highlight in article body */
.wsb-comments__hl {
  background: #fde68a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s;
}
html[data-theme="dark"] .wsb-comments__hl { background: rgba(253, 230, 138, .25); }
.wsb-comments__hl.is-active { background: var(--accent); color: #fff; }

/* selection bubble — 默认隐藏,只有去掉 [hidden] 才出现 */
.wsb-selbubble[hidden] { display: none !important; }
.wsb-selbubble {
  position: absolute; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px;
  background: #1f2937;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-size: 12px;
}
.wsb-selbubble button {
  background: transparent; border: 0; color: inherit;
  font: inherit; padding: 4px 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px;
}
.wsb-selbubble button:hover { color: #93c5fd; }
.wsb-selbubble__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.wsb-selbubble__swatch {
  width: 10px; height: 10px; border-radius: 2px;
  background: #fde68a; display: inline-block;
}

/* ---- NEWSLETTER ---- */
.wsb-news {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px;
}
.wsb-news__head { text-align: center; margin-bottom: 32px; }
.wsb-news__title {
  font-size: 44px; font-weight: 900;
  line-height: 1.1; margin: 12px 0 14px;
  letter-spacing: -0.02em;
}
.wsb-news__accent { color: var(--accent); }
.wsb-news__intro {
  font-size: 16px; color: var(--ink-3);
  max-width: 480px; margin: 0 auto;
  line-height: 1.65;
}
.wsb-news__intro b { color: var(--ink); }

.wsb-news__formwrap {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 24px;
}
.wsb-news__form {
  display: flex; gap: 8px; align-items: flex-start;
  flex-wrap: wrap;
}
.wsb-news__field {
  flex: 1; min-width: 220px; position: relative;
  display: flex; align-items: center;
}
.wsb-news__field-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  pointer-events: none;
}
.wsb-news__input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  font: inherit; font-size: 14px;
  color: var(--ink);
}
.wsb-news__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wsb-news__input[aria-invalid="true"] { border-color: var(--danger, #b91c1c); }
.wsb-news__submit { height: 42px; padding: 0 22px; font-size: 14px; }
.wsb-news__error {
  width: 100%;
  color: var(--danger-text, #b91c1c);
  margin: 6px 0 0;
}
.wsb-news__success {
  width: 100%;
  color: var(--ok-text, #16a34a);
  margin: 6px 0 0;
}
.wsb-news__check {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  cursor: pointer;
  min-height: 24px;
}
.wsb-news__check input { width: 14px; height: 14px; }
.wsb-news__check b { color: var(--ink); }

.wsb-news__past-h {
  color: var(--ink-4); text-transform: uppercase;
  margin: 0 0 12px; letter-spacing: .05em;
  font-size: 11px; font-weight: 700;
}
.wsb-news__past-list { list-style: none; padding: 0; margin: 0; }
.wsb-news__past-row {
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
}
.wsb-news__past-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  text-decoration: none; color: inherit;
  border-radius: 8px;
}
.wsb-news__past-date { width: 60px; flex-shrink: 0; }
.wsb-news__past-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wsb-news__past-title { font-size: 14px; font-weight: 500; }
.wsb-news__past-loading { padding: 12px 14px; }

/* responsive */
@media (max-width: 900px) {
  .wsb-search__grid { grid-template-columns: 1fr; }
  .wsb-graph__layout { grid-template-columns: 1fr; }
  .wsb-graph__side { border-left: 0; border-top: 1px solid var(--line); max-height: 200px; }
  .wsb-news__title { font-size: 32px; }
}



/* ====================================================================== */
/* WS-C — Post 移动端 (max-width: 768px) + 浮动操作 pill                    */
/* ====================================================================== */

/* 默认桌面隐藏 pill */
.wsc-pill { display: none; }

@media (max-width: 768px) {
  .wsa-post__grid {
    grid-template-columns: 1fr;
    padding: 20px 16px 100px; /* 底部留空给 sticky pill */
    gap: 20px;
  }
  .wsa-post__left { order: 2; }
  .wsa-post__main { order: 1; padding: 0; }
  .wsa-post__right { order: 3; }
  .wsa-post__title { font-size: 26px; line-height: 1.25; }
  .wsa-post__summary { font-size: 16px; }
  .wsa-prose, .hf-prose { font-size: 16px; line-height: 1.8; }
  .hf-prose h2 { font-size: 20px; }
  .hf-prose h3 { font-size: 16px; }

  /* 桌面操作栏 → 移动端隐藏(由底部浮动 pill 替代) */
  .wsa-actbar { display: none; }
  /* 评论 stub 取消 sticky */
  .wsa-comments-stub { position: static; }

  /* CTA 在窄屏堆叠 */
  .wsa-cta { flex-wrap: wrap; }
  .wsa-cta__avatar { flex-shrink: 0; }

  /* 浮动操作 pill — sticky(不要 fixed,避免某些浏览器 z 轴问题) */
  .wsc-pill {
    display: flex;
    position: sticky;
    bottom: 16px;
    z-index: 20;
    margin: 24px auto 0;
    gap: 4px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);
    width: max-content;
    max-width: 100%;
  }
  .wsc-pill__btn {
    width: 44px; height: 44px;
    min-width: 44px; min-height: 44px;
    border: 0; background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    padding: 0;
  }
  .wsc-pill__btn:hover, .wsc-pill__btn:focus-visible {
    background: var(--bg-soft);
  }
  .wsc-pill__btn--accent { color: var(--accent); }

  /* 防溢出 */
  body, html { overflow-x: hidden; }
  img, pre, table { max-width: 100%; }
  pre { overflow-x: auto; }
  .wsa-prose { min-width: 0; overflow-wrap: anywhere; }
  .wsa-prose pre {
    width: 100%;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    overflow-x: auto;
  }
  .wsa-prose pre code {
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
  }
  .wsa-prose table {
    display: block;
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }

  /* 全局触控目标 */
  .ui-btn { min-height: 40px; }
  .ui-btn--sm { min-height: 36px; }
  .ui-btn--icon { min-width: 40px; min-height: 40px; }
}
@media (max-width: 380px) {
  .wsa-post__grid { padding-left: 14px; padding-right: 14px; }
  .wsa-post__title { font-size: 22px; }
}


/* ====================================================================== */
/* WS-C — Tag 移动端 (max-width: 768px)                                      */
/* ====================================================================== */
@media (max-width: 768px) {
  /* 标签详情页 */
  .wsa-tag__head { padding: 28px 16px 18px; }
  .wsa-tag__h { font-size: 32px; }
  .wsa-tag__desc { font-size: 14px; margin-top: 8px; }
  .wsa-tag__blob { display: none; }
  .wsa-tag__grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 24px;
  }
  .wsa-tag__row {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .wsa-tag__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    padding-top: 0;
    padding-left: 62px;
  }
  .wsa-tag__year-h { font-size: 16px; }

  /* 标签索引页 */
  .wsa-tagindex { padding: 32px 16px; }
  .wsa-tagindex__title { font-size: 28px; }

  /* About */
  .wsa-about { padding: 36px 16px; }
  .wsa-about__title { font-size: 28px; }
  .wsa-about__avatar { width: 72px; height: 72px; font-size: 30px; }

  /* 404 */
  .wsa-404 { padding: 48px 16px; }
  .wsa-404__big { font-size: 96px; }
  .wsa-404__title { font-size: 22px; }

  body, html { overflow-x: hidden; }
}
@media (max-width: 380px) {
  .wsa-tag__grid { padding-left: 14px; padding-right: 14px; }
  .wsa-tag__h { font-size: 28px; }
}


/* ====================================================================== */
/* HfAd — 自家广告卡片                                                    */
/* ====================================================================== */
.wsa-ad-hero {
  position: relative;
  display: block;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
  color: #fff;
  overflow: hidden;
  --wsa-ad-accent: var(--accent);
}
.wsa-ad-hero__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  font-size: 10px;
}
.wsa-ad-hero__glow {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--wsa-ad-accent);
  filter: blur(40px);
  opacity: .35;
  pointer-events: none;
}
.wsa-ad-hero__inner {
  position: relative;
}
.wsa-ad-hero__emoji {
  display: inline-block;
  font-size: 18px;
  margin-bottom: 6px;
}
.wsa-ad-hero__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.wsa-ad-hero__body {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin: 0 0 12px;
}
.wsa-ad-hero__cta {
  background: var(--wsa-ad-accent);
  color: #fff;
  border-color: var(--wsa-ad-accent);
}
.wsa-ad-hero__cta:hover { filter: brightness(1.1); }

.wsa-ad-native {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--wsa-ad-accent, var(--accent));
  border-radius: 8px;
  background: var(--bg-soft);
  position: relative;
  --wsa-ad-accent: var(--accent);
}
.wsa-ad-native__tag {
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--ink-4);
  letter-spacing: .05em;
  font-size: 9px;
}
.wsa-ad-native__emoji {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
}
.wsa-ad-native__main {
  flex: 1;
  min-width: 0;
}
.wsa-ad-native__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.wsa-ad-native__body {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 8px;
}
.wsa-ad-native__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wsa-ad-accent, var(--accent));
  text-decoration: none;
}
.wsa-ad-native__cta:hover { text-decoration: underline; }

/* dark mode — wsa-ad-native 保持 bg-soft 的 token 自动切换;hero 一直深色不动 */
@media (max-width: 768px) {
  .wsa-ad-hero { padding: 14px; }
  .wsa-ad-native { padding: 14px; gap: 10px; }
  .wsa-ad-native__emoji { width: 36px; height: 36px; font-size: 14px; }
}


:root {
  --primary: #7C8CFF;
  --primary-d: #6171F0;
  --secondary: #5DE2C6;
  --accent: #FFB86B;
  --bg: #F7FAFF;
  --ink: #1E2A3A;
  --muted: #6B7894;
  --faint: #9AA6BE;
  --line: #E7ECF6;
  --card: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(30,42,58,.04), 0 10px 30px -12px rgba(53,68,120,.18);
  --shadow-pop: 0 18px 50px -16px rgba(53,68,120,.40);
  --font-zh: 'Noto Sans SC', 'Inter', sans-serif;
  --font: 'Inter', 'Noto Sans SC', sans-serif;
  --sans: var(--font);
  --accent-soft: #ECEFFF;
  --accent-2: var(--primary-d);
  --line-strong: #D4DCF5;
}

html[data-theme="dark"] {
  --bg: #F7FAFF;
  --ink: #1E2A3A;
  --muted: #6B7894;
  --faint: #9AA6BE;
  --line: #E7ECF6;
  --card: #FFFFFF;
  color-scheme: light;
}

body.ui-public.lumio-public {
  --primary: #7C8CFF;
  --primary-d: #6171F0;
  --secondary: #5DE2C6;
  --accent: #FFB86B;
  --bg: #F7FAFF;
  --ink: #1E2A3A;
  --muted: #6B7894;
  --faint: #9AA6BE;
  --line: #E7ECF6;
  --card: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(30,42,58,.04), 0 10px 30px -12px rgba(53,68,120,.18);
  --shadow-pop: 0 18px 50px -16px rgba(53,68,120,.40);
  --font-zh: 'Noto Sans SC', 'Inter', sans-serif;
  --font: 'Inter', 'Noto Sans SC', sans-serif;
  --sans: var(--font);
  --accent-soft: #ECEFFF;
  --accent-2: var(--primary-d);
  --line-strong: #D4DCF5;
  color-scheme: light;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 88% -10%, #EAF0FF 0%, rgba(234,240,255,0) 55%),
    radial-gradient(90% 80% at -5% 110%, #E7FBF4 0%, rgba(231,251,244,0) 50%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 40px 28px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}
body.ui-public.lumio-public::before,
body.ui-public.lumio-public::after {
  content: "";
  position: fixed;
  width: 220px;
  height: 140px;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.5px);
  background-size: 16px 16px;
  color: #C7D2F0;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
          mask-image: linear-gradient(135deg, #000, transparent 70%);
}
body.ui-public.lumio-public::before { top: 14px; left: 14px; }
body.ui-public.lumio-public::after { top: 14px; right: 14px; transform: scaleX(-1); }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 80px -40px rgba(40,54,110,.45), 0 2px 4px rgba(30,42,58,.04);
  overflow: clip;
}
.ui-public__main { max-width: none; margin: 0; padding: 0; }
.ui-public__footer {
  display: none;
  max-width: none;
  margin: 0;
  padding: 18px 34px 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 500 12px/1.5 var(--font);
  background: rgba(255,255,255,.72);
}
.ui-public__footer p { margin: 0; }

.nav {
  position: relative;
  top: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--primary), #9AA6FF);
  box-shadow: 0 6px 14px -5px rgba(124,140,255,.7), inset 0 1px 0 rgba(255,255,255,.4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__pix { display: grid; grid-template-columns: repeat(3, 5px); grid-template-rows: repeat(3, 5px); gap: 1.5px; }
.brand__pix i { background: #fff; border-radius: 1px; }
.brand__pix i:nth-child(2),
.brand__pix i:nth-child(4),
.brand__pix i:nth-child(6),
.brand__pix i:nth-child(8) { opacity: .35; }
.brand__txt { line-height: 1; }
.brand__name { display: block; font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink); }
.brand__sub { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--faint); margin-top: 2px; }
.nav__links { display: flex; gap: 4px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.nav__link {
  display: inline-block;
  font-family: var(--font-zh);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--ink); background: #F1F4FC; text-decoration: none; }
.nav__link.is-active,
.ui-public__nav-link[aria-current="page"] { color: var(--primary-d); font-weight: 700; }
.nav__link.is-active::after,
.ui-public__nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
}
.nav__spacer { flex: 1; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  height: 38px;
  padding: 0 14px;
  background: #F3F6FD;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--faint);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--primary); background: #fff; }
.search input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: var(--font-zh);
  font-size: 13.5px;
  color: var(--ink);
}
.search input::placeholder { color: var(--faint); }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #F3F6FD;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
  padding: 0;
}
.icon-btn:hover { color: var(--primary-d); border-color: #C9D3F5; background: #fff; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #B6C0FF, #7C8CFF);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.body { display: grid; grid-template-columns: 380px minmax(0, 1fr); }
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 48px 38px;
  background: linear-gradient(160deg, #DCE4FF 0%, #E4ECFF 38%, #DFF7F0 100%);
  display: flex;
  flex-direction: column;
}
.hero__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,140,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,140,255,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(160deg, #000 5%, transparent 55%);
          mask-image: linear-gradient(160deg, #000 5%, transparent 55%);
}
.hero__eyebrow {
  position: relative;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-d);
  margin-bottom: 16px;
}
.hero__title {
  position: relative;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #243056;
  margin: 0 0 18px;
}
.hero__title em { font-style: normal; display: block; }
.hero__sub {
  position: relative;
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 500;
  color: #4D5B7E;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}
.hero__sub b { font-weight: 700; color: #3A4A6E; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); }
.btn-primary {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-zh);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  padding: 13px 22px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  box-shadow: 0 12px 26px -10px rgba(97,113,240,.85), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(97,113,240,.9); text-decoration: none; }
.btn-primary svg { transition: transform .15s; }
.btn-primary:hover svg { transform: translateX(3px); }
.hero__scene { margin-top: auto; position: relative; height: 190px; }

.cube {
  --s: 46px;
  --t: #C7D0FF;
  --l: #6E80F5;
  --r: #98A6FF;
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateZ(-45deg);
}
.cube i { position: absolute; width: var(--s); height: var(--s); border-radius: 3px; backface-visibility: hidden; }
.cube .f-t { background: var(--t); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f-r { background: var(--r); transform: translateZ(calc(var(--s) / 2)); }
.cube .f-l { background: var(--l); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube.c-mint { --t: #B6F2E4; --l: #43C9AD; --r: #6FE0C9; }
.cube.c-amber { --t: #FFE0B8; --l: #F39A47; --r: #FFC078; }
.cube.c-pink { --t: #FFCEDD; --l: #F0658E; --r: #FF93B4; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float { animation: bob 4s ease-in-out infinite; }
@keyframes bobcube {
  0%,100% { transform: translateY(0) rotateX(-24deg) rotateZ(-45deg); }
  50% { transform: translateY(-8px) rotateX(-24deg) rotateZ(-45deg); }
}
.cube.float { animation: bobcube 4s ease-in-out infinite; }
.px-heart { position: absolute; display: grid; grid-template-columns: repeat(5, var(--s)); grid-template-rows: repeat(5, var(--s)); gap: 1px; }
.px-heart i { background: transparent; border-radius: 1px; }
.px-heart i:nth-child(2), .px-heart i:nth-child(4),
.px-heart i:nth-child(6), .px-heart i:nth-child(7), .px-heart i:nth-child(8), .px-heart i:nth-child(9), .px-heart i:nth-child(10),
.px-heart i:nth-child(11), .px-heart i:nth-child(12), .px-heart i:nth-child(13), .px-heart i:nth-child(14), .px-heart i:nth-child(15),
.px-heart i:nth-child(17), .px-heart i:nth-child(18), .px-heart i:nth-child(19),
.px-heart i:nth-child(23) { background: #FF7EA6; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.coin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE08A, #FFB86B 70%);
  border: 3px solid #F59E4B;
  display: grid;
  place-items: center;
  color: #C9742B;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 10px -3px rgba(245,158,75,.7);
}
.orb {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFFFFF 0%, #FFD8A8 32%, #FFA85B 70%, #FF8C3B 100%);
  box-shadow: 0 0 0 6px rgba(255,184,107,.25), 0 0 26px 4px rgba(255,168,91,.55);
}
.orb::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff, transparent 70%);
}

.hero,
.content { min-width: 0; }
.content { padding: 30px 34px 34px; display: flex; flex-direction: column; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sec-title,
.section-title {
  font-family: var(--font-zh);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.section-title { font-size: 22px; margin: 6px 0 20px; }
.sec-title::before,
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--primary); }
.section-title::before { height: 20px; }
.sec-more {
  font-family: var(--font-zh);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, gap .15s;
}
.sec-more:hover { color: var(--primary-d); gap: 8px; text-decoration: none; }
.grid,
.grid-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid + .grid { margin-top: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: #D4DCF5; }
.card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card__link:hover { text-decoration: none; }
.thumb {
  position: relative;
  height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.thumb__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6;
}
.thumb.t-blue { background: linear-gradient(150deg, #E5EAFF, #D6DEFF); }
.thumb.t-mint { background: linear-gradient(150deg, #DFF7F1, #C9F1E6); }
.thumb.t-amber { background: linear-gradient(150deg, #FFEFD9, #FFE0BC); }
.thumb.t-violet { background: linear-gradient(150deg, #ECE6FF, #DCD2FF); }
.thumb.t-sky { background: linear-gradient(150deg, #DDF0FF, #C6E6FF); }
.thumb.t-rose { background: linear-gradient(150deg, #FFE6EE, #FFD3E0); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-zh);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(30,42,58,.08);
  backdrop-filter: blur(4px);
}
.thumb__art { position: relative; width: 100%; height: 100%; }
.thumb__art .cube { left: 50%; top: 50%; }
.card__body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card__title {
  font-family: var(--font-zh);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .005em;
  margin: 0 0 8px;
  color: var(--ink);
}
.card:hover .card__title { color: var(--primary-d); }
.card__dek {
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  flex-wrap: wrap;
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.ad,
.adcar {
  margin: 18px 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.ad {
  background: repeating-linear-gradient(45deg, #F3F6FD 0 12px, #EEF2FB 12px 24px);
}
.ad__label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.ad__link { display: block; text-decoration: none; color: inherit; }
.ad__link:hover { text-decoration: none; }
.ad__img { display: block; width: 100%; height: auto; }
.ad__ph { display: flex; align-items: center; gap: 16px; padding: 22px 26px; min-height: 104px; }
.ad__ph-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--primary), #9AA6FF);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(124,140,255,.8);
}
.ad__ph-txt { line-height: 1.5; }
.ad__ph-title { display: block; font-family: var(--font-zh); font-size: 15px; font-weight: 700; color: var(--ink); }
.ad__ph-sub { display: block; font-family: var(--font-zh); font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.adcar { background: #fff; }
.adcar__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,.1,.2,1);
}
.adcar__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 22px 26px;
  color: inherit;
  text-decoration: none;
}
.adcar__slide:hover { text-decoration: none; }
.adcar__slide.t-blue { background: linear-gradient(100deg, #EEF2FF, #E0E7FF); }
.adcar__slide.t-violet { background: linear-gradient(100deg, #F1EDFF, #E6DCFF); }
.adcar__slide.t-mint { background: linear-gradient(100deg, #E6F8F2, #D6F2E8); }
.adcar__slide.t-amber { background: linear-gradient(100deg, #FFF4E6, #FFE8CC); }
.adcar__slide.t-sky { background: linear-gradient(100deg, #E5F4FF, #D6ECFF); }
.adcar__slide.t-rose { background: linear-gradient(100deg, #FFF0F5, #FFE1EB); }
.adcar__mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--primary), #9AA6FF);
  box-shadow: 0 8px 18px -8px rgba(124,140,255,.8);
}
.adcar__slide.t-violet .adcar__mark { background: linear-gradient(150deg, #9B7FF0, #7B5BE0); box-shadow: 0 8px 18px -8px rgba(123,91,224,.8); }
.adcar__slide.t-mint .adcar__mark { background: linear-gradient(150deg, #46C9A6, #1F9E80); box-shadow: 0 8px 18px -8px rgba(31,158,128,.7); }
.adcar__slide.t-amber .adcar__mark { background: linear-gradient(150deg, #FFB86B, #F39A47); box-shadow: 0 8px 18px -8px rgba(243,154,71,.75); }
.adcar__slide.t-sky .adcar__mark { background: linear-gradient(150deg, #86C8FF, #4FA0E8); box-shadow: 0 8px 18px -8px rgba(79,160,232,.72); }
.adcar__slide.t-rose .adcar__mark { background: linear-gradient(150deg, #F48BB0, #C2415B); box-shadow: 0 8px 18px -8px rgba(194,65,91,.65); }
.adcar__txt {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.adcar__t {
  display: block;
  font-family: var(--font-zh);
  font-size: 17px;
  font-weight: 800;
  color: #243056;
}
.adcar__d {
  display: block;
  margin-top: 3px;
  font-family: var(--font-zh);
  font-size: 13px;
  color: #4D5B7E;
}
.adcar__cta {
  flex-shrink: 0;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  box-shadow: 0 10px 20px -10px rgba(97,113,240,.9);
  transition: transform .15s;
}
.adcar__slide:hover .adcar__cta { transform: translateY(-2px); }
.adcar__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .18s, background .15s, color .15s;
  backdrop-filter: blur(4px);
}
.adcar:hover .adcar__nav { opacity: 1; }
.adcar__nav:hover { color: var(--primary-d); background: #fff; }
.adcar__nav--prev { left: 12px; }
.adcar__nav--next { right: 12px; }
.adcar__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.adcar__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(40,54,110,.25);
  cursor: pointer;
  transition: .2s;
}
.adcar__dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: var(--primary-d);
}

.subscribe {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #F3F6FF, #EEFBF6);
  border: 1px solid var(--line);
}
.subscribe__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--primary), #9AA6FF);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(124,140,255,.8);
}
.subscribe__txt { flex: 1; }
.subscribe__title { font-family: var(--font-zh); font-size: 15px; font-weight: 700; }
.subscribe__sub { font-family: var(--font-zh); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.subscribe__form { display: flex; gap: 10px; }
.subscribe__form input {
  width: 200px;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  font-family: var(--font-zh);
  font-size: 13.5px;
  color: var(--ink);
}
.subscribe__form input::placeholder { color: var(--faint); }
.subscribe__form input:focus { border-color: var(--primary); }
.subscribe__form button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  box-shadow: 0 10px 20px -9px rgba(97,113,240,.85);
  transition: transform .15s;
}
.subscribe__form button:hover { transform: translateY(-2px); }

.page-head {
  padding: 40px 34px 26px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #EEF2FF 0%, #F2F6FF 45%, #ECFBF5 100%);
  border-bottom: 1px solid var(--line);
}
.page-head__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124,140,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,140,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(160deg, #000 5%, transparent 60%);
          mask-image: linear-gradient(160deg, #000 5%, transparent 60%);
}
.page-head__eyebrow {
  position: relative;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-d);
  margin-bottom: 12px;
}
.page-head__title {
  position: relative;
  font-size: 40px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #243056;
  margin: 0 0 12px;
}
.page-head__sub {
  position: relative;
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 500;
  color: #4D5B7E;
  max-width: 560px;
  margin: 0;
}
.page { padding: 28px 34px 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  font-family: var(--font-zh);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { color: var(--primary-d); border-color: #C9D3F5; text-decoration: none; }
.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-color: transparent;
  box-shadow: 0 8px 18px -9px rgba(97,113,240,.85);
}
.chip__n { opacity: .65; font-weight: 700; margin-left: 4px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.feature__link { display: grid; grid-template-columns: 1.1fr 1fr; color: inherit; text-decoration: none; }
.feature__link:hover { text-decoration: none; }
.feature__art { min-height: 240px; height: auto; }
.feature__body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.feature__body .chip { align-self: flex-start; margin-bottom: 4px; cursor: default; }
.feature__title { font-family: var(--font-zh); font-size: 25px; font-weight: 700; line-height: 1.25; margin: 10px 0 12px; }
.feature__dek { font-family: var(--font-zh); font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 18px; }

.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.col-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.col-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: #D4DCF5; text-decoration: none; }
.col-card__cover { position: relative; display: grid; place-items: center; min-height: 168px; }
.col-card__body { padding: 20px; display: flex; flex-direction: column; }
.col-card__name { font-family: var(--font-zh); font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.col-card__dek {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.col-card__list { flex: 1; margin: 0 0 4px; padding: 0; list-style: none; }
.col-card__list li {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-card__list li::before { content: '·'; position: absolute; left: 2px; color: var(--faint); }
.col-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.col-card__count { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.cols__meta { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--faint); margin: 0 0 14px; }
.col-ads { display: grid; gap: 12px; margin-bottom: 20px; }
.col-ad {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid #E3E9F8;
  background: var(--surface, #fff);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.col-ad:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); text-decoration: none; }
.col-ad .ad__label { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.col-ad__title { font-family: var(--font-zh); font-size: 16px; font-weight: 700; color: var(--ink); }
.col-ad__body { font-family: var(--font-zh); font-size: 13px; color: var(--muted); line-height: 1.6; }
.col-ad__cta { align-self: flex-start; margin-top: 6px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--accent, #4a6cf7); }
.btn-ghost {
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-d);
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid #C9D3F5;
  background: #F3F6FF;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.col-card:hover .btn-ghost,
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: transparent; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tagcloud .tag-pill {
  font-family: var(--font-zh);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.tag-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); text-decoration: none; }
.tag-pill .tag-pill__n {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 1px 8px;
  border-radius: 20px;
  background: var(--primary);
}
.tag-pill.s-mint .tag-pill__n { background: #2BB89B; }
.tag-pill.s-amber .tag-pill__n { background: #E8902F; }
.tag-pill.s-violet .tag-pill__n { background: #8E76F0; }
.tag-pill.s-sky .tag-pill__n { background: #4FA0E8; }
.tag-pill.s-rose .tag-pill__n { background: #F0658E; }
.tag-pill.is-big { font-size: 19px; }
.tag-pill.is-mid { font-size: 16px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.layout--post { grid-template-columns: minmax(0, 1fr) 268px; gap: 34px; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.list-bar .chips { margin-bottom: 0; }
.sortbox {
  position: relative;
  font-family: var(--font-zh);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.sortbox:hover { border-color: #C9D3F5; }
.sortbox svg { color: var(--faint); }
.alist { display: flex; flex-direction: column; gap: 14px; }
.arow {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.arow:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: #D4DCF5; text-decoration: none; }
.arow__thumb {
  height: auto;
  min-height: 92px;
  border-radius: var(--radius-sm);
}
.arow__body { display: flex; flex-direction: column; min-width: 0; padding: 2px 4px 2px 0; }
.arow__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.arow__title {
  font-family: var(--font-zh);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.arow:hover .arow__title { color: var(--primary-d); }
.tag-inline {
  font-family: var(--font-zh);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 7px;
  background: #EEF1FE;
  color: var(--primary-d);
  white-space: nowrap;
}
.tag-inline.s-mint { background: #E2F7F1; color: #239f84; }
.tag-inline.s-amber { background: #FDEFDC; color: #cf8023; }
.tag-inline.s-violet { background: #EEE9FE; color: #7a61e6; }
.tag-inline.s-sky { background: #E2F0FD; color: #3f8fd6; }
.tag-inline.s-rose { background: #FDE6EE; color: #db4f7c; }
.arow__dek {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arow__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  flex-wrap: wrap;
}
.arow__meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.arow__author { font-family: var(--font-zh); font-weight: 600; color: var(--muted); }
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 18px 8px;
  margin-bottom: 18px;
}
.side-card:last-child { margin-bottom: 0; }
.side-card__title {
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.side-card__title::before { content: ""; width: 3.5px; height: 15px; border-radius: 2px; background: var(--primary); }
.rank,
.recent,
.suggest { display: flex; flex-direction: column; }
.rank__item,
.recent__item,
.suggest__item {
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .15s;
}
.rank__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  color: var(--ink);
}
.rank__item:last-child,
.recent__item:last-child,
.suggest__item:last-child { border-bottom: 0; }
.rank__item:hover,
.recent__item:hover .recent__t,
.suggest__item:hover { color: var(--primary-d); text-decoration: none; }
.rank__idx {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--faint);
  background: #F1F4FC;
}
.rank__item:nth-child(1) .rank__idx { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-d)); }
.rank__item:nth-child(2) .rank__idx { color: #fff; background: linear-gradient(135deg, #6FE0C9, #2BB89B); }
.rank__item:nth-child(3) .rank__idx { color: #fff; background: linear-gradient(135deg, #FFC078, #F39A47); }
.rank__name { font-family: var(--font-zh); font-size: 13.5px; font-weight: 600; flex: 1; }
.rank__n { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--faint); }
.rank__empty {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.home-empty {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(76, 91, 120, .08);
}
.home-empty h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}
.home-empty p {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-zh);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.recent__item { padding: 11px 0; display: block; }
.recent__t { display: block; font-family: var(--font-zh); font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; transition: color .15s; }
.recent__d { display: block; font-family: var(--font); font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
  font-family: var(--font-zh);
  font-size: 13.5px;
  font-weight: 500;
}
.suggest__item svg { color: var(--faint); flex-shrink: 0; }
.side-card .tagcloud { gap: 9px; margin-bottom: 10px; }
.side-card .tag-pill { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.side-card .tag-pill.is-big,
.side-card .tag-pill.is-mid { font-size: 13px; }
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 16px;
}
.crumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.crumb a:hover { color: var(--primary-d); text-decoration: none; }
.crumb__sep { color: var(--faint); opacity: .6; }
.crumb__cur { color: var(--ink); font-weight: 600; }
.post-title {
  font-family: var(--font-zh);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  color: #243056;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.post-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.diff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 8px;
  background: #FDEFDC;
  color: #cf8023;
}
.diff svg { width: 13px; height: 13px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
}
.post-meta__author { display: inline-flex; align-items: center; gap: 9px; }
.post-meta__face {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(160deg, #B6C0FF, #7C8CFF);
  display: grid;
  place-items: center;
  color: #fff;
}
.post-meta__name { font-family: var(--font-zh); font-weight: 700; color: var(--ink); }
.post-meta span.m { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { color: var(--faint); }
.post-hero {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  background: linear-gradient(150deg, #DDE4FF, #C9D4FF 60%, #BFE6FF);
}
.post-hero .thumb__grid { opacity: .55; }
.post-hero__art { position: relative; width: 280px; height: 180px; }
/* 题图(作者上传的封面):全宽扁横幅,3:1 比例,裁切对齐顶部,高度不过大 */
.post-hero--cover { height: auto; aspect-ratio: 3 / 1; background: transparent; }
.post-hero--cover .post-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.post-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose { font-family: var(--font-zh); color: #34415C; }
.prose.post-prose {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.prose.hf-prose { font-size: 15px; line-height: 1.85; }
.prose.hf-prose h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.prose.hf-prose h2::before { content: ""; width: 4px; height: 19px; border-radius: 2px; background: var(--primary); flex-shrink: 0; }
.prose.hf-prose h2:first-child { margin-top: 0; }
.prose.hf-prose p { font-size: 15px; line-height: 1.85; margin: 0 0 16px; }
.prose.hf-prose strong { color: var(--ink); font-weight: 700; }
.prose.hf-prose code:not([class*="language-"]):not(.shiki *) {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #EEF1FB;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--primary-d);
}
.toc { position: sticky; top: 22px; }
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__link {
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: .15s;
  line-height: 1.4;
  display: block;
}
.toc__link:hover { color: var(--primary-d); background: #F4F6FE; text-decoration: none; }
.toc__link.is-active { color: var(--primary-d); font-weight: 700; background: #EEF1FE; border-left-color: var(--primary); }
.related { display: flex; flex-direction: column; gap: 4px; }
.related__item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related__item:last-child { border-bottom: 0; }
.related__thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; position: relative; }
.related__t { display: block; font-family: var(--font-zh); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color .15s; }
.related__item:hover .related__t { color: var(--primary-d); }
.related__d { display: block; font-family: var(--font); font-size: 11px; color: var(--faint); margin-top: 3px; }
.search--active { width: 300px; border-color: var(--primary); background: #fff; color: var(--ink); }
.search__clear {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 0;
  border-radius: 7px;
  background: #EEF1FB;
  color: var(--faint);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
  padding: 0;
}
.search__clear:hover { color: var(--primary-d); background: #E1E7FA; }
mark.hl { background: #FFEFC9; color: #B26B16; border-radius: 3px; padding: 0 2px; }
.result-count { font-family: var(--font-zh); font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.result-count b { color: var(--primary-d); font-weight: 800; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab {
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px 12px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: color .15s;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--primary-d); font-weight: 700; }
.tab.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.tag-detail-head { margin-bottom: 22px; }
.tag-detail-head h1 { font-family: var(--font-zh); font-size: 32px; font-weight: 900; letter-spacing: 0; color: #243056; margin: 0 0 8px; }
.tag-detail-head h1 em { font-style: normal; color: var(--primary-d); }
.tag-detail-head p { font-family: var(--font-zh); font-size: 14.5px; color: var(--muted); margin: 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; margin-top: 8px; }
.author-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.author-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.author-card__face {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, #B6C0FF, #7C8CFF);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.author-card__name { font-family: var(--font-zh); font-size: 19px; font-weight: 800; }
.author-card__role { font-family: var(--font-zh); font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.author-card__role .pip { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.author-card__bio { font-family: var(--font-zh); font-size: 14px; line-height: 1.75; color: #4D5B7E; margin: 0 0 18px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #F3F6FD;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: .15s;
}
.social a:hover { color: var(--primary-d); border-color: #C9D3F5; background: #fff; transform: translateY(-2px); }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.stat { background: var(--card); padding: 26px 20px; text-align: center; }
.stat__n {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--primary-d), var(--secondary));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stat__l { font-family: var(--font-zh); font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }

.lumio-post { width: 100%; position: relative; }
.lumio-post__progress {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 3px;
  background: transparent;
}
.lumio-post__progress .wsa-progress__bar {
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .15s;
}
.post-head { padding-bottom: 30px; }
.post-head__title {
  max-width: 880px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.post-head__sub { max-width: 720px; }
.post-head__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
}
.post-head__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.post-tag { text-decoration: none; }
.post-page { padding-top: 30px; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}
.post-article { min-width: 0; }
.post-article__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.post-prose {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.post-prose.hf-prose {
  font-family: var(--font-zh);
  font-size: 15.5px;
  line-height: 1.82;
  max-width: none;
}
.post-prose.hf-prose > :first-child { margin-top: 0; }
.post-prose.hf-prose > :last-child { margin-bottom: 0; }
.post-prose.hf-prose h1,
.post-prose.hf-prose h2,
.post-prose.hf-prose h3,
.post-prose.hf-prose h4 {
  font-family: var(--font-zh);
  color: #243056;
  letter-spacing: 0;
}
.post-prose.hf-prose h2 {
  margin-top: 2.1em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}
.post-prose.hf-prose h3 { margin-top: 1.6em; font-size: 18px; }
.post-prose.hf-prose p { margin: 0 0 1.05em; }
.post-prose.hf-prose a { color: var(--primary-d); }
.post-prose.hf-prose blockquote {
  border-left-color: var(--primary);
  background: #F3F6FF;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-prose.hf-prose pre,
.post-prose.hf-prose pre.shiki {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
}
.post-prose.hf-prose table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
/* 正文 markdown 图片 — 不影响顶部 .post-hero__img cover */
.post-prose.hf-prose img {
  display: block;
  max-width: min(100%, 860px);
  height: auto;
  margin: 20px auto 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
/* 图片下紧跟的 caption(<em>)保持居中、与图片贴合 */
.post-prose.hf-prose img + em,
.post-prose.hf-prose p > img + em {
  display: block;
  margin: 0 auto 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.post-author,
.post-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
}
.post-author__avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(150deg, var(--primary), #9AA6FF);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.post-author__body { flex: 1; min-width: 0; }
.post-author__name { font-family: var(--font-zh); font-size: 15px; font-weight: 700; }
.post-author__sub { margin-top: 2px; font-family: var(--font-zh); font-size: 12.5px; color: var(--muted); }
.post-author__rss { flex-shrink: 0; text-decoration: none; }
.post-rail {
  position: sticky;
  top: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-panel { padding: 18px; }
.post-panel__title {
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.post-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}
.post-stats__grid div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.post-stats__grid div:last-child { border-bottom: 0; padding-bottom: 0; }
.post-stats__grid dt {
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.post-stats__grid dd {
  margin: 0;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.post-toc,
.post-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.post-toc__item a,
.post-related__link {
  display: block;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-zh);
  font-size: 12.5px;
  line-height: 1.45;
}
.post-toc__item a { padding: 7px 9px; border-left: 2px solid var(--line); }
.post-toc__item--3 a { padding-left: 18px; font-size: 12px; }
.post-related__link { padding: 8px 9px; }
.post-toc__item a:hover,
.post-related__link:hover {
  color: var(--primary-d);
  background: #F3F6FF;
  text-decoration: none;
}
.post-graph .wsa-side__h {
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: none;
}
.post-graph .wsa-minigraph {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.post-comments {
  margin-top: 22px;
  padding: 20px;
}
.post-comments .wsb-comments__sticky { position: static; }
.post-comments .wsb-comments__head { margin-bottom: 12px; }
.post-comments .wsb-comments__hint {
  background: #F3F6FF;
  border-color: #D4DCF5;
  border-radius: var(--radius-sm);
}
.post-comments .wsb-comments__compose {
  background: #F3F6FD;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}
.post-comments .wsb-comments__card { border-radius: var(--radius-sm); }

.about-lead {
  font-family: var(--font-zh);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.75;
  color: #3A4A6E;
  max-width: 720px;
  margin: 0 0 34px;
}
.about-lead b { color: var(--primary-d); font-weight: 700; }
.feat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.feat { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.feat__icon.i-blue { background: linear-gradient(150deg, var(--primary), #9AA6FF); }
.feat__icon.i-mint { background: linear-gradient(150deg, #5DE2C6, #43C9AD); }
.feat__icon.i-amber { background: linear-gradient(150deg, #FFB86B, #F39A47); }
.feat__icon.i-violet { background: linear-gradient(150deg, #8E76F0, #6E59D6); }
.feat__title { font-family: var(--font-zh); font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.feat__txt { font-family: var(--font-zh); font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { text-align: center; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.member__face {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.member__name { font-family: var(--font-zh); font-size: 15px; font-weight: 700; }
.member__role { font-family: var(--font-zh); font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.is-filtered-out { display: none !important; }

@media (max-width: 980px) {
  body.ui-public.lumio-public { padding: 28px 18px; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .search { width: 100%; order: 5; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 36px 30px; }
  .hero__title { font-size: 42px; }
  .grid,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature__link { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .layout,
  .layout--post,
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .layout aside,
  .post-rail { position: static; }
  .toc { position: static; }
  .feat-row { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .page-head__title { font-size: 32px; }
  .post-head__title { font-size: 32px; }
  .lumio-post .wsc-pill {
    display: flex;
    position: sticky;
    bottom: 16px;
    z-index: 20;
    margin: 24px auto 0;
    gap: 4px;
    padding: 6px;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    box-shadow: 0 6px 24px rgba(30,42,58,.10), 0 2px 6px rgba(30,42,58,.06);
  }
}
@media (max-width: 680px) {
  body.ui-public.lumio-public { padding: 16px 10px; }
  .shell { border-radius: 22px; }
  .nav__links { width: 100%; overflow-x: auto; margin-left: 0; padding-bottom: 2px; }
  .hero { padding: 32px 24px; }
  .hero__title { font-size: 38px; }
  .content,
  .page { padding: 24px 20px 28px; }
  .post-head { padding: 32px 20px 24px; }
  .post-head__title { font-size: 28px; }
  .post-head__meta { font-size: 12px; }
  .post-page { padding: 22px 16px 28px; }
  .post-hero { height: 150px; margin-bottom: 22px; }
  .post-hero--cover { height: auto; }
  .post-title { font-size: 26px; }
  .crumb { flex-wrap: wrap; }
  .post-article__bar { align-items: flex-start; flex-direction: column; }
  .post-prose { padding: 24px 18px; border-radius: 14px; }
  .post-prose.hf-prose { font-size: 15.5px; line-height: 1.78; }
  .post-prose.hf-prose h2 { font-size: 20px; }
  .post-prose.hf-prose h3 { font-size: 17px; }
  .post-author { align-items: flex-start; flex-wrap: wrap; }
  .post-author__rss { width: 100%; text-align: center; }
  .grid,
  .grid-4 { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; align-items: flex-start; }
  .subscribe__form { width: 100%; flex-direction: column; }
  .subscribe__form input,
  .subscribe__form button { width: 100%; }
  .ad__ph { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .ad__ph-sub { display: none; }
  .adcar__slide { gap: 13px; padding: 16px 18px; }
  .adcar__d { display: none; }
  .adcar__t { font-size: 15px; }
  .adcar__cta { padding: 9px 15px; font-size: 13px; }
  .col-card { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
}

/* ======================================================================
 * Obsidian-faithful prose + embeds + callouts + canvas + tasks + tags
 * 单一来源——@opennote/web-public 一次 import,前后台共用
 *
 * Token 命名沿用 Obsidian default theme:
 *   --ob-bg                   主背景
 *   --ob-bg-soft              次级背景(代码 / callout 内 / 嵌入)
 *   --ob-text-normal          正文
 *   --ob-text-muted           次要文字
 *   --ob-text-faint           最弱(meta)
 *   --ob-text-accent          重点 / 链接(蓝紫)
 *   --ob-line                 分隔线
 *   --ob-link-color           wikilink
 *   --ob-link-unresolved      断链
 *   --ob-tag-color            inline #tag
 *   --ob-callout-<type>       13 种 callout 主色
 *
 * 默认值映射到现有 ui token,有就复用,没有的回退到 Obsidian 出厂色。
 * ====================================================================== */

:root {
  --ob-bg:               var(--bg, #ffffff);
  --ob-bg-soft:          var(--bg-soft, #f7f7f8);
  --ob-bg-sunk:          var(--bg-sunk, #efeff1);
  --ob-text-normal:      var(--ink, #1f2328);
  --ob-text-muted:       var(--ink-2, #57606a);
  --ob-text-faint:       var(--ink-4, #8b949e);
  --ob-text-accent:      var(--accent, #7c3aed);
  --ob-line:             var(--line, #d0d7de);
  --ob-line-strong:      var(--line-strong, #afb8c1);
  --ob-link-color:       var(--accent, #7c3aed);
  --ob-link-unresolved:  #d29922;
  --ob-tag-color:        #096dd9;

  /* callouts */
  --ob-callout-note:      #086ddd;
  --ob-callout-abstract:  #00bfbc;
  --ob-callout-info:      #086ddd;
  --ob-callout-todo:      #086ddd;
  --ob-callout-tip:       #00bfbc;
  --ob-callout-success:   #08b94e;
  --ob-callout-question:  #e0ac00;
  --ob-callout-warning:   #e0ac00;
  --ob-callout-failure:   #e93147;
  --ob-callout-danger:    #e93147;
  --ob-callout-bug:       #e93147;
  --ob-callout-example:   #7852ee;
  --ob-callout-quote:     #9e9e9e;

  /* canvas */
  --ob-canvas-bg:         var(--bg-sunk, #fafafa);
  --ob-canvas-grid:       var(--line, #e0e0e0);
  --ob-canvas-default:    #888;
}

html[data-theme="dark"] {
  --ob-bg:               var(--bg, #1e1e1e);
  --ob-bg-soft:          var(--bg-soft, #262626);
  --ob-bg-sunk:          var(--bg-sunk, #181818);
  --ob-text-normal:      var(--ink, #dcddde);
  --ob-text-muted:       var(--ink-2, #b3b3b3);
  --ob-text-faint:       var(--ink-4, #6e6e6e);
  --ob-line:             var(--line, #2a2a2a);
  --ob-line-strong:      var(--line-strong, #404040);
  --ob-link-color:       var(--accent, #a78bfa);
  --ob-canvas-bg:        #181818;
  --ob-canvas-grid:      #2a2a2a;
}

/* ----------------------------------------------------------------
 * .hf-prose — Obsidian "Reading View" 等价物
 * ---------------------------------------------------------------- */

.hf-prose {
  color: var(--ob-text-normal);
  font-size: 16px;
  line-height: 1.7;
  word-wrap: break-word;
  font-feature-settings: "calt", "kern";
}

.hf-prose > :first-child { margin-top: 0; }
.hf-prose > :last-child { margin-bottom: 0; }

.hf-prose h1, .hf-prose h2, .hf-prose h3,
.hf-prose h4, .hf-prose h5, .hf-prose h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ob-text-normal);
  scroll-margin-top: 80px;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}
.hf-prose h1 { font-size: 1.85em; border-bottom: 1px solid var(--ob-line); padding-bottom: 0.3em; }
.hf-prose h2 { font-size: 1.45em; border-bottom: 1px solid var(--ob-line); padding-bottom: 0.25em; }
.hf-prose h3 { font-size: 1.2em; }
.hf-prose h4 { font-size: 1.05em; }
.hf-prose h5 { font-size: 0.95em; color: var(--ob-text-muted); }
.hf-prose h6 { font-size: 0.9em; color: var(--ob-text-muted); }

.hf-prose .heading-anchor {
  margin-left: 0.4em;
  color: var(--ob-text-faint);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.hf-prose h1:hover .heading-anchor,
.hf-prose h2:hover .heading-anchor,
.hf-prose h3:hover .heading-anchor,
.hf-prose h4:hover .heading-anchor,
.hf-prose h5:hover .heading-anchor,
.hf-prose h6:hover .heading-anchor { opacity: 1; }

.hf-prose p { margin: 0 0 1em; }

.hf-prose hr { border: 0; border-top: 1px solid var(--ob-line); margin: 2em 0; }

.hf-prose ul, .hf-prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.hf-prose li { margin: 0.2em 0; }
.hf-prose li > p { margin: 0; }
.hf-prose li > ul, .hf-prose li > ol { margin: 0.2em 0; }

/* ----- inline marks ----- */

.hf-prose code:not([class*="language-"]):not(.shiki *) {
  font-family: var(--mono, ui-monospace, "JetBrains Mono", monospace);
  background: var(--ob-bg-sunk);
  border: 1px solid var(--ob-line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.86em;
  color: var(--ob-text-accent);
}

.hf-prose .cm-highlight,
.hf-prose mark {
  background: rgba(255, 220, 0, 0.4);
  color: var(--ob-text-normal);
  padding: 0 2px;
  border-radius: 3px;
}
html[data-theme="dark"] .hf-prose .cm-highlight,
html[data-theme="dark"] .hf-prose mark {
  background: rgba(255, 220, 0, 0.2);
}

.hf-prose .cm-tag {
  display: inline-block;
  color: var(--ob-tag-color);
  background: rgba(8, 109, 217, 0.08);
  padding: 1px 6px 2px;
  border-radius: 4px;
  font-size: 0.85em;
  text-decoration: none;
  vertical-align: 1px;
}
.hf-prose .cm-tag:hover { background: rgba(8, 109, 217, 0.18); }

.hf-prose a {
  color: var(--ob-link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--ob-link-color) 35%, transparent);
}
.hf-prose a:hover { text-decoration-color: currentColor; }

/* internal-link 区分线条更细,跟 Obsidian 默认一致 */
.hf-prose a.internal-link {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ob-link-color) 35%, transparent);
}
.hf-prose a.internal-link:hover {
  border-bottom-color: currentColor;
}
.hf-prose .internal-link.is-unresolved {
  color: var(--ob-link-unresolved);
  border-bottom: 1px dashed var(--ob-link-unresolved);
  cursor: help;
}
.hf-prose .internal-link.is-asset { font-style: italic; }

/* ----- blockquotes (non-callout) ----- */

.hf-prose blockquote {
  margin: 1em 0;
  padding: 0.4em 1em;
  border-left: 4px solid var(--ob-line-strong);
  color: var(--ob-text-muted);
  background: transparent;
  font-style: italic;
}
.hf-prose blockquote > :first-child { margin-top: 0; }
.hf-prose blockquote > :last-child { margin-bottom: 0; }

/* ----- callouts ----- */

.hf-prose .callout {
  --ob-color: var(--ob-callout-note);
  margin: 1em 0;
  border-left: 4px solid var(--ob-color);
  background: color-mix(in srgb, var(--ob-color) 8%, var(--ob-bg));
  border-radius: 4px;
  overflow: hidden;
  padding: 0.5em 0.5em 0.5em 0.75em;
  font-style: normal;
}
.hf-prose .callout--note,    .hf-prose .callout--info,    .hf-prose .callout--todo    { --ob-color: var(--ob-callout-note); }
.hf-prose .callout--abstract                                                          { --ob-color: var(--ob-callout-abstract); }
.hf-prose .callout--tip                                                                { --ob-color: var(--ob-callout-tip); }
.hf-prose .callout--success                                                            { --ob-color: var(--ob-callout-success); }
.hf-prose .callout--question                                                           { --ob-color: var(--ob-callout-question); }
.hf-prose .callout--warning                                                            { --ob-color: var(--ob-callout-warning); }
.hf-prose .callout--failure                                                            { --ob-color: var(--ob-callout-failure); }
.hf-prose .callout--danger                                                             { --ob-color: var(--ob-callout-danger); }
.hf-prose .callout--bug                                                                { --ob-color: var(--ob-callout-bug); }
.hf-prose .callout--example                                                            { --ob-color: var(--ob-callout-example); }
.hf-prose .callout--quote                                                              { --ob-color: var(--ob-callout-quote); }

.hf-prose .callout__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--ob-color);
  padding: 0 0 0.1em;
  cursor: default;
}
.hf-prose .callout.is-foldable .callout__title { cursor: pointer; user-select: none; }
.hf-prose .callout__icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ob-color);
}
.hf-prose .callout__icon svg { width: 1em; height: 1em; }
.hf-prose .callout__chevron {
  margin-left: auto;
  transition: transform 0.2s;
  font-size: 0.9em;
  color: var(--ob-color);
}
.hf-prose .callout.is-collapsed .callout__chevron { transform: rotate(-90deg); }

.hf-prose .callout__body {
  padding: 0.3em 0.4em 0.1em 1.85em;
  color: var(--ob-text-normal);
}
.hf-prose .callout__body > :first-child { margin-top: 0; }
.hf-prose .callout__body > :last-child { margin-bottom: 0; }
.hf-prose .callout.is-collapsed .callout__body { display: none; }

/* nested callout — body 里再放 callout 时,继承色但缩进 */
.hf-prose .callout .callout { margin: 0.6em 0; }

/* ----- embeds ----- */

.hf-prose .internal-embed.embed-image {
  display: block;
  margin: 1em 0;
  text-align: center;
}
.hf-prose .internal-embed.embed-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.hf-prose .internal-embed.embed-video,
.hf-prose .internal-embed.embed-audio {
  display: block;
  margin: 1em 0;
}
.hf-prose .internal-embed.embed-video video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}
.hf-prose .internal-embed.embed-audio audio { width: 100%; }
.hf-prose .internal-embed.embed-pdf {
  display: block;
  margin: 1em 0;
  border: 1px solid var(--ob-line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.hf-prose .internal-embed.embed-pdf iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}
.hf-prose .internal-embed.embed-pdf .embed-pdf__fallback {
  position: absolute;
  bottom: 0; right: 0;
  padding: 4px 8px;
  background: var(--ob-bg);
  border-top-left-radius: 4px;
  font-size: 12px;
}
.hf-prose .internal-embed.embed-file {
  display: inline-block;
  padding: 6px 12px;
  background: var(--ob-bg-soft);
  border: 1px solid var(--ob-line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ob-text-normal);
}
.hf-prose .internal-embed.embed-file:hover { background: var(--ob-bg-sunk); }
.hf-prose .internal-embed.is-unresolved {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(210, 153, 34, 0.1);
  border: 1px dashed var(--ob-link-unresolved);
  border-radius: 4px;
  color: var(--ob-link-unresolved);
  font-size: 0.9em;
}

.hf-prose aside.embed-note {
  display: block;
  margin: 1em 0;
  padding: 0.6em 0.9em;
  background: var(--ob-bg-soft);
  border: 1px solid var(--ob-line);
  border-left: 3px solid var(--ob-text-accent);
  border-radius: 4px;
}
.hf-prose aside.embed-note__head { margin-bottom: 0.4em; }
.hf-prose aside.embed-note .embed-note__title {
  font-weight: 600;
  text-decoration: none;
  color: var(--ob-text-accent);
}
.hf-prose aside.embed-note.is-stub {
  font-style: italic;
  color: var(--ob-text-muted);
}

/* ----- tasks (extended states) ----- */

.hf-prose .task-list-item {
  list-style: none;
  margin-left: -1.5em;
  padding-left: 1.5em;
  position: relative;
}
.hf-prose .task-list-item input[type="checkbox"] {
  position: absolute;
  left: 0; top: 0.35em;
  width: 16px; height: 16px;
  margin: 0;
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--ob-line-strong);
  border-radius: 3px;
  background: var(--ob-bg);
  cursor: default;
}
.hf-prose .task-list-item input[type="checkbox"]:checked,
.hf-prose .task-list-item.task-x input[type="checkbox"] {
  background: var(--ob-text-accent);
  border-color: var(--ob-text-accent);
  position: absolute;
}
.hf-prose .task-list-item.task-x input[type="checkbox"]::after {
  content: ''; position: absolute; left: 4px; top: 0px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hf-prose .task-list-item.task-x { color: var(--ob-text-faint); text-decoration: line-through; }

/* extended states — render glyph by overriding the empty checkbox */
.hf-prose .task-list-item.task-slash input { background: linear-gradient(135deg, transparent calc(50% - 1px), var(--ob-text-accent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); border-color: var(--ob-text-accent); }
.hf-prose .task-list-item.task-cancelled { color: var(--ob-text-faint); text-decoration: line-through; }
.hf-prose .task-list-item.task-cancelled input { background: var(--ob-text-faint); border-color: var(--ob-text-faint); position: absolute; }
.hf-prose .task-list-item.task-cancelled input::after { content: ''; position: absolute; left: 2px; top: 6px; width: 9px; height: 2px; background: #fff; }
.hf-prose .task-list-item.task-forwarded input::after,
.hf-prose .task-list-item.task-scheduled input::after,
.hf-prose .task-list-item.task-question input::after,
.hf-prose .task-list-item.task-important input::after,
.hf-prose .task-list-item.task-star input::after {
  content: attr(data-glyph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.hf-prose .task-list-item.task-forwarded input { background: #086ddd; border-color: #086ddd; }
.hf-prose .task-list-item.task-forwarded input::after { content: '›'; color: #fff; }
.hf-prose .task-list-item.task-scheduled input { background: #086ddd; border-color: #086ddd; }
.hf-prose .task-list-item.task-scheduled input::after { content: '‹'; color: #fff; }
.hf-prose .task-list-item.task-question input { background: #e0ac00; border-color: #e0ac00; }
.hf-prose .task-list-item.task-question input::after { content: '?'; color: #fff; }
.hf-prose .task-list-item.task-important input { background: #e93147; border-color: #e93147; }
.hf-prose .task-list-item.task-important input::after { content: '!'; color: #fff; }
.hf-prose .task-list-item.task-star input { background: #e0ac00; border-color: #e0ac00; }
.hf-prose .task-list-item.task-star input::after { content: '★'; color: #fff; font-size: 9px; }

/* ----- tables ----- */

.hf-prose table {
  width: auto;
  margin: 1em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}
.hf-prose table th,
.hf-prose table td {
  padding: 6px 12px;
  border: 1px solid var(--ob-line);
  text-align: left;
}
.hf-prose table thead th {
  background: var(--ob-bg-soft);
  font-weight: 700;
}
.hf-prose table tbody tr:nth-child(2n) { background: var(--ob-bg-soft); }

/* ----- code blocks (Shiki dual theme) ----- */

.hf-prose pre.shiki,
.hf-prose pre:has(> code) {
  margin: 1em 0;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--ob-line);
  background: var(--ob-bg-soft);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.hf-prose pre code {
  font-family: var(--mono, ui-monospace, "JetBrains Mono", monospace);
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.hf-prose .shiki { overflow-x: auto; }

/* dual-theme via CSS vars(由 shiki 写入 --shiki-light / --shiki-dark) */
html[data-theme="dark"] .hf-prose pre.shiki,
html[data-theme="dark"] .hf-prose pre.shiki *,
html:not([data-theme="light"]) .hf-prose pre.shiki,
html:not([data-theme="light"]) .hf-prose pre.shiki * {
  color: var(--shiki-dark, inherit) !important;
  background-color: var(--shiki-dark-bg, var(--ob-bg-soft)) !important;
  font-style: var(--shiki-dark-font-style, inherit) !important;
  font-weight: var(--shiki-dark-font-weight, inherit) !important;
  text-decoration: var(--shiki-dark-text-decoration, inherit) !important;
}
html[data-theme="light"] .hf-prose pre.shiki,
html[data-theme="light"] .hf-prose pre.shiki * {
  color: var(--shiki-light, inherit) !important;
  background-color: var(--shiki-light-bg, var(--ob-bg-soft)) !important;
  font-style: var(--shiki-light-font-style, inherit) !important;
  font-weight: var(--shiki-light-font-weight, inherit) !important;
  text-decoration: var(--shiki-light-text-decoration, inherit) !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .hf-prose pre.shiki,
  html:not([data-theme]) .hf-prose pre.shiki * {
    color: var(--shiki-dark, inherit) !important;
    background-color: var(--shiki-dark-bg, var(--ob-bg-soft)) !important;
  }
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .hf-prose pre.shiki,
  html:not([data-theme]) .hf-prose pre.shiki * {
    color: var(--shiki-light, inherit) !important;
    background-color: var(--shiki-light-bg, var(--ob-bg-soft)) !important;
  }
}

/* ----- math ----- */

.hf-prose .katex { font-size: 1.05em; }
.hf-prose .katex-display { margin: 1em 0; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* ----- mermaid ----- */
.hf-prose .mermaid {
  margin: 1.5em 0;
  text-align: center;
  background: var(--ob-bg);
  border-radius: 6px;
  overflow: auto;
}

/* ======================================================================
 * .ob-canvas — Obsidian Canvas
 * ====================================================================== */

.ob-canvas {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: clamp(500px, 70vh, 900px);
  border: 1px solid var(--ob-line);
  border-radius: 8px;
  background: var(--ob-canvas-bg);
  background-image:
    linear-gradient(var(--ob-canvas-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ob-canvas-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.ob-canvas:focus { outline: 2px solid var(--ob-text-accent); outline-offset: 2px; }
.ob-canvas:active { cursor: grabbing; }

.ob-canvas__viewport {
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
}

.ob-canvas__edges {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  color: var(--ob-text-faint);
  overflow: visible;
}
.ob-canvas__edges path { fill: none; }
.ob-canvas__edge-label rect {
  fill: var(--ob-bg);
  stroke: var(--ob-line);
  stroke-width: 1;
}
.ob-canvas__edge-label text {
  font-size: 11px;
  font-family: var(--mono, ui-monospace, monospace);
}

.ob-canvas__node {
  position: absolute;
  display: block;
  background: var(--ob-bg);
  border: 1.5px solid var(--ob-color, var(--ob-canvas-default));
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--ob-text-normal);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.05s;
}
.ob-canvas__node:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.ob-canvas__node--text .ob-canvas__node-body {
  padding: 10px 14px;
  height: 100%;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
}
.ob-canvas__node--file,
.ob-canvas__node--link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 12px 14px;
}
.ob-canvas__node--file img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ob-canvas__node-title {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ob-color, var(--ob-text-accent));
  word-break: break-word;
}
.ob-canvas__node-meta {
  font-size: 11px;
  color: var(--ob-text-faint);
  font-family: var(--mono, ui-monospace, monospace);
  word-break: break-all;
}

.ob-canvas__group {
  position: absolute;
  border: 2px dashed var(--ob-color, var(--ob-canvas-default));
  border-radius: 8px;
  background: color-mix(in srgb, var(--ob-color) 6%, transparent);
  pointer-events: none;
}
.ob-canvas__group-label {
  position: absolute;
  top: -10px; left: 14px;
  padding: 0 8px;
  background: var(--ob-bg);
  font-size: 12px;
  font-weight: 600;
}

.ob-canvas__controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  background: var(--ob-bg);
  border: 1px solid var(--ob-line);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.ob-canvas__btn {
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  color: var(--ob-text-muted);
  font-size: 14px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ob-canvas__btn:hover {
  background: var(--ob-bg-soft);
  color: var(--ob-text-normal);
}

/* ======================================================================
 * .ob-html-embed — sandboxed HTML 报告
 * ====================================================================== */

.ob-html-embed {
  position: relative;
  margin: 1em 0;
  border: 1px solid var(--ob-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ob-bg);
}
.ob-html-embed__frame {
  width: 100%;
  min-height: 480px;
  border: 0;
  display: block;
  background: #fff;
}
.ob-html-embed__expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ob-line);
  background: var(--ob-bg);
  color: var(--ob-text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.ob-html-embed__expand:hover { color: var(--ob-text-accent); }
.ob-html-embed:fullscreen { background: #000; }
.ob-html-embed:fullscreen .ob-html-embed__frame {
  height: 100vh;
  min-height: 100vh;
}

/* ======================================================================
 * 块锚点
 * ====================================================================== */
.block-anchor { scroll-margin-top: 80px; }
.block-anchor--inline { scroll-margin-top: 80px; }

/* hidden Obsidian comments */
.cm-comment { display: none; }

/* ======================================================================
 * 移动端
 * ====================================================================== */
@media (max-width: 768px) {
  .hf-prose {
    font-size: 15px;
    line-height: 1.7;
  }
  .hf-prose h1 { font-size: 1.6em; }
  .hf-prose h2 { font-size: 1.3em; }
  .hf-prose h3 { font-size: 1.12em; }

  /* 表格横向滚动 */
  .hf-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* embed:小屏 PDF 高度收一点 */
  .hf-prose .internal-embed.embed-pdf iframe { height: 60vh; }

  /* callout 在窄屏堆叠 */
  .hf-prose .callout { padding: 0.5em 0.75em; }
  .hf-prose .callout__body { padding-left: 1.6em; }
  .hf-prose .callout__title { gap: 0.4em; }

  /* canvas 高度收紧 */
  .ob-canvas {
    min-height: 400px;
    height: clamp(380px, 60vh, 600px);
    border-radius: 4px;
  }
  .ob-canvas__btn { width: 36px; height: 36px; } /* 触控目标 */

  /* html embed:控制高度 */
  .ob-html-embed__frame { min-height: 60vh; }
  .ob-html-embed__expand { width: 36px; height: 36px; } /* 触控目标 */

  /* embedded note transclusion */
  .hf-prose aside.embed-note { padding: 0.5em 0.75em; }
}

@media (max-width: 380px) {
  .hf-prose { font-size: 14.5px; }
  .hf-prose h1 { font-size: 1.45em; }
}


body.ui-public.lumio-public .post-head,
body.ui-public.lumio-public .post-head__title,
body.ui-public.lumio-public .post-head__sub,
body.ui-public.lumio-public .post-head__meta {
  color: #1E2A3A;
}

body.ui-public.lumio-public .post-head__title {
  color: #243056;
}

body.ui-public.lumio-public .post-head__sub,
body.ui-public.lumio-public .post-head__meta {
  color: #4D5B7E;
}

body.ui-public.lumio-public .post-prose {
  --ob-bg: #FFFFFF;
  --ob-bg-soft: #F8FAFF;
  --ob-bg-sunk: #F1F5FF;
  --ob-text-normal: #1E2A3A;
  --ob-text-muted: #4D5B7E;
  --ob-text-faint: #6B7894;
  --ob-text-accent: #6171F0;
  --ob-line: #E7ECF6;
  --ob-line-strong: #D4DCF5;
  --ob-link-color: #6171F0;
  color: #1E2A3A;
}

body.ui-public.lumio-public .post-prose.prose {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.ui-public.lumio-public .post-prose.hf-prose,
body.ui-public.lumio-public .post-prose.hf-prose p,
body.ui-public.lumio-public .post-prose.hf-prose li,
body.ui-public.lumio-public .post-prose.hf-prose td,
body.ui-public.lumio-public .post-prose.hf-prose th,
body.ui-public.lumio-public .post-prose.hf-prose .callout__body {
  color: #1E2A3A;
}

body.ui-public.lumio-public .post-prose.hf-prose h1,
body.ui-public.lumio-public .post-prose.hf-prose h2,
body.ui-public.lumio-public .post-prose.hf-prose h3,
body.ui-public.lumio-public .post-prose.hf-prose h4,
body.ui-public.lumio-public .post-prose.hf-prose h5,
body.ui-public.lumio-public .post-prose.hf-prose h6 {
  color: #243056;
}

body.ui-public.lumio-public .post-prose.hf-prose blockquote {
  color: #4D5B7E;
  background: #F3F6FF;
  border-left-color: #6171F0;
}

body.ui-public.lumio-public .post-prose.hf-prose a {
  color: #6171F0;
}

body.ui-public.lumio-public .post-prose.hf-prose code:not([class*="language-"]):not(.shiki *) {
  color: #2F63E8;
  background: #F1F5FF;
  border-color: #D4DCF5;
}

body.ui-public.lumio-public .post-prose.hf-prose pre,
body.ui-public.lumio-public .post-prose.hf-prose pre.shiki {
  color: #1E2A3A;
  background: #F8FAFF;
  border-color: #D4DCF5;
}

body.ui-public.lumio-public .post-prose.hf-prose pre.shiki,
body.ui-public.lumio-public .post-prose.hf-prose pre.shiki * {
  color: var(--shiki-light, inherit) !important;
  background-color: var(--shiki-light-bg, #F8FAFF) !important;
}

body.ui-public.lumio-public .post-prose.hf-prose table {
  color: #1E2A3A;
  border-color: #E7ECF6;
}
