/* usfuye.com design system */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f1ed;
  --text: #17181c;
  --text-2: #3d4048;
  --muted: #74777f;
  --line: #e7e6e1;
  --brand: #f0561d;
  --brand-ink: #ffffff;
  --brand-soft: #fff0e8;
  --brand-text: #c9420f;
  --shadow: 0 1px 2px rgb(20 20 20 / 4%), 0 6px 20px rgb(20 20 20 / 5%);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --gutter: 16px;
  --header-h: 60px;
  --tabbar-h: 58px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #17191d;
    --surface-2: #1e2025;
    --text: #ececea;
    --text-2: #c9cacd;
    --muted: #92959d;
    --line: #272a30;
    --brand: #ff6a33;
    --brand-soft: #2b1a12;
    --brand-text: #ff8a5c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 6px 11px; border-radius: 8px; font-size: 15px; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); font-weight: 600; }
.header-search { position: relative; width: 220px; flex-shrink: 0; }
.header-search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.header-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-icon { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-2); }

/* section chips (mobile quick nav) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter) 2px; margin: 0 calc(var(--gutter) * -1); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand-text); }
.chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--surface); }

/* ---------- layout blocks ---------- */
main { min-height: 60vh; }
.block { margin-top: 36px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.block-head .more { font-size: 14px; color: var(--muted); white-space: nowrap; }
.block-head .more:hover { color: var(--brand-text); }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand-text); text-transform: uppercase; margin-bottom: 4px; }

.page-head { padding: 28px 0 4px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.page-head h1 small { font-size: .5em; color: var(--muted); font-weight: 600; margin-left: 8px; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 720px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a:hover { color: var(--brand-text); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ---------- home ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.feature-main { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.feature-main:hover { box-shadow: var(--shadow); border-color: transparent; }
.feature-media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-main:hover .feature-media img { transform: scale(1.02); }
.feature-body { padding: 16px 20px 20px; }
.feature-main h3 { margin-top: 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.4; text-wrap: balance; }
.feature-main:hover h3 { color: var(--brand-text); }
.feature-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-text); }
.feature-label b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 12px; }
.feature-side { list-style: none; margin: 0; padding: 4px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-evenly; }
.feature-side li + li { border-top: 1px solid var(--line); }
.feature-item { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.feature-item img { width: 136px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.feature-item h3 { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-item:hover h3 { color: var(--brand-text); }
.feature-side .feature-label b { background: var(--text); }

.topic-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; transition: border-color .15s, transform .15s; }
.topic:hover { border-color: var(--brand); transform: translateY(-2px); }
.topic-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: var(--brand-soft); }
.topic strong { font-size: 14px; }
.topic span:last-child { font-size: 12px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank li { counter-increment: rank; display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li::before { content: counter(rank); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank li:nth-child(-n+3)::before { color: var(--brand); }
.rank a:hover { color: var(--brand-text); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--brand-text); }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card time { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }

.section-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.section-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.section-box .block-head { margin-bottom: 8px; }
.section-box .block-head h2 { font-size: 18px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-list li:first-child a { border-top: 0; }
.mini-list li a:hover span { color: var(--brand-text); }
.mini-list span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list time { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--brand); color: var(--brand-text); }
.pagination .is-active { background: var(--text); color: var(--surface); border-color: var(--text); font-weight: 700; }
.pagination .is-disabled { opacity: .4; }
.pagination .page-status { border: 0; background: none; color: var(--muted); }

/* ---------- article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 48px; justify-content: center; padding-top: 24px; }
.article-head .cat { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.article-head h1 { font-size: clamp(25px, 3.6vw, 36px); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.lead { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: 16px; }
.article-cover { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.toc { margin: 24px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "展开"; font-size: 13px; font-weight: 400; color: var(--muted); }
.toc[open] summary::after { content: "收起"; }
.toc ol { margin: 0; padding: 0 16px 14px 34px; font-size: 14px; color: var(--text-2); }
.toc li { padding: 3px 0; }
.toc a:hover { color: var(--brand-text); }
.toc-side .toc ol { padding-bottom: 6px; }
.toc-side .toc summary { pointer-events: none; }
.toc-side .toc summary::after { content: none; }

.prose { margin-top: 28px; font-size: 17px; line-height: 1.9; color: var(--text-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 23px; font-weight: 800; color: var(--text); padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4; }
.prose h3 { margin-top: 1.6em; font-size: 19px; font-weight: 700; color: var(--text); }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 700; color: var(--text); }
.prose a { color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.prose img { border-radius: var(--radius-sm); margin-left: auto; margin-right: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; background: var(--surface-2); padding: 14px; border-radius: var(--radius-sm); font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 96px; }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--text); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.editor-note { margin-top: 36px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.75; color: var(--muted); }
.editor-note strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.editor-note p + p { margin-top: 6px; }
.editor-note a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag-row a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.tag-row a::before { content: "#"; color: var(--muted); margin-right: 2px; }
.tag-row a:hover { border-color: var(--brand); color: var(--brand-text); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.post-nav a { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; font-weight: 600; line-height: 1.5; }
.post-nav a:hover { border-color: var(--brand); }
.post-nav small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; grid-column: 2; }
.article-aside { padding-top: 4px; }
.article-aside .sidebar { top: calc(var(--header-h) + 24px); }

/* ---------- author & newsletter ---------- */
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 14px; margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.author-box p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.author-box .author-box-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.author-box-more { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--brand-text); }
.article-meta a { color: var(--text-2); font-weight: 600; }
.article-meta a:hover { color: var(--brand-text); }
.author-hero { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; padding: 32px 0 8px; }
.author-hero img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.author-hero h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.author-hero p { margin-top: 6px; color: var(--muted); }
.author-links { display: flex; flex-wrap: wrap; gap: 12px; }
.author-links a { color: var(--brand-text); font-size: 14px; }

.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; margin: 36px 0; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); }
.newsletter h2 { font-size: 20px; font-weight: 800; }
.newsletter-copy p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--brand); }
.newsletter-form .btn { height: 46px; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { flex-basis: 100%; font-size: 13px; color: var(--muted); min-height: 1em; }
.newsletter-msg[data-ok="true"] { color: #15803d; }
.newsletter-msg[data-ok="false"] { color: #c2410c; }
.article-layout .newsletter { grid-template-columns: 1fr; }

/* ---------- tags / search ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.tag-cloud a span { font-size: 12px; color: var(--muted); }
.tag-cloud a:hover { border-color: var(--brand); color: var(--brand-text); }
.search-form { display: flex; gap: 8px; margin-top: 16px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.search-form input:focus { outline: none; border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---------- ads ---------- */
.adsterra-slot { margin: 36px 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.adsterra-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.adsterra-link { display: inline-flex; margin-top: 10px; font-size: 13px; color: var(--muted); }
.adsterra-link:hover { color: var(--brand-text); }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; padding: 40px 0 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 10px; }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--brand-text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- mobile tab bar & sheet ---------- */
.tabbar { display: none; }
.sheet {
  margin: auto 0 0; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 80vh;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--text); box-shadow: 0 -10px 40px rgb(0 0 0 / 20%);
}
.sheet::backdrop { background: rgb(0 0 0 / 40%); }
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { font-size: 18px; font-weight: 800; }
.sheet-close { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sheet-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 15px; }
.sheet-grid a span:first-child { font-size: 22px; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header-search { width: 180px; }
  .split, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .article-aside { display: none; }
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1081px) {
  .toc-inline { display: none; }
}

@media (min-width: 861px) {
  .chips:not(.always) { display: none; }
  .chips.always { padding-left: 0; padding-right: 0; margin: 0; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  :root { --header-h: 54px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .main-nav, .header-search { display: none; }
  .header-inner { justify-content: space-between; }
  .header-icon { display: inline-flex; }
  .featured { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .feature-body { padding: 12px 14px 16px; }
  .feature-side { padding: 0 14px; }
  .feature-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .feature-item img { width: 112px; }
  .topic-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .topic { padding: 12px 4px; }
  .topic span:last-child { display: none; }
  .topic-icon { width: 42px; height: 42px; font-size: 22px; }
  .section-rows, .cards.two { grid-template-columns: 1fr; }
  .block { margin-top: 28px; }
  .block-head h2 { font-size: 19px; }

  /* list cards become compact rows */
  .cards { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
  .card { flex-direction: row-reverse; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .card:last-child { border-bottom: 0; }
  .card:hover { transform: none; box-shadow: none; }
  .card-media { flex: 0 0 120px; width: 120px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); align-self: flex-start; margin-top: 2px; }
  .card-body { padding: 0; gap: 4px; }
  .card h3 { font-size: 16px; line-height: 1.45; }
  .card-desc { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; background: none; padding: 0; cursor: pointer; font-size: 11px; color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar [aria-current="page"] { color: var(--brand); font-weight: 700; }
  .site-footer { margin-top: 40px; padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .prose { font-size: 16.5px; line-height: 1.85; }
  .prose h2 { font-size: 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 18px; }
  .author-hero { grid-template-columns: 72px 1fr; gap: 16px; padding-top: 20px; }
  .author-hero img { width: 72px; height: 72px; }
  .post-nav .next { grid-column: auto; }
}

@media (max-width: 380px) {
  .card-media { flex-basis: 104px; width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
