/*
Theme Name: 浪语
Theme URI: https://www.langyunet.com
Author: 左耳
Description: 浪语——极简文章社区主题：全屏拼贴 Banner、信息流、站内注册登录弹窗、投稿页。纯前端视觉，无第三方依赖。
Version: 1.2.1
License: GNU General Public License v2 or later
Text Domain: langyu
Tags: blog, news, minimal, custom-menu, featured-images
*/

/* ============================================================
 * 浪语 · 极致极简风（Brutally Minimal）
 * 设计要点：大留白 / 黑白灰 + 单一强调色 / 等宽标签 / 零装饰
 * 字体配对：Archivo（展示，自托管）· Space Mono（数字标签，自托管）· 系统中文栈（正文）
 * ============================================================ */

:root {
  --bg: #fbfbfa;
  --surface: #f4f4f2;
  --ink: #141414;
  --ink-2: #52524e;
  --ink-3: #9a9a94;
  /* 单一强调色：国际橙，只给关键动作与激活态 */
  --accent: #c2410c;
  --accent-soft: rgba(194, 65, 12, 0.07);
  --line: #e7e7e4;
  --line-strong: #141414;

  --font-display: "Archivo", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Consolas, monospace;

  --header-h: 60px;
  --max-w: 1080px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* 兼容别名：供模板内联样式引用 */
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --border: var(--line);
}

[data-theme="dark"] {
  --bg: #121212;
  --surface: #1b1b1a;
  --ink: #f0f0ec;
  --ink-2: #a8a8a2;
  --ink-3: #6f6f6a;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.09);
  --line: #2b2b29;
  --line-strong: #f0f0ec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ---------- 刊头元信息：等宽小字 ---------- */
.masthead-meta {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.masthead-meta-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.masthead-meta .dot { color: var(--accent); margin: 0 8px; }

/* ---------- 吸顶导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 16px; height: 16px; align-self: center; color: var(--accent); }
.logo .en {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a {
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--dur-fast) ease-out;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* 头部搜索：复用 searchform.php（form.search-form > label.search-box），还原下划线极简样式 */
.header-actions .search-form { display: contents; }
.header-actions .search-box input {
  padding: 0;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: normal;
  flex: none;
}

/* 极简搜索：只有一条下划线 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 6px 2px;
  width: 180px;
  transition: border-color var(--dur-fast), width var(--dur-base) var(--ease-out);
}
.search-box:focus-within { border-color: var(--ink); width: 220px; }
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
}
.search-box svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--dur-fast) ease-out;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- 页面骨架：更大的留白 ---------- */
.page-body { padding: 56px 0 120px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 72px;
  align-items: start;
}
.layout-single { display: block; }

/* ---------- 区块标题：等宽小标 + 大标题 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-head h2 .num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.section-head .more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.section-head .more:hover { color: var(--accent); }

/* ---------- 文章网格：无边框，靠间距与灰度分层 ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 48px;
}
.article-card { display: flex; flex-direction: column; }
.card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 16px;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.article-card:hover .card-cover img { filter: grayscale(0); transform: scale(1.02); }
.card-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: flex-start;
  margin-bottom: 10px;
}
.card-cat:hover { color: var(--accent); }
.card-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { transition: color var(--dur-fast); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.card-meta .author { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.card-meta .author:hover { color: var(--accent); }
.card-meta .author img { width: 18px; height: 18px; border-radius: 50%; filter: grayscale(1); }
.card-meta .stat { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .stat svg { width: 12px; height: 12px; }

/* ---------- 知乎式信息流列表 ---------- */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.fi-main { flex: 1; min-width: 0; }
.fi-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.fi-avatar { width: 22px; height: 22px; border-radius: 50%; filter: grayscale(1); }
.fi-author { font-weight: 500; color: var(--ink-2); }
.fi-author:hover { color: var(--accent); }
.fi-dot { color: var(--ink-3); }
.fi-date { font-family: var(--font-mono); font-size: 11px; }
.fi-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 4px;
  transition: all var(--dur-fast);
}
.fi-cat:hover { border-color: var(--accent); }
.fi-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.fi-title a:hover { color: var(--accent); }
.fi-excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.fi-meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.fi-meta .stat { display: inline-flex; align-items: center; gap: 5px; }
.fi-meta .stat svg { width: 12px; height: 12px; }
.fi-thumb {
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.fi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease-out);
}
.article-row:hover .fi-thumb img { filter: grayscale(0); }

/* ---------- 首页顶部 Banner（非对称拼贴：大封面 + 2×2 小卡） ---------- */
/* 背景层与卡片区均对齐内容区宽度（= --max-w 去掉 .container 的左右内边距） */
.banner-wrap { position: relative; margin-bottom: 24px; }
.home-banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: transparent;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  padding: 0;
  z-index: 1;
}
/* 模糊背景底层：铺满整页宽度；悬停卡片时淡入该卡封面 */
.hb-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
}
.hb-bg-img {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  opacity: 0;
  filter: blur(28px) brightness(0.45) saturate(1.1);
  transform: scale(1.1);
  transition: opacity 650ms var(--ease-out);
}
.hb-bg-img.show { opacity: 1; }
.hb-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
.hb-hero { grid-row: 1 / -1; }

/* 封面不足 5 篇时按实际数量补满版面，图片区始终占满内容区宽度 */
.hb-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hb-n1 .hb-hero { grid-column: 1 / -1; }
.hb-n2 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr; }
.hb-n3 { grid-template-columns: 1.5fr 1fr; }
.hb-n4 .hb-panel:last-of-type { grid-column: span 2; }
.hb-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transform: scale(1.03);
  transition: filter 600ms var(--ease-out), transform 900ms var(--ease-out), opacity 500ms var(--ease-out);
}
.hb-panel:hover .hb-img,
.hb-panel:focus-visible .hb-img {
  filter: grayscale(0.05) contrast(1.02) brightness(0.92);
  transform: scale(1.07);
}
/* 悬停某卡时：其他卡片淡出，露出该卡的模糊封面背景 */
@supports selector(.home-banner:has(.hb-panel:hover)) {
  .home-banner:has(.hb-panel:hover) .hb-panel:not(:hover) .hb-img { opacity: 0.25; }
  .home-banner:has(.hb-panel:hover) .hb-panel:not(:hover)::after { opacity: 0.6; }
}
/* 底部压暗渐变 */
.hb-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 42%, rgba(8, 8, 8, 0.82) 100%);
  transition: opacity 500ms var(--ease-out);
}
/* 悬停强调线：卡片底边 */
.hb-panel::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 480ms var(--ease-out);
}
.hb-panel:hover::before,
.hb-panel:focus-visible::before { width: 100%; }
.hb-p-index {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur-fast);
}
.hb-panel:hover .hb-p-index { color: #ff8a5c; }
.hb-p-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 24px 26px;
  width: 100%;
  color: #f5f5f2;
}
.hb-p-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff8a5c;
}
.hb-p-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-p-title-xl {
  font-size: clamp(22px, 2.7vw, 33px);
  line-height: 1.22;
  -webkit-line-clamp: 3;
  margin-bottom: 2px;
}
.hb-p-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-p-excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-p-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #ff8a5c;
}
.hb-p-cta svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.hb-panel:hover .hb-p-cta svg { transform: translateX(4px); }
/* 内嵌细线相框与星形涂鸦：按需求移除，节点保留占位 */
.hb-frame, .hb-doodle { display: none; }
/* 角落等宽标注 */
.hb-corner {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.hb-corner-tl { top: 30px; left: 36px; }
.hb-corner-tr { top: 30px; right: 36px; }
.hb-corner-bl { bottom: 26px; right: 36px; }
/* 拼贴错峰入场 */
@media (prefers-reduced-motion: no-preference) {
  .hb-panel { animation: hb-rise 700ms var(--ease-out) backwards; }
  .hb-panel:nth-child(2) { animation-delay: 80ms; }
  .hb-panel:nth-child(3) { animation-delay: 160ms; }
  .hb-panel:nth-child(4) { animation-delay: 240ms; }
  .hb-panel:nth-child(5) { animation-delay: 320ms; }
}
@keyframes hb-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hb-doodle { animation: none; }
  .hb-panel, .hb-panel::before, .hb-img { transition: none; animation: none; }
}

/* ---------- Feed 排序 Tab ---------- */
.feed-head {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.feed-tabs { display: flex; gap: 30px; }
.feed-tab {
  padding: 14px 2px 15px;
  border: none;
  background: none;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast);
}
.feed-tab:hover { color: var(--ink); }
.feed-tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.feed-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- 文章 / 搜索页双栏：无侧栏时正文占满 ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 72px;
  align-items: start;
}
.page-grid > :only-child { grid-column: 1 / -1; }

/* ---------- 侧栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.side-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.side-card h3 svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- 侧栏小工具通用样式 ---------- */
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li a { color: var(--ink-2); }
.side-card ul li a:hover { color: var(--accent); }
.side-card .tagcloud, .side-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* 紧凑文章列表（作者其他文章 / 相关阅读） */
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list .side-item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.side-list .side-item-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.side-list > li > a:not(.side-item-title) {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.side-list a:hover { color: var(--accent); }
.side-list .side-empty { color: var(--ink-3); font-size: 13px; padding: 4px 0; }

.cat-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list a:hover { color: var(--accent); }
.cat-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  min-width: 26px;
}
.cat-list .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  transition: all var(--dur-fast) ease-out;
}
.tag-chip:hover { border-color: var(--ink); color: var(--ink); }
.tag-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- 用户迷你卡 ---------- */
.user-mini { display: flex; align-items: center; gap: 12px; }
.user-mini img { width: 40px; height: 40px; border-radius: 50%; filter: grayscale(1); }
.user-mini .name { font-weight: 600; font-size: 14px; }
.user-mini .desc { font-size: 12px; color: var(--ink-3); }

/* ---------- 首页 · 封面故事：纯排版 ---------- */
.cover-story {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 72px;
  align-items: center;
  padding: 24px 0 64px;
}
.cs-ghost { display: none; }
.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.cs-title a:hover { color: var(--accent); }
.cs-excerpt {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 28px;
}
.cs-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.cs-meta img { width: 26px; height: 26px; border-radius: 50%; filter: grayscale(1); }
.cs-meta b { color: var(--ink-2); font-weight: 600; font-family: var(--font-body); font-size: 13px; }
.cs-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.cs-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease-out);
}
.cs-figure:hover img { filter: grayscale(0); }
.cs-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

/* ---------- 数据带 ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-strip .s { padding: 28px 0 24px; }
.stats-strip b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stats-strip span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

/* ---------- 本周专题 ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}
.topic { padding: 4px 0 6px; }
.topic .t-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.topic h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 8px 0 8px;
}
.topic p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.topic li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.topic li a { display: flex; gap: 12px; color: var(--ink-2); line-height: 1.55; transition: color var(--dur-fast); }
.topic li a:hover { color: var(--accent); }
.topic li .b-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex-shrink: 0; padding-top: 3px; }

/* ---------- 快讯 ---------- */
.briefs-list { margin-top: 8px; }
.brief {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.brief:first-child { border-top: 1px solid var(--line); }
.brief time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  width: 52px;
  font-variant-numeric: tabular-nums;
}
.brief p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 主编手记 ---------- */
.editor-note {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.editor-note .kicker { margin-bottom: 24px; }
.editor-note blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 27em;
}
.editor-note figcaption {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.editor-note figcaption::before { content: "—— "; color: var(--accent); }

/* ---------- 作者专栏 ---------- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
}
.author-col {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.author-col img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  filter: grayscale(1);
  transition: filter var(--dur-base);
}
.author-col:hover img { filter: grayscale(0); }
.author-col .col-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.author-col .col-author {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 3px 0 4px;
}
.author-col .col-author:hover { color: var(--accent); }
.author-col .col-latest {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 10px;
  transition: color var(--dur-fast);
}
.author-col .col-latest:hover { color: var(--accent); }
.author-col .col-latest::before {
  content: "最新 ";
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

/* ---------- 文章详情 ---------- */
.article-detail { padding: 8px 0 0; }
.detail-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.detail-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.detail-author img { width: 40px; height: 40px; border-radius: 50%; filter: grayscale(1); }
.detail-author .a-name { font-weight: 600; font-size: 14px; }
.detail-author .a-name:hover { color: var(--accent); }
.detail-author .a-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.detail-author .btn { margin-left: auto; }

.article-content { font-size: 16px; max-width: 44em; }
.article-content h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 44px 0 16px;
}
.article-content h2::before {
  content: "/ ";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
}
.article-content p { margin-bottom: 18px; color: var(--ink-2); }
.article-content strong { color: var(--ink); }
.article-content blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}
.article-content code {
  background: var(--surface);
  padding: 2px 7px;
  font-size: 13.5px;
  font-family: var(--font-mono);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-actions { display: flex; gap: 12px; margin-top: 24px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--dur-fast) ease-out;
}
.action-btn:hover { border-color: var(--ink); color: var(--ink); }
.action-btn.liked { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-btn svg { width: 14px; height: 14px; }
.action-btn b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; }

/* ---------- 评论区 ---------- */
.comment-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }
.comment-item img { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; filter: grayscale(1); }
.comment-item .c-name { font-weight: 600; font-size: 13.5px; }
.comment-item .c-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 12px; }
.comment-item .c-text { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* ---------- 分类页 ---------- */
.category-banner { padding: 16px 0 48px; }
.category-banner .ghost-num { display: none; }
.category-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.category-banner .cat-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.category-banner p { color: var(--ink-2); font-size: 14.5px; max-width: 34em; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.cat-tab {
  padding: 12px 0 14px;
  border: none;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  position: relative;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast);
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.cat-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-right: 8px;
  letter-spacing: 0.1em;
}
.cat-tab.active .tab-num { color: var(--accent); }

/* ---------- 搜索页 ---------- */
.search-hero { padding: 24px 0 24px; max-width: 660px; }
.search-hero .kicker { margin-bottom: 18px; }
.search-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.1;
}
.search-form {
  display: flex;
  border-bottom: 1px solid var(--ink);
  transition: border-color var(--dur-base);
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 2px;
  font-size: 17px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.search-form button {
  border: none;
  background: none;
  color: var(--accent);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.search-form button:hover { color: var(--ink); }
.search-tips {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.search-result-info { font-size: 14px; color: var(--ink-2); margin: 32px 0 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.search-result-info strong { color: var(--accent); }
.search-empty { padding: 72px 0; }
.search-empty .empty-illus { display: block; width: 64px; height: 64px; color: var(--ink-3); margin-bottom: 16px; }
.search-empty .empty-illus svg { width: 100%; height: 100%; }
.search-empty p { margin-top: 16px; color: var(--ink-3); }

/* ---------- 标签页 ---------- */
.tag-hero { margin-bottom: 40px; }
.tag-hero .kicker { margin-bottom: 16px; }
.tag-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.tag-hero h1 .hash { color: var(--accent); font-family: var(--font-mono); font-weight: 400; font-size: 0.8em; }
.tag-hero p { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }

#tag-ranking li { border-bottom: 1px solid var(--line); }
#tag-ranking a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}
#tag-ranking a:hover { color: var(--accent); }
#tag-ranking .tag-n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ---------- 用户主页 ---------- */
.profile-banner {
  height: 148px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.profile-card { padding: 0 0 30px; margin: -44px 0 48px; position: relative; }
.profile-top { display: flex; align-items: flex-end; gap: 20px; }
.profile-top img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--surface);
  filter: grayscale(1);
}
.profile-top .p-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.profile-top .p-loc { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.profile-top .btn { margin-left: auto; margin-bottom: 6px; }
.profile-bio {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 14px;
  max-width: 32em;
}
.profile-stats {
  display: flex;
  gap: 48px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.profile-stats .stat b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.profile-stats .stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-3); }

.profile-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.profile-tab {
  padding: 12px 0 14px;
  border: none;
  background: none;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast);
}
.profile-tab:hover { color: var(--ink); }
.profile-tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}
.footer-inner { color: var(--ink-3); font-size: 12.5px; }
.footer-inner .foot-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-inner .foot-word i { color: var(--accent); font-style: normal; }
.footer-inner .foot-links { display: flex; gap: 24px; margin-bottom: 12px; }
.footer-inner .foot-links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-2); }
.footer-inner .foot-links a:hover { color: var(--accent); }

/* ---------- 入场编排：更克制的淡入 ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 48px; }
  .page-grid { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; }
  .search-box { display: none; }
  .main-nav { gap: 18px; overflow-x: auto; }
  .cover-story { grid-template-columns: 1fr; gap: 32px; }
  .cs-figure { aspect-ratio: 16 / 10; }
  .topics-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .s { border-top: 1px solid var(--line); }
  .stats-strip .s:nth-child(-n+2) { border-top: none; }
  .masthead-meta .hide-m { display: none; }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .article-row { flex-direction: column-reverse; gap: 16px; }
  .fi-thumb { width: 100%; }
  .authors-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .brief { gap: 18px; }
  .page-body { padding: 36px 0 80px; }
}

/* ============================================================
 * 插画系统：细线手绘感 SVG，为极简版式增加温度
 * 规则：stroke 用 currentColor，强调细节用 var(--accent)
 * ============================================================ */

.doodle { position: absolute; pointer-events: none; color: var(--ink-3); }
.doodle svg { width: 100%; height: 100%; display: block; }
.doodle.is-accent { color: var(--accent); }

/* 封面故事角落涂鸦 */
.cover-story .doodle-asterisk { width: 44px; height: 44px; top: 6px; right: 38%; }
.cover-story .doodle-arrow { width: 88px; height: 48px; left: 4px; bottom: 46px; }
.cover-story .doodle-ring { width: 26px; height: 26px; left: 46%; bottom: 110px; }

/* ---------- 插画分隔带 ---------- */
.illus-band {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.illus-band .illus { flex: 1; min-width: 0; }
.illus-band .illus svg {
  width: 88px;
  height: 88px;
  display: block;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.illus-band .illus-cap {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.illus-band .illus i { color: var(--accent); font-style: normal; }

/* ---------- 快讯 + 主编手记：双栏 ---------- */
.briefs-note {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  margin: 48px 0 72px;
}
.briefs-note .note-col {
  position: relative;
  border-left: 1px solid var(--line-strong);
  padding-left: 48px;
}
/* 覆盖 editor-note 的全宽样式，适配双栏 */
.briefs-note .editor-note {
  padding: 0;
  border: none;
  margin: 0;
}
.briefs-note .editor-note .book-illus {
  position: absolute;
  right: -8px;
  bottom: -30px;
  width: 128px;
  height: 96px;
  color: var(--ink-3);
  opacity: 0.4;
}
.briefs-note .editor-note .book-illus svg { width: 100%; height: 100%; }

/* ---------- 分类横幅插画 ---------- */
.category-banner .ban-doodle {
  position: absolute;
  right: 44px;
  bottom: -14px;
  width: 110px;
  height: 110px;
  color: var(--ink-3);
  opacity: 0.4;
  pointer-events: none;
}
.category-banner .ban-doodle svg { width: 100%; height: 100%; }

/* ---------- 插画响应式 ---------- */
@media (max-width: 960px) {
  .briefs-note { grid-template-columns: 1fr; gap: 48px; }
  .briefs-note .note-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 40px; }
  .illus-band .illus svg { width: 68px; height: 68px; }
  .cover-story .doodle-asterisk { right: 8%; }
}
@media (max-width: 640px) {
  .illus-band { gap: 20px; flex-wrap: wrap; }
  .illus-band .illus { flex: 1 1 40%; }
  .category-banner .ban-doodle { display: none; }
  .hb-doodle, .hb-corner-bl { display: none; }
  .home-banner {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 0;
  }

  .hb-hero {
    grid-row: auto;
    grid-column: 1 / -1;
    height: 300px;
  }
  .hb-panel { min-height: 172px; }
  .hb-p-body { padding: 18px 18px 20px; }
  .hb-p-title-xl { font-size: 22px; }
  .hb-p-excerpt { -webkit-line-clamp: 2; }
  .hb-corner-tl { top: 20px; left: 22px; }
  .hb-corner-tr { top: 20px; right: 22px; }
}

/* ---------- 登录按钮（头部） ---------- */
.btn-login {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.btn-login:hover { color: var(--accent); border-color: var(--accent); }
.btn-login.logged-in { color: var(--accent); border-color: var(--accent); }

/* ---------- 弹窗：登录 / 注册 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 44px 38px 32px;
  transform: translateY(16px);
  transition: transform 280ms var(--ease-out);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.modal-close:hover { color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.modal .kicker { display: block; margin-bottom: 14px; }
.auth-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.auth-tab {
  padding: 10px 2px 12px;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--dur-fast);
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- 表单字段（弹窗与投稿页共用） ---------- */
.field { display: block; margin-bottom: 18px; }
.field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body, inherit);
  font-size: 14px;
  transition: border-color var(--dur-fast);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.auth-error {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--accent);
}
.auth-error[hidden] { display: none; }
.auth-error.ok { color: #15803d; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-submit[disabled] { opacity: 0.6; cursor: default; }
.auth-tip {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- 投稿页 ---------- */
.contribute-wrap { max-width: 760px; margin: 0 auto; }
.contribute-head { margin-bottom: 40px; }
.contribute-head .kicker { color: var(--accent); display: block; margin-bottom: 14px; }
.contribute-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contribute-head p { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; max-width: 38em; }
.contribute-form { border-top: 1px solid var(--line); padding-top: 32px; }
.contribute-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contribute-form .field-row .field { margin-bottom: 18px; }
.contribute-form textarea[name="content"] { min-height: 300px; }
.contribute-form .btn[type="submit"] { margin-top: 8px; padding: 14px 44px; }
.contribute-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
/* 投稿成功面板 */
.submit-success {
  border: 1px solid var(--accent);
  padding: 28px 30px;
  margin-bottom: 32px;
  animation: hb-rise 500ms var(--ease-out);
}
.submit-success .kicker { color: var(--accent); display: block; margin-bottom: 10px; }
.submit-success p { font-size: 14px; line-height: 1.8; color: var(--ink-2); margin-bottom: 12px; }
/* 我的投稿列表 */
.my-submissions { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 28px; }
.my-submissions h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.sub-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.sub-item .sub-title { flex: 1; min-width: 0; font-weight: 500; }
.sub-item .sub-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.sub-item .sub-del {
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.sub-item .sub-del:hover { color: var(--accent); }

@media (max-width: 640px) {
  .contribute-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 38px 26px 28px; }
  .btn-login { padding: 6px 10px; font-size: 11px; }
}

/* ============================================================
 * WordPress 原生输出适配
 * ============================================================ */

/* 菜单：让 li 在 flex 导航中透明化 */
.main-nav ul, .main-nav li { display: contents; list-style: none; margin: 0; padding: 0; }

/* wp_login_form 字段适配弹窗样式 */
.modal .login-username, .modal .login-password, .modal .login-remember, .modal .login-submit { margin: 0 0 18px; }
.modal .login-username label, .modal .login-password label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.modal .login-username input, .modal .login-password input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--dur-fast);
}
.modal .login-username input:focus, .modal .login-password input:focus { outline: none; border-color: var(--accent); }
.modal .login-remember { font-size: 12.5px; color: var(--ink-2); }
.modal .login-remember input { accent-color: var(--accent); margin-right: 6px; }
.modal .login-submit { margin-bottom: 0; }
.modal .login-submit input[type="submit"] {
  width: 100%;
  padding: 13px 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper, #fbfbfa);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.modal .login-submit input[type="submit"]:hover { background: var(--accent); border-color: var(--accent); }
.auth-pane-text { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 18px; }

/* 评论 */
.comments-area { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.comments-area .comments-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-list .comment .children { list-style: none; margin: 16px 0 0; padding-left: 24px; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-meta .avatar { width: 32px; height: 32px; border-radius: 50%; }
.comment-meta .fn, .comment-meta .says { font-size: 13px; color: var(--ink-2); }
.comment-meta .comment-metadata { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-left: auto; }
.comment-content { font-size: 14px; line-height: 1.8; color: var(--ink); }
.comment-content p { margin: 0 0 8px; }
.comment .reply a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.comment .reply a:hover { color: var(--accent); }
.comment-respond { margin-top: 28px; }
.comment-respond .comment-reply-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.comment-form p { margin: 0 0 18px; }
.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--dur-fast);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.comment-form .submit {
  padding: 13px 32px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper, #fbfbfa);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.comment-form .submit:hover { background: var(--accent); border-color: var(--accent); }

/* 分页 */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nav-links .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.nav-links .page-numbers:hover { color: var(--accent); border-color: var(--accent); }
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper, #fbfbfa); }
.nav-links .dots { border: none; color: var(--ink-3); }

/* 作者主页资料 */
.p-bio { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-top: 6px; max-width: 34em; }
.profile-banner {
  height: 180px;
  background: linear-gradient(120deg, var(--ink) 0%, #2b2b28 100%);
  border: 1px solid var(--line);
}
.search-result-info { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 16px; }

/* ===== 1.1.0 新增：信息流骨架屏（AJAX 排序加载占位） ===== */
.skel-list { min-height: 420px; }
.skel-row {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.skel-main { flex: 1; min-width: 0; }
.skel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 4px;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(20, 20, 20, 0.07), transparent);
  animation: skel-shimmer 1.2s ease-in-out infinite;
}
[data-theme="dark"] .skel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}
.skel-top { width: 190px; height: 14px; margin-bottom: 14px; }
.skel-title { width: 68%; height: 21px; margin-bottom: 14px; }
.skel-line { width: 92%; height: 12px; margin-bottom: 8px; }
.skel-line.short { width: 52%; }
.skel-thumb {
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 16 / 10;
}
@keyframes skel-shimmer {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
}
@media (max-width: 768px) {
  .skel-row { gap: 16px; padding: 18px 0; }
  .skel-thumb { width: 104px; }
}

/* ===== 1.1.0 新增：面包屑 ===== */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; }
