@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7b3fbe;
  --c-primary-dark: #3a1760;
  --c-secondary: #8b4513;
  --c-secondary-light: #b85a1a;
  --c-ink: #1f1726;
  --c-ink-soft: #2d1f3d;
  --c-surface: #271832;
  --c-surface-2: #301e40;
  --c-glass: rgba(86, 34, 139, 0.15);
  --c-glass-border: rgba(123, 63, 190, 0.3);
  --c-text: #e8dff5;
  --c-text-muted: #a990cc;
  --c-text-dim: #7a6898;
  --c-accent: #c084fc;
  --c-earth: #a0522d;
  --c-earth-light: #cd853f;
  --c-link: #c084fc;
  --c-link-hover: #e2b8ff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(86, 34, 139, 0.25);
  --shadow-card: 0 8px 32px rgba(86, 34, 139, 0.2);
  --shadow-glow: 0 0 20px rgba(86, 34, 139, 0.4);
  --font-mono: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace;
  --font-body: 'Fira Code', 'Share Tech Mono', monospace;
  --header-h: 112px;
}

/* ============================================================
   重置与基础
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--c-ink);
  color: var(--c-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 有机纹理背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(86,34,139,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(139,69,19,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(31,23,38,0.8) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--c-link-hover); }

ol, ul { list-style: none; }

/* ============================================================
   排版：标题 h2 > span 装饰
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.3;
}

h2 > span, h3 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

h2 > span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), transparent);
  border-radius: 2px;
}

h3 > span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 1px;
  background: var(--c-primary-light);
  border-radius: 1px;
}

/* ============================================================
   导航 Header（两行）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 23, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-glass-border);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--c-accent);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-name:hover { color: #fff; }

.brand-tagline {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  display: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  min-height: 40px;
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--c-accent);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.contact-link:hover {
  background: var(--c-primary);
  color: #fff;
}

/* 菜单行 */
.header-nav-row {
  border-top: 1px solid rgba(123,63,190,0.15);
  padding: 6px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav-row::-webkit-scrollbar { display: none; }

.main-nav > ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.main-nav > ol > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  background: rgba(86,34,139,0.2);
  border: 1px solid rgba(123,63,190,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-mono);
}

.main-nav > ol > li > a:hover,
.main-nav > ol > li > a[aria-current] {
  background: var(--c-primary);
  border-color: var(--c-primary-light);
  color: #fff;
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb { margin-bottom: 16px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

.breadcrumb ol li { display: flex; align-items: center; gap: 6px; }

.breadcrumb ol li:not(:last-child)::after {
  content: '›';
  color: var(--c-text-dim);
}

.breadcrumb ol li a { color: var(--c-text-muted); }
.breadcrumb ol li a:hover { color: var(--c-accent); }

/* ============================================================
   main / wrap（正文容器 main > section.wrap > article > div）
   ============================================================ */
main { min-height: calc(100vh - var(--header-h)); }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  padding: 48px 0;
}

/* ============================================================
   首页 Hero（满屏 + 圆弧底边）
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-primary-dark) 50%, rgba(139,69,19,0.3) 100%);
  margin: 0 -24px;
  padding: 0 24px;
}

/* 有机blob背景 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(86,34,139,0.35) 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(139,69,19,0.2) 0%, transparent 70%);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 0 160px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  border-radius: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--c-accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(86,34,139,0.6);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-arc {
  position: absolute;
  bottom: -1px;
  left: -24px;
  right: -24px;
  z-index: 3;
  line-height: 0;
}

.hero-arc svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--c-secondary);
  border-radius: var(--radius-pill);
  color: var(--c-earth-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--c-secondary);
  color: #fff;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  min-height: 40px;
  background: rgba(86,34,139,0.3);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-pill);
  color: var(--c-accent);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: background 0.2s, color 0.2s;
  margin-top: 12px;
  align-self: flex-start;
}

.btn-enter:hover {
  background: var(--c-primary);
  color: #fff;
}

/* ============================================================
   标签药丸
   ============================================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  min-height: 32px;
  background: rgba(86,34,139,0.25);
  border: 1px solid rgba(123,63,190,0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  transition: background 0.2s, color 0.2s;
}

.tag-pill:hover {
  background: var(--c-primary);
  border-color: var(--c-primary-light);
  color: #fff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   玻璃拟态卡片
   ============================================================ */
.glass-card {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   分类卡片网格（首页）
   ============================================================ */
.cats-section h2 {
  font-size: 1.5rem;
  color: var(--c-accent);
  margin-bottom: 28px;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(86,34,139,0.12);
  border: 1px solid var(--c-glass-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cat-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}

.cat-card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
}

.cat-card-body h3 {
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.cat-count {
  font-size: 0.78rem;
  color: var(--c-earth-light);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

/* ============================================================
   最近收录区（首页）
   ============================================================ */
.recent-section h2 {
  font-size: 1.5rem;
  color: var(--c-accent);
  margin-bottom: 28px;
}

.recent-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.recent-ul { display: flex; flex-direction: column; gap: 8px; }

.recent-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(86,34,139,0.1);
  border: 1px solid rgba(123,63,190,0.2);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: background 0.2s;
}

.recent-item a:hover {
  background: rgba(86,34,139,0.25);
}

.ri-title {
  color: var(--c-text);
  font-size: 0.9rem;
  flex: 1;
}

.ri-date {
  color: var(--c-text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
  font-family: var(--font-mono);
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: rgba(86,34,139,0.1);
  border: 1px solid rgba(123,63,190,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-block h3 {
  font-size: 0.9rem;
  color: var(--c-accent);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: nav-counter;
}

.sidebar-nav-list > li {
  counter-increment: nav-counter;
}

.sidebar-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav-list > li > a::before {
  content: counter(nav-counter, decimal-leading-zero);
  color: var(--c-primary-light);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  min-width: 22px;
}

.sidebar-nav-list > li > a:hover {
  background: rgba(86,34,139,0.25);
  color: var(--c-accent);
}

/* ============================================================
   栏目页 Hero
   ============================================================ */
.cat-hero {
  padding: 80px 0 48px;
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-surface) 100%);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.page-hero-inner,
.tag-hero-inner,
.about-header-inner,
.privacy-header-inner {
  max-width: 800px;
}

.page-h1, .tag-h1, .about-h1, .privacy-h1, .entry-h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 16px;
}

.cat-meta {
  margin-top: 8px;
}

.cat-count-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(139,69,19,0.25);
  border: 1px solid rgba(139,69,19,0.4);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--c-earth-light);
  font-family: var(--font-mono);
}

/* ============================================================
   入口列表 dl > dt > a + dd
   ============================================================ */
.entries-section h2,
.tag-entries-section h2 {
  font-size: 1.4rem;
  color: var(--c-accent);
  margin-bottom: 24px;
}

.entries-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.entries-main { flex: 1; }

.entry-dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-dl dt {
  margin-bottom: 0;
}

.entry-dl dt > a {
  display: block;
  padding: 12px 18px 8px;
  background: rgba(86,34,139,0.2);
  border: 1px solid rgba(123,63,190,0.3);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--c-accent);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: background 0.2s;
}

.entry-dl dt > a:hover {
  background: rgba(86,34,139,0.4);
  color: #fff;
}

.entry-dd {
  display: flex;
  gap: 14px;
  padding: 12px 18px 16px;
  background: rgba(86,34,139,0.08);
  border: 1px solid rgba(123,63,190,0.2);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.entry-thumb {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.entry-dd-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.entry-dd-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.entry-dd time {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  font-family: var(--font-mono);
}

.empty-tip {
  color: var(--c-text-dim);
  font-size: 0.9rem;
  padding: 24px 0;
}

/* ============================================================
   entry 页面
   ============================================================ */
.entry-header-section {
  padding: 72px 0 40px;
}

.entry-header-inner {
  max-width: 900px;
}

.entry-hero-media {
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0;
}

.entry-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  font-family: var(--font-mono);
}

.date-label { color: var(--c-text-dim); }

.entry-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 680px;
}

.entry-body-section { padding: 0 0 64px; }

.entry-content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.entry-article { flex: 1; min-width: 0; }

.entry-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(123,63,190,0.2);
}

.entry-back a {
  color: var(--c-text-muted);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.entry-back a:hover { color: var(--c-accent); }

/* ============================================================
   tag 页面
   ============================================================ */
.tag-hero-section {
  padding: 72px 0 40px;
  background: linear-gradient(150deg, var(--c-ink) 0%, rgba(86,34,139,0.12) 100%);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.tag-eyebrow, .about-eyebrow, .privacy-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(139,69,19,0.2);
  border: 1px solid rgba(139,69,19,0.35);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--c-earth-light);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.tag-desc { font-size: 1rem; color: var(--c-text-muted); line-height: 1.7; max-width: 600px; }

.tag-content-section, .tag-entries-section { padding: 40px 0; }

.tag-main-article, .about-article, .privacy-article { max-width: 100%; }

/* ============================================================
   about 页面
   ============================================================ */
.about-header-section {
  padding: 72px 0 40px;
  background: linear-gradient(150deg, var(--c-ink) 0%, rgba(86,34,139,0.12) 100%);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.about-update, .privacy-update {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.about-layout, .privacy-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.about-content-section, .about-cats-section { padding: 40px 0; }

.about-cats-section h2 {
  font-size: 1.4rem;
  color: var(--c-accent);
  margin-bottom: 24px;
}

.about-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.about-cat-card {
  padding: 20px;
  border-radius: 4px;
  background: rgba(86,34,139,0.12);
  border: 1px solid var(--c-glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.about-cat-card h3 {
  font-size: 0.95rem;
  color: var(--c-accent);
}

.about-cat-card p {
  font-size: 0.83rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}

/* ============================================================
   privacy 页面
   ============================================================ */
.privacy-header-section {
  padding: 72px 0 40px;
  background: linear-gradient(150deg, var(--c-ink) 0%, rgba(86,34,139,0.12) 100%);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.privacy-content-section { padding: 40px 0; }

/* ============================================================
   page-content 段落 / 正文 prose
   ============================================================ */
.page-content-section { padding: 40px 0; }

.page-main-article h2,
.tag-main-article h2,
.about-article h2,
.privacy-article h2,
.entry-article h2 {
  font-size: 1.25rem;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  max-width: 780px;
}

.prose h2 {
  font-size: 1.3rem;
  color: var(--c-accent);
  margin: 32px 0 12px;
  font-family: var(--font-mono);
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--c-text);
  margin: 24px 0 10px;
  font-family: var(--font-mono);
}

.prose p { margin-bottom: 14px; }

.prose a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--c-link-hover); }

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: 6px; }

.prose strong {
  color: var(--c-accent);
  font-weight: 600;
}

.prose em { color: var(--c-earth-light); }

.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 8px 20px;
  margin: 16px 0;
  background: rgba(86,34,139,0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-muted);
}

.prose code {
  background: rgba(86,34,139,0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--c-accent);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.prose th, .prose td {
  padding: 10px 14px;
  border: 1px solid rgba(123,63,190,0.25);
  text-align: left;
}

.prose th {
  background: rgba(86,34,139,0.25);
  color: var(--c-accent);
  font-family: var(--font-mono);
}

.prose img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

/* ============================================================
   日期
   ============================================================ */
time {
  font-family: var(--font-mono);
}

/* ============================================================
   页脚（四栏 + 超大品牌字）
   ============================================================ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid rgba(123,63,190,0.2);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand-mega {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.footer-nav > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav > ol > li > a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  min-height: 40px;
  background: rgba(86,34,139,0.15);
  border: 1px solid rgba(123,63,190,0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  transition: background 0.2s, color 0.2s;
}

.footer-nav > ol > li > a:hover {
  background: var(--c-primary);
  color: #fff;
}

.footer-copy {
  padding-top: 24px;
  border-top: 1px solid rgba(123,63,190,0.15);
  text-align: center;
}

.footer-copy p {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  line-height: 1.7;
  font-family: var(--font-mono);
}

.footer-note {
  font-size: 0.76rem !important;
  color: var(--c-text-dim);
  opacity: 0.7;
  margin-top: 6px;
}

/* ============================================================
   Scroll Reveal 动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .glass-card, .cat-card, .about-cat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   响应式断点
   ============================================================ */
@media (min-width: 1024px) {
  .brand-tagline { display: inline-block; }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 48px;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .recent-layout,
  .entries-layout,
  .entry-content-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-block { flex: 1 1 240px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-brand-row { padding: 10px 16px; }
  .header-nav-row { padding: 6px 16px; }
  .brand-name { font-size: 1rem; }
  .hero-content { padding: 100px 0 140px; }
  .hero-h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .cats-grid { grid-template-columns: 1fr; }
  .about-cats-grid { grid-template-columns: 1fr; }
  .content-section { padding: 32px 0; }
  .entry-header-section { padding: 56px 0 28px; }
  .cat-hero { padding-top: 56px; }
  .sidebar { flex-direction: column; }
}

@media (max-width: 375px) {
  html { font-size: 15px; }
  .main-nav > ol > li > a { padding: 8px 10px; font-size: 0.75rem; }
}
