/* ============================================================
   OneDong · 站点布局与组件 (v2.0 · suxing.me 还原)
   三栏布局(左作者卡 / 中文章流 / 右侧栏) · 上图下文 list-item 卡
   毛玻璃顶栏 · 药丸标签 · h2 色条 · 正文链接红色 inset 下划线
   配色令牌全部来自 tokens.css(--primary / --card-bg / --radius-* 等)
   ============================================================ */

/* —— 无障碍:跳到正文 —— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-small) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* 无障碍:仅屏幕阅读器可见(WP 规范) */
.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

/* ============================================================
   顶栏(suxing:sticky + 半透明毛玻璃 backdrop-filter)
   浅色 rgba(255,255,255,.8) / 暗色 rgba(0,0,0,.6) 由 tokens --titlebar-bg 提供
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--titlebar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--site-width);
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-title a { color: inherit; font-weight: 600; text-decoration: none; }
.site-title a:hover { text-decoration: none; color: var(--primary); }
.site-description { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.site-logo img {
  max-height: 2rem;
  width: auto;
  margin: 0;
  border-radius: var(--radius-small);
  box-shadow: none;
}

/* —— 主导航(suxing:灰色文字、悬浮淡背景、当前项 primary)—— */
.primary-nav { display: flex; align-items: center; gap: 0.2rem; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.primary-nav li { margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-small);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover {
  background: var(--btn-hover);
  color: var(--primary);
  text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--primary);
}

/* —— 顶栏控件区(仅留主题切换;v2.0 已移除色相滑块)—— */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

/* —— 主题切换按钮(三态:亮 / 暗 / 跟随系统)—— */
.theme-toggle {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-max);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { background: var(--btn-hover); color: var(--primary); transform: translateY(-1px); }
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 35%, transparent);
}
.theme-toggle__icon { display: none; font-style: normal; }
.theme-toggle__icon .icon { width: 1.1rem; height: 1.1rem; }
.theme-toggle[data-pref="light"] .theme-toggle__sun,
.theme-toggle[data-pref="dark"] .theme-toggle__moon,
.theme-toggle[data-pref="auto"] .theme-toggle__auto { display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   主区域容器
   ============================================================ */
.site-main {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
}

/* ============================================================
   三栏布局(suxing:左作者卡 / 中文章流 / 右侧栏)
   ============================================================ */
.site-content--three-col {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) 16rem;
  gap: 1.5rem;
  align-items: start;
}
.content-main { min-width: 0; }

/* 平板:左作者卡隐藏,降为主+右双栏 */
@media (max-width: 1180px) {
  .site-content--three-col {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1.75rem;
  }
  .sidebar-left { display: none; }
}
/* 窄平板:仅主栏(右侧栏移到下方) */
@media (max-width: 992px) {
  .site-content--three-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sidebar,
  .sidebar-left { position: static !important; }
}

/* —— 归档/搜索页头 —— */
.page-header {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}
.page-header .page-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-header .archive-description,
.page-header .page-description {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— 文章列表(单列,纵向 list-item 卡)—— */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================================
   文章卡片(suxing list-item:上图下文 · 16:9 封面在顶)
   ============================================================ */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);   /* 12px */
  box-shadow: var(--shadow);             /* 0 6px 16px rgb(27 26 49/1%) */
  overflow: hidden;                      /* 让封面圆角裁剪跟随卡片 */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgb(27 26 49 / 6%);
}
:root[data-theme="dark"] .post-card { box-shadow: none; }
:root[data-theme="dark"] .post-card:hover { box-shadow: none; }

/* —— 封面列(suxing:16:9 撑比例 + 绝对定位 img object-fit:cover)—— */
.post-card__thumb {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding-top: 56.25%;                  /* 16:9 比例 */
  background: url('../img/lazy-placeholder.png') center/cover no-repeat, var(--btn-bg);
  overflow: hidden;
}
.post-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card__img { transform: scale(1.05); }

/* 分类贴片(suxing:贴封面图左上角;纯展示,pointer-events:none 让点击穿透到封面/整卡链接) */
.post-card__cat-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  max-width: calc(100% - 1.1rem);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 90%, black 10%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
:root[data-theme="dark"] .post-card__cat-badge {
  background: color-mix(in oklch, var(--primary) 78%, black 22%);
}

/* 无特色图:不渲染 .post-card__thumb,卡片直接从标题开始(竖向卡自然降级) */

/* —— 内容区(suxing:padding 1rem,flex 列方向让 stats 贴底)—— */
.post-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}
.post-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.post-card__title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.post-card__title a:hover { color: var(--primary); text-decoration: none; }
/* stretched link:整张卡片可点击(::after z-index:1,低于封面与内联链接) */
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card__meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.9rem;
  margin: 0 0 0.5rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}
/* 文章卡作者 byline(头像带黄V + 昵称带在线绿点) */
.post-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.post-card__avatar-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
}
.post-card__avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.post-card__verified {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--card-bg);
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 0 0 1px var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.post-card__verified svg { width: 100%; height: 100%; display: block; }
.post-card__author-name {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.post-card__cats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.post-card__cats a {
  position: relative;
  z-index: 2;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
}
.post-card__cats a:hover { text-decoration: underline; }
.post-card__cats .sep { margin: 0 0.35rem; color: var(--text-faint); }
.post-card__summary {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: var(--excerpt-lines, 2);
  line-clamp: var(--excerpt-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__summary p { margin: 0; display: inline; }
.post-card__stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.post-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.post-card__tag {
  position: relative;
  z-index: 2;
  padding: 0.12rem 0.6rem;
  border-radius: var(--radius-max);
  background: var(--btn-bg);
  color: var(--text-muted);
  font-size: 0.74rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.post-card__tag:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* 内联 SVG 图标(元数据通用) */
.icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  vertical-align: -0.15em;
}

/* ============================================================
   单篇文章(正文 · suking h2 色条 + 红色 inset 下划线链接)
   ============================================================ */
.post-single,
.single-post article.post,
.page article.page {
  max-width: var(--content-width);
  margin: 0 auto;
}
article.post,
article.page {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}
:root[data-theme="dark"] article.post,
:root[data-theme="dark"] article.page { box-shadow: none; }

.single-post .entry-header,
.page .entry-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.single-post .entry-title,
.page .entry-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.entry-title a { color: var(--text); text-decoration: none; }
.entry-title a:hover { color: var(--primary); text-decoration: none; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.entry-meta a { color: var(--primary); font-weight: 500; text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.single-post .post-thumbnail,
.page .post-thumbnail { margin: 0 0 1.5rem; }
.single-post .post-thumbnail img,
.page .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}
.entry-tags { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.entry-tags a { color: var(--primary); }

/* —— 正文链接:suxing 红色 inset 下划线(危险色 #ff3e3e)—— */
.entry-content a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 -2px 0 0 #ff3e3e inset;
  transition: color 0.15s ease;
}
.entry-content a:hover { color: var(--primary); }

/* —— 正文 h2:suxing 左侧 primary 色条 —— */
.entry-content h2 {
  position: relative;
  margin: 1.8em 0 0.9em;
  padding-left: 16px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 20px;
  border-radius: var(--radius-max);
  background: var(--primary);
}

/* —— 文章导航(上/下篇) —— */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: var(--content-width);
  margin: 2rem auto 0;
}
.post-nav a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--card-bg);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.post-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--btn-hover);
}
.post-nav__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.post-nav__title { font-weight: 500; color: var(--text); }
.post-nav .nav-next { text-align: right; }

/* —— 分页 —— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0 0;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pagination a:hover {
  background: var(--btn-hover);
  border-color: var(--line-strong);
  color: var(--primary);
  text-decoration: none;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .dots {
  background: transparent;
  border-color: transparent;
  color: var(--text-faint);
}

/* ============================================================
   侧栏(左作者卡 + 右侧栏 · suxing 卡片风)
   ============================================================ */
.sidebar,
.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + 1.5rem);
}
.sidebar-left {
  position: sticky;
  top: calc(var(--topbar-height) + 1.5rem);
}
@media (max-width: 992px) {
  .sidebar,
  .sidebar-left { position: static; }
}

.widget {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
:root[data-theme="dark"] .widget { box-shadow: none; }

.widget-title {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: var(--radius-max);
  background: var(--primary);
}

/* —— 作者卡(左栏,suxing profile)—— */
.widget-profile { text-align: center; }
.widget-profile__avatar-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.85rem;
  line-height: 0;
}
.widget-profile__avatar {
  width: 6rem;       /* suxing 96px */
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--line-strong);
}
/* 黄V 认证徽章(头像右下角,卡色描边 + 黄圆白勾;暗色模式自动适配描边) */
.widget-profile__verified {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--card-bg);
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 0 0 1px var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.widget-profile__verified svg { width: 100%; height: 100%; display: block; }
.widget-profile__name {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
/* 在线状态:昵称右侧绿色呼吸圆点(固定绿,不随暗色变) */
.online-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: middle;
  animation: onedong-pulse 1.8s ease-in-out infinite;
}
@keyframes onedong-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
}
.widget-profile__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.widget-profile__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.widget-profile__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-faint);
  font-size: 0.72rem;
}
.widget-profile__stat strong {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* —— 分类列表(带 count)—— */
.widget-cats__list { list-style: none; margin: 0; padding: 0; }
.widget-cats__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.widget-cats__list li:last-child { border-bottom: 0; }
.widget-cats__list a { color: var(--text); font-weight: 400; font-size: 0.92rem; text-decoration: none; transition: color 0.15s ease; }
.widget-cats__list a:hover { color: var(--primary); text-decoration: none; }
.widget-cats__list .count {
  min-width: 1.6rem;
  text-align: center;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-max);
  background: var(--btn-bg);
  color: var(--text-faint);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* —— 标签云(suxing 药丸:bg-light 底 + hover primary 填充白字)—— */
.widget-tags__cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-link {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-max);
  background: var(--btn-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.tag-link:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* —— 页脚小工具区(可选,后台「外观 → 小工具」激活时显示)—— */
.footer-widgets {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 0;
}
.footer-widgets__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.footer-widgets .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.footer-widgets .widget-title {
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--titlebar-bg);
}
.site-footer__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--primary); font-weight: 400; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--primary); }

/* —— 按钮 / 表单 —— */
button,
.button,
.wp-block-button .wp-block-button__link,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-max);
  background: var(--primary);
  color: #fff;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
button:hover,
.button:hover,
.wp-block-button .wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover { background: var(--primary-strong); }
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--card-bg);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent);
}
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-submit { padding: 0.5rem 1rem; }

/* —— 空状态 —— */
.content-none {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .content-none { box-shadow: none; }
.content-none h1,
.content-none .page-title { margin-top: 0; font-weight: 600; }
.content-none .search-form { justify-content: center; max-width: 24rem; margin: 1.25rem auto 0; }

/* —— 全局滚动条 —— */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  min-height: 2rem;
  border: 4px solid transparent;
  border-radius: var(--radius-max);
  background: color-mix(in oklch, var(--text-muted) 40%, transparent);
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklch, var(--text-muted) 60%, transparent);
  background-clip: content-box;
}

/* —— 响应式:移动端 —— */
@media (max-width: 768px) {
  .site-header__inner { flex-wrap: wrap; gap: 0.75rem; }
  .site-brand { margin-right: 0; }
  .primary-nav { order: 3; width: 100%; }
  .primary-nav ul { justify-content: flex-start; }
  .header-controls { margin-left: auto; }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .post-card__body { padding: 0.9rem 1rem 1rem; }
  .widget { padding: 1rem 1.1rem; }
}

/* ============================================================
   评论(comments.php)
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.comments-title {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.comment-list .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}
.comment__body {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.comment__avatar .avatar {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-max);
  background: var(--btn-bg);
}
.comment__content {
  flex: 1;
  min-width: 0;
}
.comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.8rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.comment__author { font-style: normal; font-weight: 600; color: var(--text); font-size: 0.92rem; }
.comment__author a { color: var(--primary); text-decoration: none; }
.comment__author a:hover { text-decoration: underline; }
.comment__date { display: inline-flex; align-items: center; gap: 0.3rem; }
.comment__date .icon { width: 0.85rem; height: 0.85rem; }
.comment__pending {
  margin: 0.25rem 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-small);
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 0.8rem;
}
.comment__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.comment__text p { margin: 0.4rem 0; }
.comment__text a { color: var(--primary); text-decoration: underline; }
.comment__actions {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.comment__actions a { color: var(--text-faint); text-decoration: none; }
.comment__actions a:hover { color: var(--primary); }
.pingback__body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.pingback__body .icon { width: 0.9rem; height: 0.9rem; }
.pingback__body a { color: var(--primary); text-decoration: none; }
.pingback__body a:hover { text-decoration: underline; }
.no-comments {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--text-muted);
}
/* 评论表单 */
.comment-reply-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.comment-form { margin-top: 0.5rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.comment-form textarea { width: 100%; resize: vertical; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] { width: 100%; }
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.comment-form .comment-form-cookies-consent label { margin: 0; }
.comment-form .submit { margin-top: 0.25rem; }
.comment-notes { font-size: 0.8rem; color: var(--text-faint); }
#cancel-comment-reply-link { font-size: 0.8rem; margin-left: 0.5rem; color: var(--text-faint); }

/* ============================================================
   滚动入场动画(渐进增强;无 JS 时可见,reduced-motion 时禁用)
   no-js→js 替换在 header.php 首帧前同步完成,无闪现。
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}
@media (max-width: 640px) {
  .comment-list .children { padding-left: 1.25rem; }
  .comment__avatar .avatar { width: 2.25rem; height: 2.25rem; }
}

/* ============================================================
   侧栏新模块:文章列表 / 归档 / 自定义文本(v2.3.0)
   ============================================================ */
.widget-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.widget-posts__item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.widget-posts__thumb {
  flex: 0 0 auto;
  display: block;
  width: 3rem;
  height: 2.25rem;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--btn-bg);
}
.widget-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.widget-posts__thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-faint);
}
.widget-posts__thumb-ph .icon { width: 1rem; height: 1rem; }
.widget-posts__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.widget-posts__title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-posts__title:hover { color: var(--primary); }
.widget-posts__date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.widget-posts__date .icon { width: 0.8rem; height: 0.8rem; }

.widget-archive__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.widget-archive__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.widget-archive__list a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.widget-archive__list a:hover { color: var(--primary); }
.widget-archive__list .post-count { color: var(--text-faint); font-size: 0.75rem; }

.widget-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.widget-text a { color: var(--primary); text-decoration: underline; }
.widget-text p { margin: 0 0 0.6rem; }
.widget-text p:last-child { margin-bottom: 0; }
.widget-text ul,
.widget-text ol { margin: 0 0 0.6rem 1.2em; padding: 0; }
.widget-text ul:last-child,
.widget-text ol:last-child { margin-bottom: 0; }

/* —— 页脚版权 + 备案号 —— */
.site-info { display: flex; flex-direction: column; gap: 0.25rem; }
.site-icp { font-size: 0.78rem; color: var(--text-faint); }
.site-icp a { color: var(--text-faint); text-decoration: none; }
.site-icp a:hover { color: var(--primary); text-decoration: underline; }

/* —— 左侧栏:图片模块 —— */
.widget-image { text-align: center; }
.widget-image__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.widget-image__title {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.widget-image__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.widget-image__desc a { color: var(--primary); text-decoration: underline; }
