/* ============================================
   Modern Tech Style - Enhanced with Animations
   ============================================ */

/* ---------- 导入 Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* ---------- 色彩变量 ---------- */
:root {
  /* 深色科技配色 */
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-card: #1c1c1f;
  --bg-card-hover: #252529;
  --border-color: #2a2a2e;
  --border-hover: #3a3a40;
  
  /* 文字 */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a8;
  --text-muted: #606068;
  
  /* 渐变强调色 */
  --accent-yellow: #ffd21e;
  --accent-orange: #ff9d00;
  --accent-pink: #ff6b9d;
  --accent-purple: #c084fc;
  --accent-blue: #60a5fa;
  --accent-cyan: #22d3ee;
  --accent-green: #4ade80;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 50%, var(--accent-pink) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  --gradient-blue: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --gradient-cyan: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  
  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(255, 210, 30, 0.2);
  --shadow-glow-pink: 0 0 40px rgba(255, 107, 157, 0.2);
  --shadow-glow-blue: 0 0 40px rgba(96, 165, 250, 0.2);
}

/* ---------- 全局样式 ---------- */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* ========== 背景装饰元素 ========== */

/* 顶部光晕 */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 210, 30, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 30%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 10%, rgba(192, 132, 252, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite;
}

/* 网格背景 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

/* 浮动装饰元素容器 */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* 左侧装饰 */
.shape-left-1 {
  position: fixed;
  left: 5%;
  top: 20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 30, 0.06) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.shape-left-2 {
  position: fixed;
  left: -5%;
  top: 50%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 15s ease-in-out infinite, float 18s ease-in-out infinite reverse;
}

.shape-left-3 {
  position: fixed;
  left: 8%;
  top: 70%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  animation: rotate 30s linear infinite, float 12s ease-in-out infinite;
}

/* 右侧装饰 */
.shape-right-1 {
  position: fixed;
  right: 5%;
  top: 15%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.06) 0%, transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}

.shape-right-2 {
  position: fixed;
  right: -3%;
  top: 45%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 210, 30, 0.08);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 18s ease-in-out infinite reverse, float 16s ease-in-out infinite;
}

.shape-right-3 {
  position: fixed;
  right: 10%;
  top: 75%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite, float 14s ease-in-out infinite reverse;
}

/* 中心装饰圆环 */
.shape-center {
  position: fixed;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

.shape-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 210, 30, 0.05);
  border-radius: 50%;
  animation: rotate 40s linear infinite reverse;
}

/* ========== 动画关键帧 ========== */

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-5px); }
  75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

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

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

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(255, 210, 30, 0.3); box-shadow: var(--shadow-glow); }
  33% { border-color: rgba(255, 107, 157, 0.3); box-shadow: var(--shadow-glow-pink); }
  66% { border-color: rgba(96, 165, 250, 0.3); box-shadow: var(--shadow-glow-blue); }
}

/* ---------- 导航栏 ---------- */
.navbar {
  background: rgba(10, 10, 11, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  animation: fadeInUp 0.6s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link.active {
  color: var(--accent-yellow) !important;
}

/* ---------- 主内容区 ---------- */
main.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

/* ---------- 标题样式 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

h1.title {
  font-size: 4rem;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--space-sm);
  animation: gradientFlow 5s ease infinite, fadeInUp 0.8s ease;
}

h2 {
  font-size: 1.8rem;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--border-color);
  animation: fadeInUp 0.6s ease backwards;
}

h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ---------- 链接样式 ---------- */
a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(255, 210, 30, 0.3);
}

/* ---------- 段落与文字 ---------- */
p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.3rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

blockquote {
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  background: var(--bg-card);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(255, 210, 30, 0.1);
  font-family: Georgia, serif;
}

blockquote p {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---------- 代码块 ---------- */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-sm);
  color: var(--accent-pink);
}

pre {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

/* ---------- 首页英雄区域 ---------- */
.hero-section {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
}

/* ---------- 统计数字区域 ---------- */
.stats-container {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  animation: fadeInUp 0.6s ease backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.5s; }

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- 技能/领域标签 ---------- */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease backwards;
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.15s; }
.skill-tag:nth-child(3) { animation-delay: 0.2s; }
.skill-tag:nth-child(4) { animation-delay: 0.25s; }
.skill-tag:nth-child(5) { animation-delay: 0.3s; }
.skill-tag:nth-child(6) { animation-delay: 0.35s; }

.skill-tag:hover {
  border-color: var(--accent-yellow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.skill-tag .icon {
  font-size: 1.1rem;
}

/* ---------- 导航卡片 - 双栏布局 ---------- */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 210, 30, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.column:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.column:hover::before {
  transform: scaleX(1);
}

.column:hover::after {
  opacity: 1;
}

.column:first-child {
  animation: fadeInLeft 0.6s ease 0.4s backwards;
}

.column:last-child {
  animation: fadeInRight 0.6s ease 0.4s backwards;
}

.column h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.column h3 a {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.column p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ---------- 文章卡片（Listing） ---------- */
.quarto-listing {
  margin-top: var(--space-md);
}

.quarto-listing-default .list-item,
.quarto-listing .listing-item,
div.quarto-post {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease backwards;
}

.quarto-listing-default .list-item:nth-child(1) { animation-delay: 0.1s; }
.quarto-listing-default .list-item:nth-child(2) { animation-delay: 0.15s; }
.quarto-listing-default .list-item:nth-child(3) { animation-delay: 0.2s; }
.quarto-listing-default .list-item:nth-child(4) { animation-delay: 0.25s; }
.quarto-listing-default .list-item:nth-child(5) { animation-delay: 0.3s; }

.quarto-listing-default .list-item::before,
.quarto-listing .listing-item::before,
div.quarto-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.quarto-listing-default .list-item:hover,
.quarto-listing .listing-item:hover,
div.quarto-post:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.quarto-listing-default .list-item:hover::before,
.quarto-listing .listing-item:hover::before,
div.quarto-post:hover::before {
  transform: scaleX(1);
}

.listing-title,
.post-title {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.listing-title a,
.post-title a {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.listing-title a:hover,
.post-title a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.listing-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.listing-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-xs);
}

/* ---------- 分类标签 ---------- */
.listing-category,
.quarto-category {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.3em 0.9em;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: var(--space-xs);
  margin-top: var(--space-xs);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.listing-category:hover,
.quarto-category:hover {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 210, 30, 0.3);
}

/* ---------- Grid 类型 Listing ---------- */
.quarto-listing-cols-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--space-md) !important;
}

.quarto-listing-cols-2 .g-col-1 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quarto-listing-cols-2 .g-col-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.quarto-listing-cols-2 .g-col-1:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.quarto-listing-cols-2 .g-col-1:hover::before {
  transform: scaleX(1);
}

/* Grid 卡片内容 */
.quarto-listing-cols-2 .card-title,
.quarto-listing-cols-2 .listing-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.quarto-listing-cols-2 .card-title a,
.quarto-listing-cols-2 .listing-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.quarto-listing-cols-2 .card-title a:hover,
.quarto-listing-cols-2 .listing-title a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quarto-listing-cols-2 .listing-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: var(--space-sm) 0;
}

.quarto-listing-cols-2 .listing-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 分类侧边栏样式 */
.quarto-listing-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.quarto-listing-category-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  margin: 0.3rem 0;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-item:hover {
  background: var(--bg-secondary);
}

.category-item.active {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-yellow);
}

.category-item .category-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.category-item .category-count {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .quarto-listing-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 分隔线美化 ---------- */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: var(--space-xl) 0;
}

/* ---------- 目录（TOC） ---------- */
#TOC {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

#TOC .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem !important;
  border-radius: var(--radius-sm);
}

#TOC .nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-secondary);
}

#TOC .nav-link.active {
  color: var(--accent-yellow) !important;
  background: rgba(255, 210, 30, 0.1);
}

/* ---------- 页脚 ---------- */
.page-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  text-align: center;
  position: relative;
}

.page-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* ---------- 图片样式 ---------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

img:hover {
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

figure {
  text-align: center;
  margin: var(--space-lg) 0;
}

figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

/* ---------- 表格 ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* ---------- 搜索与过滤 UI（美化版） ---------- */
.quarto-listing-filter {
  margin-bottom: var(--space-lg);
}

.quarto-listing-filter input,
input[type="text"],
input[type="search"] {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quarto-listing-filter input:focus,
input[type="text"]:focus,
input[type="search"]:focus {
  border-color: var(--accent-yellow);
  box-shadow: 
    0 0 0 4px rgba(255, 210, 30, 0.15),
    0 8px 25px rgba(255, 210, 30, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  background: var(--bg-card);
}

.quarto-listing-filter input:hover {
  border-color: var(--border-hover);
}

::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ========== 导航栏搜索按钮 & 搜索框 ========== */
.aa-DetachedSearchButton,
#quarto-search {
  background: transparent !important;
  border: none !important;
}

.aa-DetachedSearchButton {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-xl) !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
}

.aa-DetachedSearchButton:hover {
  border-color: var(--accent-yellow) !important;
  box-shadow: 0 0 15px rgba(255, 210, 30, 0.2) !important;
}

.aa-DetachedSearchButtonIcon {
  color: var(--text-secondary) !important;
}

.aa-DetachedSearchButtonPlaceholder {
  color: var(--text-muted) !important;
}

/* 搜索弹出框 */
.aa-DetachedOverlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px) !important;
}

.aa-DetachedContainer {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
  max-width: 600px !important;
  margin: 10vh auto !important;
}

.aa-Form {
  background: var(--bg-secondary) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-xl) !important;
  padding: 0.5rem !important;
}

.aa-Form:focus-within {
  border-color: var(--accent-yellow) !important;
  box-shadow: 0 0 0 4px rgba(255, 210, 30, 0.15) !important;
}

.aa-Input {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 1.1rem !important;
}

.aa-Input::placeholder {
  color: var(--text-muted) !important;
}

.aa-Panel {
  background: var(--bg-card) !important;
  border: none !important;
  border-top: 1px solid var(--border-color) !important;
}

.aa-Item {
  background: transparent !important;
  padding: 1rem !important;
  border-radius: var(--radius-md) !important;
  margin: 0.25rem 0.5rem !important;
}

.aa-Item[aria-selected="true"],
.aa-Item:hover {
  background: var(--bg-secondary) !important;
}

.aa-ItemContent {
  color: var(--text-primary) !important;
}

.aa-ItemContentTitle {
  color: var(--text-primary) !important;
}

.aa-ItemContentDescription {
  color: var(--text-secondary) !important;
}

/* 搜索图标颜色 */
.aa-SubmitIcon,
.aa-LoadingIcon {
  color: var(--accent-yellow) !important;
}

/* 清除按钮 */
.aa-ClearButton {
  color: var(--text-muted) !important;
}

.aa-ClearButton:hover {
  color: var(--text-primary) !important;
}

/* ========== Explore 卡片（首页） ========== */
.explore-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.explore-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.explore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.explore-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-yellow);
  box-shadow: 0 20px 40px rgba(255, 210, 30, 0.15);
}

.explore-card:hover::before {
  transform: scaleX(1);
}

.explore-card .card-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.explore-card .card-content {
  flex: 1;
}

.explore-card .card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.explore-card .card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
}

.explore-card .card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.explore-card .card-tags li {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
}

.explore-card .card-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  align-self: center;
}

.explore-card:hover .card-arrow {
  color: var(--accent-yellow);
  transform: translateX(5px);
}

.papers-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.15);
}

.projects-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(192, 132, 252, 0.15);
}

.notes-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.15);
}

@media (max-width: 768px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
  
  .explore-card {
    flex-direction: column;
    text-align: center;
  }
  
  .explore-card .card-tags {
    justify-content: center;
  }
  
  .explore-card .card-arrow {
    display: none;
  }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-yellow), var(--accent-orange));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-pink));
}

/* ---------- 选中文字 ---------- */
::selection {
  background: rgba(255, 210, 30, 0.3);
  color: var(--text-primary);
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 768px) {
  h1.title {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .columns {
    grid-template-columns: 1fr;
  }
  
  main.content {
    padding: var(--space-md) var(--space-sm);
  }
  
  .quarto-listing-default .list-item,
  .quarto-listing .listing-item {
    padding: var(--space-sm);
  }
  
  .stats-container {
    gap: var(--space-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .shape-left-1, .shape-left-2, .shape-left-3,
  .shape-right-1, .shape-right-2, .shape-right-3,
  .shape-center {
    display: none;
  }
}

/* ========== 社交链接 - 横向紧凑居中布局 ========== */
.social-links-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 0.8rem;
  margin: var(--space-lg) 0;
  padding: 0 var(--space-md);
  text-align: center;
}

.social-links-horizontal > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  width: 100%;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.4s ease backwards;
}

.social-btn:nth-child(1) { animation-delay: 0.05s; }
.social-btn:nth-child(2) { animation-delay: 0.1s; }
.social-btn:nth-child(3) { animation-delay: 0.15s; }
.social-btn:nth-child(4) { animation-delay: 0.2s; }
.social-btn:nth-child(5) { animation-delay: 0.25s; }
.social-btn:nth-child(6) { animation-delay: 0.3s; }

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.social-btn span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.social-btn .social-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.social-btn .social-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* 各平台特色颜色 - 横向按钮 */
.social-btn.github:hover { 
  border-color: #6e5494; 
  box-shadow: 0 0 25px rgba(110, 84, 148, 0.4);
  background: linear-gradient(135deg, rgba(110, 84, 148, 0.1), transparent);
}
.social-btn.email:hover { 
  border-color: #ea4335; 
  box-shadow: 0 0 25px rgba(234, 67, 53, 0.4);
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.1), transparent);
}
.social-btn.scholar:hover { 
  border-color: #4285f4; 
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), transparent);
}
.social-btn.twitter:hover { 
  border-color: #1da1f2; 
  box-shadow: 0 0 25px rgba(29, 161, 242, 0.4);
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.1), transparent);
}
.social-btn.linkedin:hover { 
  border-color: #0077b5; 
  box-shadow: 0 0 25px rgba(0, 119, 181, 0.4);
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.1), transparent);
}
.social-btn.huggingface:hover { 
  border-color: #ff9d00; 
  box-shadow: 0 0 25px rgba(255, 157, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 157, 0, 0.1), transparent);
}

/* ========== 旧版社交链接（竖版，保留兼容） ========== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  padding: 0 var(--space-md);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  min-width: 140px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease backwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.15s; }
.social-link:nth-child(3) { animation-delay: 0.2s; }
.social-link:nth-child(4) { animation-delay: 0.25s; }
.social-link:nth-child(5) { animation-delay: 0.3s; }
.social-link:nth-child(6) { animation-delay: 0.35s; }

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.social-link:hover {
  transform: translateY(-6px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

.social-link:hover::before {
  transform: scaleX(1);
}

.social-icon {
  font-size: 2rem;
  line-height: 1;
}

.social-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.social-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 各平台特色颜色 - 竖版 */
.social-link.github:hover { border-color: #6e5494; box-shadow: 0 0 30px rgba(110, 84, 148, 0.3); }
.social-link.email:hover { border-color: #ea4335; box-shadow: 0 0 30px rgba(234, 67, 53, 0.3); }
.social-link.scholar:hover { border-color: #4285f4; box-shadow: 0 0 30px rgba(66, 133, 244, 0.3); }
.social-link.twitter:hover { border-color: #1da1f2; box-shadow: 0 0 30px rgba(29, 161, 242, 0.3); }
.social-link.linkedin:hover { border-color: #0077b5; box-shadow: 0 0 30px rgba(0, 119, 181, 0.3); }
.social-link.huggingface:hover { border-color: #ff9d00; box-shadow: 0 0 30px rgba(255, 157, 0, 0.3); }

/* ========== 3D 气泡论文网络 ========== */
.paper-network-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.paper-network-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
}

.network-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.network-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.paper-network-3d {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 350px;
  margin: 0 auto;
  perspective: 800px;
  cursor: grab;
}

.paper-network-3d:active {
  cursor: grabbing;
}

.bubble-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* 论文气泡 */
.paper-bubble {
  position: absolute;
  transform: translate3d(var(--x), var(--y), var(--z));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.bubble-dot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  box-shadow: 
    0 0 10px rgba(34, 211, 238, 0.5),
    0 0 20px rgba(34, 211, 238, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: bubbleFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--z) * 0.01s);
}

@keyframes bubbleFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.bubble-label {
  position: absolute;
  left: 24px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-bubble:hover {
  z-index: 100;
}

.paper-bubble:hover .bubble-dot {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, var(--accent-yellow), var(--accent-orange));
  box-shadow: 
    0 0 15px rgba(255, 210, 30, 0.6),
    0 0 30px rgba(255, 210, 30, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.paper-bubble:hover .bubble-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-primary);
  border-color: var(--accent-yellow);
}

/* 中心气泡 */
.center-bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, var(--accent-yellow), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 
    0 0 20px rgba(255, 210, 30, 0.5),
    0 0 40px rgba(255, 210, 30, 0.3);
  animation: centerPulse 3s ease-in-out infinite;
  z-index: 50;
}

@keyframes centerPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 210, 30, 0.5), 0 0 40px rgba(255, 210, 30, 0.3);
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 210, 30, 0.7), 0 0 60px rgba(255, 210, 30, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.network-hint {
  display: none;
}

/* 旧版网络样式（保留兼容） */
.paper-network {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  perspective: 1000px;
}

.network-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.network-node {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.network-node:hover {
  transform: scale(1.3);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
  z-index: 20;
}

/* ========== 论文/项目统计卡片 ========== */
.papers-stats,
.projects-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: var(--space-xs);
}

/* ========== 项目流水线 ========== */
.pipeline-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  overflow-x: auto;
}

.pipeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
}

.pipeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 100px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease backwards;
}

.pipeline-stage:nth-child(1) { animation-delay: 0.1s; }
.pipeline-stage:nth-child(3) { animation-delay: 0.2s; }
.pipeline-stage:nth-child(5) { animation-delay: 0.3s; }
.pipeline-stage:nth-child(7) { animation-delay: 0.4s; }
.pipeline-stage:nth-child(9) { animation-delay: 0.5s; }

.pipeline-stage:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.2);
}

.stage-icon {
  font-size: 2rem;
}

.stage-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.stage-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pipeline-arrow {
  font-size: 1.5rem;
  color: var(--accent-purple);
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

/* ========== 技术栈展示 ========== */
.tech-stack-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: center;
}

.tech-stack-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.tech-stack > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0;
  width: 100%;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  cursor: default;
  animation: fadeInUp 0.4s ease backwards;
}

.tech-item:nth-child(1) { animation-delay: 0.05s; }
.tech-item:nth-child(2) { animation-delay: 0.1s; }
.tech-item:nth-child(3) { animation-delay: 0.15s; }
.tech-item:nth-child(4) { animation-delay: 0.2s; }
.tech-item:nth-child(5) { animation-delay: 0.25s; }
.tech-item:nth-child(6) { animation-delay: 0.3s; }
.tech-item:nth-child(7) { animation-delay: 0.35s; }
.tech-item:nth-child(8) { animation-delay: 0.4s; }

.tech-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.tech-icon {
  font-size: 1.2rem;
}

.tech-name {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== 响应式补充 ========== */
@media (max-width: 768px) {
  .social-links {
    gap: var(--space-xs);
  }
  
  .social-link {
    min-width: 100px;
    padding: var(--space-sm);
  }
  
  .social-icon {
    font-size: 1.5rem;
  }
  
  .social-name {
    font-size: 0.8rem;
  }
  
  .paper-network {
    height: 300px;
  }
  
  .network-node {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .node-center {
    width: 55px;
    height: 55px;
  }
  
  .pipeline {
    flex-direction: column;
  }
  
  .pipeline-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- 打印样式 ---------- */
/* ========== 个人简介页面 ========== */
.about-hero {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

.about-hero h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.about-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.about-section:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.about-section h3 {
  color: var(--accent-yellow);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.about-section code {
  background: var(--bg-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  margin: 0.2rem;
  display: inline-block;
  font-size: 0.9rem;
}

/* ========== 论文详情页 ========== */
.paper-meta {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.paper-meta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
}

.paper-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  align-items: center;
}

.paper-venue {
  background: var(--accent-blue);
  color: var(--bg-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}

.paper-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.paper-link {
  background: var(--bg-secondary);
  color: var(--accent-cyan);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.paper-link:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paper-tags .tag {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.paper-tags .tag:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* 项目详情页 - 技术栈 */
.project-meta {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.project-meta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-purple);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badges .badge {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .paper-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== 小说页面 ========== */
.novel-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.novel-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.novel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 100px;
  transition: all 0.3s ease;
}

.novel-stat:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.2);
}

.novel-stat .stat-icon {
  font-size: 2rem;
}

.novel-stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.novel-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.novel-section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.novel-section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  border-radius: 2px;
}

/* 世界观 - 蓝色主题 */
#worldview-listing .quarto-post,
#worldview-listing .list-item {
  border-left: 4px solid var(--accent-blue) !important;
}

/* 人物志 - 绿色主题 */
#characters-listing .quarto-post,
#characters-listing .list-item {
  border-left: 4px solid var(--accent-green) !important;
}

/* 关键剧情 - 橙色主题 */
#keyplots-listing .quarto-post,
#keyplots-listing .list-item {
  border-left: 4px solid var(--accent-orange) !important;
}

/* 小说正文 - 紫色主题 */
#chapters-listing .quarto-post,
#chapters-listing .list-item {
  border-left: 4px solid var(--accent-purple) !important;
}

/* ========== Notes 页面 ========== */
.notes-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.notes-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyan);
}

.notes-hero-content {
  flex: 1;
  min-width: 240px;
}

.notes-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.notes-hero-title {
  font-size: 2rem;
  margin: 0.4rem 0 0.6rem;
}

.notes-hero-subtitle {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.notes-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.notes-badge {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.notes-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  min-width: 260px;
  align-content: center;
}

.notes-stat-card {
  background: rgba(20, 20, 22, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}

.notes-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.notes-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.notes-empty {
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(20, 20, 22, 0.6);
  padding: var(--space-md);
  margin: var(--space-sm) 0 var(--space-lg);
}

@media (max-width: 900px) {
  .notes-hero {
    flex-direction: column;
  }

  .notes-hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .novel-stats {
    gap: var(--space-sm);
  }
  
  .novel-stat {
    min-width: 80px;
    padding: var(--space-sm);
  }
  
  .novel-stat .stat-icon {
    font-size: 1.5rem;
  }
  
  .novel-stat .stat-value {
    font-size: 1.5rem;
  }
}

/* ========== 打印样式 ========== */
@media print {
  body {
    background: white;
    color: black;
  }
  
  body::before, body::after {
    display: none;
  }
  
  .navbar, .page-footer, #TOC {
    display: none;
  }
  
  .paper-network-container, .pipeline-container, .tech-stack-section, .social-links {
    display: none;
  }
}
