/* ==========================================================
   幕辞笔记 MUCI NOTE - 默认主题
   设计风格：暮辞的紫色便笺本 · 浅色手账风
   主色：暮辞紫 #6C5CE7 | 点缀：柔粉 #FDA7DF
   ========================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  /* 暮辞紫 9 级色阶 */
  --purple-50: #F3F1FD;
  --purple-100: #E7E3FB;
  --purple-200: #D1CAF7;
  --purple-300: #B0A4F0;
  --purple-400: #8B7BEA;
  --purple-500: #6C5CE7;
  --purple-600: #5A4AD4;
  --purple-700: #4A3CB0;
  --purple-800: #3A2F8A;
  --purple-900: #2A2164;

  /* 柔粉 6 级 */
  --pink-50: #FFF0FA;
  --pink-100: #FFE0F4;
  --pink-200: #FFC2E9;
  --pink-300: #FEB3E4;
  --pink-400: #FDA7DF;
  --pink-500: #F472B6;
  --pink-600: #EC4899;

  /* 薄荷绿 */
  --mint-50: #E8FFF8;
  --mint-400: #55EFC4;
  --mint-500: #10B981;

  /* 暖金 */
  --gold-50: #FFFBEB;
  --gold-100: #FEF3C7;
  --gold-300: #FCD34D;
  --gold-400: #FDCB6E;
  --gold-500: #F59E0B;

  /* 紫灰中性色 */
  --gray-50: #FAFAFC;
  --gray-100: #F3F2F7;
  --gray-200: #E8E7F0;
  --gray-300: #D3D1DE;
  --gray-400: #B0ADC1;
  --gray-500: #8B879E;
  --gray-600: #6B6780;
  --gray-700: #5B5870;
  --gray-800: #3D3A50;
  --gray-900: #2D2B3A;
  --gray-950: #1A1924;

  /* 语义色 */
  --bg: var(--purple-50);
  --bg-card: #FFFFFF;
  --bg-soft: var(--gray-50);
  --bg-input: var(--gray-100);
  --text: var(--gray-700);
  --text-strong: var(--gray-900);
  --text-soft: var(--gray-500);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);
  --primary: var(--purple-500);
  --primary-soft: var(--purple-50);
  --accent: var(--pink-400);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-hand: "ZCOOL KuaiLe", "Ma Shan Zheng", "LXGW WenKai", cursive;
  --font-code: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;

  /* 尺寸 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 999px;
  --container: 1180px;

  /* 阴影（紫色阴影，不是黑色！） */
  --shadow-xs: 0 1px 2px rgba(108, 92, 231, 0.05);
  --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.06);
  --shadow-md: 0 6px 20px rgba(108, 92, 231, 0.08);
  --shadow-lg: 0 12px 36px rgba(108, 92, 231, 0.12);
  --shadow-xl: 0 24px 64px rgba(108, 92, 231, 0.16);
  --shadow-pink: 0 8px 24px rgba(253, 167, 223, 0.25);
  --shadow-note: 0 1px 2px rgba(108, 92, 231, 0.05), 0 8px 24px rgba(108, 92, 231, 0.1);

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--purple-600); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

ul, ol { padding-left: 1.5em; }

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


/* ---------- 顶部导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
  gap: 24px;
}

/* Logo */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-400));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  transition: transform var(--transition);
}
.site-brand:hover .site-logo { transform: rotate(-5deg) scale(1.05); }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-strong);
  margin: 0;
}
.site-logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.site-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

/* 导航 */
.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  position: relative;
  color: var(--gray-700);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after { width: 30px; }
.site-nav a.active { color: var(--primary); }
.site-nav a.active::after { width: 30px; }

/* 右侧操作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-form {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 4px 2px 16px;
  transition: all var(--transition-fast);
  height: 40px;
}
.search-form:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}
.search-form input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-strong);
  font-size: 13px;
  width: 150px;
  font-family: inherit;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.search-form button:hover {
  background: var(--purple-600);
  transform: scale(1.08);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-strong);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.menu-toggle:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: all var(--transition-fast);
}
.menu-toggle:hover span { background: var(--primary); }

/* ---------- Hero 区 ---------- */
.section-hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.section-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.section-hero::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 167, 223, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--pink-500);
  margin-bottom: 16px;
  transform: rotate(-2deg);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  margin: 0 0 20px;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--pink-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  height: 52px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-400) 50%, var(--pink-400) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  height: 52px;
  padding: 0 28px;
  background: var(--purple-50);
  color: var(--purple-600);
}
.btn-ghost:hover {
  background: var(--purple-100);
  color: var(--purple-700);
  transform: translateY(-1px);
}


/* ---------- 主体布局 ---------- */
.site-main { padding: 0 0 80px; }
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ---------- 区块标题 ---------- */
.section-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head-left { display: flex; flex-direction: column; gap: 6px; }
.section-head-tag {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--pink-500);
  letter-spacing: 2px;
  text-transform: lowercase;
}
.section-head-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
  position: relative;
}
.section-head-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
  margin-top: 8px;
}
.section-more {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.section-more:hover { padding-right: 4px; }

/* ---------- 便签文章卡片 ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-card {
  position: relative;
  padding: 28px 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-note);
  transition: all var(--transition);
}
/* 顶部彩色色带（便签效果） */
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 40px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
}
/* 胶带装饰（特色卡） */
.post-card::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 32px;
  width: 70px;
  height: 22px;
  background: rgba(253, 167, 223, 0.4);
  border-radius: 2px;
  transform: rotate(3deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.post-card:nth-child(3n)::after { background: rgba(108, 92, 231, 0.3); }
.post-card:nth-child(3n+1)::after { background: rgba(253, 203, 110, 0.5); }

.post-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 16px 48px rgba(108, 92, 231, 0.14);
}
.post-card:hover::after { opacity: 1; }

.post-card .category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.post-card-date {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}
.post-card-title a {
  color: var(--text-strong);
  transition: color var(--transition-fast);
}
.post-card-title a:hover { color: var(--primary); }

.post-card-summary {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.post-card-tags .tag {
  font-size: 12px;
  color: var(--text-soft);
}
.post-card-tags .tag::before { content: "#"; }

/* ---------- 侧边栏 ---------- */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 92px;
}
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition);
}
.widget:hover { box-shadow: var(--shadow-md); }

.widget-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--purple-50);
}
.widget-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple-500), var(--pink-400));
}

/* 关于我 widget（渐变卡） */
.widget-about {
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-400) 50%, var(--pink-400) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.widget-about::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}
.widget-about .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  margin: 8px auto 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(10px);
}
.widget-about .name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.widget-about .role {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 12px;
}
.widget-about .bio {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0 0 16px;
}
.widget-about-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.widget-about-stats .stat-item { text-align: center; }
.widget-about-stats .num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.widget-about-stats .label {
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* 分类 widget */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}
.cat-list li:hover { background: var(--purple-50); }
.cat-list li:hover .cat-name { color: var(--primary); }
.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-400);
  margin-right: 10px;
  flex-shrink: 0;
}
.cat-list li:nth-child(2n) .cat-dot { background: var(--purple-400); }
.cat-list li:nth-child(3n) .cat-dot { background: var(--gold-400); }
.cat-list li:nth-child(4n) .cat-dot { background: var(--mint-400); }
.cat-name {
  flex: 1;
  font-size: 14px;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}
.cat-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* 标签云 widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}
.tag-cloud a.tag-pink { background: var(--pink-50); color: var(--pink-600); }
.tag-cloud a.tag-pink:hover { background: var(--pink-500); color: #fff; }
.tag-cloud a.tag-mint { background: var(--mint-50); color: var(--mint-500); }
.tag-cloud a.tag-mint:hover { background: var(--mint-500); color: #fff; }
.tag-cloud a.tag-gold { background: var(--gold-50); color: var(--gold-500); }
.tag-cloud a.tag-gold:hover { background: var(--gold-500); color: #fff; }

/* 热门文章 widget */
.hot-list { list-style: none; padding: 0; margin: 0; counter-reset: hot; }
.hot-list li {
  counter-increment: hot;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hot-list li:last-child { border-bottom: none; }
.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.hot-list li:nth-child(1) .hot-rank { background: linear-gradient(135deg, #F59E0B, #FCD34D); color: #fff; }
.hot-list li:nth-child(2) .hot-rank { background: linear-gradient(135deg, var(--purple-500), var(--purple-400)); color: #fff; }
.hot-list li:nth-child(3) .hot-rank { background: linear-gradient(135deg, var(--pink-500), var(--pink-400)); color: #fff; }
.hot-info { flex: 1; min-width: 0; }
.hot-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}
.hot-title:hover { color: var(--primary); }
.hot-views {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 便签贴纸 widget */
.widget-note {
  background: var(--gold-50);
  transform: rotate(1deg);
  box-shadow: 0 4px 16px rgba(253, 203, 110, 0.2);
}
.widget-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 80px;
  height: 22px;
  background: rgba(253, 167, 223, 0.5);
  border-radius: 2px;
}
.widget-note-text {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}
.widget-note-seal {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--font-hand);
  font-size: 14px;
  color: #E63946;
  opacity: 0.7;
  transform: rotate(-8deg);
  letter-spacing: 2px;
  border: 2px solid #E63946;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.6;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a,
.pagination .current {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: all var(--transition-fast);
}
.pagination a:hover {
  background: var(--purple-100);
  color: var(--primary);
  transform: translateY(-1px);
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
}


/* ---------- 文章详情 ---------- */
.post-article {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
  position: relative;
}
/* 顶部胶带装饰 */
.post-article::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 100px;
  height: 24px;
  background: rgba(253, 167, 223, 0.5);
  border-radius: 2px;
}

.post-breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.post-breadcrumb a { color: var(--text-soft); }
.post-breadcrumb a:hover { color: var(--primary); }
.post-breadcrumb .sep { margin: 0 8px; }

.post-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--border);
}
.post-category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-soft);
}
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* 正文 */
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gray-700);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.post-content p { margin: 0 0 24px; }
.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  line-height: 1.3;
}
.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 32px 0 12px;
}
.post-content h4 {
  font-size: 19px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 8px;
}

/* 首字下沉 */
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5em;
  font-weight: 700;
  color: var(--primary);
  float: left;
  line-height: 1;
  margin: 0 8px 0 0;
  padding-top: 4px;
}

/* 链接 */
.post-content a {
  color: var(--primary);
  border-bottom: 1px solid var(--purple-200);
}
.post-content a:hover {
  color: var(--purple-600);
  border-bottom-color: var(--primary);
}

/* 引用块（便签贴风格） */
.post-content blockquote {
  position: relative;
  margin: 32px 0;
  padding: 24px 28px 24px 56px;
  background: var(--pink-50);
  border-radius: var(--radius-lg);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  font-style: italic;
}
.post-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--pink-300);
  line-height: 1;
  font-style: normal;
  font-weight: 700;
}
.post-content blockquote p { margin: 0 0 10px; }
.post-content blockquote p:last-child { margin-bottom: 0; }

/* 代码块（深色） */
.post-content pre {
  margin: 24px 0;
  padding: 40px 20px 20px;
  background: var(--gray-950);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  position: relative;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-200);
}
.post-content pre::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 48px;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #FF5F56 6px, transparent 6px),
    radial-gradient(circle at 24px 6px, #FFBD2E 6px, transparent 6px),
    radial-gradient(circle at 42px 6px, #27C93F 6px, transparent 6px);
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.post-content code:not(pre code) {
  padding: 2px 8px;
  background: var(--purple-50);
  color: var(--purple-600);
  font-family: var(--font-code);
  font-size: 0.9em;
  border-radius: 6px;
}

/* 图片 */
.post-content img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 32px auto;
}

/* 表格 */
.post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  margin: 24px 0;
}
.post-content th {
  padding: 14px 16px;
  background: var(--purple-50);
  color: var(--purple-700);
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--purple-100);
}
.post-content th:first-child { border-top-left-radius: 10px; }
.post-content th:last-child { border-top-right-radius: 10px; }
.post-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: var(--gray-50); }

/* 列表 */
.post-content ul, .post-content ol { padding-left: 1.6em; margin: 16px 0; }
.post-content li { margin: 6px 0; }

/* 文末标签 */
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags .label {
  font-size: 14px;
  color: var(--text-soft);
  margin-right: 4px;
}
.post-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--purple-50);
  color: var(--purple-600);
  font-size: 13px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.post-tags .tag:hover {
  background: var(--primary);
  color: #fff;
}

/* 上下篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav-card {
  display: block;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.post-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-nav-card.prev { text-align: left; }
.post-nav-card.next { text-align: right; }
.post-nav-label {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.post-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 相关文章 */
.related-posts {
  margin-top: 56px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.related-card {
  display: block;
  padding: 20px 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.related-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--purple-400), var(--pink-400));
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-date {
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.related-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------- 归档页 ---------- */
.archive-hero { text-align: center; padding: 64px 0 48px; }
.archive-year-title {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--primary);
  margin: 32px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.archive-year-title .count {
  font-size: 13px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-weight: 400;
}
.archive-month-title {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 500;
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--purple-200);
}
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition-fast);
}
.archive-item:hover {
  background: var(--purple-50);
  padding-left: 8px;
  padding-right: -4px;
  margin: 0 -4px;
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.archive-date {
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--text-soft);
  width: 60px;
  flex-shrink: 0;
}
.archive-title {
  flex: 1;
  font-size: 15px;
  color: var(--gray-800);
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-item:hover .archive-title { color: var(--primary); }
.archive-cat {
  font-size: 12px;
  padding: 2px 10px;
  background: var(--purple-50);
  color: var(--purple-600);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ---------- 单页面 ---------- */
.page-hero { text-align: center; padding: 64px 0 48px; }
.page-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- 404 页 ---------- */
.error-page {
  text-align: center;
  padding: 80px 0;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-strong);
  margin: 16px 0 8px;
}
.error-desc {
  color: var(--text-soft);
  margin-bottom: 32px;
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .site-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-brand .site-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.footer-brand-text .site-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.footer-brand-text .site-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-500);
}
.footer-slogan {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-400);
  margin: 0 0 12px;
}
.footer-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 18px;
  font-family: var(--font-sans);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-tags a {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  color: var(--gray-400);
  font-size: 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.footer-tags a:hover {
  background: rgba(108, 92, 231, 0.3);
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: #fff; }

/* 桌面页脚分隔线（仅 ≥1024 生效，不干扰平板/手机） */
@media (min-width: 1024px) {
  .footer-col + .footer-col {
    border-left: 1px solid var(--gray-800);
    padding-left: 32px;
  }
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-400));
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
  z-index: 50;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.5);
}

/* ---------- 滚动渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
/* 平板 768–1023 */
@media (max-width: 1023px) {
  .content-wrap {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 ≤767 */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .site-header .container { height: 68px; }
  .site-logo-img { height: 40px; }
  .site-nav { display: none; }
  .site-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .site-nav.mobile-open a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 16px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
  }
  .search-form input { width: 100px; font-size: 16px; }

  .section-hero { padding: 48px 0 64px; }
  .hero-stats { gap: 20px; }

  .content-wrap { grid-template-columns: 1fr; gap: 32px; }
  .site-sidebar { position: static; order: 2; }
  .main-content { order: 1; }

  .post-card { padding: 24px; }
  .post-card::after { display: none; }

  .post-article { padding: 32px 24px; }
  .post-article::before { display: none; }
  .post-content { font-size: 16px; line-height: 1.75; }
  .post-content h2 { font-size: 24px; }
  .post-content h3 { font-size: 20px; }

  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .page-content { padding: 32px 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 36px;
  }
  .footer-col:nth-child(1) {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-col:nth-child(1) .footer-brand { justify-content: center; }
  .footer-col:nth-child(4) { grid-column: 1 / -1; }
  .footer-col:nth-child(4) h4 { text-align: center; }
  .footer-col:nth-child(4) .footer-tags { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 12px;
  }

  .error-code { font-size: 80px; }

  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .pagination a,
  .pagination .current { min-width: 44px; height: 44px; }
}

/* 小屏 ≤380 */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .post-article { padding: 24px 16px; }
  .page-content { padding: 24px 16px; }
  .post-card { padding: 20px 16px; }
  .hero-stats { gap: 12px; }
  .post-content pre { font-size: 13px; }
  .back-to-top { right: 12px; bottom: 12px; }
}


/* ===== 联系方式三列 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.contact-card { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; box-shadow: 0 2px 12px rgba(108, 92, 231, 0.08); border: 1px solid #f0edff; transition: transform 0.2s, box-shadow 0.2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15); }
.contact-card-icon { font-size: 32px; margin-bottom: 10px; }
.contact-card-label { font-size: 13px; color: #999; margin-bottom: 6px; }
.contact-card-value { font-size: 15px; font-weight: 600; color: #6C5CE7; word-break: break-all; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== FAQ 问答样式 ===== */
.faq-list { margin: 20px 0; }
.faq-item { margin-bottom: 20px; }
.faq-q {
  display: inline-block;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px 20px 20px 4px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.faq-a {
  margin-left: 20px;
  padding: 12px 16px;
  background: #f8f6ff;
  border-left: 3px solid #6C5CE7;
  border-radius: 0 8px 8px 0;
  color: #555;
  line-height: 1.7;
}

/* ===== 侧边栏头像 ===== */
.widget-about .avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
  margin: 0 auto 15px;
  display: block;
}

/* ---------- 留言区 ---------- */
.comments {
  margin-top: 48px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
}
.comments-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.comments-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}
.comments-count {
  font-size: 13px;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.comments-list { display: flex; flex-direction: column; }
.comments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  font-size: 15px;
  background: var(--purple-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--purple-200);
}

/* 楼层：主楼 + 一层回复 */
.comment-floor {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-floor:last-child { border-bottom: none; }

/* 单条留言：小红书式清单（头像 + 昵称 + 相对时间 + 内容） */
.comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.comment-avatar { flex-shrink: 0; }
.comment-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.18);
}
.comment-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--purple-600);
  background: linear-gradient(135deg, var(--purple-100), var(--pink-100));
}
.comment-body {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}
.comment-badge {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-400));
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}
.comment-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.comment-reply {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.comment-reply:hover { color: var(--primary); background: var(--purple-50); }

/* 博主回复：右侧头像 + 异色气泡 + 左侧强调条 */
.comment-owner { flex-direction: row-reverse; }
.comment-owner .comment-body {
  background: linear-gradient(135deg, var(--purple-50), var(--pink-50));
  border-left: 3px solid var(--purple-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
}
.comment-owner .comment-author { color: var(--purple-700); }
.comment-owner .comment-content { color: var(--gray-700); }
.comment-owner .comment-reply { color: var(--purple-600); }
.comment-owner .comment-reply:hover { color: var(--purple-700); background: rgba(108, 92, 231, 0.08); }

/* 一层回复：左侧缩进 + 竖向引导线 */
.comment-children {
  margin: 12px 0 0 54px;
  padding-left: 16px;
  border-left: 2px solid var(--purple-100);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comment-children .comment-avatar img,
.comment-children .comment-avatar-fallback { width: 34px; height: 34px; }

/* 留言表单（卡片化） */
.comment-form {
  margin-top: 32px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.comment-form-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 18px;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
.comment-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comment-form label {
  font-size: 13px;
  color: var(--text-soft);
}
.comment-form input,
.comment-form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-strong);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.comment-form input { min-height: 48px; }
.comment-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-muted); }
.comment-form .form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* 回复提示条 */
.comment-reply-hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
}
.comment-reply-hint.show { display: flex; }
.comment-reply-hint .cancel-reply {
  margin-left: auto;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--pink-600);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.comment-reply-hint .cancel-reply:hover { background: var(--pink-100); }

/* 提交区 */
.comment-form .submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-400));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}
.comment-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.comment-submit.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: comment-spin 0.8s linear infinite;
}
@keyframes comment-spin { to { transform: rotate(360deg); } }
.comment-msg {
  font-size: 14px;
  color: var(--text-soft);
}
.comment-msg.error { color: #E5484D; }
.comment-msg.success { color: var(--mint-500); }

/* 留言区响应式 */
@media (max-width: 767px) {
  .comments { padding: 24px 18px; margin-top: 32px; }
  .comment-floor { padding: 16px 0; }
  .comment-children { margin-left: 8px; padding-left: 12px; }
  .comment-form { padding: 20px 16px; }
  .comment-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .comment-avatar img,
  .comment-avatar-fallback { width: 38px; height: 38px; }
  .comment-children .comment-avatar img,
  .comment-children .comment-avatar-fallback { width: 32px; height: 32px; }
  .comment-submit { width: 100%; }
}
