/* ==========================================================================
   余烬 Ember — 前台样式
   设计基于 block.rfxdtgtlg.cc（Typecho / Mirages，深色杂志式单列）
   ========================================================================== */

:root {
  --bg-canvas: #2c2a2a;
  --bg-sunken: #191919;
  --bg-elevated: #343232;
  --bg-hero: #1e1e1f;
  --bg-input: #2a2929;
  --bg-navbar: rgba(44, 42, 42, 0.72);

  --text-strong: #ffffff;
  --text-primary: #f0f0f0;
  --text-body: #bcbcbc;
  --text-soft: #d2cfcf;
  --text-muted: #999999;
  --text-faint: #7f7c7c;

  --accent: #1abc9c;
  --accent-soft: rgba(26, 188, 156, 0.12);
  --accent-line: rgba(26, 188, 156, 0.42);
  --danger: #f2777a;
  --success: #26cb7c;
  --warning: #f99157;

  --border: #403e3e;
  --border-strong: #4a4747;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-pill: 100rem;

  --shadow-nav: 0 5px 5px -5px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 22px 43px rgba(0, 0, 0, 0.28);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.4);

  --font-sans: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei",
    "WenQuanYi Micro Hei", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: Consolas, Menlo, Monaco, "Lucida Console", "Courier New", monospace;
  --font-serif: "Noto Serif CJK SC", "Source Han Serif SC", "SongTi SC", Georgia, serif;

  --container: 710px;
  --gutter: 24px;
  --nav-height: 64px;

  --dur: 0.3s;
  --ease: ease;
}

/* ---------- Base ---------- */

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

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

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

img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
::selection { background: rgba(26, 188, 156, 0.28); color: #fff; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.muted-text { color: var(--text-muted); font-size: 14px; }
.nowrap { white-space: nowrap; }
.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: -60px; left: 16px; z-index: 300;
  background: var(--accent); color: #10201c; padding: 10px 16px; border-radius: var(--radius-xs);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Brand & logo ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); }
.brand-mark { color: var(--accent); flex: none; }
.brand-text {
  font-size: 17px; font-weight: 600; letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 8px; line-height: 1;
}
.brand-text em {
  font-family: var(--font-mono); font-style: normal; font-size: 9px;
  letter-spacing: 0.2em; color: var(--text-muted); font-weight: 400;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--bg-navbar);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-nav);
}
.navbar-inner {
  max-width: 1180px; margin: 0 auto; height: var(--nav-height);
  padding: 0 28px; display: flex; align-items: center; gap: 32px;
}
.navbar-brand { flex: none; }
.navbar-links { display: flex; align-items: center; gap: 26px; min-width: 0; }
.navbar-links a {
  position: relative; font-size: 14px; color: #cfcccc; padding: 6px 0;
  transition: color 0.2s linear; white-space: nowrap;
}
.navbar-links a:hover { color: var(--text-strong); }
.navbar-links a.is-active { color: var(--text-strong); }
.navbar-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.navbar-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; position: relative; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; background: transparent; color: #d5d2d2;
  border-radius: var(--radius-xs); transition: background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.icon-btn--sm { width: 28px; height: 28px; }
.icon-btn--danger:hover { color: var(--danger); background: rgba(242, 119, 122, 0.1); }

.nav-search {
  position: absolute; right: 0; top: calc(100% + 10px);
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 8px 6px 14px;
  box-shadow: var(--shadow-popover); width: 300px;
}
.nav-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-size: 14px; color: var(--text-primary); min-width: 0;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-submit {
  border: 0; background: transparent; color: var(--text-muted);
  display: inline-flex; padding: 4px;
}
.nav-search-submit:hover { color: var(--accent); }

.nav-login { font-size: 14px; color: #d5d2d2; padding: 6px 2px; }
.nav-login:hover { color: #fff; }
.nav-register { margin-left: 2px; }

.nav-user { position: relative; }
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 9px; background: transparent;
  border: 0; padding: 4px 6px 4px 4px; border-radius: var(--radius-pill);
  color: #e6e3e3; transition: background 0.2s ease;
}
.nav-user-btn:hover { background: rgba(255, 255, 255, 0.06); }
.nav-user-name { font-size: 13.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-popover);
  padding: 8px; z-index: 120;
}
.nav-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 12px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 6px;
}
.nav-menu-name { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.nav-menu a, .nav-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; background: transparent; border-radius: var(--radius-xs);
  font-size: 13.5px; color: #d5d2d2; text-align: left;
}
.nav-menu a:hover, .nav-menu button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-menu form { margin-top: 2px; border-top: 1px solid var(--border-subtle); padding-top: 6px; }

.navbar-burger { display: none; }

/* ---------- Avatars & badges ---------- */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none; font-weight: 600; color: #fff;
  background: hsl(var(--hue, 160), 18%, 32%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: 0.02em;
}
.avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.avatar--md { width: 38px; height: 38px; font-size: 14px; }
.avatar--lg { width: 50px; height: 50px; font-size: 18px; }
.avatar--xl { width: 72px; height: 72px; font-size: 26px; }

.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  font-size: 10.5px; line-height: 1.6; border-radius: 2px; letter-spacing: 0.04em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge--muted { color: var(--text-muted); border-color: var(--border); }
.badge--ok { color: #6fe3af; border-color: rgba(38, 203, 124, 0.35); background: rgba(38, 203, 124, 0.08); }
.badge--danger { color: var(--danger); border-color: rgba(242, 119, 122, 0.35); background: rgba(242, 119, 122, 0.08); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; font-size: 13.5px; font-weight: 500;
  line-height: 1.4; transition: background var(--dur) ease, color var(--dur) ease,
  border-color var(--dur) ease, transform 0.15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #12211d; }
.btn--primary:hover { background: #24ceac; border-color: #24ceac; color: #0d1b18; }
.btn--outline { border-color: rgba(255, 255, 255, 0.28); color: var(--text-primary); background: transparent; }
.btn--outline:hover { background: #f0f0f0; border-color: #f0f0f0; color: #2c2a2a; }
.btn--ghost { color: var(--text-muted); background: transparent; border-color: transparent; padding-left: 14px; padding-right: 14px; }
.btn--ghost:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.05); }
.btn--sm { padding: 7px 16px; font-size: 12.5px; }
.btn--tiny { padding: 4px 10px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn--danger-ghost { border-color: rgba(242, 119, 122, 0.32); color: var(--danger); background: transparent; }
.btn--danger-ghost:hover { background: rgba(242, 119, 122, 0.1); border-color: var(--danger); }

/* ---------- Flash ---------- */

.flash-stack {
  position: fixed; top: calc(var(--nav-height) + 14px); right: 22px; z-index: 250;
  display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px));
}
.flash {
  display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
  background: #3a3737; border: 1px solid var(--border); border-left: 3px solid var(--text-muted);
  padding: 12px 14px; font-size: 13px; color: var(--text-primary);
  border-radius: var(--radius-xs); box-shadow: var(--shadow-popover);
  animation: flash-in 0.25s ease;
}
.flash--success { border-left-color: var(--success); }
.flash--error { border-left-color: var(--danger); }
.flash--info { border-left-color: var(--accent); }
.flash-close {
  border: 0; background: transparent; color: var(--text-muted); font-size: 17px;
  line-height: 1; padding: 0 2px; margin-top: -2px;
}
.flash-close:hover { color: #fff; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */

.footer { margin-top: 96px; border-top: 1px solid var(--border); background: var(--bg-canvas); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 26px var(--gutter) 34px;
  font-family: var(--font-mono); font-size: 11.5px; color: #8f8b8b;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.footer-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.footer-brand { color: #d6d3d3; letter-spacing: 0.06em; }
.footer-brand em { font-style: normal; color: var(--text-faint); font-size: 9px; letter-spacing: 0.16em; margin-left: 4px; }
.footer-sep { color: #5d5a5a; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.footer a { color: #aaa6a6; border-bottom: 1px dashed #555; }
.footer a:hover { color: #fff; border-bottom-color: transparent; }

/* ---------- Home hero ---------- */

.site-main { padding-top: calc(var(--nav-height) + 30px); }
.site-main--home { padding-top: 0; }

.hero {
  position: relative; width: 100%; min-height: 400px; height: clamp(420px, 58vh, 570px);
  background: var(--bg-hero); overflow: hidden;
}
.hero-link { position: absolute; inset: 0; display: block; }
.hero-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 6s ease;
}
.hero:hover .hero-media { transform: scale(1.025); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 15, 15, 0.78) 0%, rgba(16, 15, 15, 0.28) 32%, rgba(16, 15, 15, 0.86) 100%),
    linear-gradient(90deg, rgba(16, 15, 15, 0.55), rgba(16, 15, 15, 0.12) 62%, rgba(16, 15, 15, 0.32));
}
.hero--plain .hero-shade {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(26, 188, 156, 0.13), transparent 55%),
    linear-gradient(180deg, #232121, #1b1a1a);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 100%;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero-content {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--container); padding: 0 var(--gutter) 58px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.hero-content--empty { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto; padding-top: 190px; padding-bottom: 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--accent); }
.eyebrow-en { color: rgba(255, 255, 255, 0.5); margin-left: 2px; }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 300; line-height: 1.28;
  color: #fff; letter-spacing: 0.01em; max-width: 640px;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}
.hero-summary {
  font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.78);
  max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.6);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 13px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px; transition: gap 0.2s ease, border-color 0.2s ease;
}
.hero-link:hover .hero-cta { gap: 13px; border-color: var(--accent); color: var(--accent); }
.meta-sep { color: #6f6b6b; }

/* ---------- Home feed ---------- */

.home-body { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 10px; }
.feed-head { padding: 52px 0 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title {
  font-size: 22px; font-weight: 400; color: var(--text-primary); letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline; gap: 12px;
}
.section-en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--text-faint); font-weight: 400; }
.section-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.feed-desc { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; padding-bottom: 4px; }
.chip {
  position: relative; font-size: 13.5px; color: #a8a4a4; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease;
}
.chip:hover { color: #fff; }
.chip.is-active { color: #fff; }
.chip.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
}
.chip-count { font-family: var(--font-mono); font-size: 9.5px; color: #6f6b6b; }
.chip--clear { color: var(--danger); font-size: 12px; }

.post-list { display: flex; flex-direction: column; gap: 28px; }

.post-card {
  position: relative; display: block; height: 248px; border-radius: var(--radius-md);
  overflow: hidden; background-color: #262424; background-size: cover; background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  isolation: isolate;
}
.post-card:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow-card-hover); }
.post-card-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.64));
  transition: background var(--dur) var(--ease);
}
.post-card:hover .post-card-mask { background: linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.72)); }
.post-card-body {
  position: relative; z-index: 1; height: 100%; padding: 32px 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px;
}
.post-card-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72); text-transform: uppercase;
}
.post-card-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.post-card-index { color: rgba(255, 255, 255, 0.38); margin-left: 4px; }
.post-card-title {
  font-size: 25px; font-weight: 400; line-height: 1.35; color: #fff;
  max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-summary {
  font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.72);
  max-width: 520px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255, 255, 255, 0.62); display: inline-flex; gap: 8px; align-items: center; }
.post-card--plain { background: linear-gradient(135deg, #383535, #302d2d); border: 1px solid var(--border); }
.post-card--plain::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0.7;
}
.post-card--plain .post-card-mask { display: none; }

/* Hot band */
.hot-band {
  margin: 10px 0 14px; padding: 24px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hot-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hot-title { font-size: 14px; color: var(--text-primary); letter-spacing: 0.02em; }
.hot-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--text-faint); }
.hot-list { list-style: none; }
.hot-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.045); }
.hot-list a {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 11px 2px; transition: background 0.2s ease;
}
.hot-list a:hover { background: rgba(255, 255, 255, 0.025); }
.hot-index { font-family: var(--font-mono); font-size: 17px; color: var(--accent); opacity: 0.75; }
.hot-list a:hover .hot-index { opacity: 1; }
.hot-name { font-size: 15px; color: #d8d5d5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list a:hover .hot-name { color: #fff; }
.hot-views { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.hot-unit { font-size: 9px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 48px 0 8px; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 9px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 12px;
  color: #c9c6c6; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.page-btn:hover { border-color: #cfcccc; color: #fff; }
.page-btn.is-current { background: #f0f0f0; border-color: #f0f0f0; color: #2c2a2a; }
.page-btn.is-disabled { opacity: 0.35; cursor: default; }
.page-gap { color: #6b6767; padding: 0 2px; }

/* ---------- Empty state ---------- */

.empty-state {
  margin: 40px 0 20px; padding: 64px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-state svg { color: #6c6868; }
.empty-state p { font-size: 14px; }
.empty-state--quiet { border: 0; padding: 30px 0; }

/* ---------- Article ---------- */

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

.article { max-width: var(--container); margin: 0 auto; padding: 6px var(--gutter) 0; }
.preview-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #343232; border: 1px solid var(--border); border-left: 2px solid var(--warning);
  padding: 10px 14px; border-radius: var(--radius-xs); font-size: 12.5px; color: #e3c9a8;
  margin-top: 4px;
}
.preview-banner a { margin-left: auto; color: var(--accent); border-bottom: 1px dashed var(--accent-line); }

.article-head { padding: 26px 0 0; text-align: center; }
.article-kicker {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-muted);
}
.article-kicker a { color: var(--accent); }
.article-kicker a:hover { color: #fff; }
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.2rem); font-weight: 300; line-height: 1.38;
  color: var(--text-primary); margin: 18px auto 0; max-width: 680px; letter-spacing: 0.01em;
}
.article-deck {
  font-size: 15.5px; line-height: 1.85; color: #a5a1a1; max-width: 580px; margin: 16px auto 0;
}
.article-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px;
  margin-top: 24px; font-size: 12px; color: var(--text-muted);
}
.article-author { display: inline-flex; align-items: center; gap: 8px; }
.article-author-name { color: #d6d3d3; }
.article-meta-stats { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 11px; }
.article-meta-stats span { display: inline-flex; align-items: center; gap: 5px; }

.article-cover { margin: 36px 0 40px; }
.article-cover img { display: block; width: 100%; border-radius: var(--radius-md); }

/* Prose */
.prose { font-size: 17px; line-height: 1.95; color: #d0cccc; letter-spacing: 0.005em; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 1.25em 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #f2f0f0; line-height: 1.45; margin: 2.1em 0 0.75em; font-weight: 700; }
.prose h1 { font-size: 1.7rem; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1.05rem; }
.prose a { color: var(--accent); border-bottom: 1px dashed var(--accent-line); }
.prose a:hover { border-bottom-color: transparent; }
.prose strong { color: #f2f0f0; }
.prose em { color: #e0dcdc; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  color: #a9a5a5; font-size: 16.5px;
}
.prose blockquote p { margin: 0.5em 0; }
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.5em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: #827e7e; }
.prose code {
  font-family: var(--font-mono); font-size: 0.86em; background: #232121;
  border: 1px solid #3a3838; border-radius: 3px; padding: 0.1em 0.4em; color: #e0d7c8;
}
.prose pre {
  background: var(--bg-sunken); border: 1px solid #383535; border-radius: var(--radius-sm);
  padding: 18px 20px; overflow-x: auto; line-height: 1.7; margin: 1.8em 0;
}
.prose pre code { background: transparent; border: 0; padding: 0; font-size: 13px; color: #d6d2c9; }
.prose img { display: block; max-width: 100%; border-radius: var(--radius-sm); margin: 2em auto; }
.prose video { display: block; width: 100%; border-radius: var(--radius-sm); margin: 2em 0; background: #000; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: #343131; color: #eee; font-weight: 600; }
.prose--preview { padding: 24px; font-size: 15.5px; }
.prose--preview img { margin: 1.5em auto; }

.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 44px; }
.article-tags-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--text-faint); }
.tag { font-size: 12.5px; color: #a9a5a5; border-bottom: 1px dashed #504c4c; padding-bottom: 1px; }
.tag:hover { color: var(--accent); border-bottom-color: transparent; }

.article-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 30px 0 44px;
}
.like-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent; color: #d3d0d0;
  font-size: 13px; transition: all var(--dur) ease;
}
.like-btn:hover { border-color: #d8d4d4; color: #fff; }
.like-btn.is-liked { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.like-btn.is-liked svg { fill: rgba(26, 188, 156, 0.18); }
.like-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.8; }
.article-admin-link { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.article-admin-link:hover { color: var(--accent); }

.article-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.pager-item { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pager-item--next { text-align: right; }
.pager-label { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--text-faint); }
.pager-item--next .pager-label { justify-content: flex-end; }
.pager-title { font-size: 14.5px; color: #d2cfcf; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pager-item:hover .pager-title { color: #fff; }

.author-card {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 40px; padding: 24px; background: #302e2e;
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.author-card-body { min-width: 0; }
.author-card-head { display: flex; align-items: center; gap: 8px; }
.author-card-name { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.author-card-bio { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.7; }
.author-card-join { font-family: var(--font-mono); font-size: 9.5px; color: #777373; margin-top: 8px; letter-spacing: 0.06em; }

.related { margin-top: 56px; }
.related-list { margin-top: 16px; }
.related-item {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 24px; gap: 18px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.related-item:last-child { border-bottom: 1px solid var(--border); }
.related-thumb { width: 132px; height: 82px; border-radius: var(--radius-xs); background-size: cover; background-position: center; background-color: #262424; }
.related-thumb--plain { background: linear-gradient(135deg, #3a3737, #2c2a2a); }
.related-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.related-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--accent); opacity: 0.8; }
.related-title { font-size: 16px; color: #dcd8d8; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item:hover .related-title { color: #fff; }
.related-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.related-arrow { color: #625e5e; }
.related-item:hover .related-arrow { color: var(--accent); }

/* Comments */
.comments { margin-top: 62px; }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.comments-title { font-size: 22px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: baseline; gap: 10px; }
.comments-title span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--text-faint); font-weight: 400; }
.comments-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.comment-form { margin-top: 22px; padding: 18px 20px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.comment-form-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.comment-form-head strong { color: #ddd; font-weight: 600; }
.comment-form textarea {
  width: 100%; min-height: 104px; resize: vertical; background: var(--bg-input);
  border: 1px solid #474343; border-radius: var(--radius-xs); padding: 12px 14px;
  color: #eee; font-size: 14px; line-height: 1.75;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.comment-form textarea::placeholder { color: #999; }
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.comment-hint { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.comments-login {
  margin-top: 22px; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.comments-register { font-size: 12px; color: var(--text-muted); border-bottom: 1px dashed #555; }
.comments-register:hover { color: var(--accent); border-bottom-color: transparent; }
.comments-closed { margin-top: 18px; padding: 14px 16px; background: var(--bg-elevated); border-radius: var(--radius-xs); font-size: 13px; color: var(--text-muted); }
.comment-list { margin-top: 12px; }
.comment { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.comment-body { min-width: 0; flex: 1; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment-name { font-size: 13.5px; color: #e2dede; font-weight: 600; }
.comment-time { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); margin-left: 2px; }
.comment-manage { font-size: 10px; color: var(--text-faint); margin-left: auto; border-bottom: 1px dashed #4d4949; }
.comment-manage:hover { color: var(--danger); }
.comment-content { margin-top: 7px; font-size: 14.5px; line-height: 1.85; color: #c8c4c4; white-space: pre-wrap; word-break: break-word; }
.comments-empty { padding: 32px 0 10px; font-size: 13px; color: var(--text-faint); }

/* ---------- Auth ---------- */

.page-auth { background: var(--bg-canvas); }
body.page-auth { min-height: 100vh; display: flex; flex-direction: column; }
body.page-auth .site-main { flex: 1 0 auto; display: flex; align-items: center; }
body.page-auth .footer { flex: none; }
.auth-page {
  width: 100%; max-width: 980px; margin: 0 auto; padding: 40px var(--gutter) 60px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 76px; align-items: center;
}
.auth-title { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 300; line-height: 1.25; color: #f2efef; margin-top: 18px; letter-spacing: 0.01em; }
.auth-copy { margin-top: 20px; font-size: 14px; line-height: 1.9; color: #a5a1a1; max-width: 340px; }
.auth-rule { width: 40px; height: 1px; background: var(--accent); margin: 30px 0 18px; opacity: 0.7; }
.auth-note { font-size: 12.5px; color: var(--text-muted); }
.auth-note a { color: var(--accent); border-bottom: 1px dashed var(--accent-line); }
.auth-note a:hover { border-bottom-color: transparent; }
.auth-panel { background: #323030; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 34px 34px 30px; }
.auth-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.auth-panel-head h2 { font-size: 20px; font-weight: 500; color: #f0eeee; }
.auth-panel-head .mono { font-size: 9px; letter-spacing: 0.16em; }
.auth-alt { margin-top: 18px; font-size: 12px; color: var(--text-muted); text-align: center; }
.auth-alt a { color: var(--accent); }
.btn--oauth {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-input); border: 1px solid #4a4646; color: #f0eeee;
  padding: 11px 13px; font-size: 14px; border-radius: var(--radius-xs);
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none; text-align: center;
}
.btn--oauth:hover { border-color: var(--accent); background: #3a3737; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--text-muted); font-size: 11px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .side-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--text-muted); text-transform: uppercase;
}
.field input, .field textarea, .field select,
.form input[type="text"], .form input[type="password"], .form input[type="number"], .form textarea, .form select {
  width: 100%; background: var(--bg-input); border: 1px solid #4a4646;
  border-radius: var(--radius-xs); padding: 11px 13px; color: #f0eeee; font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.22);
}
.field input::placeholder, .field textarea::placeholder { color: #999; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field-hint { font-size: 10.5px; color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select {
  background: var(--bg-input); border: 1px solid #4a4646; border-radius: var(--radius-xs);
  padding: 10px 12px; color: #eee; font-size: 13.5px;
}
select:focus { outline: none; border-color: var(--accent); }

/* ---------- Profile ---------- */

.page-wrap { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter) 20px; }
.profile-head {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.profile-id { min-width: 0; flex: 1; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 25px; font-weight: 400; color: #f0eeee; }
.profile-join { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 6px; letter-spacing: 0.06em; }
.profile-bio { font-size: 13px; color: var(--text-muted); margin-top: 8px; max-width: 460px; }
.profile-stats { display: flex; gap: 30px; padding-left: 10px; }
.profile-stats div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.profile-stats strong { font-family: var(--font-mono); font-size: 26px; font-weight: 400; color: #f0eded; line-height: 1.1; }
.profile-stats span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--text-faint); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.panel { background: #302e2e; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 16px; font-weight: 500; color: #ebe8e8; }
.panel-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.bind-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bind-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bind-info strong { font-size: 14px; color: #ece9e9; }
.bind-info .field-hint { flex-basis: 100%; }
.bind-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bind-verify { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.muted-text { font-size: 12px; color: var(--text-faint); }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; flex-direction: column; gap: 5px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.activity-item:first-child { border-top: 0; padding-top: 0; }
.activity-text { font-size: 13.5px; color: #d2cfcf; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-item:hover .activity-text { color: #fff; }
.activity-meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }

/* ---------- Search ---------- */

.search-head { padding: 14px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.search-title { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 300; color: #f2efef; margin-top: 12px; }
.search-form { display: flex; gap: 10px; margin-top: 22px; max-width: 600px; }
.search-form input {
  flex: 1; background: var(--bg-input); border: 1px solid #4a4646; border-radius: var(--radius-pill);
  padding: 12px 20px; color: #f0eeee; font-size: 14px;
}
.search-form input::placeholder { color: #999; }
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-summary { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.search-summary strong { color: var(--accent); font-family: var(--font-mono); }
.search-results { display: flex; flex-direction: column; }
.search-result {
  display: grid; grid-template-columns: 176px minmax(0, 1fr) 24px; gap: 22px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.search-result:first-child { border-top: 1px solid var(--border); }
.search-thumb { width: 176px; height: 104px; border-radius: var(--radius-xs); background-size: cover; background-position: center; background-color: #262424; }
.search-thumb--plain { background: linear-gradient(135deg, #393636, #2a2828); }
.search-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.search-kicker { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--accent); opacity: 0.75; }
.search-result-title { font-size: 19px; font-weight: 400; color: #e4e1e1; line-height: 1.5; }
.search-result:hover .search-result-title { color: #fff; }
.search-excerpt { font-size: 12.5px; line-height: 1.7; color: #949090; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }
.search-arrow { color: #5d5959; }
.search-result:hover .search-arrow { color: var(--accent); }

/* ---------- Error ---------- */

.site-main--error { min-height: 62vh; display: flex; align-items: center; justify-content: center; }
.error-page { text-align: center; padding: 40px 24px; max-width: 460px; }
.error-code { font-family: var(--font-mono); font-size: 60px; color: var(--accent); opacity: 0.65; line-height: 1; letter-spacing: 0.05em; }
.error-title { font-size: 24px; font-weight: 400; color: #eee; margin-top: 16px; }
.error-message { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.8; }
.error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Drawer ---------- */

.drawer { position: fixed; inset: 0; z-index: 300; }
html.drawer-open { overflow: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.3s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #1b1a1a; border-left: 1px solid #343131; padding: 20px;
  display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-search { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.drawer-search input { flex: 1; background: transparent; border: 0; outline: 0; color: #eee; font-size: 14px; padding: 8px 0; }
.drawer-search input::placeholder { color: #8d8989; }
.drawer-search button { background: transparent; border: 0; color: var(--text-muted); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 17px; color: #cfcbcb;
}
.drawer-nav a span { font-family: var(--font-mono); font-size: 9px; color: #6a6666; }
.drawer-nav a:hover { color: #fff; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.drawer-user strong { display: block; font-size: 14px; color: #e8e5e5; }
.drawer-user span { font-size: 10px; color: var(--text-faint); }
.drawer-link {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 9px 2px; font-size: 13px; color: #b9b5b5;
}
.drawer-link:hover { color: var(--accent); }
.drawer-auth { display: flex; gap: 10px; }
.drawer-auth .btn { flex: 1; }
.drawer-note { font-family: var(--font-mono); font-size: 9.5px; color: #6b6767; letter-spacing: 0.04em; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .navbar-links { gap: 18px; }
  .navbar-inner { padding: 0 20px; gap: 20px; }
  .auth-page { gap: 44px; }
}

@media (max-width: 900px) {
  .navbar-links { display: none; }
  .navbar-burger { display: inline-flex; }
  .nav-user-name { display: none; }
  .nav-register { display: none; }
  .auth-page { grid-template-columns: 1fr; gap: 34px; padding-top: 12px; }
  .auth-intro { text-align: left; }
  .auth-copy { max-width: 440px; }
  .profile-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hero { height: clamp(380px, 60vh, 460px); min-height: 380px; }
  .hero-content { padding-bottom: 40px; gap: 12px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.15rem); }
  .hero-summary { display: none; }
  .feed-head { padding-top: 40px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .post-card { height: 212px; }
  .post-card-body { padding: 24px 22px; }
  .post-card-title { font-size: 20px; }
  .post-card-summary { display: none; }
  .article-title { font-size: 1.65rem; }
  .article-deck { font-size: 14px; }
  .article-cover { margin: 26px 0 30px; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .article-pager { grid-template-columns: 1fr; gap: 18px; }
  .pager-item--next { text-align: left; }
  .pager-item--next .pager-label { justify-content: flex-start; }
  .related-item { grid-template-columns: 104px minmax(0, 1fr) 20px; gap: 14px; }
  .related-thumb { width: 104px; height: 68px; }
  .related-title { font-size: 14.5px; }
  .search-result { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .search-thumb { width: 96px; height: 76px; }
  .search-arrow { display: none; }
  .search-result-title { font-size: 16px; }
  .search-excerpt { display: none; }
  .profile-head { align-items: flex-start; }
  .profile-stats { width: 100%; padding-left: 0; justify-content: flex-start; }
  .profile-stats div { align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .footer { margin-top: 64px; }
  .auth-page { padding-bottom: 0; }
  .auth-panel { padding: 26px 22px 24px; }
  .flash-stack { right: 16px; top: calc(var(--nav-height) + 10px); }
}

@media (max-width: 520px) {
  .navbar-tools { gap: 6px; }
  .nav-login { font-size: 13px; }
  .post-card { height: 200px; }
  .hot-list a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
  .hot-name { font-size: 13.5px; }
  .hot-views { font-size: 9.5px; }
  .article-meta { gap: 10px 14px; }
  .author-card { padding: 18px; gap: 14px; }
  .article-actions { justify-content: flex-start; }
  .profile-name-row h1 { font-size: 21px; }
  .avatar--xl { width: 56px; height: 56px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .post-card:hover { transform: none; }
  .hero:hover .hero-media { transform: none; }
}
