/* ===================================
   AI 编程博客 - 全局样式
   极简浅色清爽风 | 直角设计
   =================================== */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS 变量 - 主题色 */
:root {
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-dim: #9ca3af;
  --border: #e5e7eb;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
}

/* 深色模式变量 */
[data-theme="dark"] {
  --bg-white: #1e1e1e;
  --bg-light: #2d2d2d;
  --text-dark: #cccccc;
  --text-gray: #888888;
  --text-dim: #666666;
  --border: #3d3d3d;
  --accent-blue: #4ec9b0;
  --accent-blue-hover: #6adbc5;
}

/* 基础样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 容器 */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

/* ===================================
   顶部导航栏
   =================================== */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.nav-logo span {
  background: linear-gradient(90deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #a78bfa 50%, 
    #818cf8 75%, 
    #6366f1 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a.active {
  color: var(--accent-blue);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
}

.nav-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-toggle {
  display: flex;
  align-items: center;
}

.search-link {
  display: flex;
  align-items: center;
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.search-link:hover {
  color: var(--accent-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-gray);
  transition: all 0.2s ease;
}

.hamburger:hover span {
  background: var(--accent-blue);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航 */
.nav-links.mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.nav-links.mobile.show {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links.mobile a {
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.nav-links.mobile a:hover {
  background: var(--bg-light);
  color: var(--accent-blue);
}

.nav-links.mobile a.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
}

/* ===================================
   主内容区布局
   =================================== */
.main-content {
  display: grid;
  gap: 30px;
}

/* 三栏布局（首页） */
.main-content.three-column {
  grid-template-columns: 280px 1fr 280px;
}

/* 两栏布局（其他页面） */
.main-content.two-column {
  grid-template-columns: 280px 1fr;
}

/* 侧边栏 */
.sidebar-left, .sidebar-right {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* ===================================
   侧边栏样式
   =================================== */
.sidebar-left {
  grid-column: 1;
}

.sidebar-left .card {
  padding: 20px;
}

/* 侧边栏卡片标题 */
.sidebar-left .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-left .card-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}

/* 右侧边栏 */
.sidebar-right {
  grid-column: 3;
}

/* Claude Code 终端风格 */
.claude-code-terminal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #f97316;
  font-weight: 600;
}

.terminal-version {
  color: #94a3b8;
  font-weight: 400;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
}

.terminal-control:first-child {
  background: #ef4444;
}

.terminal-control:nth-child(2) {
  background: #eab308;
}

.terminal-control:nth-child(3) {
  background: #22c55e;
}

.terminal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  padding: 20px;
}

.terminal-section {
  color: #e2e8f0;
}

.terminal-welcome {
  text-align: center;
}

.welcome-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 15px;
}

.terminal-mascot {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  color: #f97316;
}

.terminal-mascot svg {
  width: 100%;
  height: 100%;
}

.model-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 5px;
}

.workspace-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
}

.terminal-tips {
  border-left: 1px solid #334155;
  padding-left: 20px;
}

.tip-item {
  margin-bottom: 20px;
}

.tip-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #f97316;
  font-weight: 600;
  margin-bottom: 8px;
}

.tip-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.tip-content code {
  background: #334155;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #f97316;
}

.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tip-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.8;
}

.tip-list code {
  background: #334155;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #f97316;
}

.tip-list a {
  color: #38bdf8;
  text-decoration: none;
}

.tip-list a:hover {
  text-decoration: underline;
}

.sidebar-right .card {
  padding: 20px;
}

.sidebar-right .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-right .card-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}

/* ===================================
   卡片组件
   =================================== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

/* 文章统计卡片 - 简约文字风格 */
.articles-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px 25px 10px 25px;
  background: transparent;
  border: none;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px 25px 10px 25px;
  background: transparent;
  border: none;
}

.archive-stat-item {
  text-align: center !important;
  padding: 0 !important;
  border: none !important;
}

.archive-stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.archive-stat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.archive-stat-item:nth-child(1) .archive-stat-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.archive-stat-item:nth-child(1) .archive-stat-icon svg {
  color: #667eea;
}

.archive-stat-item:nth-child(2) .archive-stat-icon {
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(240, 147, 251, 0.1));
}

.archive-stat-item:nth-child(2) .archive-stat-icon svg {
  color: #f5576c;
}

.archive-stat-item:nth-child(3) .archive-stat-icon {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
}

.archive-stat-item:nth-child(3) .archive-stat-icon svg {
  color: #4facfe;
}

.archive-stat-item:nth-child(4) .archive-stat-icon {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.1));
}

.archive-stat-item:nth-child(4) .archive-stat-icon svg {
  color: #43e97b;
}

.archive-stat-num {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.archive-stat-item:nth-child(1) .archive-stat-num {
  color: #667eea;
}

.archive-stat-item:nth-child(2) .archive-stat-num {
  color: #f5576c;
}

.archive-stat-item:nth-child(3) .archive-stat-num {
  color: #4facfe;
}

.archive-stat-item:nth-child(4) .archive-stat-num {
  color: #43e97b;
}

.archive-stat-text {
  font-size: 13px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* 总结描述区域 - 样式 8（分隔线样式 - 紧凑版） */
.stats-summary {
  position: relative;
  padding: 20px 25px;
  text-align: center;
  margin-top: 15px;
}

.stats-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.stats-summary h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-summary p {
  font-size: 13px;
  color: #718096;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.stats-summary .highlight {
  color: #667eea;
  font-weight: 600;
  padding: 0 4px;
}

/* ===================================
   个人信息卡片
   =================================== */
.avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio {
  text-align: center;
  margin-bottom: 25px;
}

.bio h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.bio p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ===================================
   标签页
   =================================== */
.tag-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.tag-category {
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.tag-category:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.tag-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.tag-category-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.tag-category-title span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.tag-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-category-items .tag {
  font-size: 12px;
  padding: 5px 10px;
}

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

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

/* AI 标签垂直布局 */
.tag-cloud-wrapper.ai-tags-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-cloud-wrapper.ai-tags-vertical .tag-item.tag-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
}

.tag-cloud-wrapper.ai-tags-vertical .tag-item.tag-block:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
  color: var(--text-main);
}

.tag-item.tag-block .tag-name {
  font-weight: 500;
  flex: 1;
}

.tag-item.tag-block .tag-count {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 莫兰迪大地冷调色系 - 低饱和棕灰冷蓝 */
/* 深炭黑/深棕系 */
.tag-item.tag-block.ai-purple {
  background: rgba(139, 115, 85, 0.04);
}
.tag-item.tag-block.ai-purple .tag-count {
  background: #8B7355; /* 炭灰褐 */
}
.tag-item.tag-block.ai-purple:hover {
  border-color: #8B7355;
  background: rgba(139, 115, 85, 0.08);
}

/* 暖浅棕/豆沙裸色系 */
.tag-item.tag-block.ai-blue {
  background: rgba(168, 159, 145, 0.04);
}
.tag-item.tag-block.ai-blue .tag-count {
  background: #A89F91; /* 暖灰棕 */
}
.tag-item.tag-block.ai-blue:hover {
  border-color: #A89F91;
  background: rgba(168, 159, 145, 0.08);
}

.tag-item.tag-block.ai-cyan {
  background: rgba(196, 181, 160, 0.04);
}
.tag-item.tag-block.ai-cyan .tag-count {
  background: #C4B5A0; /* 浅豆沙 */
}
.tag-item.tag-block.ai-cyan:hover {
  border-color: #C4B5A0;
  background: rgba(196, 181, 160, 0.08);
}

/* 冷灰 + 浅天蓝系 */
.tag-item.tag-block.ai-pink {
  background: rgba(154, 165, 165, 0.04);
}
.tag-item.tag-block.ai-pink .tag-count {
  background: #9AA5A5; /* 雾灰蓝 */
}
.tag-item.tag-block.ai-pink:hover {
  border-color: #9AA5A5;
  background: rgba(154, 165, 165, 0.08);
}

.tag-item.tag-block.ai-orange {
  background: rgba(141, 169, 181, 0.04);
}
.tag-item.tag-block.ai-orange .tag-count {
  background: #8DA9B5; /* 浅天蓝 */
}
.tag-item.tag-block.ai-orange:hover {
  border-color: #8DA9B5;
  background: rgba(141, 169, 181, 0.08);
}

.tag-item.tag-block.ai-green {
  background: rgba(181, 168, 159, 0.04);
}
.tag-item.tag-block.ai-green .tag-count {
  background: #B5A89F; /* 灰棕 */
}
.tag-item.tag-block.ai-green:hover {
  border-color: #B5A89F;
  background: rgba(181, 168, 159, 0.08);
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tag-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;
  transition: opacity 0.3s ease;
}

.tag-item:hover::before {
  opacity: 0.15;
}

.tag-item .tag-count {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.tag-item:hover .tag-count {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.tag {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

/* 标签云大小样式 */
.tag.tag-size-small {
  font-size: 11px;
  padding: 4px 8px;
}

.tag.tag-size-medium {
  font-size: 13px;
  padding: 5px 10px;
  font-weight: 600;
}

.tag.tag-size-large {
  font-size: 15px;
  padding: 6px 12px;
  font-weight: 700;
}

/* 莫兰迪大地冷调色系 - 标签云 */
/* 深棕系 - 热门标签（视觉权重最高） */
.tag.tag-dark-brown {
  color: #5a4a42; /* 深棕 */
  border-color: #d8c8c0; /* 浅棕边框 */
}

.tag.tag-dark-brown:hover {
  border-color: #5a4a42; /* 深棕 */
  color: #5a4a42;
  background: #f8f4f2; /* 极浅的棕色 */
}

/* 深灰系 */
.tag.tag-dark-gray {
  color: #52575a; /* 深灰 */
  border-color: #d0d4d8; /* 浅灰边框 */
}

.tag.tag-dark-gray:hover {
  border-color: #52575a; /* 深灰 */
  color: #52575a;
  background: #f2f4f6; /* 极浅的灰色 */
}

/* 深橄榄系 */
.tag.tag-dark-olive {
  color: #4a5042; /* 深橄榄绿 */
  border-color: #c8d0c0; /* 浅橄榄边框 */
}

.tag.tag-dark-olive:hover {
  border-color: #4a5042; /* 深橄榄绿 */
  color: #4a5042;
  background: #f4f6f2; /* 极浅的橄榄色 */
}

/* 暖浅棕/豆沙裸色系 - 中等权重标签 */
.tag.tag-warm {
  color: #b8958a; /* 奶茶棕 */
  border-color: #e8d8d0; /* 浅奶茶色边框 */
}

.tag.tag-warm:hover {
  border-color: #b8958a; /* 奶茶棕 */
  color: #b8958a;
  background: #fdf8f6; /* 极浅的奶茶色 */
}

/* 豆沙红棕系 */
.tag.tag-warm-rose {
  color: #c4a49a; /* 豆沙玫瑰 */
  border-color: #ead8d4; /* 浅玫瑰边框 */
}

.tag.tag-warm-rose:hover {
  border-color: #c4a49a; /* 豆沙玫瑰 */
  color: #c4a49a;
  background: #fef9f8; /* 极浅的玫瑰色 */
}

/* 暖杏色系 */
.tag.tag-warm-apricot {
  color: #d4b49a; /* 暖杏色 */
  border-color: #f0e0d0; /* 浅杏色边框 */
}

.tag.tag-warm-apricot:hover {
  border-color: #d4b49a; /* 暖杏色 */
  color: #d4b49a;
  background: #fefcf8; /* 极浅的杏色 */
}

/* 橄榄绿棕系 */
.tag.tag-warm-olive {
  color: #a8a890; /* 橄榄绿 */
  border-color: #e0e0d0; /* 浅橄榄边框 */
}

.tag.tag-warm-olive:hover {
  border-color: #a8a890; /* 橄榄绿 */
  color: #a8a890;
  background: #f9f9f4; /* 极浅的橄榄色 */
}

/* 冷灰 + 浅天蓝系 - 轻量化标签 */
.tag.tag-cool {
  color: #8a9a9a; /* 雾灰/雾霾蓝 */
  border-color: #d8e0e0; /* 浅灰蓝边框 */
}

.tag.tag-cool:hover {
  border-color: #8a9a9a; /* 雾灰蓝 */
  color: #8a9a9a;
  background: #f7f9f9; /* 极浅的灰蓝色 */
}

/* 雾霾蓝系 */
.tag.tag-cool-mist {
  color: #8a94a4; /* 雾霾蓝 */
  border-color: #d8dce4; /* 浅蓝边框 */
}

.tag.tag-cool-mist:hover {
  border-color: #8a94a4; /* 雾霾蓝 */
  color: #8a94a4;
  background: #f5f7fa; /* 极浅的蓝色 */
}

/* 青灰系 */
.tag.tag-cool-sage {
  color: #8aa49a; /* 青灰/鼠尾草 */
  border-color: #d8e4e0; /* 浅青边框 */
}

.tag.tag-cool-sage:hover {
  border-color: #8aa49a; /* 青灰 */
  color: #8aa49a;
  background: #f5faf8; /* 极浅的青色 */
}

/* 紫灰系 */
.tag.tag-cool-lavender {
  color: #9a94a4; /* 薰衣草灰紫 */
  border-color: #e0dce4; /* 浅紫边框 */
}

.tag.tag-cool-lavender:hover {
  border-color: #9a94a4; /* 薰衣草灰紫 */
  color: #9a94a4;
  background: #f9f7fa; /* 极浅的紫色 */
}

.tag.popular {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 500;
}

.tag.popular:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.15));
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tag.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.tag-count {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  font-weight: 500;
}

.tag.popular .tag-count {
  background: rgba(37, 99, 235, 0.2);
}

.tag.active .tag-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* 热门标签样式 */
.top-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-tag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.top-tag-item:hover {
  background: var(--bg-light);
}

.top-tag-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-gray);
  flex-shrink: 0;
}

.top-tag-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.top-tag-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: white;
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.3);
}

.top-tag-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  color: white;
  box-shadow: 0 2px 6px rgba(205, 127, 50, 0.3);
}

.top-tag-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.top-tag-count {
  font-size: 12px;
  color: var(--text-gray);
  background: var(--bg-light);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.top-tag-item:hover .top-tag-count {
  background: var(--accent-blue);
  color: white;
}

/* 分类卡片 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.category-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  white-space: nowrap;
}

/* 分类统计列表 */
.category-stats-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-stat-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 16px;
  align-items: center;
}

.stat-category-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.stat-category-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-category-icon svg {
  width: 18px;
  height: 18px;
}

.stat-category-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stat-category-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  text-align: right;
}

/* 社交链接 */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-gray);
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.social-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
}

/* 项目 */
.projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project {
  padding: 15px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.project:hover {
  border-color: var(--accent-blue);
}

.project h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.project p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

.project .tech {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tech-item {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
}

/* ===================================
   文章详情页
   =================================== */
.article-content-wrapper {
  min-width: 0;
}

.article-detail {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 8px;
  position: static;
}

.article-detail-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border);
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.article-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
  position: static;
}

.article-detail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-detail-tags .article-tag {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.article-detail-tags .article-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body .lead {
  font-size: 18px;
  color: var(--text-gray);
  font-weight: 400;
  padding: 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px;
  margin-bottom: 30px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 30px 0 15px;
}

.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 25px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body strong {
  font-weight: 600;
  color: var(--text-dark);
}

.article-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 25px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
}

.article-body p code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-blue);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
}

.article-body table thead {
  background: var(--bg-light);
}

.article-body table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.article-body table td {
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--text-gray);
}

.article-body table tr:hover {
  background: var(--bg-light);
}

.article-footer {
  margin-top: 40px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 6px;
  border-left: 4px solid var(--accent-blue);
}

.article-footer p {
  margin: 0;
  color: var(--text-gray);
}

/* 文章底部标签 */
.article-bottom-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.tags-list .article-tag {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tags-list .article-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 文章操作按钮 */
.article-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.action-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

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

/* 文章导航 */
.article-navigation {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nav-prev,
.nav-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-prev:hover,
.nav-next:hover {
  border-color: var(--accent-blue);
  background: var(--bg-light);
}

.nav-prev.disabled,
.nav-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-label {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
}

.nav-title {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

/* 目录 */
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  font-size: 13px;
  color: var(--text-gray);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-item:hover {
  background: var(--bg-light);
  color: var(--accent-blue);
}

.toc-empty {
  font-size: 13px;
  color: var(--text-gray);
  padding: 8px 12px;
  text-align: center;
}

.toc-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
  font-weight: 500;
}

/* 文章信息 */
.article-meta-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}

.meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* 作者信息 */
.author-info {
  text-align: center;
  padding: 10px;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid var(--border);
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.author-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* 相关文章 */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-article-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-article-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-light);
}

.related-title {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* 文章标签云 */
.article-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag-cloud-item {
  font-size: 12px;
  padding: 5px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.article-tag-cloud-item:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* 阅读进度 */
.reading-progress {
  padding: 10px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* ===================================
   搜索页
   =================================== */
/* 搜索历史 */
.search-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13px;
  color: var(--text-gray);
}

.history-item:hover {
  background: var(--bg-light);
  color: var(--accent-blue);
}

.history-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.clear-history {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.clear-history:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 热门搜索 */
.hot-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.hot-rank {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-gray);
  flex-shrink: 0;
}

.hot-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
}

.hot-rank.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: white;
}

.hot-rank.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  color: white;
}

.hot-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
}

.hot-count {
  font-size: 12px;
  color: var(--text-gray);
}

/* 搜索主区域 */
.search-main {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 45px 14px 45px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  display: none;
  padding: 0;
}

.search-clear svg {
  width: 18px;
  height: 18px;
}

.search-input:not(:placeholder-shown) + .search-clear {
  display: block;
}

.search-btn {
  padding: 14px 30px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 搜索统计 */
.search-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 14px;
  color: var(--text-gray);
}

.stats-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stats-left strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.stats-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 13px;
  cursor: pointer;
}

/* 搜索结果 */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-result-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
}

.result-title:hover {
  color: var(--accent-blue);
}

.result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--text-gray);
}

.result-type {
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border-radius: 4px;
  font-weight: 500;
}

.result-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.result-excerpt mark {
  background: rgba(255, 193, 7, 0.3);
  color: var(--text-dark);
  padding: 1px 4px;
  border-radius: 3px;
}

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

.result-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-gray);
  border-radius: 6px;
}

/* 搜索技巧 */
.search-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  padding: 12px;
  background: var(--bg-light);
  border-radius: 6px;
  border-left: 3px solid var(--accent-blue);
}

.tip-keyword {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.tip-desc {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* 相关标签 */
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-tag-item {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.related-tag-item:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* 向量检索可视化 */
.vector-search-viz {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.vector-query {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
}

.vector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.vector-dim {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 8px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 4px;
}

.vector-similarity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-label {
  font-size: 12px;
  color: var(--text-gray);
  width: 80px;
  flex-shrink: 0;
}

.sim-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
}

.sim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.sim-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  width: 40px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

/* 索引性能 */
.index-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-light);
  border-radius: 6px;
  border-left: 3px solid var(--accent-blue);
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
}

.stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'JetBrains Mono', monospace;
}

.stat-value.highlight {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* 无搜索结果状态 */
.no-results {
  display: none;
}

.no-results-content {
  text-align: center;
  padding: 40px 20px;
}

.no-results-icon {
  width: 64px;
  height: 64px;
  color: var(--text-gray);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.no-results-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.no-results-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.no-results-tips li {
  font-size: 13px;
  color: var(--text-gray);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.no-results-tips li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

/* ===================================
   留言页
   =================================== */
/* 留言统计 */
.msg-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-stat-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.msg-stat-box:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.08));
}

.msg-stat-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

.msg-stat-text {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 留言须知 */
.message-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}

.rule-item svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

/* 留言表单 */
.message-form-section {
  padding: 10px 0;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.form-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-tips {
  font-size: 12px;
  color: var(--text-gray);
  text-align: right;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

/* ===================================
   全局响应式优化
   =================================== */

/* 768px 平板端 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  .nav-logo {
    font-size: 20px;
  }
  
  .nav-right {
    gap: 10px;
  }
  
  .search-toggle,
  .mode-toggle {
    width: 32px;
    height: 32px;
  }
  
  .search-toggle svg,
  .mode-toggle svg {
    width: 16px;
    height: 16px;
  }
  
  .main-content.three-column {
    grid-template-columns: 1fr;
  }
  
  .sidebar-left,
  .sidebar-right {
    display: none;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .card-icon {
    width: 20px;
    height: 20px;
  }
  
  .articles-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }
  
  .archive-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .archive-stat-icon {
    width: 45px;
    height: 45px;
  }
  
  .archive-stat-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .archive-stat-num {
    font-size: 28px;
  }
  
  .archive-stat-text {
    font-size: 13px;
  }
  
  .article {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  .article-title {
    font-size: 16px;
  }
  
  .article-excerpt {
    font-size: 14px;
  }
  
  .article-meta {
    font-size: 12px;
    gap: 8px;
  }
  
  .tag-detail-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }
  
  .tag-detail-badge {
    width: 50px;
    height: 50px;
  }
  
  .tag-detail-badge svg {
    width: 26px;
    height: 26px;
  }
  
  .tag-detail-title {
    font-size: 24px;
  }
  
  .tag-detail-desc {
    font-size: 14px;
  }
  
  .tag-detail-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }
  
  .breadcrumb svg {
    display: none;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .pagination a,
  .pagination span {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
  }
  
  .article-detail {
    padding: 20px;
  }
  
  .article-detail-title {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .article-detail-header {
    margin-bottom: 20px;
  }
  
  .article-body {
    font-size: 16px;
    line-height: 1.8;
  }
  
  .article-body p {
    margin-bottom: 16px;
  }
  
  .article-body h2 {
    font-size: 22px;
    margin: 30px 0 15px;
  }
  
  .article-body h3 {
    font-size: 18px;
    margin: 25px 0 12px;
  }
  
  .article-body code {
    font-size: 14px;
    padding: 2px 6px;
  }
  
  .article-body pre {
    padding: 15px;
    font-size: 13px;
    overflow-x: auto;
  }
  
  .article-body pre code {
    font-size: 13px;
    white-space: pre;
  }
  
  .article-body img {
    border-radius: 8px;
  }
  
  .article-tags {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .article-tag {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .article-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .action-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .article-meta-info {
    gap: 12px;
  }
  
  .meta-item {
    font-size: 13px;
    gap: 8px;
  }
  
  .meta-item svg {
    width: 16px;
    height: 16px;
  }
  
  .profile-card {
    padding: 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .profile-bio {
    font-size: 14px;
  }
  
  .profile-stats {
    gap: 15px;
  }
  
  .profile-stat-value {
    font-size: 18px;
  }
  
  .profile-stat-label {
    font-size: 12px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .tool-item {
    padding: 15px;
  }
  
  .tool-icon {
    width: 36px;
    height: 36px;
  }
  
  .tool-name {
    font-size: 14px;
  }
  
  .tool-desc {
    font-size: 12px;
  }
  
  .category-grid,
  .tags-cloud {
    gap: 10px;
  }
  
  .category-item,
  .tag-item {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .search-box {
    padding: 15px;
  }
  
  .search-input {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .search-btn {
    padding: 12px 20px;
  }
  
  .search-results {
    padding: 15px;
  }
  
  .search-result-item {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .search-result-title {
    font-size: 18px;
  }
  
  .search-result-excerpt {
    font-size: 14px;
    margin-top: 8px;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .link-card {
    padding: 20px;
  }
  
  .link-avatar {
    width: 50px;
    height: 50px;
  }
  
  .link-name {
    font-size: 16px;
  }
  
  .link-desc {
    font-size: 13px;
  }
  
  .message-list {
    padding: 15px;
  }
  
  .message-item {
    padding: 15px;
  }
  
  .message-author {
    font-size: 15px;
  }
  
  .message-content {
    font-size: 14px;
    margin-top: 8px;
  }
  
  .message-time {
    font-size: 12px;
  }
  
  .message-form {
    padding: 20px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-input,
  .form-textarea {
    padding: 12px;
    font-size: 14px;
  }
  
  .form-textarea {
    min-height: 120px;
  }
  
  .submit-btn,
  .cancel-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  footer {
    padding: 30px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-link {
    font-size: 14px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  .comments-area {
    padding: 20px;
  }
  
  .comment-list {
    gap: 15px;
  }
  
  .comment-item {
    padding: 15px;
  }
  
  .comment-author {
    font-size: 14px;
  }
  
  .comment-content {
    font-size: 14px;
    margin-top: 8px;
  }
  
  .comment-reply {
    margin-left: 20px;
    padding-left: 15px;
  }
}

/* 480px 小屏手机 */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  header {
    padding: 12px 0;
    margin-bottom: 15px;
  }
  
  .nav-logo {
    font-size: 18px;
  }
  
  .nav-right {
    gap: 8px;
  }
  
  .search-toggle,
  .mode-toggle {
    width: 30px;
    height: 30px;
  }
  
  .main-content {
    gap: 15px;
  }
  
  .card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .article {
    padding: 15px;
    margin-bottom: 10px;
  }
  
  .article-title {
    font-size: 15px;
  }
  
  .article-excerpt {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .article-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .article-meta {
    flex-wrap: wrap;
    font-size: 11px;
  }
  
  .tag-detail-header {
    padding: 15px;
  }
  
  .tag-detail-badge {
    width: 40px;
    height: 40px;
  }
  
  .tag-detail-badge svg {
    width: 22px;
    height: 22px;
  }
  
  .tag-detail-title {
    font-size: 20px;
  }
  
  .tag-detail-desc {
    font-size: 13px;
  }
  
  .tag-detail-stat {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .breadcrumb {
    font-size: 12px;
    padding: 10px;
  }
  
  .pagination {
    gap: 5px;
  }
  
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 32px;
  }
  
  .article-detail {
    padding: 15px;
  }
  
  .article-detail-title {
    font-size: 20px;
  }
  
  .article-body {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .article-body h2 {
    font-size: 20px;
  }
  
  .article-body h3 {
    font-size: 17px;
  }
  
  .article-body pre {
    padding: 12px;
    font-size: 12px;
  }
  
  .article-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  .article-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .tool-item {
    padding: 12px;
  }
  
  .tool-icon {
    width: 32px;
    height: 32px;
  }
  
  .tool-name {
    font-size: 13px;
  }
  
  .category-grid,
  .tags-cloud {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-item,
  .tag-item {
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .message-form {
    padding: 15px;
  }
  
  .form-input,
  .form-textarea {
    padding: 10px;
    font-size: 14px;
  }
  
  .form-textarea {
    min-height: 100px;
  }
  
  .form-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .submit-btn,
  .cancel-btn {
    width: 100%;
    justify-content: center;
  }
  
  footer {
    padding: 20px 0;
  }
  
  .footer-section h4 {
    font-size: 15px;
  }
  
  .footer-link {
    font-size: 13px;
  }
  
  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
  
  .comment-form {
    padding: 15px;
  }
}

/* 留言提交状态 */
.message-status {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.message-status.success,
.message-status.error {
  opacity: 1;
  transform: translateY(0);
}

.message-status.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #059669;
}

.message-status.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.message-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.message-status span {
  flex: 1;
}

/* 加载动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.submit-btn .loading {
  animation: spin 1s linear infinite;
}

/* 留言筛选 */
.message-filter {
  margin: 20px 0;
}

.filter-tabs {
  display: flex;
  gap: 10px;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.filter-tab svg {
  width: 16px;
  height: 16px;
}

.filter-tab:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-tab.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

/* 留言列表 */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.message-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.message-item.message-admin {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  border-color: rgba(37, 99, 235, 0.3);
}

.message-avatar {
  position: relative;
  flex-shrink: 0;
}

.message-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  padding: 3px 8px;
  background: var(--accent-blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--bg-white);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.message-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.author-badge {
  padding: 2px 8px;
  background: var(--accent-blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}

.author-website {
  font-size: 14px;
  text-decoration: none;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-gray);
}

.message-time {
  font-family: 'JetBrains Mono', monospace;
}

.message-reply-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.message-reply-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.message-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.message-text p {
  margin: 0;
}

.message-actions {
  display: flex;
  gap: 10px;
}

.action-btn-small {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

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

.action-btn-small:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.action-btn-small.liked {
  background: rgba(236, 72, 153, 0.1);
  border-color: #ec4899;
  color: #ec4899;
}

/* 回复列表 */
.message-replies {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-reply-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 6px;
}

.reply-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.reply-content {
  flex: 1;
  min-width: 0;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}

.reply-author {
  font-weight: 600;
  color: var(--text-dark);
}

.reply-badge {
  padding: 2px 6px;
  background: var(--accent-blue);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
}

.reply-time {
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
}

.reply-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.reply-text p {
  margin: 0;
}

.reply-actions {
  display: flex;
  gap: 8px;
}

/* 加载更多 */
.load-more {
  margin-top: 30px;
  text-align: center;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
}

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

.load-more-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* 活跃用户 */
.active-users {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.active-user-item:hover {
  background: var(--bg-light);
}

.active-user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.active-user-info {
  flex: 1;
  min-width: 0;
}

.active-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.active-user-count {
  font-size: 12px;
  color: var(--text-gray);
}

/* 留言标签 */
.message-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-tag-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.message-tag-item:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

.tag-count {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-white);
  border-radius: 10px;
  color: var(--text-gray);
}

/* ===================================
   友情链接页
   =================================== */
/* 友链统计 */
.link-stats {
  display: flex;
  gap: 10px;
}

.link-stat-item {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
}

.link-stat-num {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

.link-stat-label {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 申请友链 */
.link-apply {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.apply-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

.apply-requirements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.apply-requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}

.apply-requirements li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

.apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.apply-btn svg {
  width: 18px;
  height: 18px;
}

.apply-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 推荐友链网格 */
.link-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.link-card-compact {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  background: var(--bg-white);
}

.link-card-compact:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.link-card-compact.featured {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.03));
}

.compact-favicon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.compact-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.compact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  flex-shrink: 0;
}

.compact-desc {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.compact-domain {
  font-size: 11px;
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
}

.compact-views {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-gray);
}

.compact-views svg {
  width: 12px;
  height: 12px;
}

/* 普通友链列表 */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  background: var(--bg-white);
}

.link-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--bg-light);
  transform: translateX(4px);
}

.link-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.link-item-favicon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-item-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-item-info {
  flex: 1;
  min-width: 0;
}

.link-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.link-item-desc {
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item-right {
  display: flex;
  align-items: center;
  color: var(--text-gray);
}

.link-item-right svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.link-item:hover .link-item-right svg {
  opacity: 1;
  color: var(--accent-blue);
  transform: translateX(4px);
}

/* 最近更新 */
.recent-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.recent-link-item:hover {
  background: var(--bg-light);
}

.recent-link-favicon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.recent-link-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-link-info {
  flex: 1;
  min-width: 0;
}

.recent-link-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-link-time {
  font-size: 11px;
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
}

/* 随机逛逛按钮 */
.random-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.random-link-btn svg {
  width: 18px;
  height: 18px;
}

.random-link-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.15));
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 页面标题 */
.page-header {
  margin-bottom: 25px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===================================
   关于我页
   =================================== */
/* 头像区域 */
.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.profile-tagline {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.4;
}

/* 网站统计 */
.profile-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-stats .stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px !important;
  background: var(--bg-light);
  border-radius: 6px;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 60px;
}

.profile-stats .stat-item:hover {
  transform: translateY(-2px);
}

/* 第 1 个：文章数 - 深炭黑/深棕系 */
.profile-stats .stat-item:nth-child(1) .stat-num {
  color: #4a4a4a; /* 深炭黑 */
}

.profile-stats .stat-item:nth-child(1):hover {
  background: #d4c4c4; /* 浅灰棕 - 低饱和度 */
}

.profile-stats .stat-item:nth-child(1):hover .stat-num,
.profile-stats .stat-item:nth-child(1):hover .stat-label {
  color: #4a4a4a; /* 保持深炭黑 */
}

/* 第 2 个：标签数 - 暖浅棕/豆沙裸色系 */
.profile-stats .stat-item:nth-child(2) .stat-num {
  color: #b8958a; /* 奶茶棕 */
}

.profile-stats .stat-item:nth-child(2):hover {
  background: #e8d8d0; /* 浅奶茶色 */
}

.profile-stats .stat-item:nth-child(2):hover .stat-num,
.profile-stats .stat-item:nth-child(2):hover .stat-label {
  color: #b8958a; /* 保持奶茶棕 */
}

/* 第 3 个：分类数 - 冷灰 + 浅天蓝系 */
.profile-stats .stat-item:nth-child(3) .stat-num {
  color: #8a9a9a; /* 雾灰/雾霾蓝 */
}

.profile-stats .stat-item:nth-child(3):hover {
  background: #d8e0e0; /* 浅灰蓝 */
}

.profile-stats .stat-item:nth-child(3):hover .stat-num,
.profile-stats .stat-item:nth-child(3):hover .stat-label {
  color: #8a9a9a; /* 保持雾灰蓝 */
}

.profile-stats .stat-num {
  font-size: 16px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  line-height: 1.2;
}

.profile-stats .stat-label {
  font-size: 11px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

/* 常用工具 */
.sidebar-left .tools-section {
  margin-bottom: 25px;
}

.sidebar-left .tools-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-left .tools-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.sidebar-left .tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-left .tool-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-gray);
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-left .tool-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.sidebar-left .tool-item:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* 工具标签云 */
.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
  margin: -5px;
}

.tool-cloud-item {
  display: inline-block;
  padding: 5px 8px;
  background: transparent;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

/* 随机旋转效果 - 使用 nth-child */
.tools-cloud .tool-cloud-item:nth-child(5n+1) { transform: rotate(-6deg); }
.tools-cloud .tool-cloud-item:nth-child(5n+2) { transform: rotate(-3deg); }
.tools-cloud .tool-cloud-item:nth-child(5n+3) { transform: rotate(0deg); }
.tools-cloud .tool-cloud-item:nth-child(5n+4) { transform: rotate(3deg); }
.tools-cloud .tool-cloud-item:nth-child(5n+5) { transform: rotate(6deg); }

.tool-cloud-item:hover {
  opacity: 1;
  z-index: 10;
  transform: translateY(-3px) scale(1.15) !important;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* 大小样式 */
.tool-cloud-item.tool-small {
  font-size: 13px;
}

.tool-cloud-item.tool-medium {
  font-size: 14px;
  font-weight: 600;
}

.tool-cloud-item.tool-large {
  font-size: 15px;
  font-weight: 700;
}

/* 莫兰迪大地冷调色系 */
/* 深灰褐/深棕系 - 核心主力技术（视觉权重最高） */
.tool-cloud-item.tool-dark {
  color: #5a524a; /* 深灰褐 */
  opacity: 0.95;
}

.tool-cloud-item.tool-dark:hover {
  color: #3a322a; /* 更深的灰褐，变化更明显 */
  transform: translateY(-3px) scale(1.15) !important;
  text-shadow: 0 4px 12px rgba(90, 82, 74, 0.6), 0 0 8px rgba(90, 82, 74, 0.4);
}

/* 暖浅棕/豆沙裸色系 - 常用框架/语言（中度权重） */
.tool-cloud-item.tool-warm {
  color: #b8958a; /* 奶茶棕/裸杏色 */
  opacity: 0.85;
}

.tool-cloud-item.tool-warm:hover {
  color: #88655a; /* 深一点的棕，变化更明显 */
  transform: translateY(-3px) scale(1.15) !important;
  text-shadow: 0 4px 12px rgba(184, 149, 138, 0.6), 0 0 8px rgba(184, 149, 138, 0.4);
}

/* 冷灰 + 浅天蓝 - 轻量化技术/小众语言 */
.tool-cloud-item.tool-cool {
  color: #8a9a9a; /* 雾灰/雾霾浅蓝 */
  opacity: 0.75;
}

.tool-cloud-item.tool-cool:hover {
  color: #5a6a6a; /* 深一点的灰蓝，变化更明显 */
  transform: translateY(-3px) scale(1.15) !important;
  text-shadow: 0 4px 12px rgba(138, 154, 154, 0.6), 0 0 8px rgba(138, 154, 154, 0.4);
}

/* 莫兰迪中性拓展色系 - 绿色科技感 */
/* 超大核心词：炭墨灰绿 - Python、LangChain、Ollama、VLLM */
.tool-cloud-item.tool-green-core {
  color: #38423B; /* 炭墨灰绿 */
  opacity: 0.95;
  font-weight: 700;
}

.tool-cloud-item.tool-green-core:hover {
  color: #2a322c; /* 更深的炭墨绿 */
}

/* 中号常用词：雾豆绿 - LangGraph、Dify */
.tool-cloud-item.tool-green-medium {
  color: #88A398; /* 雾豆绿 */
  opacity: 0.85;
  font-weight: 600;
}

.tool-cloud-item.tool-green-medium:hover {
  color: #6f8c7f; /* 深一点的雾豆绿 */
}

/* 小号边缘词：浅青灰 - RAGFlow、Claude Code、VS Code */
.tool-cloud-item.tool-green-light {
  color: #C2D9D1; /* 浅青灰 */
  opacity: 0.75;
}

.tool-cloud-item.tool-green-light:hover {
  color: #a8c4b9; /* 深一点的浅青灰 */
}

/* 社交链接区域 */
.sidebar-left .social-section {
  margin-bottom: 20px;
}

/* 每日一图模块 */
.daily-image-card {
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.daily-image-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.daily-image-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  font-size: 13px;
  padding: 40px 20px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.daily-image-content {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.daily-image-caption {
  display: none;
}

/* 图片放大模态框 */
.image-modal {
  position: fixed !important;
  z-index: 99999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  z-index: 10000;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.image-modal-close:hover {
  color: var(--accent-blue);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 社交链接区域 */
.sidebar-left .social-section {
  margin-bottom: 20px;
}

.sidebar-left .social-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-left .social-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* 关于页社交链接 - 完全重置样式 */
.sidebar-left .profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-left .profile-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  color: var(--text-dark);
  transition: all 0.2s ease;
  text-decoration: none;
  background: var(--bg-light);
  white-space: nowrap;
  line-height: 1;
  height: auto;
  min-height: auto;
}

.sidebar-left .profile-social .social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-gray);
  display: block;
  margin: 0;
  padding: 0;
}

.sidebar-left .profile-social .social-link span {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

.sidebar-left .profile-social .social-link:hover {
  background: rgba(37, 99, 235, 0.1);
}

.sidebar-left .profile-social .social-link:hover svg,
.sidebar-left .profile-social .social-link:hover span {
  color: var(--accent-blue);
}

/* 大头像 */
.about-avatar-large {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(37, 99, 235, 0.2);
}

.about-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.about-title {
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 15px;
}

.about-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.about-location svg {
  width: 16px;
  height: 16px;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* 技能标签 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* 时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-time {
  font-size: 12px;
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 13px;
  color: var(--text-gray);
}

/* 关于内容 */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.about-list li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 项目网格 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.project-tag {
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.project-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.project-tech span {
  padding: 4px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-gray);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-link svg {
  width: 14px;
  height: 14px;
}

.project-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* 博客统计 */
.blog-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.blog-stat-item {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
}

.blog-stat-num {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

.blog-stat-label {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 联系方式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* 重要时刻 */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.milestone-list:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.milestone-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  position: relative;
}

.milestone-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 3px solid var(--bg-white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.milestone-content {
  flex: 1;
  min-width: 0;
}

.milestone-date {
  font-size: 12px;
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}

.milestone-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}
.articles-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.filter-btn {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.2s ease;
}

.article:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.article-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.article-title:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.article-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-gray);
  white-space: nowrap;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.article-tag {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.article-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 核心修改：选中 .article-tags 盒子里的所有 a 标签 */
.article-tags a {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    
    /* 建议加上这个，防止文字换行导致样式错乱 */
    display: inline-block; 
}

.article-tags a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}


/* 热门文章和最近更新 */
.popular-articles,
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-article-item,
.recent-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.popular-article-item:hover,
.recent-post-item:hover {
  background: var(--bg-light);
}

.article-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-gray);
  flex-shrink: 0;
}

.popular-article-item:nth-child(1) .article-rank {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.popular-article-item:nth-child(2) .article-rank {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: white;
  box-shadow: 0 2px 6px rgba(192, 192, 192, 0.3);
}

.popular-article-item:nth-child(3) .article-rank {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  color: white;
  box-shadow: 0 2px 6px rgba(205, 127, 50, 0.3);
}

.article-title-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
}

.article-views {
  font-size: 12px;
  color: var(--text-gray);
  background: var(--bg-light);
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.popular-article-item:hover .article-views {
  background: var(--accent-blue);
  color: white;
}

.recent-post-title {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.recent-post-date {
  font-size: 12px;
  color: var(--text-gray);
}

/* ===================================
   随笔列表（简化版）
   =================================== */
.essays-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.essay-item {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.2s ease;
}

.essay-item:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.essay-date {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.essay-content {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

/* ===================================
   技巧卡片网格
   =================================== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.tip {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 15px;
  transition: all 0.2s ease;
}

.tip:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.tip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tip-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

.tip-tag {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-gray);
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  margin-top: 8px;
}

/* ===================================
   GitHub 仓库
   =================================== */
.github-repos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo {
  padding: 15px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.repo:hover {
  border-color: var(--accent-blue);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.repo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.repo-name:hover {
  color: var(--accent-blue);
}

.repo-stars {
  font-size: 12px;
  color: var(--text-gray);
}

.repo-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===================================
   AI 工具列表
   =================================== */
.ai-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-gray);
  font-size: 14px;
  transition: all 0.2s ease;
}

.ai-tool:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.ai-tool-name {
  font-size: 14px;
  font-weight: 500;
}

/* ===================================
   归档列表
   =================================== */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-gray);
  font-size: 14px;
  transition: all 0.2s ease;
}

.archive-item:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.archive-count {
  font-size: 12px;
  color: var(--text-gray);
  background: var(--bg-light);
  padding: 2px 8px;
  border: 1px solid var(--border);
}

/* ===================================
   页脚
   =================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 60px;
  background: var(--bg-white);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 60px;
  font-size: 14px;
}

.footer-section {
  color: var(--text-gray);
}

.footer-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}

/* 版本 2 - 三栏优化版页脚 */
.footer-v2-tri {
  border-top: 1px solid var(--border);
  padding: 30px 0 20px;
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  position: relative;
}

.footer-v2-tri::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(37, 99, 235, 0.3) 20%, 
    rgba(37, 99, 235, 0.5) 50%, 
    rgba(37, 99, 235, 0.3) 80%, 
    transparent 100%);
}

.footer-v2-tri-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}

/* 左栏：每日一句 */
.footer-v2-col-left {
  flex: 1;
  max-width: 400px;
}

.footer-v2-col-left .footer-daily-quote {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
}

.quote-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6, #3b82f6);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: color-flow 6s ease infinite;
}

.footer-daily-quote .daily-quote-content {
  font-size: 14px;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899, #8b5cf6, #3b82f6, #06b6d4);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.6;
  margin: 0 0 8px 0;
  font-style: normal;
  font-weight: 700;
  word-break: break-word;
  white-space: normal;
  animation: color-flow 8s ease infinite;
}

.footer-daily-quote .daily-quote-note {
  font-size: 13px;
  background: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-weight: 600;
  animation: color-flow 10s ease infinite;
}

/* 色彩流动动画 */
@keyframes color-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 中栏：品牌信息 */
.footer-v2-col-center {
  flex: 1;
  text-align: center;
  max-width: 400px;
}

.footer-v2-col-center .footer-daily-quote {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.03));
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 右栏：底部信息 */
.footer-v2-col-right {
  flex: 1;
  max-width: 350px;
  text-align: right;
}

.footer-info-section {
  margin-bottom: 20px;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-legal svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  opacity: 0.7;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-designed {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.footer-designed .heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.2);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.footer-v2-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  margin-top: 0;
}

.footer-v2-logo .logo-embrace {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

.footer-v2-logo .logo-ai {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  background: linear-gradient(90deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #a78bfa 50%, 
    #818cf8 75%, 
    #6366f1 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-left: 4px;
  letter-spacing: 1px;
  animation: gradient-shift 3s ease infinite;
}

.footer-v2-code-decoration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-v2-code-decoration::before,
.footer-v2-code-decoration::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-v2-code-decoration .code-symbol {
  color: var(--accent-blue);
}

.footer-v2-code-decoration .code-text {
  color: var(--text-dim);
}

.footer-v2-code-decoration .code-ai {
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899, #8b5cf6, #3b82f6, #06b6d4);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  animation: color-flow 8s ease infinite;
}

.footer-v2-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-v2-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.footer-v2-links a {
  color: var(--text-gray);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-v2-links a:hover {
  color: var(--accent-blue);
}



/* 底部信息 */
.footer-v2-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-v2-legal {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-v2-legal span {
  color: var(--text-gray);
}

.footer-v2-divider {
  color: var(--border);
}

.footer-v2-copyright {
  color: var(--text-dim);
}

.footer-v2-designed {
  color: var(--text-gray);
}

.footer-v2-designed .heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-v2-ai-decoration {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.05;
  pointer-events: none;
}

.footer-v2-ai-decoration svg {
  width: 100px;
  height: 100px;
  color: var(--accent-blue);
}

/* 响应式设计 */
@media (max-width: 900px) {
  .footer-v2-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-v2-ai-decoration {
    display: none;
  }
}

/* ===================================
   版本 3 - 新版三栏页脚
   =================================== */
.footer-v3 {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 64px 0 0;
  background: var(--bg-white);
  position: relative;
}

.footer-v3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-blue) 25%,
    #7c3aed 50%,
    var(--accent-blue) 75%,
    transparent 100%);
  opacity: 0.6;
}

.footer-v3-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-v3-col {
  min-width: 0;
}

.footer-v3-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-v3-logo-embrace {
  color: var(--text-dark);
  font-weight: 500;
}

.footer-v3-logo-ai {
  color: var(--accent-blue);
  font-weight: 700;
  margin-left: 3px;
}

.footer-v3-tagline {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0 0 8px 0;
  font-weight: 500;
}

.footer-v3-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.footer-v3-quote {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
  border: 1px solid var(--border);
  border-radius: 10px;
}

.footer-v3-quote-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-blue);
  opacity: 0.6;
}

.footer-v3-quote-text {
  flex: 1;
  min-width: 0;
}

.footer-v3-quote-content {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 6px 0;
  font-style: italic;
  font-weight: 500;
}

.footer-v3-quote-author {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0;
}

.footer-v3-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-blue);
  display: inline-block;
}

.footer-v3-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-v3-list li {
  margin-bottom: 10px;
}

.footer-v3-list a {
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.footer-v3-list a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.2s ease;
}

.footer-v3-list a:hover {
  color: var(--accent-blue);
}

.footer-v3-list a:hover::after {
  width: 100%;
}

.footer-v3-social li a {
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.footer-v3-social li a:hover {
  background: rgba(37, 99, 235, 0.05);
}

.footer-v3-social svg {
  flex-shrink: 0;
}

/* 底部版权栏 */
.footer-v3-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-v3-copyright a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-v3-copyright a:hover {
  color: var(--accent-blue);
}

.footer-v3-powered a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-v3-powered a:hover {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .footer-v3-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-v3-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-v3-title {
    display: block;
  }
  
  /* 页脚响应式 */
  .footer-v2-tri-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  
  .footer-v2-col-left,
  .footer-v2-col-center,
  .footer-v2-col-right {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  
  .footer-v2-col-left .footer-daily-quote {
    text-align: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
  }
  
  .footer-v2-col-right {
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .footer-copyright,
  .footer-designed {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .footer-v2-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ===================================
   分页组件
   =================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
}

.pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-flex;
}

.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-gray);
  transition: all 0.2s ease;
  text-decoration: none;
  background: transparent;
}

.pagination a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.pagination .current {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .page-number {
  background: transparent;
}

.pagination span:not(.current) {
  padding: 0 12px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   返回顶部按钮
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.back-to-top:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   页面标题栏
   =================================== */
.page-header {
  margin-bottom: 30px;
  padding: 30px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-align: center;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-gray);
}

/* 内联页面标题（标签页） */
.page-header-inline {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
  border-radius: 8px;
  border: 1px solid var(--border);
}

.page-title-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.page-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.page-subtitle-inline {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
  padding-left: 36px;
}

/* ===================================
   搜索框
   =================================== */
.search-box {
  position: relative;
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-white);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.search-box button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.search-box button:hover {
  color: var(--accent-blue);
}

.search-large {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-large input {
  padding: 20px 60px 20px 25px;
  font-size: 18px;
}

/* ===================================
   文章详情页
   =================================== */
.article-detail {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 40px;
}

.article-detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-detail-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.article-detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.article-detail-content h1 {
  font-size: 28px;
}

.article-detail-content h2 {
  font-size: 24px;
}

.article-detail-content h3 {
  font-size: 20px;
}

.article-detail-content p {
  margin-bottom: 20px;
}

.article-detail-content code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-light);
  padding: 2px 6px;
  font-size: 14px;
}

.article-detail-content pre {
  background: var(--bg-light);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.article-detail-content pre code {
  background: none;
  padding: 0;
}

.article-detail-content ul,
.article-detail-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-detail-content li {
  margin-bottom: 10px;
}

.article-detail-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text-gray);
  font-style: italic;
  background: var(--bg-light);
  padding: 15px 20px;
}

.article-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.article-detail-content th,
.article-detail-content td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.article-detail-content th {
  background: var(--bg-light);
  font-weight: 600;
}

.article-detail-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.nav-article {
  flex: 1;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav-article:hover {
  border-color: var(--accent-blue);
}

.nav-article-label {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.nav-article-title {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.article-share {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.share-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-gray);
  font-size: 14px;
  transition: all 0.2s ease;
}

.share-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* 目录 */
.toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  font-size: 14px;
  color: var(--text-gray);
  padding: 5px 0;
  display: block;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}

.toc-list .toc-h2 {
  padding-left: 10px;
}

.toc-list .toc-h3 {
  padding-left: 25px;
  font-size: 13px;
}

/* ===================================
   留言板
   =================================== */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-item {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.message-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-info h4 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.message-info span {
  font-size: 13px;
  color: var(--text-gray);
}

.message-content {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  padding: 15px;
  background: var(--bg-light);
}

.message-reply {
  margin-top: 15px;
  padding-left: 65px;
}

.reply-item {
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  margin-top: 10px;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reply-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.reply-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reply-content {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* 留言表单 */
.message-form {
  padding: 25px;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-gray);
}

/* 留言类型选择框 */
.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* 留言类型标签 */
.message-type-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-left: 8px;
}

/* 筛选标签激活状态 */
.filter-tab.active,
.message-tag-item.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.filter-tab.active svg,
.message-tag-item.active svg {
  stroke: white;
}

.message-tag-item.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.submit-btn {
  padding: 12px 30px;
  background: var(--accent-blue);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: var(--accent-blue-hover);
}

/* ===================================
   友情链接
   =================================== */
.links-category {
  margin-bottom: 40px;
}

.links-category-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

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

.link-card {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.2s ease;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.link-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.link-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.link-info p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 8px;
}

.link-url {
  font-size: 12px;
  color: var(--accent-blue);
  text-decoration: none;
}

.link-url:hover {
  text-decoration: underline;
}

/* 友链申请指南 */
.guide-card {
  padding: 25px;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.guide-list {
  list-style: none;
}

.guide-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-gray);
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-list li strong {
  color: var(--text-dark);
  margin-right: 5px;
}

/* ===================================
   统计卡片
   =================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
}

/* ===================================
   最新评论
   =================================== */
.recent-comments {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  padding: 15px;
  border: 1px solid var(--border);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.comment-date {
  font-size: 12px;
  color: var(--text-gray);
}

.comment-excerpt {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 1200px) {
  .main-content.three-column {
    grid-template-columns: 280px 1fr;
  }
  
  .sidebar-right {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .main-content.two-column,
  .main-content.three-column {
    grid-template-columns: 1fr;
  }
  
  .sidebar-left {
    display: none;
  }
  
  .main-content.three-column .article-content-wrapper {
    padding-top: 20px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-links.show {
    display: flex !important;
    animation: slideDown 0.3s ease;
  }
  
  .nav-links a {
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
  }
  
  .nav-links a:hover {
    background: var(--bg-light);
    color: var(--accent-blue);
  }
  
  .nav-links a.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
  }
  
  .hamburger {
    display: flex;
  }
  
  /* 手机端隐藏导航栏搜索图标 */
  .nav-right .search-toggle {
    display: none;
  }
  
  /* 手机端隐藏搜索输入框内的搜索图标 */
  .search-main .search-icon {
    display: none;
  }
  
  .search-main .search-input {
    padding-left: 15px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .article-detail {
    padding: 25px;
  }
  
  .article-detail-title {
    font-size: 24px;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .article-navigation {
    flex-direction: column;
  }
  
  .article-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   工具类
   =================================== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* ===================================
   标签详情头部
   =================================== */
.tag-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.tag-detail-badge {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.tag-detail-badge svg {
  width: 32px;
  height: 32px;
  color: var(--text-dark);
}

.tag-detail-info {
  flex: 1;
}

.tag-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.tag-detail-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

.tag-detail-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.tag-detail-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-gray);
}

.tag-detail-stat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 关于标签 */
.tag-about {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

.tag-about p {
  margin: 0;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-blue);
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* 技能网格 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.skill-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  transform: translateY(-2px);
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 8px;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.skill-desc {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.4;
}

/* 博客简介列表 */
.intro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.intro-list li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 友情链接页面 */
.link-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.link-stat-item {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
}

.link-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

.link-stat-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 申请友链 */
.link-apply {
  padding: 10px 0;
}

.apply-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.6;
}

.apply-requirements {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.apply-requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.apply-requirements li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

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

/* 友情链接网格 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.link-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.link-favicon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-favicon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.link-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-url {
  font-size: 12px;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--text-gray);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* 空留言状态 */
.empty-message {
  padding: 40px 20px;
  text-align: center;
}

.empty-message p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* 申请成功提示 */
.apply-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
}

.apply-success svg {
  width: 48px;
  height: 48px;
  color: #10b981;
}

.apply-success p {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0;
}

/* 表单错误提示 */
.form-error {
  padding: 10px 15px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 6px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 15px;
}

/* 申请表单样式 */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.apply-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.apply-form .form-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.apply-form .form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.modal-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-light);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--text-gray);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cancel-btn,
.submit-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.cancel-btn:hover {
  background: var(--bg-light);
}

.submit-btn {
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  color: white;
}

.submit-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== 每日一图相册样式 ===== */
.daily-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.daily-image-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.daily-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.daily-image-card:hover .image-wrapper img {
  transform: scale(1.03);
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 正方形 */
  overflow: hidden;
  background: #f9f9f9;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.image-info {
  padding: 12px;
}

.image-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}

.image-content {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.4;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-note {
  font-size: 12px;
  color: #777;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}

.photo-pagination a,
.photo-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.photo-pagination a:hover {
  border-color: #4a90e2;
  color: #4a90e2;
  background: rgba(74, 144, 226, 0.04);
}

.photo-pagination .current {
  background: #4a90e2;
  color: #fff;
  border-color: #4a90e2;
  font-weight: 600;
}

.photo-pagination .prev,
.photo-pagination .next {
  min-width: 70px;
}

@media (max-width: 768px) {
  .daily-image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  
  .image-info {
    padding: 10px;
  }
  
  .image-content,
  .image-note {
    white-space: nowrap;
  }
}
