/* ============================================================
   分享集 · share
   布局原语：12 栏容器 / 4-8 间距级 / 圆角 6-10-14-20 / 1px 线 / 字阶 13-56
   材质：近白底 + 实底卡片 + 两级投影；玻璃只用于吸顶导航一层
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  /* 基础色 */
  --sh-bg: oklch(0.981 0.004 245);
  --sh-surface: oklch(1 0 0);
  --sh-surface-2: oklch(0.969 0.005 245);
  --sh-surface-3: oklch(0.949 0.007 245);
  --sh-ink: oklch(0.235 0.014 255);
  --sh-ink-2: oklch(0.435 0.012 255);
  --sh-ink-3: oklch(0.515 0.012 255);
  --sh-line: oklch(0.905 0.006 245);
  --sh-line-strong: oklch(0.83 0.008 245);

  /* 语义色 */
  --sh-text: var(--sh-ink);
  --sh-text-soft: var(--sh-ink-2);
  --sh-text-mute: var(--sh-ink-3);
  --sh-border: var(--sh-line);
  --sh-border-strong: var(--sh-line-strong);

  --sh-primary: oklch(0.47 0.092 208);
  --sh-primary-hover: oklch(0.42 0.098 208);
  --sh-primary-soft: oklch(0.955 0.022 208);
  --sh-primary-ink: oklch(0.38 0.08 208);
  --sh-accent: var(--sh-primary);
  --sh-accent-soft: var(--sh-primary-soft);


  /* 圆角 / 线宽 */
  --sh-r-xs: 6px;
  --sh-r-sm: 10px;
  --sh-r-md: 14px;
  --sh-r-lg: 20px;
  --sh-r-pill: 999px;
  --sh-hair: 1px;

  /* 间距级（4/8） */
  --sh-s1: 4px;
  --sh-s2: 8px;
  --sh-s3: 12px;
  --sh-s4: 16px;
  --sh-s5: 24px;
  --sh-s6: 32px;
  --sh-s7: 48px;
  --sh-s8: 64px;
  --sh-s9: 96px;

  /* 字阶 */
  --sh-f-13: 0.8125rem;
  --sh-f-14: 0.875rem;
  --sh-f-15: 0.9375rem;
  --sh-f-16: 1rem;
  --sh-f-18: 1.125rem;
  --sh-f-21: 1.3125rem;
  --sh-f-26: 1.625rem;
  --sh-f-34: 2.125rem;
  --sh-f-46: 2.875rem;
  --sh-f-56: 3.5rem;

  /* 字体 */
  --sh-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --sh-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 投影：两级以上，供层级使用 */
  --sh-shadow-1: 0 1px 1px oklch(0.25 0.02 255 / 0.04), 0 2px 6px oklch(0.25 0.02 255 / 0.05);
  --sh-shadow-2: 0 1px 2px oklch(0.25 0.02 255 / 0.05), 0 10px 26px oklch(0.25 0.02 255 / 0.075);
  --sh-shadow-3: 0 2px 4px oklch(0.25 0.02 255 / 0.05), 0 22px 52px oklch(0.25 0.02 255 / 0.11);

  --sh-container: 1180px;
  --sh-header-h: 62px;
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sh-bg);
  color: var(--sh-text);
  font-family: var(--sh-sans);
  font-size: var(--sh-f-16);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--sh-primary);
  outline-offset: 2px;
  border-radius: var(--sh-r-xs);
}

::selection {
  background: oklch(0.86 0.05 208);
  color: var(--sh-ink);
}

/* ---------- 3. layout ---------- */
.sh-container {
  width: 100%;
  max-width: var(--sh-container);
  margin-inline: auto;
  padding-inline: var(--sh-s5);
}

.sh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--sh-surface);
  padding: var(--sh-s3) var(--sh-s4);
  border-radius: var(--sh-r-sm);
  box-shadow: var(--sh-shadow-2);
}

.sh-skip:focus {
  left: var(--sh-s4);
  top: var(--sh-s4);
}

.sh-main {
  display: block;
  padding-bottom: var(--sh-s8);
}

.sh-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: var(--sh-s7);
  align-items: start;
}

.sh-section {
  padding-block: var(--sh-s7);
}

.sh-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sh-s4);
  margin-bottom: var(--sh-s4);
}

.sh-section-head h2 {
  font-size: var(--sh-f-21);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sh-section-head h2 small {
  display: inline-block;
  margin-left: var(--sh-s3);
  font-size: var(--sh-f-14);
  font-weight: 500;
  color: var(--sh-text-mute);
  letter-spacing: 0;
}

.sh-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sh-s1);
  font-size: var(--sh-f-14);
  font-weight: 600;
  color: var(--sh-text-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sh-more:hover {
  color: var(--sh-primary);
}

/* ---------- 4. header ---------- */
.sh-masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(1 0 0 / 0.74);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: var(--sh-hair) solid var(--sh-line);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.7), 0 1px 0 oklch(0.25 0.02 255 / 0.03);
}

.sh-masthead-inner {
  display: flex;
  align-items: center;
  gap: var(--sh-s5);
  height: var(--sh-header-h);
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sh-s2);
  font-size: var(--sh-f-18);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sh-brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--sh-r-xs);
  background: var(--sh-ink);
  color: var(--sh-surface);
  font-size: var(--sh-f-14);
  font-weight: 700;
  font-family: var(--sh-mono);
  letter-spacing: 0;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: var(--sh-s5);
  margin-right: auto;
  font-size: var(--sh-f-15);
  font-weight: 500;
  color: var(--sh-text-soft);
}

.sh-nav a {
  padding-block: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sh-nav a:hover {
  color: var(--sh-text);
}

.sh-nav a[aria-current="page"] {
  color: var(--sh-text);
  border-bottom-color: var(--sh-primary);
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  margin-left: auto;
}

.sh-searchlink {
  display: inline-flex;
  align-items: center;
  gap: var(--sh-s2);
  height: 34px;
  padding-inline: var(--sh-s3);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-pill);
  background: var(--sh-surface);
  color: var(--sh-text-mute);
  font-size: var(--sh-f-13);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sh-searchlink:hover {
  border-color: var(--sh-border-strong);
  color: var(--sh-text);
}

.sh-searchlink svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* 小屏抽屉：<details> 实现，无 JS 也能开合 */
.sh-menu {
  display: none;
}

.sh-menu > summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-sm);
  background: var(--sh-surface);
  cursor: pointer;
  list-style: none;
}

.sh-menu > summary::-webkit-details-marker {
  display: none;
}

.sh-menu-icon,
.sh-menu-icon::before,
.sh-menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--sh-ink);
  border-radius: 2px;
  content: "";
}

.sh-menu-icon::before {
  transform: translateY(-5px);
}

.sh-menu-icon::after {
  transform: translateY(3.5px);
}

.sh-menu-panel {
  position: fixed;
  inset: var(--sh-header-h) 0 0;
  z-index: 49;
  padding: var(--sh-s5);
  background: var(--sh-surface);
  border-top: var(--sh-hair) solid var(--sh-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sh-menu-panel h2 {
  font-size: var(--sh-f-13);
  font-weight: 600;
  color: var(--sh-text-mute);
  margin-bottom: var(--sh-s3);
}

.sh-menu-links {
  display: grid;
  gap: 2px;
  margin-bottom: var(--sh-s6);
}

.sh-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sh-s3);
  border-bottom: var(--sh-hair) solid var(--sh-line);
  font-size: var(--sh-f-18);
  font-weight: 600;
}

.sh-menu-links a[aria-current="page"] {
  color: var(--sh-primary);
}

.sh-menu-foot {
  display: grid;
  gap: var(--sh-s2);
}

.sh-masthead.is-scrolled {
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.7), 0 6px 24px oklch(0.25 0.02 255 / 0.07);
}

/* ---------- 4b. 状态 / 验证码 / 频道卡 / 404 ---------- */
.sh-status {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--sh-s2);
  border-radius: var(--sh-r-xs);
  font-size: var(--sh-f-13);
  font-weight: 600;
  background: var(--sh-surface-3);
  color: var(--sh-text-soft);
}

.sh-status[data-tone="success"] {
  background: oklch(0.955 0.04 150);
  color: oklch(0.42 0.1 150);
}

.sh-status[data-tone="warning"] {
  background: oklch(0.965 0.05 85);
  color: oklch(0.45 0.1 75);
}

.sh-status[data-tone="muted"] {
  background: var(--sh-surface-2);
  color: var(--sh-text-mute);
}

.sh-account-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s2);
  margin-top: var(--sh-s3);
}

.sh-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--sh-s2);
  align-items: center;
}

.sh-captcha img {
  height: 40px;
  width: auto;
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-xs);
  background: var(--sh-surface-2);
}

.sh-catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: var(--sh-s3);
  container-type: inline-size;
}

.sh-catcard {
  display: flex;
  flex-direction: column;
  gap: var(--sh-s1);
  padding: var(--sh-s5);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sh-catcard:hover {
  box-shadow: var(--sh-shadow-2);
  border-color: var(--sh-border-strong);
  transform: translateY(-2px);
}

.sh-catcard-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--sh-s2);
  border-radius: var(--sh-r-sm);
  background: var(--sh-accent-soft);
  color: var(--sh-accent);
  font-size: var(--sh-f-16);
  font-weight: 700;
}

.sh-catcard-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sh-catcard-name {
  font-size: var(--sh-f-18);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sh-catcard-note {
  font-size: var(--sh-f-14);
  line-height: 1.6;
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-catcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s2);
  margin-top: auto;
  padding-top: var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-404 {
  max-width: 720px;
  padding-block: var(--sh-s8) var(--sh-s6);
}

.sh-404-code {
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--sh-surface-3);
  -webkit-text-stroke: 1px var(--sh-line-strong);
}

.sh-404 h1 {
  margin-top: var(--sh-s3);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sh-404-note {
  max-width: 52ch;
  margin-top: var(--sh-s2);
  margin-bottom: var(--sh-s5);
  font-size: var(--sh-f-15);
  color: var(--sh-text-soft);
}

/* ---------- 5. 按钮 / chip / 徽章 ---------- */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sh-s2);
  min-height: 40px;
  padding-inline: var(--sh-s4);
  border: var(--sh-hair) solid var(--sh-border);
  border-radius: var(--sh-r-sm);
  background: var(--sh-surface);
  color: var(--sh-text);
  font-size: var(--sh-f-15);
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--sh-shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
    background-color 0.15s ease;
}

.sh-btn:hover {
  border-color: var(--sh-border-strong);
  box-shadow: var(--sh-shadow-2);
  transform: translateY(-1px);
}

.sh-btn:active {
  transform: translateY(0);
}

.sh-btn--primary {
  background: var(--sh-primary);
  border-color: transparent;
  color: oklch(0.99 0 0);
  box-shadow: var(--sh-shadow-2);
}

.sh-btn--primary:hover {
  background: var(--sh-primary-hover);
}

.sh-btn--dark {
  background: var(--sh-ink);
  border-color: transparent;
  color: oklch(0.99 0 0);
}

.sh-btn--ghost {
  background: transparent;
  border-color: var(--sh-border);
  box-shadow: none;
}

.sh-btn--ghost:hover {
  background: var(--sh-surface);
}

.sh-btn--sm {
  min-height: 32px;
  padding-inline: var(--sh-s3);
  font-size: var(--sh-f-13);
}

.sh-btn--wide {
  width: 100%;
}

.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sh-s1);
  padding: 5px var(--sh-s3);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-pill);
  background: var(--sh-surface);
  color: var(--sh-text-soft);
  font-size: var(--sh-f-13);
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.sh-chip:hover {
  color: var(--sh-text);
  border-color: var(--sh-border-strong);
}

.sh-chip[aria-current="true"],
.sh-chip.is-on {
  background: var(--sh-ink);
  border-color: var(--sh-ink);
  color: var(--sh-surface);
}

.sh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s2);
}

.sh-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sh-s1);
  padding: 2px var(--sh-s2);
  border-radius: var(--sh-r-xs);
  background: var(--sh-accent-soft);
  color: var(--sh-accent);
  font-size: var(--sh-f-13);
  font-weight: 600;
  line-height: 1.6;
}

.sh-badge--line {
  background: transparent;
  border: var(--sh-hair) solid var(--sh-line);
  color: var(--sh-text-mute);
  font-weight: 500;
}

.sh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sh-accent);
  flex: none;
}

/* ---------- 6. 首屏：一条工具行 + 内容网格 ---------- */
.sh-topbar {
  padding-block: var(--sh-s5) var(--sh-s4);
}

.sh-topbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: var(--sh-s6);
  align-items: end;
}

.sh-topbar-lead h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sh-topbar-lead p {
  max-width: 52ch;
  margin-top: var(--sh-s2);
  font-size: var(--sh-f-15);
  line-height: 1.65;
  color: var(--sh-text-soft);
  text-wrap: pretty;
}

.sh-topbar-tools {
  display: grid;
  gap: var(--sh-s2);
}

.sh-searchbar {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  padding: 5px 5px 5px var(--sh-s3);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-border);
  border-radius: var(--sh-r-sm);
  box-shadow: var(--sh-shadow-1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sh-searchbar:focus-within {
  border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px var(--sh-primary-soft);
}

.sh-searchbar svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--sh-text-mute);
  stroke-width: 1.8;
}

.sh-searchbar input {
  flex: 1;
  min-width: 0;
  padding-block: 8px;
  border: 0;
  background: none;
  font-size: var(--sh-f-15);
}

.sh-searchbar input:focus {
  outline: none;
}

.sh-searchbar button {
  flex: none;
  height: 34px;
  padding-inline: var(--sh-s4);
  border-radius: var(--sh-r-xs);
  background: var(--sh-primary);
  color: oklch(0.99 0 0);
  font-size: var(--sh-f-14);
  font-weight: 600;
}

.sh-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s1) var(--sh-s2);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

/* 首屏内容网格：一张大的 + 四张紧凑条目，全部是真实内容 */
.sh-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sh-s3);
  padding-bottom: var(--sh-s5);
}

.sh-lead {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  min-width: 0;
  overflow: hidden;
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-lg);
  box-shadow: var(--sh-shadow-2);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sh-lead:hover {
  box-shadow: var(--sh-shadow-3);
  border-color: var(--sh-border-strong);
  transform: translateY(-2px);
}

.sh-lead-media {
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
  background: var(--sh-surface-2);
}

.sh-lead-media--plate {
  align-content: center;
  justify-items: center;
  gap: var(--sh-s3);
  padding: var(--sh-s5) var(--sh-s4);
  background: var(--sh-item-soft, var(--sh-surface-2));
}

.sh-lead-glyph {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sh-item-ink, var(--sh-primary));
}

.sh-lead-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.sh-lead-specs span {
  padding: 2px 8px;
  border-radius: var(--sh-r-xs);
  background: oklch(1 0 0 / 0.72);
  font-size: 12px;
  line-height: 1.7;
  color: var(--sh-text-soft);
}

.sh-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-lead-body {
  display: flex;
  flex-direction: column;
  gap: var(--sh-s3);
  justify-content: center;
  min-width: 0;
  padding: var(--sh-s5);
}

.sh-lead-body h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sh-lead:hover .sh-lead-body h2 {
  color: var(--sh-primary);
}

.sh-lead-stamp {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-lead-note {
  font-size: var(--sh-f-15);
  line-height: 1.65;
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-lead-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s3);
  margin-top: var(--sh-s2);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-lead-foot .sh-more {
  margin-left: auto;
}

/* 紧凑条目 */
.sh-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sh-s4);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sh-mini:hover {
  box-shadow: var(--sh-shadow-2);
  border-color: var(--sh-border-strong);
  transform: translateY(-2px);
}

.sh-mini-top {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
}

.sh-mini-info {
  display: grid;
  gap: 0;
  min-width: 0;
}

.sh-mini-info b {
  font-size: var(--sh-f-13);
  font-weight: 600;
  color: var(--sh-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-mini-info span {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-mini-title {
  margin-top: var(--sh-s2);
  font-size: var(--sh-f-16);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-mini:hover .sh-mini-title a {
  color: var(--sh-primary);
}

.sh-mini-note {
  margin-top: 4px;
  font-size: var(--sh-f-13);
  line-height: 1.6;
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-mini-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--sh-s3);
}

.sh-mini-views {
  margin-left: auto;
  font-size: 12px;
  color: var(--sh-text-mute);
  font-variant-numeric: tabular-nums;
}
/* 频道条 */
.sh-chans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: var(--sh-s2);
  padding-bottom: var(--sh-s5);
}

.sh-chan {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  min-width: 0;
  padding: 10px var(--sh-s3);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-sm);
  box-shadow: var(--sh-shadow-1);
  font-size: var(--sh-f-14);
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sh-chan:hover {
  border-color: var(--sh-border-strong);
  box-shadow: var(--sh-shadow-2);
  color: var(--sh-primary);
}

.sh-chan-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-chan-count {
  margin-left: auto;
  font-size: var(--sh-f-13);
  font-weight: 500;
  color: var(--sh-text-mute);
  font-variant-numeric: tabular-nums;
}

.sh-chan--all {
  justify-content: center;
  color: var(--sh-text-soft);
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

/* 通用：块内的次要信息行 */
.sh-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s2);
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}


/* 顶部统计行（真实数字，不用来喊口号） */
.sh-statline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s1) var(--sh-s4);
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-statline div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.sh-statline dt {
  color: var(--sh-text-mute);
}

.sh-statline dd {
  font-weight: 700;
  font-size: var(--sh-f-15);
  color: var(--sh-text);
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. 侧栏 ---------- */
.sh-rail {
  position: sticky;
  top: calc(var(--sh-header-h) + var(--sh-s4));
  display: grid;
  gap: var(--sh-s5);
  min-width: 0;
}

.sh-rail-block {
  padding: var(--sh-s4);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
}

.sh-rail-block h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--sh-f-14);
  font-weight: 700;
  margin-bottom: var(--sh-s3);
}

.sh-rail-block h2 span {
  font-size: var(--sh-f-13);
  font-weight: 500;
  color: var(--sh-text-mute);
}

.sh-rail-nav {
  display: grid;
  gap: 1px;
}

.sh-rail-nav a {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  padding: 7px var(--sh-s2);
  margin-inline: calc(var(--sh-s2) * -1);
  border-radius: var(--sh-r-xs);
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sh-rail-nav a:hover {
  background: var(--sh-surface-2);
  color: var(--sh-text);
}

.sh-rail-nav a[aria-current="page"] {
  background: var(--sh-surface-3);
  color: var(--sh-text);
  font-weight: 600;
}

.sh-rail-nav b {
  margin-left: auto;
  font-size: var(--sh-f-13);
  font-weight: 500;
  color: var(--sh-text-mute);
  font-variant-numeric: tabular-nums;
}

.sh-rail-nav .sh-dot {
  flex: none;
}

.sh-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s3) var(--sh-s5);
  margin-bottom: var(--sh-s5);
  padding-bottom: var(--sh-s4);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-filterbar .sh-filter-group {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  padding: 0;
  border: 0;
  min-width: 0;
}

.sh-filterbar .sh-filter-group p {
  margin: 0;
  white-space: nowrap;
}

.sh-filter-group {
  padding-block: var(--sh-s3);
  border-top: var(--sh-hair) solid var(--sh-line);
}

.sh-filter-group:last-child {
  padding-bottom: 0;
}

.sh-filter-group p {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  margin-bottom: var(--sh-s2);
}

.sh-rail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sh-rail-tags a {
  padding: 3px var(--sh-s2);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-xs);
  font-size: var(--sh-f-13);
  color: var(--sh-text-soft);
}

.sh-rail-tags a:hover {
  border-color: var(--sh-border-strong);
  color: var(--sh-text);
}

.sh-rail-note {
  font-size: var(--sh-f-14);
  line-height: 1.6;
  color: var(--sh-text-soft);
}

/* ---------- 10. 列表页头 ---------- */
.sh-listhead {
  padding-block: var(--sh-s6) var(--sh-s4);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-listhead-top {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  margin-bottom: var(--sh-s3);
  font-size: var(--sh-f-14);
  color: var(--sh-text-mute);
}

.sh-listhead h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sh-s3);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.sh-listhead h1 .sh-count-pill {
  font-size: var(--sh-f-14);
  font-weight: 500;
  color: var(--sh-text-mute);
  letter-spacing: 0;
}

.sh-listhead-desc {
  max-width: 62ch;
  margin-top: var(--sh-s2);
  font-size: var(--sh-f-15);
  color: var(--sh-text-soft);
  text-wrap: pretty;
}

.sh-listhead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s3);
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-listhead-cover {
  width: 100%;
  max-height: 220px;
  margin-top: var(--sh-s4);
  border-radius: var(--sh-r-md);
  object-fit: cover;
  display: block;
}

/* ---------- 11. 卡片：工具 / 长文 / 发现 ---------- */
.sh-feed {
  display: grid;
  gap: var(--sh-s3);
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: var(--sh-s3);
  container-type: inline-size;
}

/* 内容卡：三段落 —— 身份（字牌 + 频道）/ 正文 / 规格与去处 */
.sh-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sh-s4);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sh-card:hover {
  box-shadow: var(--sh-shadow-2);
  border-color: var(--sh-border-strong);
  transform: translateY(-2px);
}

.sh-card:hover .sh-card-title a {
  color: var(--sh-primary);
}

.sh-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin: calc(var(--sh-s4) * -1) calc(var(--sh-s4) * -1) var(--sh-s4);
  border-radius: var(--sh-r-md) var(--sh-r-md) 0 0;
  overflow: hidden;
  background: var(--sh-surface-2);
}

.sh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 身份行：首字牌 + 频道 + 时间 */
.sh-card-head {
  display: flex;
  align-items: center;
  gap: var(--sh-s3);
}

.sh-mono-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--sh-r-sm);
  background: var(--sh-item-soft, var(--sh-surface-3));
  color: var(--sh-item-ink, var(--sh-text-soft));
  font-size: var(--sh-f-16);
  font-weight: 700;
  line-height: 1;
}

.sh-mono-mark--sm {
  width: 30px;
  height: 30px;
  border-radius: var(--sh-r-xs);
  font-size: var(--sh-f-14);
}

.sh-card-headinfo {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.sh-card-headinfo b {
  font-size: var(--sh-f-13);
  font-weight: 600;
  color: var(--sh-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-card-headmeta {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-card-score {
  flex: none;
  font-size: var(--sh-f-18);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sh-card-score i {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--sh-text-mute);
}

.sh-card-title {
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-18);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.sh-card-title a {
  transition: color 0.15s ease;
}

.sh-card-note {
  margin-top: 6px;
  font-size: var(--sh-f-14);
  line-height: 1.65;
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 规格：平台 / 价格 / 门槛 / 难度，全部来自内容字段 */
.sh-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sh-s3);
}

.sh-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-xs);
  background: var(--sh-surface-2);
  font-size: 12px;
  line-height: 1.6;
  color: var(--sh-text-soft);
}

.sh-card-foot {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
  margin-top: auto;
  padding-top: var(--sh-s3);
  border-top: var(--sh-hair) solid var(--sh-line);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-card-foot .sh-host {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sh-mono);
  font-size: 12px;
}

.sh-card-go {
  margin-left: auto;
  flex: none;
  font-size: var(--sh-f-13);
  font-weight: 600;
  color: var(--sh-text-soft);
  transition: color 0.15s ease;
}

.sh-card:hover .sh-card-go {
  color: var(--sh-primary);
}

/* 首字牌的四道色调：只换底色与字色，不换形状 */
[data-tone="1"] {
  --sh-item-soft: oklch(0.94 0.028 208);
  --sh-item-ink: oklch(0.44 0.088 208);
}

[data-tone="2"] {
  --sh-item-soft: oklch(0.94 0.032 265);
  --sh-item-ink: oklch(0.45 0.095 268);
}

[data-tone="3"] {
  --sh-item-soft: oklch(0.945 0.038 148);
  --sh-item-ink: oklch(0.44 0.08 150);
}

[data-tone="4"] {
  --sh-item-soft: oklch(0.945 0.042 62);
  --sh-item-ink: oklch(0.46 0.095 58);
}
/* 长文条目：宽列表 */
.sh-note {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--sh-s4);
  padding: var(--sh-s5);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sh-note:hover {
  box-shadow: var(--sh-shadow-2);
  border-color: var(--sh-border-strong);
  transform: translateY(-1px);
}

.sh-note-index {
  font-family: var(--sh-mono);
  font-size: var(--sh-f-15);
  font-weight: 700;
  color: var(--sh-accent);
  padding-top: 3px;
  letter-spacing: 0;
}

.sh-note-title {
  font-size: var(--sh-f-21);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sh-note-title a {
  transition: color 0.15s ease;
}

.sh-note:hover .sh-note-title a {
  color: var(--sh-primary);
}

.sh-note-note {
  margin-top: var(--sh-s2);
  max-width: 70ch;
  font-size: var(--sh-f-15);
  line-height: 1.65;
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-note-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s3);
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

/* 发现：单行流 */
.sh-dotrow {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: var(--sh-s4);
  align-items: baseline;
  padding: var(--sh-s4) var(--sh-s5);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sh-dotrow:hover {
  border-color: var(--sh-border-strong);
  background: oklch(1 0 0);
}

.sh-dotrow-time {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  font-variant-numeric: tabular-nums;
}

.sh-dotrow-body {
  min-width: 0;
}

.sh-dotrow-title {
  font-size: var(--sh-f-16);
  font-weight: 600;
  line-height: 1.5;
}

.sh-dotrow-note {
  margin-top: 2px;
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-dotrow-go {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  white-space: nowrap;
}

.sh-dotrow:hover .sh-dotrow-go {
  color: var(--sh-primary);
}

/* ---------- 12. 详情 ---------- */
.sh-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--sh-s7);
  align-items: start;
  padding-block: var(--sh-s6);
}

.sh-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  background: var(--sh-primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: sh-progress-grow linear both;
  animation-timeline: scroll(root block);
}

@keyframes sh-progress-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.sh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s2);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-crumbs a:hover {
  color: var(--sh-text);
}

.sh-crumbs > * + *::before {
  content: "/";
  margin-right: var(--sh-s2);
  color: var(--sh-border-strong);
}

.sh-entry-head {
  padding-bottom: var(--sh-s4);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-entry-head h1 {
  margin-top: var(--sh-s3);
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sh-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s3);
  margin-top: var(--sh-s3);
  font-size: var(--sh-f-14);
  color: var(--sh-text-mute);
}

.sh-entry-meta .sh-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sh-surface-3);
}

.sh-entry-meta b {
  font-weight: 600;
  color: var(--sh-text-soft);
}

.sh-callout {
  margin-top: var(--sh-s5);
  padding: var(--sh-s4) var(--sh-s5);
  border-left: 3px solid var(--sh-accent);
  border-radius: 0 var(--sh-r-sm) var(--sh-r-sm) 0;
  background: var(--sh-accent-soft);
  font-size: var(--sh-f-16);
  line-height: 1.7;
  color: var(--sh-ink);
}

.sh-callout p:first-child {
  font-size: var(--sh-f-13);
  font-weight: 600;
  color: var(--sh-accent);
  margin-bottom: var(--sh-s1);
}

.sh-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s3);
  margin-top: var(--sh-s5);
  padding: var(--sh-s4);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
}

.sh-open-url {
  flex: 1;
  min-width: 0;
  font-family: var(--sh-mono);
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-open-url b {
  display: block;
  font-family: var(--sh-sans);
  font-size: var(--sh-f-13);
  font-weight: 500;
  color: var(--sh-text-mute);
}

/* 事实表 */
.sh-facts {
  display: grid;
  gap: 0;
  margin-top: var(--sh-s5);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  background: var(--sh-surface);
  overflow: hidden;
}

.sh-facts > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: var(--sh-s3);
  padding: var(--sh-s3) var(--sh-s4);
  border-top: var(--sh-hair) solid var(--sh-line);
  font-size: var(--sh-f-14);
}

.sh-facts > div:first-child {
  border-top: 0;
}

.sh-facts dt {
  color: var(--sh-text-mute);
}

.sh-facts dd {
  color: var(--sh-text);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sh-facts dd a {
  color: var(--sh-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 要点卡 */
.sh-points {
  margin-top: var(--sh-s5);
  padding: var(--sh-s5);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
}

.sh-points h2 {
  font-size: var(--sh-f-14);
  font-weight: 700;
  color: var(--sh-text-soft);
  margin-bottom: var(--sh-s3);
}

.sh-points ol {
  counter-reset: sh-point;
  display: grid;
  gap: var(--sh-s3);
}

.sh-points li {
  counter-increment: sh-point;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--sh-s2);
  font-size: var(--sh-f-15);
  line-height: 1.65;
}

.sh-points li::before {
  content: counter(sh-point, decimal-leading-zero);
  font-family: var(--sh-mono);
  font-size: var(--sh-f-13);
  font-weight: 700;
  color: var(--sh-accent);
  padding-top: 3px;
}

/* 正文 */
.sh-prose {
  margin-top: var(--sh-s5);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: oklch(0.29 0.014 255);
  overflow-wrap: break-word;
}

.sh-prose > * + * {
  margin-top: 1.15em;
}

.sh-prose h2 {
  margin-top: 2.2em;
  font-size: var(--sh-f-26);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--sh-ink);
}

.sh-prose h3 {
  margin-top: 1.9em;
  font-size: var(--sh-f-18);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sh-ink);
}

.sh-prose h4 {
  margin-top: 1.6em;
  font-size: var(--sh-f-16);
  font-weight: 700;
  color: var(--sh-ink);
}

.sh-prose p {
  text-wrap: pretty;
}

.sh-prose a {
  color: var(--sh-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sh-prose a:hover {
  background: var(--sh-primary-soft);
}

.sh-prose strong {
  font-weight: 700;
  color: var(--sh-ink);
}

.sh-prose ul,
.sh-prose ol {
  padding-left: 1.35em;
  list-style: revert;
}

.sh-prose ul {
  list-style: disc;
}

.sh-prose li + li {
  margin-top: 0.4em;
}

.sh-prose li::marker {
  color: var(--sh-text-mute);
}

.sh-prose blockquote {
  margin-inline: 0;
  padding: var(--sh-s3) var(--sh-s4);
  border-left: 3px solid var(--sh-border-strong);
  background: var(--sh-surface-2);
  border-radius: 0 var(--sh-r-sm) var(--sh-r-sm) 0;
  color: var(--sh-text-soft);
}

.sh-prose blockquote > * + * {
  margin-top: 0.6em;
}

.sh-prose code {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--sh-surface-3);
  font-family: var(--sh-mono);
  font-size: 0.88em;
}

.sh-prose pre {
  padding: var(--sh-s4);
  border-radius: var(--sh-r-sm);
  background: oklch(0.26 0.012 255);
  color: oklch(0.93 0.01 245);
  overflow-x: auto;
  font-size: var(--sh-f-14);
  line-height: 1.7;
}

.sh-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.sh-prose img {
  display: block;
  border-radius: var(--sh-r-sm);
  border: var(--sh-hair) solid var(--sh-line);
}

.sh-prose hr {
  border: 0;
  border-top: var(--sh-hair) solid var(--sh-line);
  margin-block: 2em;
}

.sh-prose figure figcaption {
  margin-top: var(--sh-s2);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  text-align: center;
}

.sh-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sh-f-14);
}

.sh-prose th,
.sh-prose td {
  padding: var(--sh-s2) var(--sh-s3);
  border: var(--sh-hair) solid var(--sh-line);
  text-align: left;
}

.sh-prose th {
  background: var(--sh-surface-2);
  font-weight: 600;
}

/* 出处 */
.sh-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s2);
  margin-top: var(--sh-s5);
  padding: var(--sh-s3) var(--sh-s4);
  border: 1px dashed var(--sh-border-strong);
  border-radius: var(--sh-r-sm);
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
}

.sh-source a {
  color: var(--sh-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sh-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s2);
  margin-top: var(--sh-s5);
}

/* 详情侧栏 */
.sh-aside {
  position: sticky;
  top: calc(var(--sh-header-h) + var(--sh-s4));
  display: grid;
  gap: var(--sh-s4);
}

.sh-aside-card {
  padding: var(--sh-s4);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
}

.sh-aside-card h2 {
  font-size: var(--sh-f-14);
  font-weight: 700;
  margin-bottom: var(--sh-s3);
}

.sh-aside-facts {
  display: grid;
  gap: var(--sh-s2);
  font-size: var(--sh-f-14);
}

.sh-aside-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sh-s3);
  padding-bottom: var(--sh-s2);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-aside-facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sh-aside-facts dt {
  color: var(--sh-text-mute);
  flex: none;
}

.sh-aside-facts dd {
  text-align: right;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sh-related {
  display: grid;
  gap: var(--sh-s3);
}

.sh-related a {
  display: grid;
  gap: 2px;
  padding-bottom: var(--sh-s3);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-related a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sh-related b {
  font-size: var(--sh-f-14);
  font-weight: 600;
  line-height: 1.45;
}

.sh-related a:hover b {
  color: var(--sh-primary);
}

.sh-related span {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-engage {
  margin-top: var(--sh-s5);
}

/* 短条目详情：单栏窄版 */
.sh-narrow {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--sh-s6);
}

.sh-narrow .sh-entry-head h1 {
  font-size: clamp(1.5rem, 1.3rem + 1.2vw, 2rem);
}

/* ---------- 13. 分页 ---------- */
.sh-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s2);
  margin-top: var(--sh-s6);
  padding-top: var(--sh-s4);
  border-top: var(--sh-hair) solid var(--sh-line);
}

.sh-page-num,
.sh-page-step {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding-inline: var(--sh-s2);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-sm);
  background: var(--sh-surface);
  font-size: var(--sh-f-14);
  font-weight: 600;
  color: var(--sh-text-soft);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sh-page-num:hover,
.sh-page-step:hover {
  border-color: var(--sh-border-strong);
  color: var(--sh-text);
}

.sh-page-num[aria-current="page"] {
  background: var(--sh-ink);
  border-color: var(--sh-ink);
  color: var(--sh-surface);
}

.sh-page-step {
  padding-inline: var(--sh-s3);
}

.sh-page-gap {
  padding-inline: 2px;
  color: var(--sh-text-mute);
}

.sh-pagination-total {
  margin-left: auto;
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

/* ---------- 14. 空状态 ---------- */
.sh-empty {
  display: grid;
  gap: var(--sh-s2);
  justify-items: start;
  padding: var(--sh-s7) var(--sh-s5);
  background: var(--sh-surface);
  border: 1px dashed var(--sh-border-strong);
  border-radius: var(--sh-r-md);
}

.sh-empty-title {
  font-size: var(--sh-f-18);
  font-weight: 700;
}

.sh-empty-note {
  max-width: 46ch;
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
}

.sh-empty .sh-btn {
  margin-top: var(--sh-s2);
}

/* ---------- 15. 表单 ---------- */
.sh-page-head {
  padding-block: var(--sh-s6) var(--sh-s4);
}

.sh-page-head h1 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sh-page-head p {
  margin-top: var(--sh-s2);
  max-width: 62ch;
  font-size: var(--sh-f-15);
  color: var(--sh-text-soft);
}

.sh-form-card {
  padding: var(--sh-s6);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-lg);
  box-shadow: var(--sh-shadow-2);
}

.sh-form {
  display: grid;
  gap: var(--sh-s4);
}

.sh-field {
  display: grid;
  gap: var(--sh-s1);
}

.sh-field > label,
.sh-field-label {
  font-size: var(--sh-f-14);
  font-weight: 600;
  color: var(--sh-text-soft);
}

.sh-field-hint {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-input,
.sh-select,
.sh-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px var(--sh-s3);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-border);
  border-radius: var(--sh-r-sm);
  font-size: var(--sh-f-15);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sh-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.sh-input:focus,
.sh-select:focus,
.sh-textarea:focus {
  outline: none;
  border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px var(--sh-primary-soft);
}

.sh-input::placeholder,
.sh-textarea::placeholder {
  color: oklch(0.66 0.01 245);
}

.sh-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sh-s4);
}

.sh-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s3);
  padding-top: var(--sh-s2);
}

.sh-form-foot .sh-note {
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-alert {
  display: grid;
  gap: 2px;
  padding: var(--sh-s3) var(--sh-s4);
  border-radius: var(--sh-r-sm);
  font-size: var(--sh-f-14);
  border: var(--sh-hair) solid oklch(0.86 0.06 25);
  background: oklch(0.975 0.02 25);
  color: oklch(0.44 0.13 25);
}

.sh-alert--ok {
  border-color: oklch(0.86 0.07 150);
  background: oklch(0.972 0.03 150);
  color: oklch(0.42 0.1 150);
}

.sh-count {
  margin-left: auto;
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
  font-variant-numeric: tabular-nums;
}

.sh-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sh-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sh-s6);
  align-items: start;
  padding-bottom: var(--sh-s7);
}

.sh-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--sh-s7);
  align-items: center;
  padding-block: var(--sh-s7);
}

.sh-auth-side {
  padding: var(--sh-s6);
  border-radius: var(--sh-r-lg);
  background:
    radial-gradient(90% 100% at 100% 0%, var(--sh-primary-soft) 0%, transparent 60%),
    var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  box-shadow: var(--sh-shadow-2);
}

.sh-auth-side h2 {
  font-size: var(--sh-f-26);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.sh-auth-side ul {
  display: grid;
  gap: var(--sh-s3);
  margin-top: var(--sh-s4);
  font-size: var(--sh-f-15);
  color: var(--sh-text-soft);
}

.sh-auth-side li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--sh-s2);
}

.sh-auth-side li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sh-primary);
}

.sh-switch {
  margin-top: var(--sh-s4);
  font-size: var(--sh-f-14);
  color: var(--sh-text-mute);
}

.sh-switch a {
  color: var(--sh-primary);
  font-weight: 600;
}

/* ---------- 16. 账号 / 表格 ---------- */
.sh-rows {
  display: grid;
  gap: var(--sh-s2);
}

.sh-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sh-s4);
  align-items: center;
  padding: var(--sh-s4) var(--sh-s5);
  background: var(--sh-surface);
  border: var(--sh-hair) solid var(--sh-line);
  border-radius: var(--sh-r-md);
  box-shadow: var(--sh-shadow-1);
}

.sh-row h2,
.sh-row-title {
  font-size: var(--sh-f-16);
  font-weight: 600;
  line-height: 1.45;
}

.sh-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s3);
  margin-top: 2px;
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-row-actions {
  display: flex;
  align-items: center;
  gap: var(--sh-s2);
}

.sh-account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sh-s4);
  padding-bottom: var(--sh-s4);
  border-bottom: var(--sh-hair) solid var(--sh-line);
}

.sh-account-head h1 {
  font-size: var(--sh-f-21);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sh-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s2);
  margin-top: var(--sh-s4);
}

/* ---------- 17. 页脚 ---------- */
.sh-footer {
  margin-top: var(--sh-s8);
  padding-block: var(--sh-s7) var(--sh-s5);
  background: var(--sh-surface);
  border-top: var(--sh-hair) solid var(--sh-line);
}

.sh-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: var(--sh-s6);
}

.sh-footer-brand b {
  display: block;
  font-size: var(--sh-f-18);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sh-footer-brand p {
  margin-top: var(--sh-s2);
  max-width: 32ch;
  font-size: var(--sh-f-14);
  color: var(--sh-text-soft);
}

.sh-footer h2 {
  font-size: var(--sh-f-14);
  font-weight: 700;
  color: var(--sh-text-soft);
  margin-bottom: var(--sh-s3);
}

.sh-footer ul {
  display: grid;
  gap: var(--sh-s2);
  font-size: var(--sh-f-14);
  color: var(--sh-text-mute);
}

.sh-footer ul a:hover {
  color: var(--sh-primary);
}

.sh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-s2) var(--sh-s3);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

.sh-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sh-footer-links a:hover {
  color: var(--sh-text);
}

.sh-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sh-s2);
  margin-top: var(--sh-s6);
  padding-top: var(--sh-s4);
  border-top: var(--sh-hair) solid var(--sh-line);
  font-size: var(--sh-f-13);
  color: var(--sh-text-mute);
}

/* ---------- 18. 容器查询：卡片随父容器宽度自适应 ---------- */
@container (max-width: 300px) {
  .sh-card {
    padding: var(--sh-s3);
  }

  .sh-card-media {
    margin: calc(var(--sh-s3) * -1) calc(var(--sh-s3) * -1) var(--sh-s3);
  }

  .sh-card-title {
    font-size: var(--sh-f-16);
  }

  .sh-mono-mark {
    width: 32px;
    height: 32px;
    font-size: var(--sh-f-14);
  }
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1080px) {
  .sh-shell,
  .sh-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s5);
  }

  .sh-rail,
  .sh-aside {
    position: static;
  }

  .sh-rail {
    order: 2;
  }

  .sh-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s5);
  }

}

@media (max-width: 900px) {
  .sh-nav,
  .sh-searchlink {
    display: none;
  }

  .sh-menu {
    display: block;
  }

  .sh-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sh-lead {
    grid-column: span 2;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-lead-media {
    aspect-ratio: 2.4 / 1;
    min-height: 0;
  }

  .sh-auth {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s5);
  }

  .sh-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sh-s5) var(--sh-s4);
  }
}

@media (max-width: 720px) {
  :root {
    --sh-s7: 32px;
    --sh-s8: 40px;
  }

  .sh-searchlink,
  .sh-hide-sm {
    display: none;
  }

  .sh-container {
    padding-inline: var(--sh-s4);
  }

  .sh-topbar {
    padding-block: var(--sh-s4) var(--sh-s3);
  }

  .sh-topbar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s3);
  }

  .sh-note {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s2);
    padding: var(--sh-s4);
  }

  .sh-note-index {
    padding-top: 0;
  }

  .sh-dotrow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sh-s2);
    padding: var(--sh-s4);
  }

  .sh-dotrow-time {
    grid-column: 1 / -1;
    order: 2;
  }

  .sh-facts > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sh-form-card {
    padding: var(--sh-s4);
  }

  .sh-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-prose {
    font-size: 1rem;
  }

  .sh-prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sh-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 窄屏页脚：收起次级链接组，只留主链接与法务信息 */
  .sh-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sh-s4);
  }

  .sh-footer-col--quiet {
    display: none;
  }

  .sh-footer nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }
}

@media (max-width: 480px) {
  .sh-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-lead {
    grid-column: span 1;
  }

  .sh-listhead h1 {
    font-size: var(--sh-f-26);
  }

}

/* ---------- 20. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .sh-lead:hover,
  .sh-mini:hover,
  .sh-card:hover,
  .sh-note:hover,
  .sh-btn:hover {
    transform: none;
  }

  .sh-progress {
    display: none;
  }
}

/* ---------- 21. 打印 ---------- */
@media print {
  .sh-masthead,
  .sh-rail,
  .sh-aside,
  .sh-footer,
  .sh-progress,
  .sh-engage {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
