/* ==========================================================================
   墨白 MoBai — Halo 2 主题样式
   明暗双主题 / 卡片流 / 毛玻璃 / 无封面自动渐变
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --container: 1200px;
  --sidebar-w: 311px;
  --gap: 20px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;

  --primary: #5b6ef5;
  --primary-2: #8b5cf6;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --nav-h: 60px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 浅色 —— 取值对齐子比：纯灰底、均匀微光阴影、灰调正文 */
:root,
[data-theme="light"] {
  --bg: #f5f6f7;
  --bg-elev: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-soft: #f6f7f8;
  --text: #4e5358;
  --text-strong: #333333;
  --text-2: #777777;
  --text-3: #999999;
  --border: rgba(50, 50, 50, 0.06);
  --border-strong: rgba(50, 50, 50, 0.12);
  --shadow-sm: 0 0 6px rgba(116, 116, 116, 0.06);
  --shadow: 0 0 10px rgba(116, 116, 116, 0.08);
  --shadow-lg: 0 0 18px rgba(116, 116, 116, 0.13);
  --code-bg: #f6f7f8;
  --mark-bg: rgba(91, 110, 245, 0.12);
}

/* 深色 —— 同一套明度关系，不用纯黑 */
[data-theme="dark"] {
  --bg: #17181a;
  --bg-elev: #1f2124;
  --bg-glass: rgba(31, 33, 36, 0.82);
  --bg-soft: #26282c;
  --text: #b6bbc3;
  --text-strong: #eceef2;
  --text-2: #8b919a;
  --text-3: #6b707a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 0 6px rgba(0, 0, 0, 0.3);
  --shadow: 0 0 12px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 0 20px rgba(0, 0, 0, 0.55);
  --code-bg: #121316;
  --mark-bg: rgba(139, 92, 246, 0.22);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* 背景：子比是纯色平面，不加光晕 */

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--mark-bg);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
  background-clip: content-box;
}

/* 标题层级：比正文更深、更重 */
h1, h2, h3, h4, h5, h6,
.post-card__title a,
.hot-item__title,
.cat-item,
.widget__title,
.profile__name,
.section-head__title {
  color: var(--text-strong);
}

.post-card__title,
.section-head__title,
.page-head__title {
  font-weight: 700;
  letter-spacing: -0.015em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. 顶栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease), backdrop-filter 0.32s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首页顶部：初始透明 */
.site-header.is-transparent {
  background: transparent;
}
.site-header.is-transparent .brand__name,
.site-header.is-transparent .nav__link,
.site-header.is-transparent .nav__icon {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.site-header.is-transparent .nav__link::after {
  background: #fff;
}

/* 滚动后 / 非首页：毛玻璃 */
.site-header.is-solid {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav__link {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-header.is-transparent .nav__link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.site-header.is-transparent .nav__link.is-active::after {
  background: #fff;
}

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav__item {
  position: relative;
}

.nav__item:hover .nav__sub {
  display: flex;
}

.nav__sub .nav__link {
  color: var(--text-2);
  padding: 8px 10px;
}

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

.nav__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__icon:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-header.is-transparent .nav__icon:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav__icon svg {
  width: 18px;
  height: 18px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
}

/* ---------- 4. 首页 Banner ---------- */
.hero {
  position: relative;
  min-height: 480px;
  padding: calc(var(--nav-h) + 88px) 0 76px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-fallback, var(--gradient));
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02);
}

.hero__mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 16, 0.58) 0%,
    rgba(8, 10, 16, 0.55) 42%,
    rgba(8, 10, 16, 0.88) 100%
  );
}

[data-theme="dark"] .hero__mask,
[data-theme="dark"] .post-hero__mask {
  background: linear-gradient(
    180deg,
    rgba(6, 8, 12, 0.74) 0%,
    rgba(6, 8, 12, 0.72) 42%,
    rgba(10, 12, 16, 0.96) 100%
  );
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero__desc {
  margin: 0 0 26px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 10px 10px 10px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__search svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 14px;
}

.hero__search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero__search button {
  padding: 7px 16px;
  border-radius: 99px;
  background: #fff;
  color: #171b24;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.hero__search button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* 居中版 Banner */
.hero--center {
  align-items: center;
  text-align: center;
}

.hero--center .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--center .hero__desc {
  margin-left: auto;
  margin-right: auto;
}

.hero--center .hero__search {
  margin: 0 auto;
}

/* Banner 底部彩色标签行 */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.hero__tags a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s var(--ease);
}

.hero__tags a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--dot, #4ade80);
  box-shadow: 0 0 8px var(--dot, #4ade80);
}

.hero__tags a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ---------- 5. 主体骨架 ---------- */
.site-main {
  padding: 34px 0 72px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

.layout--full {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- 6. 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head__title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: var(--gradient);
}

.section-head__more {
  font-size: 13px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.section-head__more:hover {
  color: var(--primary);
  gap: 8px;
}

/* ---------- 7. 文章卡片 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* 封面 */
.post-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #5b6ef5), var(--c2, #8b5cf6));
}

.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.post-card:hover .post-card__cover img {
  transform: scale(1.055);
}

/* 无封面：几何渐变 + 首字水印 */
.post-card__cover--auto {
  display: grid;
  place-items: center;
}

.post-card__cover--auto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34) 0, transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.16) 0, transparent 46%);
}

.post-card__cover--auto::after {
  content: attr(data-initial);
  position: relative;
  font-size: 40px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.post-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  border-radius: 7px;
  background: rgba(12, 16, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.post-card__pin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 14px -4px rgba(91, 110, 245, 0.8);
}

.post-card__pin svg {
  width: 13px;
  height: 13px;
}

/* 卡片正文 */
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 14px;
  flex: 1;
}

.post-card__title {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title a {
  transition: color 0.2s var(--ease);
}

.post-card:hover .post-card__title a {
  color: var(--primary);
}

.post-card__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.post-card__meta .meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.post-card__meta .meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.8;
}

.post-card__meta .meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__avatar {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.tag-pill:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

/* 横向紧凑卡片（子比式列表） */
.post-card--row {
  flex-direction: row;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}

.post-card--row:last-child {
  border-bottom: 0;
}

.post-card--row:hover {
  transform: none;
  box-shadow: none;
}

.post-card--row .post-card__cover {
  width: 156px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  min-height: 0;
  align-self: center;
  border-radius: var(--radius-sm);
  margin: 0;
}

.post-card--row .post-card__badge {
  top: 8px;
  left: 0;
  font-size: 10px;
  padding: 2px 10px 2px 6px;
  border: 0;
  border-radius: 0 99px 99px 0;
}

.post-card--row .post-card__pin {
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
}

.post-card--row .post-card__pin svg {
  width: 11px;
  height: 11px;
}

.post-card--row .post-card__cover--auto::after {
  font-size: 24px;
}

.post-card--row .post-card__body {
  padding: 16px 0 16px 16px;
  gap: 6px;
  justify-content: center;
}

.post-card--row .post-card__title {
  font-size: 15.5px;
  -webkit-line-clamp: 2;
  line-height: 1.5;
}

.post-card--row .post-card__excerpt {
  -webkit-line-clamp: 1;
  font-size: 12.5px;
}

.post-card--row .post-card__meta {
  padding-top: 2px;
  font-size: 11.5px;
}

/* 列表容器（一张卡包住所有行） */
.post-rows {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2px 16px;
}

/* ---------- 7.1 分类筛选 tab ---------- */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.filter-tab:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.filter-tab.is-active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 18px -10px rgba(91, 110, 245, 0.85);
}

/* ---------- 7.2 特色小卡（图标 + 标题 + 按钮） ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--gradient);
}

.feature-card__icon svg {
  width: 19px;
  height: 19px;
}

.feature-card__body {
  min-width: 0;
  flex: 1;
}

.feature-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.feature-card__desc {
  display: block;
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-card__go {
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border-radius: 99px;
}


/* 首篇大卡 */
.post-card--wide {
  grid-column: 1 / -1;
}

.post-card--wide .post-card__cover {
  aspect-ratio: 21 / 9;
}

.post-card--wide .post-card__title {
  font-size: 20px;
  -webkit-line-clamp: 2;
}

.post-card--wide .post-card__body {
  padding: 18px 20px 16px;
}

.post-card--wide .post-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 13.5px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 72px 24px;
  color: var(--text-3);
  text-align: center;
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ---------- 8. 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination__btn,
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}

.pagination__btn:hover,
.pagination__num:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.pagination__num.is-current {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(91, 110, 245, 0.9);
}

.pagination__ellipsis {
  color: var(--text-3);
  padding: 0 2px;
}

.pagination__info {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 6px;
}

/* ---------- 9. 侧栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}

.widget {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.widget__title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: var(--gradient);
}

.widget__link {
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.widget__link:hover {
  color: var(--primary);
}

/* 作者卡 */
.profile {
  text-align: center;
  padding: 22px 16px 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    var(--bg-elev);
}

.profile__avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 99px;
  object-fit: cover;
  padding: 3px;
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--border), 0 10px 26px -12px rgba(0, 0, 0, 0.35);
}

.profile__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile__bio {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  border-radius: 8px;
  transition: background-color 0.2s var(--ease);
}

.profile__stat:hover {
  background: var(--bg-soft);
}

.profile__stat b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.profile__stat span {
  font-size: 11.5px;
  color: var(--text-3);
}

/* 热门文章 */
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hot-item {
  display: flex;
  gap: 11px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease);
}

.hot-item:hover {
  background: var(--bg-soft);
}

.hot-item__rank {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  background: var(--bg-soft);
  border-radius: 6px;
}

.hot-item:nth-child(1) .hot-item__rank {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
}
.hot-item:nth-child(2) .hot-item__rank {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.hot-item:nth-child(3) .hot-item__rank {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.hot-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hot-item__title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease);
}

.hot-item:hover .hot-item__title {
  color: var(--primary);
}

.hot-item__meta {
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  gap: 10px;
}

/* 分类列表 */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 9px;
  font-size: 13.5px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cat-item:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.cat-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--gradient);
  flex-shrink: 0;
  opacity: 0.75;
}

.cat-item__count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud a {
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all 0.2s var(--ease);
}

.tag-cloud a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-1px);
}

/* 站点统计 */
.site-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.site-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--bg-soft);
}

.site-stats__item b {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.site-stats__item span {
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- 10. 悬浮工具条 ---------- */
.dock {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--text-2);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease),
    opacity 0.22s var(--ease);
}

.dock__btn:hover {
  transform: translateY(-2px);
  color: var(--primary);
}

.dock__btn svg {
  width: 18px;
  height: 18px;
}

.dock__btn--top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.dock__btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* 阅读进度 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 2.5px;
  width: 0;
  background: var(--gradient);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- 11. 移动端底部导航 ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}

.tabbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 56px;
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.tabbar__item svg {
  width: 20px;
  height: 20px;
}

.tabbar__item.is-active {
  color: var(--primary);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 0 32px;
  margin-top: 8px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.site-footer__desc {
  margin: 10px 0 0;
  max-width: 380px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-2);
}

.site-footer__links a:hover {
  color: var(--primary);
}

.site-footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.site-footer__bottom a {
  color: var(--text-3);
}

.site-footer__bottom a:hover {
  color: var(--primary);
}

/* ---------- 13. 文章页 ---------- */
.post-hero {
  position: relative;
  padding: calc(var(--nav-h) + 76px) 0 52px;
  overflow: hidden;
  isolation: isolate;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-fallback, var(--gradient));
  background-size: cover;
  background-position: center 30%;
}

.post-hero__mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 16, 0.72) 0%,
    rgba(8, 10, 16, 0.6) 45%,
    rgba(8, 10, 16, 0.88) 100%
  );
}

.post-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb__sep {
  opacity: 0.5;
}

.post-hero__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.post-hero__meta .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-hero__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.post-hero__avatar {
  width: 24px;
  height: 24px;
  border-radius: 99px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.article-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px 28px;
  min-width: 0;
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow: auto;
  font-size: 13px;
}

.toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--border);
}

.toc__link {
  display: block;
  padding: 5px 10px;
  margin-left: -1px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  line-height: 1.5;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc__link:hover {
  color: var(--text);
}

.toc__link.is-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

.toc__link[data-depth="3"] {
  padding-left: 22px;
  font-size: 12.5px;
}

/* ---------- 14. 正文排版 ---------- */
.prose {
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  margin: 2em 0 0.75em;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h1 {
  font-size: 26px;
}
.prose h2 {
  font-size: 22px;
  padding-left: 14px;
}
.prose h3 {
  font-size: 18.5px;
}
.prose h4 {
  font-size: 16px;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  bottom: 0.24em;
  width: 4px;
  border-radius: 99px;
  background: var(--gradient);
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--primary);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--primary);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.4em auto;
  box-shadow: var(--shadow);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  color: var(--text-2);
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  height: 1px;
  border: 0;
  margin: 2.2em 0;
  background: var(--border);
}

/* 代码 */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.16em 0.42em;
  border-radius: 5px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  color: color-mix(in srgb, var(--primary) 78%, var(--text));
}

.prose pre {
  position: relative;
  margin: 1.5em 0;
  padding: 16px 18px;
  overflow: auto;
  font-size: 13.2px;
  line-height: 1.7;
  border-radius: var(--radius);
  background: var(--code-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: var(--text);
}

/* 表格 */
.prose table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose thead th {
  background: var(--bg-soft);
  font-weight: 600;
  text-align: left;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.prose tr:last-child td {
  border-bottom: 0;
}

/* 文章底部操作 */
.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all 0.2s var(--ease);
}

.action-btn:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  transform: translateY(-1px);
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn--primary {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 10px 24px -12px rgba(91, 110, 245, 0.9);
}

.action-btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(91, 110, 245, 1);
}

/* 标签行 */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.post-tags__label {
  font-size: 12.5px;
  color: var(--text-3);
  margin-right: 2px;
}

/* 上下篇 */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

.post-nav__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.post-nav__item--next {
  text-align: right;
  align-items: flex-end;
}

.post-nav__label {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.post-nav__title {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 相关推荐 */
.related {
  margin-top: 22px;
}

.related .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 评论 */
.comments {
  margin-top: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 40px 30px;
  box-shadow: var(--shadow-sm);
}

.comments__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 650;
}

.comments__title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 99px;
  background: var(--gradient);
}

/* ---------- 15. 归档 / 分类 / 标签页头 ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 26px;
}

.page-head__title {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head__count {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 99px;
  letter-spacing: 0;
}

.page-head__desc {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* 归档时间线 */
.archive-timeline {
  position: relative;
  padding-left: 26px;
}

.archive-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--border) 30%,
    var(--border) 100%
  );
  border-radius: 99px;
}

.archive-year {
  position: relative;
  margin: 26px 0 14px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.archive-year:first-child {
  margin-top: 0;
}

.archive-year::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: 6px;
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--bg);
  border: 2.5px solid var(--primary);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease);
}

.archive-item:hover {
  background: var(--bg-soft);
}

.archive-item time {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.archive-item__title {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.archive-item:hover .archive-item__title {
  color: var(--primary);
}

/* 分类卡片墙 */
.cat-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.28s var(--ease);
}

.cat-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 99px;
  background: var(--gradient);
  opacity: 0.09;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.cat-card:hover::after {
  transform: scale(1.35);
  opacity: 0.16;
}

.cat-card__name {
  position: relative;
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 650;
}

.cat-card__count {
  position: relative;
  font-size: 12.5px;
  color: var(--text-3);
}

.cat-card__desc {
  position: relative;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 标签墙 */
.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-wall a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}

.tag-wall a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(91, 110, 245, 0.9);
}

.tag-wall a small {
  font-size: 11px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* 搜索 */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 14.5px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  :root {
    --sidebar-w: 288px;
  }
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .article-card {
    padding: 30px 28px 24px;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
  .post-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .dock {
    display: none;
  }
  .tabbar {
    display: block;
  }
  body {
    padding-bottom: 56px;
  }
  .site-footer {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .container,
  .site-header__inner,
  .hero__inner,
  .post-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    min-height: 340px;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 44px;
  }
  .hero__desc {
    font-size: 14px;
  }
  .post-grid,
  .related .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .post-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-card--row {
    flex-direction: column;
  }
  .post-card--row .post-card__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .article-card {
    padding: 22px 18px 18px;
    border-radius: var(--radius);
  }
  .comments {
    padding: 20px 18px 22px;
  }
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav__item--next {
    text-align: left;
    align-items: flex-start;
  }
  .post-actions {
    flex-wrap: wrap;
  }
  .prose {
    font-size: 15px;
  }
  .prose pre {
    margin-left: -18px;
    margin-right: -18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .post-hero__title {
    font-size: 22px;
  }
  .cat-wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 尊重系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 17. 主题模板补充 ---------- */
/* 移动端抽屉菜单 */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  background: rgba(8, 10, 14, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mobile-nav.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 320px);
  padding: 18px;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  overflow: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: none;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
}

.mobile-nav__links a {
  padding: 12px 8px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 9px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav__links a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* 侧栏空状态 */
.widget__empty {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

/* 文字头像 */
.profile__avatar--text {
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
}

/* 无头图的文章页 */
.site-main--no-hero {
  padding-top: calc(var(--nav-h) + 32px);
}

/* 单栏文章布局 */
.post-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

/* 文章页评论间距 */
.article-card + .post-nav,
.article-card + .related {
  margin-top: 22px;
}

/* 归档页单项（不再包 .archive-list） */
.archive-timeline .archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease);
}

.archive-timeline .archive-item:hover {
  background: var(--bg-soft);
}

/* ==========================================================================
   18. 动效层（复刻子比的「神」）
   ========================================================================== */

/* ---------- 18.1 滚动入场 ---------- */
.obs-animate {
  opacity: 0;
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.obs-animate.in-view {
  opacity: 1;
  transform: none !important;
  transition-delay: var(--delay, 0s);
}

.obs-animate.ani-slideup {
  transform: translateY(56px);
}

.obs-animate.ani-zoomin {
  transform: scale(0.82);
}

.obs-animate.ani-slideright {
  transform: translateX(-48px);
}

/* ---------- 18.2 图片懒加载：模糊 → 清晰 ---------- */
img.is-lazy {
  filter: blur(6px);
  transform: scale(1.04);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

img.is-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* 无封面占位：微光呼吸 */
.post-card__cover--auto::before {
  animation: coverBreath 6s ease-in-out infinite;
}

@keyframes coverBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ---------- 18.3 角标：贴边气球 ---------- */
.post-card__badge {
  left: 0;
  top: 11px;
  padding: 3px 11px 3px 8px;
  border-radius: 0 99px 99px 0;
  border-left: 0;
  background: rgba(12, 16, 24, 0.62);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease);
}

.post-card:hover .post-card__badge {
  transform: translateX(4px);
  background: rgba(91, 110, 245, 0.92);
}

/* ---------- 18.4 卡片 hover 深化 ---------- */
.post-card:hover {
  transform: translateY(-3px);
}

.post-card__cover img {
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 标题下划线扫过 */
.post-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.32s var(--ease), color 0.2s var(--ease);
}

.post-card:hover .post-card__title a {
  background-size: 100% 1.5px;
}

/* 列表行 hover 高亮 */
.post-card--row {
  border-radius: var(--radius-sm);
  transition: background-color 0.24s var(--ease);
}

.post-card--row:hover {
  background: var(--bg-soft);
}

/* ---------- 18.5 悬浮工具条 tooltip ---------- */
.dock__btn {
  position: relative;
}

.dock__btn::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: #fff;
  background: rgba(15, 18, 26, 0.94);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.dock__btn:hover::after {
  opacity: 1;
  transform: translateY(-50%);
}

/* ---------- 18.6 返回顶部的环形进度 ---------- */
.dock__btn--top {
  position: relative;
}

.dock__btn--top::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

.dock__btn--top.is-visible::before {
  opacity: 1;
}

/* ---------- 18.7 按钮光扫 ---------- */
.action-btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.action-btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}

.action-btn--primary:hover::after {
  left: 125%;
}

/* ---------- 18.8 点赞弹跳 ---------- */
@keyframes lovestar {
  0% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(0, 4px, 0) rotate(5deg); }
  60% { transform: translate3d(-2px, -6px, 0) scale(1.3) rotate(-25deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

.js-upvote.is-loved svg {
  animation: lovestar 0.62s ease;
  color: #f43f5e;
}

.js-upvote.is-loved {
  color: #f43f5e !important;
}

/* ---------- 18.9 代码块复制按钮 ---------- */
.prose pre {
  position: relative;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.prose pre:hover .code-copy {
  opacity: 1;
  transform: none;
}

.code-copy:hover {
  color: var(--primary);
}

.code-copy.is-done {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.4);
}

/* ---------- 18.10 图片灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox.is-open {
  display: grid;
  opacity: 1;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.28s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.prose img {
  cursor: zoom-in;
}

/* ---------- 18.11 移动端底栏滚动隐藏 ---------- */
.tabbar {
  transition: transform 0.32s var(--ease);
}

.tabbar.is-hidden {
  transform: translateY(100%);
}

/* ---------- 18.12 数字等宽 ---------- */
time,
.pagination__info,
.profile__stat b,
.site-stats__item b,
.hot-item__rank,
.cat-item__count,
.post-card__meta .meta span {
  font-variant-numeric: tabular-nums;
}

/* ---------- 18.13 顶栏下拉菜单动效 ---------- */
.nav__sub {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__item:hover .nav__sub {
  opacity: 1;
  transform: none;
}

/* 列表行内的角标同样贴边 */
.post-card--row .post-card__badge {
  left: 0;
  top: 8px;
  padding: 2px 10px 2px 6px;
  border: 0;
  border-radius: 0 99px 99px 0;
}

/* 功能卡行距微调 */
.feature-card__title {
  line-height: 1.3;
}

.feature-card__desc {
  line-height: 1.5;
  margin-top: 4px;
}

/* 彩色分类角标（由脚本注入 --b1/--b2） */
.post-card__badge {
  background: linear-gradient(135deg, var(--b1, rgba(12, 16, 24, 0.66)), var(--b2, rgba(12, 16, 24, 0.66)));
  border-color: rgba(255, 255, 255, 0.22);
}

.post-card:hover .post-card__badge {
  background: linear-gradient(135deg, var(--b1, rgba(91, 110, 245, 0.92)), var(--b2, rgba(139, 92, 246, 0.92)));
  filter: brightness(1.06);
}

/* 覆盖修复：hero 内标题必须反白，不能被全局标题色命中 */
.hero__title,
.post-hero__title,
.hero .hero__title,
.post-hero .post-hero__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .hero__desc,
.post-hero .post-hero__meta,
.post-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   19. 门户化模块：分类宫格 / 首屏统计
   ========================================================================== */

/* 首屏统计条 */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
}

.hero__stats b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero__stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__stats li + li {
  position: relative;
}

.hero__stats li + li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}

/* 分类宫格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 8px 13px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.cat-tile__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}

.cat-tile__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-strong);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.cat-tile__count {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .hero__stats {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-tile {
    padding: 12px 6px 10px;
  }
  .cat-tile__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
  }
  .hero__stats {
    gap: 18px;
  }
  .hero__stats b {
    font-size: 18px;
  }
}

/* 区块标题的篇数 */
.section-head__count {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 首屏统计对比度加强 */
.hero__stats b {
  color: #fff;
}

.hero__stats span {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   20. 按子比 demo 实测校正：首屏高度 / 宫格列数 / 列表密度 / 运营位
   ========================================================================== */

/* 首屏压到 360 —— 子比是矮首屏，内容尽早进入视野 */
.hero {
  min-height: 360px;
  padding: calc(var(--nav-h) + 54px) 0 48px;
}

.hero__title {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 10px;
}

.hero__desc {
  margin-bottom: 20px;
  font-size: 14px;
}

.hero__eyebrow {
  margin-bottom: 14px;
}

.hero__search {
  max-width: 520px;
}

.hero__tags {
  margin-top: 16px;
  gap: 7px;
}

.hero__tags a {
  padding: 4px 10px;
  font-size: 12px;
}

.hero__stats {
  margin-top: 18px;
  gap: 26px;
}

.hero__stats b {
  font-size: 19px;
}

/* 宫格 4 列（子比是 4 个横排） */
.cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cat-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 14px 16px;
  text-align: left;
}

.cat-tile__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 15px;
}

.cat-tile__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-tile__name {
  text-align: left;
  font-size: 13.5px;
}

.cat-tile__count {
  font-size: 11.5px;
}

/* 列表摘要给到 2 行，密度更接近子比 */
.post-card--row .post-card__excerpt {
  -webkit-line-clamp: 2;
  font-size: 12.5px;
  line-height: 1.6;
}

.post-card--row .post-card__cover {
  width: 168px;
  aspect-ratio: 16 / 10;
}

.post-card--row .post-card__body {
  padding: 15px 0 15px 16px;
  gap: 7px;
}

/* ---------- 内容区顶部运营位 ---------- */
.promo {
  position: relative;
  display: block;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  min-height: 148px;
}

.promo__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, #4f46e5 0%, #7c3aed 46%, #db2777 100%);
}

.promo__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.26) 0, transparent 42%),
    radial-gradient(circle at 16% 88%, rgba(255, 255, 255, 0.14) 0, transparent 46%);
}

.promo__body {
  position: relative;
  padding: 22px 24px;
  color: #fff;
}

.promo__tag {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.promo__title {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.promo__desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.2s var(--ease);
}

.promo:hover .promo__btn {
  transform: translateX(3px);
}

@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 300px;
    padding: calc(var(--nav-h) + 36px) 0 34px;
  }
  .promo__body {
    padding: 18px;
  }
  .promo__title {
    font-size: 16px;
  }
}

/* 运营位压扁一点，别压过列表 */
.promo {
  min-height: 126px;
}

.promo__body {
  padding: 18px 22px;
}

.promo__title {
  font-size: 18px;
  margin-bottom: 6px;
}

.promo__desc {
  margin-bottom: 12px;
}

/* 运营位改成细横条：不抢内容 */
.promo {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 0;
  padding: 13px 18px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  isolation: auto;
}

.promo__bg {
  display: none;
}

.promo__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: var(--gradient);
  box-shadow: 0 6px 14px -7px rgba(91, 110, 245, 0.9);
}

.promo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.promo__text b {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.promo__text span {
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo__btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s var(--ease);
}

.promo:hover .promo__btn {
  transform: translateX(3px);
}
