/* =========================================================
   无忧默认主题 · style.css
   设计：杂志编辑风 / 暖纸色 / 砖红强调色 / 深色模式
   ========================================================= */

/* 移动端点击时不显示系统默认灰色高亮 / 阴影 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f4ee;
  --bg-soft: #f1ece2;
  --surface: #fffdf9;
  --surface-2: #f4efe6;
  --surface-3: #ebe4d7;
  --ink: #24211d;
  --ink-soft: #4a443c;
  --muted: #7c7469;
  --faint: #a49a8c;
  --border: #e4dccd;
  --border-strong: #d3c8b5;
  --accent: #cf4a29;
  --accent-deep: #a6381c;
  --accent-soft: #f7e2d8;
  --on-accent: #ffffff;
  --green: #1f5f4e;
  --green-deep: #163f34;
  --gold: #b98a3e;
  --shadow-sm: 0 2px 6px rgba(60, 45, 30, .05);
  --shadow-md: 0 14px 34px rgba(60, 45, 30, .09);
  --shadow-lg: 0 28px 60px rgba(60, 45, 30, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #141312;
  --bg-soft: #1a1817;
  --surface: #1d1b19;
  --surface-2: #252220;
  --surface-3: #2e2a26;
  --ink: #ece6dc;
  --ink-soft: #cfc7ba;
  --muted: #a79d90;
  --faint: #82796d;
  --border: #322d28;
  --border-strong: #443d35;
  --accent: #f07a55;
  --accent-deep: #ff9c7c;
  --accent-soft: #3a231b;
  --on-accent: #1b1815;
  --green: #6fb8a1;
  --green-deep: #0f2a23;
  --gold: #d8ab63;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(207, 74, 41, .07), transparent 65%),
    radial-gradient(700px 380px at 6% 4%, rgba(31, 95, 78, .055), transparent 62%);
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
input, textarea { -webkit-appearance: none; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-sm { width: 15px; height: 15px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons / chips / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(207, 74, 41, .22); }
.btn-primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: var(--on-accent); }
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--ink-soft);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip:hover { background: var(--accent); color: var(--on-accent); }
.chip-accent { background: var(--accent); color: var(--on-accent); }
.chip-accent:hover { background: var(--accent-deep); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.badge-pin { background: var(--gold); color: var(--on-accent); }

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  color: var(--muted);
  font-weight: 700;
  overflow: hidden;
}
.avatar-xs { width: 22px; height: 22px; font-size: 11px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-fallback { background: linear-gradient(140deg, var(--accent), var(--gold)); color: var(--on-accent); }
.meta-dot { color: var(--faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(207, 74, 41, .25);
}
.brand-mark-sm { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.brand-logo-sm { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 20px; letter-spacing: .01em; }
.brand-text small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--accent); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 214px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s, width .25s;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(207, 74, 41, .1); }
.header-search .icon { width: 16px; height: 16px; }
.header-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.header-search input::placeholder { color: var(--faint); }

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.auth-guest { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.auth-guest .btn { height: 36px; padding: 0 15px; }

.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
}
.user-trigger:hover { border-color: var(--border-strong); }
.user-trigger .icon-chevron { width: 15px; height: 15px; color: var(--muted); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 174px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.user-menu.is-open .user-dropdown { opacity: 1; transform: none; pointer-events: auto; }
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--accent); }
.user-dropdown .js-logout { color: var(--accent); }

.mobile-toggle { display: none; }
.mobile-toggle .icon-close { display: none; }

/* ---------- Notice ---------- */
.site-notice {
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--surface-2) 58%, transparent) 10%,
    var(--surface-2) 30%,
    var(--surface-3) 50%,
    var(--surface-2) 70%,
    color-mix(in srgb, var(--surface-2) 58%, transparent) 90%,
    transparent 100%);
  line-height: 1.55;
}
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(207, 74, 41, .25); flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 20px;
  width: 170px;
  height: 170px;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: .7;
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 18px; height: 1.5px; background: currentColor; display: inline-block; }
.hero h1 {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(54px, 6.4vw, 86px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero-sub {
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  letter-spacing: .01em;
}
.hero-desc { max-width: 470px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.85; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  height: 54px;
  margin-top: 30px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(207, 74, 41, .1); }
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search button {
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .18s;
}
.hero-search button:hover { background: var(--accent); color: var(--on-accent); }
.hero-search--inline { max-width: 560px; margin-top: 26px; }

.hero-stats { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.hero-stats strong { color: var(--ink); font-family: var(--font-serif); font-size: 17px; font-weight: 600; }

.hero-feature { min-width: 0; }
.feature-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(.6deg);
  transition: transform .3s ease, box-shadow .3s;
}
.feature-card:hover { transform: rotate(0) translateY(-4px); }
.feature-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  background: var(--surface-3);
}
.feature-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover .feature-cover img { transform: scale(1.035); }
.feature-cover.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22), transparent 45%),
    linear-gradient(135deg, var(--green), var(--green-deep));
}
.feature-label {
  position: absolute;
  top: 16px;
  left: 16px;
  height: 26px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.feature-body { padding: 24px 28px 26px; }
.feature-body h2 { margin: 10px 0 10px; font-family: var(--font-serif); font-size: clamp(23px, 2.4vw, 30px); line-height: 1.35; font-weight: 600; }
.feature-body h2 a:hover { color: var(--accent); }
.feature-body > p { color: var(--muted); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 13px; font-weight: 600; }
.read-more:hover { gap: 9px; color: var(--accent-deep); }
.feature-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 46px 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.feature-empty-mark { color: var(--accent); font-size: 30px; }
.feature-empty h2 { font-family: var(--font-serif); font-size: 27px; }
.feature-empty p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ---------- Section head / grid ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 46px; padding: 52px 0 72px; }
.content-main { min-width: 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-more { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.section-more:hover { color: var(--accent); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 26px; }
.post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.post-card:hover .post-card__cover img { transform: scale(1.04); }
.post-card__cover.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .2), transparent 40%),
    linear-gradient(140deg, var(--surface-3), var(--bg-soft));
}
.cover-letter {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 700;
  color: var(--accent);
  opacity: .55;
}

/* 无封面时的分类配色 */
.post-card__cover.is-placeholder.cover-cat-tech,
.feature-cover.is-placeholder.cover-cat-tech {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(140deg, #265f4e, #123a30);
}
.cover-cat-tech .cover-letter { color: #f0c49d; opacity: .68; }
.post-card__cover.is-placeholder.cover-cat-life,
.feature-cover.is-placeholder.cover-cat-life {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .34), transparent 46%),
    linear-gradient(140deg, #e9c3a4, #d99a78);
}
.cover-cat-life .cover-letter { color: #8a341e; opacity: .62; }
.cover-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .45;
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 72%);
}
.post-card__cover .badge-pin { position: absolute; top: 12px; left: 12px; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 16px; }
.post-card__meta { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 11.5px; letter-spacing: .04em; }
.post-card__meta .chip { height: 22px; font-size: 10.5px; }
.post-card__title { margin: 10px 0 8px; font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.42; letter-spacing: -.005em; }
.post-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 15px; color: var(--faint); font-size: 12px; }
.author-mini { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12.5px; font-weight: 500; }
.author-mini:hover { color: var(--accent); }
.post-card__stats { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.post-card__stats span { display: inline-flex; align-items: center; gap: 3px; }

.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.12fr 1fr; }
.post-card--featured .post-card__cover { aspect-ratio: auto; min-height: 268px; }
.post-card--featured .post-card__title { font-size: 26px; -webkit-line-clamp: 3; }
.post-card--featured .post-card__body { padding: 26px 30px; }
.post-card--featured .post-card__excerpt { -webkit-line-clamp: 3; font-size: 14px; }
.post-card--compact .post-card__title { font-size: 17px; }
.post-card--compact .post-card__excerpt { display: none; }

/* ---------- List head ---------- */
.list-head { padding: 54px 0 6px; border-bottom: 1px solid var(--border); }
.list-head .eyebrow { margin-bottom: 16px; }
.list-title-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.list-head h1 { font-family: var(--font-serif); font-size: clamp(38px, 4.4vw, 58px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.list-head .hash { color: var(--accent); margin-right: 4px; }
.count-badge { display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.list-desc { max-width: 640px; margin: 12px 0 28px; color: var(--muted); font-size: 14.5px; }
.list-head--page { padding-top: 46px; }
.list-head--page h1 { font-size: clamp(34px, 3.8vw, 48px); }

.archive-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 30px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: all .18s;
}
.filter-chip span { color: var(--faint); font-size: 11px; }
.filter-chip:hover { border-color: var(--border-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-chip.is-active span { color: var(--bg); opacity: .58; }

/* ---------- Author hero ---------- */
.author-hero { display: flex; align-items: center; gap: 30px; padding: 56px 0 46px; border-bottom: 1px solid var(--border); }
.author-avatar-wrap { flex: 0 0 auto; }
.author-avatar { width: 116px; height: 116px; border-radius: 34px; object-fit: cover; box-shadow: var(--shadow-md); }
.author-avatar-fallback { display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), var(--gold)); color: var(--on-accent); font-family: var(--font-serif); font-size: 48px; font-weight: 600; }
.author-info h1 { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1.15; }
.author-handle { color: var(--faint); font-family: var(--font-mono); font-size: 13px; }
.author-bio { max-width: 620px; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.author-meta { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.author-meta strong { color: var(--ink); font-size: 16px; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 96px; align-self: start; }
.widget { margin-bottom: 24px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.widget-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.widget-head h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.widget-line { flex: 1; height: 1px; background: var(--border); }

.widget-about { background: linear-gradient(150deg, var(--green), var(--green-deep)); border-color: transparent; color: #f4efe4; }
.about-head { display: flex; align-items: center; gap: 12px; }
.about-avatar { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; border: 0px solid rgba(255, 255, 255, .3); }
.about-avatar-fallback { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-serif); font-size: 24px; }
.about-head h3 { font-family: var(--font-serif); font-size: 19px; }
.about-sub { color: rgba(244, 239, 228, .62); font-size: 11.5px; letter-spacing: .05em; }
.about-text { margin-top: 15px; color: rgba(244, 239, 228, .76); font-size: 13px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.about-stats strong { display: block; color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.about-stats span { color: rgba(244, 239, 228, .55); font-size: 10.5px; letter-spacing: .08em; }

.hot-list li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hot-index { color: var(--accent); font-family: var(--font-serif); font-size: 15px; font-weight: 700; opacity: .75; }
.hot-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.hot-list a:hover { color: var(--accent); }
.hot-meta { display: block; margin-top: 3px; color: var(--faint); font-size: 11px; }

.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; border-bottom: 1px dashed var(--border); color: var(--ink-soft); font-size: 13.5px; }
.category-list li:last-child a { border-bottom: 0; }
.category-list a:hover { color: var(--accent); }
.category-list .count { min-width: 24px; height: 20px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  transition: all .18s;
}
.tag-pill:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.widget-subscribe { border-style: dashed; background: var(--surface-2); }
.subscribe-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.subscribe-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.widget-subscribe h3 { margin-top: 12px; font-family: var(--font-serif); font-size: 18px; }
.widget-subscribe p { margin: 5px 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 22px 0 6px; color: var(--faint); font-size: 12px; overflow: hidden; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Post layout ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 52px; padding: 20px 0 60px; align-items: start; }
.post-single { min-width: 0; max-width: 860px; }
.post-header { padding: 16px 0 6px; }
.post-header__meta { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.post-header__meta time { letter-spacing: .02em; }
.post-title { margin: 16px 0 14px; font-family: var(--font-serif); font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.22; letter-spacing: -.022em; }
.post-lead { max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.post-byline .author-mini { font-size: 13.5px; }
.post-cover { margin: 30px 0 8px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.post-cover img { width: 100%; max-height: 540px; object-fit: cover; }

/* ---------- Article typography ---------- */
.post-content { padding: 26px 0 8px; color: var(--ink-soft); font-size: 16.5px; line-height: 2; word-break: break-word; }
.post-content > * + * { margin-top: 1.35em; }

/* 长文章折叠：默认最多显示半屏，渐隐后提供“阅读全部”按钮 */
.post-content-shell {
  position: relative;
  max-height: 50vh;
  max-height: 50svh;
  overflow: hidden;
}
.post-content-shell.is-expanded { max-height: none; overflow: visible; }
.post-content-fade {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 42%, transparent 100%);
  transition: opacity .22s ease;
}
.post-content-shell.is-collapsed .post-content-fade { opacity: 1; }
.post-content-toggle {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 12px 34px rgba(38, 30, 24, .16);
  transform: translateX(-50%);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.post-content-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 38px rgba(38, 30, 24, .2);
  transform: translate(-50%, -2px);
}
.post-content-toggle .icon { width: 14px; height: 14px; }
.post-content-shell.is-expanded .post-content-fade,
.post-content-shell.is-expanded .post-content-toggle { display: none; }
.post-content p { margin: 0; }
.post-content h2, .post-content h3, .post-content h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; line-height: 1.4; scroll-margin-top: 100px; }
.post-content h2 { margin-top: 2em; font-size: 28px; letter-spacing: -.01em; }
.post-content h2::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }
.post-content h3 { margin-top: 1.8em; font-size: 22px; }
.post-content h4 { margin-top: 1.6em; font-size: 18px; }
.post-content a { color: var(--accent); border-bottom: 1px solid rgba(207, 74, 41, .35); border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.post-content a:hover { color: var(--accent-deep); border-bottom-color: currentColor; }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content em { font-family: var(--font-serif); }
.post-content blockquote {
  margin: 1.8em 0;
  padding: 16px 0 16px 24px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.9;
  background: linear-gradient(90deg, var(--surface-2), transparent);
}
.post-content ul, .post-content ol { padding-left: 1.5em; margin: 1.2em 0; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin: .45em 0; padding-left: .2em; }
.post-content li::marker { color: var(--accent); }
.post-content code {
  padding: .15em .42em;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: .86em;
}
.post-content pre {
  overflow-x: auto;
  margin: 1.6em 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #1d1b19;
  color: #e9e2d6;
  font-size: 13.5px;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.post-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.post-content img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 12px; margin: 1.4em auto; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.post-content figure { margin: 1.6em 0; }
.post-content figcaption { margin-top: 8px; color: var(--faint); font-size: 12px; text-align: center; }
.post-content hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--border); }
.post-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-content th, .post-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--surface-2); font-weight: 600; }
.post-content iframe { border-radius: 12px; }
.post-content .video-embed { margin: 1.8em 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.post-content .video-embed__ratio { position: relative; aspect-ratio: 16 / 9; }
.post-content .video-embed__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.post-content .video-embed__caption { padding: 8px 12px; background: var(--surface-2); color: var(--faint); font-size: 11.5px; }
.post-content .video-embed__caption a { color: var(--muted); border: 0; }
.post-content .video-embed__caption a:hover { color: var(--accent); }
.post-content [data-w-e-type="video"] { margin: 1.8em 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.post-content [data-w-e-type="video"] iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 0; }
.post-content [data-w-e-type="video"] video { display: block; width: 100%; height: auto; max-height: 70vh; background: #000; object-fit: contain; }
.post-content .video-source { margin: -.8em 0 1.8em; color: var(--faint); font-size: 11.5px; }
.post-content .video-source a { color: var(--muted); border: 0; }
.post-content .video-source a:hover { color: var(--accent); }

.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--border); }
.post-tags__label { margin-right: 4px; color: var(--faint); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.like-btn, .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  transition: all .18s;
}
.like-btn:hover, .action-btn:hover { border-color: var(--accent); color: var(--accent); }
.like-btn.is-liked { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.like-btn.is-liked .icon { fill: currentColor; }
.like-btn em { font-style: normal; font-weight: 700; }
.post-actions__hint { margin-left: auto; color: var(--faint); font-size: 11.5px; }

.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.author-box__avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; }
.author-box__body { flex: 1; min-width: 0; }
.author-box__label { color: var(--faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.author-box__body h3 { margin: 2px 0 3px; font-family: var(--font-serif); font-size: 20px; }
.author-box__body h3 a:hover { color: var(--accent); }
.author-box__body p { color: var(--muted); font-size: 13px; }
.author-box .btn { flex: 0 0 auto; height: 36px; background: var(--surface); }

.post-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.neighbor { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .18s, transform .18s; }
.neighbor:hover { border-color: var(--accent); transform: translateY(-2px); }
.neighbor__label { color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.neighbor strong { font-size: 13.5px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neighbor--next { text-align: right; align-items: flex-end; }

/* ---------- Comments ---------- */
.comments { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--border); }
.comments-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.comments-head h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.comments-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-sans); font-size: 12px; vertical-align: 3px; }
.comments-head p { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-loading, .comment-empty { padding: 26px 0; color: var(--faint); font-size: 13px; text-align: center; }
.comment-item { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.comment-item .avatar { width: 38px; height: 38px; font-size: 15px; flex: 0 0 auto; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment-author { font-size: 13.5px; font-weight: 600; }
.comment-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10.5px; font-weight: 700; line-height: 1; }
.comment-time { color: var(--faint); font-size: 11.5px; }
.comment-body-wrap { margin-top: 6px; }
.comment-body {
  position: relative;
  max-height: 64px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-body-wrap.is-expanded .comment-body { max-height: none; overflow: visible; }
.comment-body-wrap.is-clamped:not(.is-expanded) .comment-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--surface) 82%);
}
.comment-replies .comment-body-wrap.is-clamped:not(.is-expanded) .comment-body::after {
  background: linear-gradient(to bottom, transparent 0%, var(--surface-2) 82%);
}
.comment-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  height: 22px;
  margin: 5px auto 0;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.comment-toggle::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.comment-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.comment-body-wrap.is-expanded .comment-toggle::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.comment-foot { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.comment-action { color: var(--faint); font-size: 11.5px; }
.comment-action:hover { color: var(--accent); }
.comment-replies { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); }
.comment-replies .comment-item { padding: 12px 14px; background: var(--surface-2); }
.comment-replies .comment-item .avatar { width: 30px; height: 30px; font-size: 12px; }
.comment-item.is-collapsed { display: none; }
.comment-replies-more { margin-top: 10px; padding-left: 16px; }
.comment-replies-more .comment-action { font-weight: 600; }
.comments-more { display: flex; justify-content: center; margin-top: 18px; }
.comment-form-wrap { margin-top: 30px; }
.comment-tip { padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 13px; }
.comment-tip a { color: var(--accent); font-weight: 600; }
.comment-form { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.comment-form-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 13px; }
.comment-reply-hint { color: var(--muted); font-size: 12px; }
.comment-reply-hint b { color: var(--accent); }
.link-btn { color: var(--accent); font-size: 12px; text-decoration: underline; }
.comment-form textarea {
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(207, 74, 41, .1); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.char-count { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- Related ---------- */
.related-section { padding: 8px 0 70px; }

/* ---------- Pagination / empty ---------- */
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 38px; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  transition: all .18s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.page-dots { padding: 0 4px; color: var(--faint); }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 70px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-mark { color: var(--accent); font-size: 42px; line-height: 1; opacity: .7; }
.empty-state h3 { margin-top: 14px; font-family: var(--font-serif); font-size: 23px; font-weight: 600; }
.empty-state p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.empty-state .btn { margin-top: 18px; }
.empty-state a:not(.btn) { color: var(--accent); }

/* ---------- Auth ---------- */
.auth-page { padding: 54px 0 80px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  background:
    radial-gradient(520px 300px at 82% 8%, rgba(207, 74, 41, .22), transparent 62%),
    linear-gradient(155deg, var(--green), var(--green-deep));
  color: #f5efe3;
  overflow: hidden;
}
.auth-art .eyebrow { color: #e8a58e; }
.auth-art h2 { margin-top: 20px; font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1.28; letter-spacing: -.02em; }
.auth-art h2 em { color: #f3b79f; font-style: italic; }
.auth-art-text { margin-top: 14px; color: rgba(245, 239, 227, .72); font-size: 13.5px; line-height: 1.85; }
.auth-art blockquote { margin-top: 28px; padding: 14px 0 0 18px; border-left: 2px solid rgba(245, 239, 227, .3); color: rgba(245, 239, 227, .68); font-family: var(--font-serif); font-size: 15px; font-style: italic; line-height: 1.8; }
.auth-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.auth-perks li { display: flex; align-items: baseline; gap: 12px; color: rgba(245, 239, 227, .82); font-size: 13.5px; }
.auth-perks span { color: #e8a58e; font-family: var(--font-mono); font-size: 11px; }
.auth-art-dots { position: absolute; right: -30px; bottom: -30px; width: 190px; height: 190px; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.2px); background-size: 14px 14px; border-radius: 50%; pointer-events: none; }
.auth-card { padding: 46px 44px; background: var(--surface); }
.auth-card-head h1 { font-family: var(--font-serif); font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.auth-card-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.form-field .optional { color: var(--faint); font-weight: 400; font-size: 11px; }
.form-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: var(--bg);
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-field input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(207, 74, 41, .1); }
.form-field input::placeholder { color: var(--faint); }
.form-field input.is-invalid { border-color: #c0392b; }
.captcha-row { display: flex; gap: 9px; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-image { width: 130px; height: 46px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; flex: 0 0 auto; }
.captcha-image img { width: 100%; height: 100%; object-fit: cover; }
.form-error { padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12.5px; line-height: 1.6; }
.form-error--block { margin-top: 20px; }
.auth-form .btn { margin-top: 4px; }
.auth-social-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--faint); font-size: 12px; }
.auth-social-divider::before,
.auth-social-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-soft); font-size: 13px; font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.auth-social-btn:hover { border-color: var(--accent); background: var(--surface); color: var(--ink); }
.auth-social-btn img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; }
.auth-social-btn.is-unconfigured { opacity: .82; }
.auth-card-foot { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.auth-card-foot a:not(.btn) { color: var(--accent); font-weight: 600; }
.auth-back { display: inline-block; margin-top: 12px; color: var(--faint) !important; font-weight: 400 !important; font-size: 12px; }
.auth-closed-note { margin-bottom: 16px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.75; }
.auth-grid > * { min-width: 0; }
/* 邮箱：账号输入 + 后缀下拉 */
.email-combo { display: flex; align-items: stretch; }
.email-combo input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.email-combo input:focus { box-shadow: none; }
.email-combo select {
  flex: 0 0 auto;
  max-width: 46%;
  height: 46px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 4.4L6 8.2l3.8-3.8' fill='none' stroke='%23948d80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  cursor: pointer;
}
.email-combo select:focus { border-color: var(--accent); color: var(--ink); }
.email-combo:focus-within input { border-color: var(--accent); }
.email-combo:focus-within select { border-color: var(--accent); }
.code-row { display: flex; align-items: center; gap: 9px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: .12em; text-transform: uppercase; }
.code-row .btn { margin-top: 0; }
.code-send { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 118px; padding: 0 14px; border-radius: 10px; font-size: 13px; line-height: 1; white-space: nowrap; }
.code-send:disabled { color: var(--faint); }
.field-hint { color: var(--faint); font-size: 11.5px; line-height: 1.6; }
@media (max-width: 640px) {
  #register-form .form-field input,
  #register-form .form-field select,
  #login-form .form-field input { font-size: 13px !important; }
  #register-form .form-field input::placeholder,
  #login-form .form-field input::placeholder { font-size: 13px !important; }
}
@media (max-width: 560px) {
  .email-combo select { max-width: 52%; padding-right: 24px; font-size: 12.5px; }
  .code-send { min-width: 104px; padding: 0 10px; font-size: 12.5px; }
}

/* ---------- 浏览器自动填充：保留输入框原背景 ---------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px rgba(207, 74, 41, .1) !important;
  box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px rgba(207, 74, 41, .1) !important;
}
/* ---------- Error page ---------- */
.error-page { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; min-height: 62vh; padding: 60px 0 80px; }
.error-code { margin-top: 12px; color: var(--accent); font-family: var(--font-serif); font-size: clamp(110px, 16vw, 190px); font-weight: 600; line-height: .9; letter-spacing: -.06em; opacity: .9; }
.error-copy h2 { margin-top: 4px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.error-detail { margin-top: 10px; color: var(--muted); font-size: 14px; }
.error-actions { display: flex; gap: 10px; margin-top: 26px; }
.error-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); overflow: hidden; }
.error-orbit { position: absolute; inset: 10%; border: 1px dashed var(--border-strong); border-radius: 50%; }
.error-glyph { position: relative; font-family: var(--font-serif); font-size: clamp(90px, 12vw, 150px); color: var(--accent); opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: #1b1917; color: #d8d1c4; }
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 34px; padding-top: 46px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-serif); font-size: 20px; color: #f4efe4; }
.footer-brand p { max-width: 330px; margin-top: 6px; color: #8e867a; font-size: 12.5px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-links a { color: #b3aa9c; }
.footer-links a:hover { color: #f3b79f; }
.footer-meta { color: #8e867a; font-size: 12px; text-align: right; }
.footer-meta p + p { margin-top: 4px; }
.footer-tech { color: #665f55; font-size: 11px; }

/* ---------- Toast / progress / lightbox ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #8e2f1c; color: #fff; }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .12s linear; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 5vw;
  background: rgba(12, 11, 9, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .header-search { width: 150px; }
  .hero { gap: 38px; }
  .content-grid, .post-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 34px; }
  .post-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { display: none; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: 12px 10px; border-radius: 9px; font-size: 15px; }
  .header-search { display: none; }
  .mobile-toggle { display: inline-grid; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 44px; }
  .hero-feature { max-width: 640px; }
  .content-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .sidebar .widget { margin-bottom: 0; }
  .post-layout { grid-template-columns: 1fr; }
  .post-single { max-width: none; }
  .sidebar { margin-top: 10px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .header-inner { height: 64px; gap: 12px; }
  .main-nav.is-open { top: 64px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .auth-guest .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .auth-guest { margin-left: 0; }
  .auth-guest .btn-ghost { display: inline-flex; padding: 0 11px; }
  .user-trigger .js-user-name { display: none; }

  .mobile-nav { display: none; }

  .hero { padding: 38px 0 36px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-sub { font-size: 19px; }
  .hero-search { height: 50px; margin-top: 24px; }
  .hero-search button { height: 36px; padding: 0 15px; }
  .feature-body { padding: 18px 20px; }
  .feature-body h2 { font-size: 24px; }
  .feature-card { transform: none; }

  .post-grid, .post-grid--three { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; display: flex; }
  .post-card--featured .post-card__cover { aspect-ratio: 16 / 10; min-height: 0; }
  .post-card--featured .post-card__body { padding: 18px 20px 16px; }
  .post-card--featured .post-card__title { font-size: 21px; }
  .post-grid--three .post-card:last-child { display: flex; }

  .sidebar { grid-template-columns: 1fr; }
  .list-head { padding-top: 36px; }
  .list-head h1 { font-size: 34px; }
  .author-hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 38px 0 32px; }
  .author-avatar { width: 88px; height: 88px; border-radius: 26px; }
  .post-title { font-size: 30px; }
  .post-content { font-size: 15.5px; }
  .post-content-fade { height: 140px; }
  .post-content-toggle { bottom: 16px; height: 38px; padding: 0 17px; }
  .post-content h2 { font-size: 24px; }
  .post-content pre { padding: 16px; font-size: 12.5px; }
  .post-actions__hint { display: none; }
  .author-box { flex-wrap: wrap; }
  .author-box .btn { width: 100%; }
  .post-neighbors { grid-template-columns: 1fr; }

  .auth-page { padding: 26px 0 50px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { padding: 30px 26px; }
  .auth-art h2 { font-size: 28px; }
  .auth-art blockquote, .auth-perks { display: none; }
  .auth-card { padding: 30px 24px 34px; }

  .error-page { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 60px; }
  .error-art { display: none; }
  .error-actions { flex-wrap: wrap; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 460px) {
  .hero-stats { flex-wrap: wrap; gap: 6px; }
  .hero-search { padding-left: 14px; }
  .hero-search input { font-size: 13px; }
  .post-card__foot { flex-wrap: wrap; }
  .post-card__stats { margin-left: 0; width: 100%; padding-top: 6px; }
  .comment-item { padding: 13px; }
  .post-actions .action-btn { display: none; }
  .pagination .page-link { min-width: 34px; height: 34px; padding: 0 9px; }
}

/* =========================================================
   紧凑主题覆盖层（compact）
   1) 头图区收窄为一条信息栏
   2) 文章列表：左封面 + 右标题/摘要，卡片固定 64px 高
   ========================================================= */

/* ---------- 收窄 hero ---------- */
.hero--compact {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 34px 0 26px;
}
.hero--compact::after { top: -6px; opacity: .45; }
.hero--compact h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}
.hero--compact .hero-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.hero--compact .hero-side { min-width: 0; }
.hero--compact .hero-search {
  max-width: 100%;
  height: 44px;
  margin-top: 0;
  padding: 0 6px 0 15px;
}
.hero--compact .hero-search input { font-size: 13.5px; }
.hero--compact .hero-search button {
  height: 30px;
  padding: 0 16px;
  font-size: 12.5px;
}
.hero--compact .hero-stats {
  margin-top: 10px;
  font-size: 12px;
  gap: 8px;
}
.hero--compact .hero-stats strong { font-size: 14px; }

/* ---------- 列表区更紧凑 ---------- */
.content-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 26px 0 60px;
}
.section-head { margin-bottom: 14px; gap: 12px; }
.section-head h2 { font-size: 19px; }
.section-count { color: var(--faint); font-size: 12px; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

/* ---------- 64px 横向卡片 ---------- */
.post-card,
.post-card--row,
.post-card--featured {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  transform: none;
}
.post-card:hover,
.post-card--row:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.post-card--row .post-card__cover,
.post-card--featured .post-card__cover {
  width: 88px;
  height: 48px;
  aspect-ratio: auto;
  border-radius: 8px;
}
.post-card--row .post-card__cover img { border-radius: 8px; }
.post-card--row .cover-letter { font-size: 19px; }
.post-card--row .cover-grid {
  background-size: 12px 12px;
  opacity: .35;
}
.post-card--row .post-card__cover .badge-pin {
  top: 3px;
  left: 3px;
  height: 16px;
  padding: 0 5px;
  font-size: 9px;
  letter-spacing: 0;
}
.post-card--row .post-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
}
.post-card--row .post-card__title {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
}
.post-card--row .post-card__title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}
.post-card--row .post-card__sub {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.4;
}
.post-card--row .post-card__cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}
.post-card--row .post-card__cat:hover { background: var(--accent); color: var(--on-accent); }
.post-card--row .post-card__excerpt {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: unset;
}
.post-card--row .post-card__views {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--faint);
  font-size: 11px;
}
.post-card--row .post-card__views .icon { width: 13px; height: 13px; }

/* ---------- 列表页头部收紧 ---------- */
.list-head { padding: 30px 0 4px; }
.list-head .eyebrow { margin-bottom: 10px; }
.list-head h1 { font-size: clamp(24px, 2.8vw, 34px); }
.list-head--page { padding-top: 26px; }
.list-head--page h1 { font-size: clamp(22px, 2.4vw, 28px); }
.list-desc { margin: 8px 0 16px; font-size: 13.5px; }
.archive-filter { margin: 14px 0 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero--compact { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0 22px; }
  .hero--compact .hero-search { max-width: 520px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 22px 0 48px; }
}

@media (max-width: 760px) {
  .hero--compact { padding: 22px 0 18px; }
  .hero--compact h1 { font-size: 25px; }
  .hero--compact .hero-sub { font-size: 13.5px; }
  .hero--compact .hero-search { height: 42px; }
  .post-grid { gap: 8px; }
  .post-card,
  .post-card--row,
  .post-card--featured {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    height: 64px;
    padding: 7px;
  }
  .post-card--row .post-card__cover,
  .post-card--featured .post-card__cover { width: 76px; height: 50px; }
  .post-card--row .post-card__title { font-size: 13.5px; }
  .post-card--row .post-card__excerpt { font-size: 11.5px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); padding: 18px 0 46px; }
  .section-head h2 { font-size: 17px; }
  .section-count { display: none; }
}

@media (max-width: 420px) {
  .post-card--row .post-card__views { display: none; }
}

/* ---------- 首页友情链接 ---------- */
.friend-links {
  padding: 22px 0 54px;
  border-top: 1px dashed var(--border);
}
.friend-links__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.friend-links__head h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.friend-links__count { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.friend-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.friend-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.friend-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.friend-link__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.friend-link__icon img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.friend-link__letter { color: var(--accent); font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.friend-link__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.friend-link__body strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-link__body small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 760px) {
  .friend-links { padding: 18px 0 42px; }
  .friend-links__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ---------- 滚动条（本模板专属 · 细窄极简） ---------- */

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--faint);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

::-webkit-scrollbar-corner {
  background: transparent;
}
/* Firefox：不支持 ::-webkit-scrollbar 时用标准属性做近似 */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }
}
/* ---------- 页脚备案号（支持 a 标签） ---------- */
.footer-icp a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: color .18s, border-color .18s; }
.footer-icp a:hover { color: var(--accent); border-color: currentColor; }