/* ==========================================================================
   拾光集 · Shiguang Notes
   A personal blog theme — warm paper, ink & rust.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper: #f7f2e8;
  --paper-2: #fdfaf3;
  --paper-3: #efe7d6;
  --ink: #211d18;
  --ink-2: #5b534a;
  --ink-3: #7c7266;
  --line: rgba(33, 29, 24, .13);
  --line-strong: rgba(33, 29, 24, .24);

  --rust: #b5482c;
  --rust-ink: #973a21;
  --rust-soft: rgba(181, 72, 44, .09);
  --ochre: #c8943f;
  --sage: #6e7f63;
  --teal: #2f5d59;

  --shadow-sm: 0 1px 2px rgba(45, 35, 25, .05), 0 8px 24px -16px rgba(45, 35, 25, .35);
  --shadow-md: 0 2px 4px rgba(45, 35, 25, .04), 0 28px 60px -34px rgba(45, 35, 25, .55);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1160px;
  --gutter: clamp(20px, 4.4vw, 52px);
}

[data-theme="dark"] {
  color-scheme: dark;

  --paper: #16130f;
  --paper-2: #1d1913;
  --paper-3: #242018;
  --ink: #f1e9db;
  --ink-2: #bdb1a0;
  --ink-3: #8c8071;
  --line: rgba(241, 233, 219, .13);
  --line-strong: rgba(241, 233, 219, .26);

  --rust: #e0714f;
  --rust-ink: #ef8a68;
  --rust-soft: rgba(224, 113, 79, .14);
  --ochre: #d6a75c;
  --sage: #94a587;
  --teal: #7fb0a9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px -16px rgba(0, 0, 0, .9);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 32px 70px -34px rgba(0, 0, 0, .95);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--rust);
  color: #fff8ee;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: clamp(50px, 6.5vw, 84px);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-3);
  vertical-align: middle;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.btn .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--rust);
  color: #fff8ee;
  box-shadow: 0 10px 26px -14px rgba(181, 72, 44, .8);
}
.btn-primary:hover {
  background: var(--rust-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(181, 72, 44, .85);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink-3);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 14px 4px;
  transition: color .25s var(--ease);
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--rust); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper-2);
}
.icon-btn .icon { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(40, 30, 20, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.seal {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: var(--rust);
  color: #fff8ee;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .22), 0 6px 14px -8px rgba(151, 58, 33, .9);
  transition: transform .4s var(--ease);
}
.brand:hover .seal { transform: rotate(2deg) scale(1.04); }

.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn { display: none; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 89;
  padding: 12px var(--gutter) 26px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  /* 打开时 visibility 立即生效（否则元素无法立刻获得焦点），关闭时延迟到淡出结束 */
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
}
.mobile-nav a::after {
  content: "→";
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-3);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5.5vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .8fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--rust);
}

.hero-title {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .015em;
}
.hero-title .hl {
  color: var(--rust);
  background-image: linear-gradient(transparent 64%, var(--rust-soft) 64%, var(--rust-soft) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-inline: .04em;
}
.hero-title .period { color: var(--rust); }

.hero-lead {
  margin-top: 26px;
  max-width: 31em;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 2;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.hero-meta strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 426px;
}
.hero-figure {
  position: relative;
  aspect-ratio: 720 / 860;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--paper-3);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .25);
  border-radius: inherit;
  pointer-events: none;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius-lg) + 6px);
  z-index: -1;
}

.hero-tag {
  position: absolute;
  left: -26px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px 12px 14px;
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2.5deg);
  animation: float 7s ease-in-out infinite alternate;
}
.hero-tag-label {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff8ee;
  font-size: 11px;
  letter-spacing: .06em;
}
.hero-tag-text {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  white-space: nowrap;
}

@keyframes float {
  from { transform: rotate(-2.5deg) translateY(0); }
  to { transform: rotate(-2.5deg) translateY(-8px); }
}

.hero-caption {
  position: absolute;
  top: 26px;
  right: -14px;
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: .32em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  margin-bottom: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line-strong);
}
.section-index {
  display: block;
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rust);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
}
.section-note {
  padding-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .05em;
  text-align: right;
  flex: none;
}

/* ---------- Article toolbar ---------- */
.articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(26px, 3.4vw, 38px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
  transition: color .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper-2);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 210px;
}
.search .icon {
  position: absolute;
  left: 2px;
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 9px 4px 9px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  letter-spacing: .03em;
  outline: none;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-bottom-color: var(--rust); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Post grid & cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card[hidden] { display: none; }

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
.card:hover .card-cover img { transform: scale(1.045); }

.card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-2) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .2);
}
.card-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.card-tag { color: var(--rust); font-weight: 500; }
.card-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 23px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .015em;
}
.card-title a {
  background-image: linear-gradient(var(--rust), var(--rust));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.card:hover .card-title a,
.card-title a:focus-visible {
  color: var(--rust);
  background-size: 100% 1px;
}
.card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
  transition: color .3s var(--ease);
}
.card-more .icon { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.card:hover .card-more { color: var(--rust); }
.card:hover .card-more .icon { transform: translateX(4px); }

.empty-state {
  padding: 60px 0 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-3);
}

/* ---------- Notes band ---------- */
.notes-band {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-3) 62%, transparent);
  padding-block: clamp(48px, 6.5vw, 82px);
}
.section-head--band { border-top: 0; padding-top: 0; }

.note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.note {
  padding: 6px clamp(18px, 2.6vw, 36px) 6px 0;
  border-right: 1px solid var(--line);
}
.note + .note { padding-left: clamp(18px, 2.6vw, 36px); }
.note:last-child { border-right: 0; padding-right: 0; }
.note-mark {
  display: block;
  height: 26px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: .7;
  color: var(--rust);
}
.note p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--ink);
}
.note time {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}
.about-media {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
}
.about-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--paper-3);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .3);
}
.about-media::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-badge {
  position: absolute;
  right: -14px;
  bottom: 6px;
  padding: 8px 15px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transform: rotate(-5deg);
}

.about-copy .section-title { margin-bottom: 22px; }
.about-copy > p {
  max-width: 35em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}
.about-copy > p + p { margin-top: 14px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.facts > div { display: flex; flex-direction: column; gap: 3px; }
.facts dt {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.facts a { border-bottom: 1px solid var(--line-strong); transition: color .25s, border-color .25s; }
.facts a:hover { color: var(--rust); border-color: var(--rust); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-2);
  transition: color .25s, border-color .25s, background-color .25s, transform .25s;
}
.socials a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper-2);
  transform: translateY(-2px);
}
.socials .icon { width: 14px; height: 14px; }

/* ---------- Subscribe ---------- */
.subscribe {
  padding-block: clamp(20px, 3vw, 34px) clamp(60px, 8vw, 96px);
}
.subscribe-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 4.6vw, 62px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.subscribe-inner::after {
  content: "拾";
  position: absolute;
  right: -18px;
  bottom: -58px;
  font-family: var(--serif);
  font-size: 260px;
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  opacity: .045;
  pointer-events: none;
}
.subscribe .section-index { color: var(--ochre); }
.subscribe-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
}
.subscribe-copy p {
  margin-top: 16px;
  max-width: 24em;
  font-size: 13.5px;
  line-height: 1.9;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}
.subscribe-form { position: relative; z-index: 1; }
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  transition: border-color .3s var(--ease);
}
.field:focus-within { border-bottom-color: var(--ochre); }
.field input {
  flex: 1;
  min-width: 0;
  padding: 12px 2px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: .02em;
  outline: none;
}
.field input::placeholder { color: color-mix(in srgb, var(--paper) 46%, transparent); }
.subscribe .btn-primary {
  background: var(--ochre);
  color: #211d18;
  box-shadow: none;
}
.subscribe .btn-primary:hover {
  background: #dbaa58;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .7);
}
.form-hint {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  min-height: 1.6em;
}
.form-hint.is-success { color: var(--ochre); }
.form-hint.is-error { color: #f0a48c; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vw, 68px);
  background: color-mix(in srgb, var(--paper-3) 40%, transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .9fr);
  gap: 36px;
  padding-bottom: 52px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p {
  max-width: 20em;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-3);
}
.footer-title {
  margin-bottom: 16px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a,
.footer-contact a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .25s;
  width: fit-content;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--rust); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { font-size: 12.5px; line-height: 1.9; color: var(--ink-3); max-width: 22em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, color .25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover { color: var(--rust); }
.back-to-top .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Article page
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rust), var(--ochre));
  transition: width .12s linear;
}

.post-main { padding-top: clamp(20px, 3vw, 34px); }

.post-head {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
  transition: color .25s;
}
.back-link .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.back-link:hover { color: var(--rust); }
.back-link:hover .icon { transform: translateX(-4px); }

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.post-kicker .card-tag {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--rust) 32%, transparent);
  border-radius: 999px;
  background: var(--rust-soft);
}

.post-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .02em;
}
.post-lead {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2;
  color: var(--ink-2);
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.post-byline img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.post-byline strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.post-byline div > span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.post-byline .dot { margin-inline: 2px; }

.post-cover {
  max-width: 1040px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding-inline: var(--gutter);
}
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 62%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.post-cover figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-align: center;
}

.post-body {
  position: relative;
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin: clamp(40px, 6vw, 72px) auto 0;
}
.post-body-inner {
  width: 100%;
}

.toc { display: none; }

.prose {
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.55vw, 18.5px);
  line-height: 2.02;
  letter-spacing: .012em;
}
.prose > p { margin-bottom: 1.45em; }
.prose > p:first-child { color: var(--ink); }
.prose h2 {
  margin: 2.3em 0 1em;
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
}
.prose h2::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--rust);
  border-radius: 2px;
}
.prose h3 {
  margin: 1.9em 0 .7em;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--rust) 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}
.prose a:hover { color: var(--rust); text-decoration-color: var(--rust); }
.prose strong { font-weight: 700; }
.prose em { font-style: normal; color: var(--rust); }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--rust); }
.prose blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 4px 0 4px 30px;
  border-left: 2px solid var(--rust);
  font-size: 1.08em;
  line-height: 1.95;
  color: var(--ink-2);
}
.prose blockquote p { margin: 0; }
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.prose figure { margin: 2.4em 0; }
.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.prose figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: .82em;
}
.prose pre {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
}
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose .aside-note {
  margin: 2em 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--paper-2) 72%, transparent);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.prose .aside-note strong { color: var(--ink); }

.post-foot {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin: clamp(48px, 6vw, 74px) auto 0;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.post-tags .label {
  margin-right: 4px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tag-pill {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: color .25s, border-color .25s, background-color .25s;
}
.tag-pill:hover { color: var(--rust); border-color: var(--rust); background: var(--rust-soft); }

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .25s, border-color .25s, background-color .25s;
}
.copy-link:hover { color: var(--rust); border-color: var(--rust); }
.copy-link .icon { width: 14px; height: 14px; }

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.author-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: none;
}
.author-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .06em;
}
.author-card p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-3);
}
.author-card .author-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--rust);
  border-bottom: 1px solid color-mix(in srgb, var(--rust) 40%, transparent);
}

.post-pager {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pager-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pager-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.pager-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pager-card strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}
.pager-card--next { text-align: right; }
.post-pager--single {
  grid-template-columns: minmax(0, 1fr);
}
.post-pager--single .pager-card--next { text-align: left; }

.post-end {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin: 56px auto 0;
}
.post-end-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.post-end-rule::before,
.post-end-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* TOC */
.toc-title {
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1px;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .25s, border-color .25s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active {
  color: var(--rust);
  border-left-color: var(--rust);
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.post-grid .card.reveal:nth-child(2) { transition-delay: .07s; }
.post-grid .card.reveal:nth-child(3) { transition-delay: .14s; }
.post-grid .card.reveal:nth-child(4) { transition-delay: .07s; }
.post-grid .card.reveal:nth-child(5) { transition-delay: .14s; }
.post-grid .card.reveal:nth-child(6) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1340px) {
  .toc {
    display: block;
    float: right;
    width: 190px;
    margin-right: -254px;
    padding-top: 4px;
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  .hero-art { max-width: 360px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav { display: block; }
  .header-inner { height: 72px; }
  .mobile-nav { top: 72px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .hero-art {
    justify-self: center;
    max-width: 400px;
    order: 2;
  }
  .hero-art::before { display: none; }
  .hero-caption { display: none; }
  .hero-tag { left: 14px; bottom: 18px; }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .about-media { width: min(74%, 300px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .subscribe-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .note-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .note {
    padding: 0 0 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .note + .note { padding-left: 0; }
  .note:last-child { border-bottom: 0; padding-bottom: 0; }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .posts { padding-block: 44px; }

  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .card-cover { aspect-ratio: 16 / 10; }

  .articles-toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
  .chips { gap: 7px; }
  .chip { padding: 8px 14px; font-size: 12px; }
  .search { min-width: 0; margin-top: 4px; }

  .hero { padding-top: 26px; }
  .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { margin-top: 28px; }
  .hero-meta { margin-top: 30px; gap: 8px 12px; }
  .hero-art { max-width: 340px; }
  .hero-tag { padding: 9px 14px 9px 10px; }
  .hero-tag-text { font-size: 11.5px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-note { text-align: left; padding-bottom: 0; }

  .about-media { width: min(78%, 260px); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .subscribe-inner { padding: 30px 24px 32px; border-radius: var(--radius); }
  .field { flex-wrap: wrap; border-bottom: 0; padding-bottom: 0; gap: 12px; }
  .field input {
    width: 100%;
    flex: none;
    border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
    padding-bottom: 14px;
  }
  .field .btn { width: 100%; }
  .form-hint { margin-top: 12px; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-bottom { flex-direction: column; }

  .post-title { margin-top: 16px; }
  .post-kicker { margin-top: 24px; }
  .post-cover { margin-top: 30px; }
  .post-cover img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
  .post-byline { flex-wrap: wrap; }
  .prose { font-size: 16.5px; line-height: 1.98; }
  .post-pager { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
  .pager-card--next { text-align: left; }
  .author-card { padding: 20px; gap: 14px; }
  .post-end { margin-top: 44px; }

  .back-to-top { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .hero-tag { display: none; }
  .footer-inner { gap: 26px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .back-to-top, .reading-progress, .post-pager,
  .post-actions, .subscribe, .site-footer, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .post-body { display: block; max-width: 100%; }
  .prose { font-size: 11pt; line-height: 1.8; }
  .post-cover img { border: 0; }
}

/* ---------- 搜索清空按钮 & 结果状态 ---------- */
.search input { padding-right: 30px; }

.search .search-clear {
  position: absolute;
  right: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-2);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.search .search-clear:hover {
  background: color-mix(in srgb, var(--rust) 16%, transparent);
  color: var(--rust);
}
.search .search-clear[hidden] { display: none; }
.search .search-clear .icon {
  position: static;
  width: 12px;
  height: 12px;
  color: inherit;
}
.search .search-clear:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.filter-status {
  margin: 16px 0 0;
  min-height: 1.3em;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.filter-status strong { color: var(--ink-2); font-weight: 600; }

/* 移动端菜单展开时锁定背景滚动 */
body.is-nav-open { overflow: hidden; }

/* ==========================================================================
   首页搜索区 / 筛选工具条（2026 改版新增）
   ========================================================================== */

.search-hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(30px, 4.5vw, 56px);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--ochre) 10%, transparent), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
[data-theme="dark"] .search-hero {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--ochre) 12%, transparent), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.search-hero-inner { max-width: 860px; margin: 0 auto; }

.search-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
}
.search-sub {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--ink-2);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 8px 10px 8px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-box:focus-within {
  border-color: var(--rust);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 12%, transparent), var(--shadow-md);
}
.search-box .search-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.search-clear:hover { background: color-mix(in srgb, var(--rust) 16%, transparent); color: var(--rust); }
.search-clear[hidden] { display: none; }
.search-clear .icon { width: 13px; height: 13px; }
.search-submit { flex: none; }

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hot-label { margin-right: 2px; }
.hot-chip {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.hot-chip:hover,
.hot-chip:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
  background: var(--rust-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-stats b {
  margin-right: 3px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.filter-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.select-field select {
  padding: 8px 32px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237c7266' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.select-field select:hover,
.select-field select:focus-visible {
  border-color: var(--rust);
  color: var(--ink);
  outline: none;
}
.btn-reset { font-size: 13px; padding: 7px 14px; }

.result-count { font-size: 13px; color: var(--ink-3); }
.chip-count { margin-left: 4px; font-size: 11px; color: var(--ink-3); }

.muted { color: var(--ink-3); }
.noscript-note { margin-top: 16px; font-size: 13px; }
.section-head--compact { margin-bottom: 16px; }

.picks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.about-subscribe {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.about-subscribe .subscribe-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
}
.subscribe-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .picks-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .search-box { padding: 6px 8px 6px 14px; gap: 8px; }
  .search-box input { font-size: 15px; padding: 9px 2px; }
  .search-submit { padding: 9px 14px; font-size: 14px; }
  .hero-stats { gap: 6px 12px; font-size: 12.5px; }
  .filter-selects { gap: 6px; }
  .select-field select { font-size: 12.5px; padding: 7px 28px 7px 11px; }
}

/* 窄屏（<=380px）页头压缩，避免横向溢出 */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .seal { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .header-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; }
}
