/* ============================================================
   物联涌现博客 — 全局样式
   主题：浅色科技感 / 主色 #0080FF
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --bg-primary:    #F7F9FC;
  --bg-card:       #FFFFFF;
  --bg-nav:        rgba(255, 255, 255, 0.88);
  --color-primary: #0080FF;
  --color-accent:  #0058B5;
  --text-primary:  #0F1B2E;
  --text-secondary:#475A73;
  --text-muted:    #8A98AD;
  --border-color:  #E3E8F0;
  --tag-bg:        rgba(0, 128, 255, 0.08);
  --tag-border:    rgba(0, 128, 255, 0.25);
  --max-width:     860px;
  --radius:        8px;
  --radius-lg:     12px;
  --transition:    0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- 背景网格线 ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 128, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- 渐变光晕 ---- */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(0, 128, 255, 0.07) 0%,
    rgba(0, 88, 181, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo .logo-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(0, 128, 255, 0.3);
}

.nav-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(0, 128, 255, 0.06);
}

/* ---------- 主内容区 ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 20px 60px;
  min-height: 100vh;
}

/* ---- 页面切换动画 ---- */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}
.page.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 文章卡片 ---------- */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* ---- 侧边色条布局 ---- */
.post-card.layout-side {
  display: flex;
  align-items: stretch;
}

.post-card.layout-side .post-card-body {
  flex: 1;
  padding: 24px 28px;
}

.side-cover {
  width: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.side-emoji {
  font-size: 42px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.post-card.layout-side:hover .side-emoji {
  transform: scale(1.15);
}

.side-glow {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.scene-pattern-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ---- 卡片主体 ---- */
.post-card-body {
  padding: 24px 28px 28px;
}

/* ---- 封面图（渐变 + 场景图案 + 大 Emoji） ---- */
.post-cover {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-cover-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.35s ease;
  line-height: 1;
}

.post-card:hover .post-cover-emoji {
  transform: scale(1.12) rotate(-3deg);
}

.post-cover-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- 分类徽章 ---- */
.cat-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cat-color);
  background: var(--cat-light);
  letter-spacing: 0.5px;
  user-select: none;
}

.cover-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cover-badge-banner {
  top: 20px;
  left: 24px;
  padding: 5px 16px;
  font-size: 13px;
}

/* ---- 侧边布局卡片内的分类徽章 ---- */
.layout-side .cat-badge {
  display: inline-block;
  margin-bottom: 10px;
}

/* ---- 详情页封面横幅 ---- */
.detail-cover-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.detail-cover-wrap .post-cover {
  height: 220px;
}

.post-card.layout-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,128,255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.post-card:hover {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(0, 128, 255, 0.15),
    0 0 20px rgba(0, 128, 255, 0.08),
    0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.post-card.layout-cover:hover::before { opacity: 1; }

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition);
}

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

.post-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 3px;
}

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

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  user-select: none;
}

.tag:hover,
.tag.active {
  background: rgba(0, 128, 255, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 128, 255, 0.2);
}

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

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 2px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ---------- 文章详情页 ---------- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.detail-back:hover { color: var(--color-primary); }
.detail-back svg { width: 16px; height: 16px; }

.detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.detail-meta svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Markdown 内容 ---------- */
.post-content {
  color: var(--text-secondary);
  line-height: 1.85;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 2em 0 0.75em;
  line-height: 1.3;
}

.post-content h1 { font-size: 24px; }
.post-content h2 {
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.post-content h3 { font-size: 17px; }

.post-content p { margin: 0 0 1.2em; }

.post-content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 128, 255, 0.3);
  transition: border-color var(--transition);
}
.post-content a:hover { border-color: var(--color-primary); }

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.2em;
}
.post-content li { margin-bottom: 0.4em; }

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: rgba(0, 128, 255, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}
.post-content th {
  background: rgba(0, 128, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
}
.post-content tr:hover td { background: rgba(0, 128, 255, 0.02); }

.post-content code:not([class]) {
  background: rgba(0, 128, 255, 0.08);
  color: var(--color-primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

.post-content pre {
  margin: 1.5em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-content pre code {
  display: block;
  padding: 20px;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  line-height: 1.6;
  overflow-x: auto;
  background: #F5F7FA !important;
}

/* highlight.js 主题微调 */
.hljs { background: #F5F7FA !important; color: #1F2D3D !important; }

/* ---------- 标签分类页 ---------- */
.tags-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

/* ---- 标签云 ---- */
.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.tag-cloud-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(0, 128, 255, 0.12);
  padding: 1px 6px;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

.tag-cloud-item:hover {
  background: rgba(0, 128, 255, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.tag-cloud-item.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.tag-cloud-item.active em {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---- 旧标签筛选（保留兼容） ---- */
.tag-all {
  padding: 4px 14px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.tag-all:hover, .tag-all.active {
  background: rgba(0,128,255,0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---- 标签页 2 列网格 ---- */
#tags-posts-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---- 标签页紧凑卡片 ---- */
.tag-grid-card {
  display: flex;
  flex-direction: column;
}

.tag-card-cover {
  height: 90px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tag-card-emoji {
  font-size: 36px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.tag-grid-card:hover .tag-card-emoji {
  transform: scale(1.15) rotate(-3deg);
}

.tag-card-cover .cat-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 10px;
  padding: 2px 8px;
}

.tag-grid-card .post-card-body {
  padding: 18px 20px 20px;
  flex: 1;
}

.tag-grid-card .post-card-title {
  font-size: 16px;
}

.tag-grid-card .post-summary {
  font-size: 13px;
  -webkit-line-clamp: 2;
  margin-bottom: 10px;
}

.tag-grid-card .post-tags .tag {
  font-size: 11px;
  padding: 2px 8px;
}

/* ---------- 关于我页面 ---------- */
.about-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.about-hero-glow {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,128,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- 统计数据条 ---- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-item:hover {
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.15);
}
.stat-icon svg { width: 22px; height: 22px; color: #fff; }

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

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

/* ---- 领域卡片网格 ---- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.domain-card {
  background: rgba(0, 128, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.domain-card:hover {
  background: rgba(0, 128, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.08);
  transform: translateY(-2px);
}

.domain-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.15);
}
.domain-icon svg { width: 24px; height: 24px; color: #fff; }

.domain-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ---- 时间轴 ---- */
.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 16px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.12);
  position: relative;
  z-index: 1;
}

.timeline-item:not(:last-child) .timeline-marker::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 5px;
  width: 2px;
  bottom: -4px;
  background: var(--border-color);
}

.timeline-card {
  flex: 1;
  background: rgba(0, 128, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition);
}
.timeline-card:hover {
  background: rgba(0, 128, 255, 0.06);
  border-color: rgba(0, 128, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 128, 255, 0.06);
}

.timeline-year {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

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

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

/* ---- 联系方式卡片 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-card {
  background: rgba(0, 128, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  background: rgba(0, 128, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.08);
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.15);
}
.contact-icon svg { width: 24px; height: 24px; color: #fff; }

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,128,255,0.2);
}

.about-info-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-info-role {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.about-info-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.about-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.skill-item {
  background: rgba(0,128,255,0.05);
  border: 1px solid rgba(0,128,255,0.12);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.skill-item .skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(0,128,255,0.4);
}
.skill-item:hover {
  background: rgba(0,128,255,0.1);
  border-color: var(--color-primary);
  color: var(--text-primary);
}

/* （旧的 exp-list / contact-list 样式已移除，由 timeline / contact-grid 替代） */

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

/* ---------- 首页英雄区 ---------- */
.hero-section {
  padding: 48px 0 40px;
  margin-bottom: 8px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--color-primary);
  background: rgba(0, 128, 255, 0.08);
  border: 1px solid rgba(0, 128, 255, 0.15);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0F1B2E 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-count {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-count span {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- Hero 统计数据 ---- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.hero-stat:hover {
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.08);
  transform: translateY(-2px);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.hero-stat-num em {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- 首页通用区块 ---------- */
.home-section {
  padding: 40px 0;
}

.home-section.section-alt {
  background: rgba(0, 128, 255, 0.02);
  border-radius: var(--radius-lg);
  margin: 8px -20px;
  padding: 40px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-label {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.section-sub span {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- 核心能力卡片网格 ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(0, 128, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 128, 255, 0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.12);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

/* ---- 精选文章横向卡片 ---- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.featured-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 128, 255, 0.15), 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.featured-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-emoji {
  font-size: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}
.featured-card:hover .featured-emoji {
  transform: scale(1.15);
}

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

.featured-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.featured-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.featured-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-read {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 12px;
}

/* ---- 技术栈列表 ---- */
.tech-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--transition);
}
.tech-item:hover {
  border-color: rgba(0, 128, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 128, 255, 0.06);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.tech-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ---- CTA 区域 ---- */
.home-cta {
  text-align: center;
  padding: 48px 24px;
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid rgba(0, 128, 255, 0.12);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.home-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: #0066DD;
  box-shadow: 0 4px 16px rgba(0, 128, 255, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: rgba(0, 128, 255, 0.06);
  transform: translateY(-1px);
}

/* ---------- 加载状态 ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: #C5CEDD;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #A8B5C8; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .tags-posts-container { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  main { padding: 80px 16px 48px; }

  .hero-title { font-size: 30px; }
  .hero-section { padding: 36px 0 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stat { padding: 12px 6px; }
  .hero-stat-num { font-size: 22px; }

  .home-section { padding: 32px 0; }
  .home-section.section-alt { margin: 8px -16px; padding: 32px 16px; }
  .section-title { font-size: 20px; }

  .features-grid { grid-template-columns: 1fr; }

  .post-card-body { padding: 20px; }
  .post-card-header { flex-direction: column; gap: 4px; }
  .post-cover { height: 120px; }
  .detail-cover-wrap .post-cover { height: 160px; }

  /* 侧边布局在手机上变为上下布局 */
  .post-card.layout-side { flex-direction: column; }
  .side-cover { width: 100%; height: 100px; }
  .side-emoji { font-size: 36px; }

  .detail-title { font-size: 22px; }

  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .nav-logo .logo-main { font-size: 16px; }

  .about-hero { flex-direction: column; text-align: center; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: 1fr; }

  .post-content pre code { font-size: 12px; padding: 14px; }

  .cta-title { font-size: 20px; }
  .cta-btns { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .tag-card-cover { height: 76px; }
  .tag-card-emoji { font-size: 28px; }
  .footer-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tech-list { grid-template-columns: 1fr; }
}

/* ---------- 页脚备案信息 ---------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 32px 24px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-divider {
  color: var(--text-muted);
  margin: 0 2px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
  background: rgba(0, 128, 255, 0.06);
}

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

.footer-filing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filing-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.filing-link:hover {
  color: var(--text-secondary);
}

.filing-link svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.filing-badge-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .footer-filing {
    flex-direction: column;
    gap: 8px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }
}
