/* ============================================
   个人技术笔记 — 高级酷炫风格
   特性: 玻璃拟态 / 粒子背景 / 鼠标光晕 / 3D卡片 / 霓虹发光
   ============================================ */

/* ----- 字体引入 ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ----- CSS 变量 ----- */
:root {
  /* 深色主题配色 */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: rgba(20, 20, 40, 0.6);
  --bg-hover: rgba(30, 30, 55, 0.7);
  --bg-code: rgba(10, 10, 25, 0.8);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f0f8;
  --text-secondary: #a0a0c0;
  --text-muted: #5a5a78;

  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --accent-dim: #7c3aed;
  --accent-glow: rgba(167, 139, 250, 0.2);

  --green: #34d399;
  --orange: #fb923c;
  --pink: #f472b6;
  --cyan: #22d3ee;

  --tag-bg: rgba(167, 139, 250, 0.12);
  --tag-text: #c4b5fd;

  /* 布局 */
  --max-width: 860px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);

  /* 玻璃效果 */
  --glass-bg: rgba(20, 20, 40, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   明亮主题
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-hover: rgba(255, 255, 255, 0.9);
  --bg-code: rgba(245, 245, 252, 0.9);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(0, 0, 0, 0.1);

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a78;
  --text-muted: #9494b0;

  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --accent-dim: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.12);

  --tag-bg: rgba(124, 58, 237, 0.08);
  --tag-text: #7c3aed;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: blur(24px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC',
               'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* 首页专属：固定一屏 */
body.home {
  height: 100vh;
  overflow: hidden;
}

/* 鼠标拖尾 Canvas */
#trailCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* 点击涟漪 */
.click-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: rippleOut 0.8s ease-out forwards;
}

@keyframes rippleOut {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

/* 点击粒子 */
.click-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: particleBurst 0.7s ease-out forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0);
  }
}

/* 粒子背景 Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* 全局过渡 */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-light);
}

button {
  font-family: inherit;
}

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

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

/* 所有元素平滑过渡 */
.article-card,
.article-detail,
.about-page,
.header,
.footer,
.tag-filter,
.back-to-top,
.back-link,
.search-box input,
.nav a,
.code-header,
.copy-btn {
  transition: all 0.4s var(--ease);
}

/* ============================================
   头部导航 - 玻璃拟态
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.logo .logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.logo:hover .logo-icon-img {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.5);
}
.logo:hover { color: var(--text-primary); }

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}
.nav a:hover::before,
.nav a.active::before {
  opacity: 1;
}

.nav a.active {
  color: var(--accent);
  background: var(--tag-bg);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* 主题切换按钮 */
.theme-toggle {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  margin-left: 8px;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: rotate(30deg);
}

/* ============================================
   主内容
   ============================================ */
.main {
  flex: 1;
  padding-top: 100px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

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

/* ============================================
   页首 Hero - 视差与动画
   ============================================ */
/* 第一屏背景容器 */
.hero-wrapper {
  width: 100vw;
  flex: 1;
  position: relative;
  margin-left: calc(50% - 50vw);
}



.hero {
  padding: 6vh 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.7;
  animation: hintBounce 2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-hint svg {
  opacity: 0.6;
}
@keyframes hintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* 文章区域初始隐藏 */
.content-area {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-spring);
}
.content-area.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: floatIn 0.8s var(--ease-spring) both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-family: 'ZCOOL KuaiLe', 'Noto Serif SC', 'STKaiti', 'KaiTi', serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 0;
  line-height: 1.8;
}

/* 文本行容器 */
.hero-text-line {
  max-width: 650px;
}

/* 作者 - 上推淡入 */
.hero .subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-top: 16px;
  text-align: right;
  width: 100%;
  max-width: 650px;
}
.hero .subtitle.author-reveal {
  opacity: 1;
  transform: translateY(0);
}
/* 装饰性几何图形 */
.hero-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-geo-1 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent);
  top: -40px;
  left: -60px;
  animation: floatGeo 8s ease-in-out infinite;
}

.hero-geo-2 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent);
  bottom: -20px;
  right: -40px;
  animation: floatGeo 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent-glow);
  top: 20px;
  right: 20%;
  animation: floatGeo 10s ease-in-out infinite;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGeo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -15px) scale(1.05); }
  50% { transform: translate(-5px, -20px) scale(0.95); }
  75% { transform: translate(-15px, 5px) scale(1.02); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ============================================
   搜索/筛选栏 - 玻璃拟态
   ============================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  align-items: center;
  animation: floatIn 0.8s 0.3s var(--ease-spring) both;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.tag-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-filter {
  padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--transition);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.tag-filter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
}
.tag-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.tag-filter.active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.2));
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   文章统计
   ============================================ */
.stats {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  animation: floatIn 0.8s 0.35s var(--ease-spring) both;
}

/* ============================================
   文章列表 - 3D 倾斜卡片
   ============================================ */
.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.4s var(--ease);
  overflow: hidden;
  animation: floatIn 0.8s var(--ease-spring) both;
  display: flex;
  flex-direction: column;
}



.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }

/* 卡片序号 */
.article-card .card-index {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 56px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.article-card:hover .card-index {
  opacity: 0.25;
  transform: scale(1.05);
}

/* 卡片左侧发光条 */
.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.4s, box-shadow 0.4s;
}

/* 卡片光晕背景 */
.article-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent, var(--cyan));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(10px);
}

.article-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent-glow);
}

.article-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--accent-glow);
}

.article-card:hover::after {
  opacity: 0.5;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  padding-right: 50px;
}

.article-card h3 a {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s;
}
.article-card:hover h3 a {
  -webkit-text-fill-color: var(--accent-light);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.article-meta .date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid rgba(167, 139, 250, 0.15);
  transition: all var(--transition);
}

.article-card:hover .tag {
  background: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 10px var(--accent-glow);
}

.reading-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}
.read-more:hover {
  gap: 12px;
  color: var(--accent-light);
}

/* 隐藏文章 */
.article-card.hidden {
  display: none;
}

/* ============================================
   文章详情页 - 玻璃拟态
   ============================================ */
.article-detail {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--glass-shadow);
  animation: floatIn 0.8s var(--ease-spring) both;
}

.article-detail .article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
}

.article-detail .article-header h1 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-detail .article-body {
  font-size: 16px;
  line-height: 1.85;
}

.article-detail .article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.article-detail .article-body h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}

.article-detail .article-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.article-detail .article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-detail .article-body ul,
.article-detail .article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-detail .article-body li {
  margin-bottom: 8px;
  position: relative;
}
.article-detail .article-body li::marker {
  color: var(--accent);
}

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

/* 行内代码 */
.article-detail .article-body code {
  background: var(--bg-code);
  color: var(--pink);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  border: 1px solid var(--glass-border);
}

/* 代码块 */
.article-detail .article-body pre {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

/* 代码块顶部栏 */
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 20px;
}
.code-header + pre {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.copy-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  transition: all var(--transition);
}
.copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}
.copy-btn.copied {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

/* 返回链接 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--tag-bg);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateX(-4px);
}

/* ============================================
   关于页面
   ============================================ */
.about-page {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--glass-shadow);
  animation: floatIn 0.8s var(--ease-spring) both;
}

.about-page h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-page .about-intro {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
}

.about-page .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.4s var(--ease-spring);
  overflow: hidden;
}
.about-page .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-page .avatar:hover {
  transform: scale(1.1) rotate(8deg);
}

.about-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.about-page p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.about-page ul {
  margin-bottom: 14px;
  padding-left: 24px;
  color: var(--text-secondary);
}
.about-page ul li {
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.3s;
}
.about-page ul li:hover {
  transform: translateX(6px);
  color: var(--text-primary);
}
.about-page ul li::marker {
  color: var(--accent);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.about-tags .tag {
  font-size: 13px;
  padding: 5px 16px;
  transition: all 0.3s;
}
.about-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ============================================
   底部
   ============================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

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

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-icp {
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.footer-icp a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-icp a:hover {
  color: var(--accent);
}

/* ============================================
   回到顶部
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-spring);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* ============================================
   入场动画类
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; max-width: 100%; }
  .hero { padding: 48px 0 40px; min-height: calc(100vh - 56px); }
  .hero-geo { display: none; }
  .article-list { grid-template-columns: 1fr; }
  .article-card { padding: 20px; }
  .article-card .card-index { font-size: 42px; right: 12px; top: 8px; }
  .article-detail,
  .about-page { padding: 28px 22px; }
  .article-detail .article-header h1 { font-size: 26px; }
  .header .container { padding: 0 16px; height: 56px; }
  .logo { font-size: 16px; }
  .logo .logo-icon-img { width: 28px; height: 28px; }
  .nav a { font-size: 13px; padding: 6px 12px; }
  .filter-bar { flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .about-page .about-intro { flex-direction: column; gap: 18px; }
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  #trailCanvas { display: none; }
}
