* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 - 温暖的红色 */
  --primary: #1f2937;
  --accent: #ef4444;
  --accent-light: #f87171;
  --accent-dark: #dc2626;
  
  /* 色彩系统 */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  
  /* 背景系统 */
  --bg-main: #f9fafb;
  --bg-subtle: #f3f4f6;
  --bg-card: rgba(255, 255, 255, 0.85);
  
  /* 边框系统 */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 圆角系统 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 40px;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* 过渡动画 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-main) 0%, #ffffff 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.618;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  animation: fadeIn 0.6s ease;
}

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

/* 卡片样式 - 精致升级 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.card:hover::before {
  opacity: 0.6;
}

/* 容器 */
.container {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* 页面布局 */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 首页 */
.home-page {
  text-align: center;
  background: 
    radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.home-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
  z-index: 0;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(360deg); }
}

.home-page .page {
  position: relative;
  z-index: 1;
}

.home-card {
  width: 420px;
  height: 380px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-base);
  overflow: hidden;
  cursor: pointer;
}

.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 20% -20%, rgba(239, 68, 68, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.3; }
}

.home-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.home-card:hover::before,
.home-card:hover::after {
  opacity: 1;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(239, 68, 68, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.home-card:hover .avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.home-card:hover .avatar::after {
  opacity: 1;
}

.greeting {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.intro {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.name {
  color: var(--accent);
  font-weight: 700;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.home-card:hover .name::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nice-to-meet {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.home-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 博客列表页 */
.blog-list {
  padding-top: 5rem;
  padding-bottom: 5rem;
  animation: slideUp 0.6s ease;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(239, 68, 68, 0.02) 50%, transparent 100%);
  position: relative;
}

.blog-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.3;
}

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

.blog-list-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}


.blog-list-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.blog-list-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
  cursor: pointer;
  transition: color var(--transition-base);
}

.blog-list-title:hover {
  color: var(--accent);
}

/* 博客条目 */
.blog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  text-decoration: none;
  color: inherit;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.blog-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.blog-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.blog-item:hover::before {
  transform: scaleY(1);
}

.blog-item-date {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  width: 85px;
  flex-shrink: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.blog-item-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-base);
  letter-spacing: -0.01em;
}

.blog-item:hover .blog-item-title {
  color: var(--accent);
  transform: translateX(4px);
}

.blog-item-tags {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.tag {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.blog-item:hover .tag {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

/* 博客详情页 */
.blog-detail {
  padding-top: 3rem;
  padding-bottom: 4rem;
  animation: contentFade 0.6s ease;
}

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

.blog-detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-detail-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 文章内容样式 - 精致升级 */
.prose {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.0625rem;
  width: 100%; /* 确保宽度正确 */
}

/* 让prose内部的块级元素都正确对齐 */
.prose > * {
  margin-left: 0;
  margin-right: 0;
}

.prose h2 {
  font-size: 1.625em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose h3 {
  font-size: 1.375em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.75em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

.prose h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose h4 {
  font-size: 1.25em;
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0.75em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

.prose h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose h5 {
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0.6em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

.prose h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose h6 {
  font-size: 1em;
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 1.2rem;
}

.prose h6::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: var(--text-secondary);
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 0.5em;
  list-style: none;
}

.prose li::before {
  content: none;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose code {
  background: var(--bg-subtle);
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--accent-dark);
  border: 1px solid var(--border-light);
}

.prose pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border: 1px solid #333;
  box-shadow: var(--shadow-md);
  position: relative;
}

.prose pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border: none;
  font-size: 0.95em;
  line-height: 1.6;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
}

.prose a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.prose a:hover {
  color: var(--accent-dark);
}

.prose a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.prose img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.prose hr {
  border: none;
  border-top: 2px solid var(--border-light);
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  position: relative;
}

.prose hr::after {
  content: '• • •';
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-main);
  padding: 0 1rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
}

/* 返回链接 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: var(--space-xl);
  align-self: flex-end;
}

.back-link:hover {
  color: var(--accent);
  background: rgba(239, 68, 68, 0.05);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.back-link::before {
  content: '←';
  font-weight: bold;
  transition: transform var(--transition-fast);
}

.back-link:hover::before {
  transform: translateX(-2px);
}

/* 博客详情文章容器 - 支持返回按钮在右下角 */
.blog-detail .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 代码高亮样式 - 增强版 */
.prose pre code .keyword { color: #f92672; font-weight: bold; }
.prose pre code .string { color: #a6e22e; }
.prose pre code .comment { color: #75715e; font-style: italic; }
.prose pre code .function { color: #66d9ef; }
.prose pre code .number { color: #ae81ff; }
.prose pre code .literal { color: #ae81ff; font-weight: bold; }
.prose pre code .property { color: #66d9ef; }
.prose pre code .color { color: #e6db74; }
.prose pre code .unit { color: #f92672; }
.prose pre code .tag { color: #f92672; }
.prose pre code .attr { color: #a6e22e; }
.prose pre code .value { color: #e6db74; }


/* 优化的列表样式 - 统一对齐，缩短标记距离 */
.prose ul li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  line-height: 1.5;
  list-style: none;
  position: relative;
  padding-left: 1.5em; /* 缩短标记与文字距离 */
}

.prose ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2em;
  width: 0.8em; /* 缩短标记宽度 */
  text-align: left;
}

/* 有序列表 - 与无序列表对齐 */
.prose ol {
  counter-reset: item;
  list-style: none;
  margin-left: 0;
}

.prose ol li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  line-height: 1.5;
  counter-increment: item;
  list-style: none;
  position: relative;
  padding-left: 1.5em; /* 与无序列表相同的距离 */
}

.prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  width: 0.8em; /* 与无序列表相同的宽度 */
  text-align: right; /* 数字右对齐，让文字起始位置一致 */
  margin-right: 0.2em; /* 减少数字后间距 */
}

/* 列表嵌套 - 统一减少缩进 */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  padding-left: 0.6em; /* 进一步减少嵌套缩进 */
  list-style: none;
}

/* 无序列表嵌套标记 */
.prose ul ul li::before {
  content: '◦';
  font-size: 1.1em;
  width: 0.8em;
  text-align: left;
}

/* 有序列表嵌套标记 */
.prose ol ol li::before {
  content: counter(item) ".";
  width: 0.8em;
  text-align: right;
  margin-right: 0.2em;
}

/* 分割线 - 简化版本 */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 3em;
  margin-bottom: 3em;
  position: relative;
}

.prose hr::after {
  content: '✦ ✦ ✦';
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 0 1rem;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.5em;
  font-weight: bold;
}

/* 表格样式 - 简化版本 */
.prose table-container {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

/* 表格滚动容器 */
.prose table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

/* 表格本身 - 宽度100% */
.prose table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--bg-card);
  margin: 0;
}

/* 一级标题 - 与二级标题保持一致 */
.prose h1 {
  font-size: 2.0em;      /* 与h2相同 */
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0.9em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

.prose h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.prose table tr:last-child td {
  border-bottom: none;
}

/* 表格表头样式 */
.prose table thead {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

.prose table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: none;
}

.prose table tr:hover {
  background: rgba(239, 68, 68, 0.03);
}

/* 表格滚动条美化 */
.prose table-scroll::-webkit-scrollbar {
  height: 6px;
}

.prose table-scroll::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}

.prose table-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.prose table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}


/* 响应式 */
@media (max-width: 640px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
  }

  .page {
    padding: var(--space-lg);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .home-card {
    width: 100%;
    height: auto;
    min-height: 320px;
    padding: var(--space-xl);
  }

      .avatar {
        width: 140px;
        height: 140px;
      }

  .greeting,
  .intro,
  .nice-to-meet {
    font-size: 1.25rem;
  }

  .blog-list {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .blog-list-title {
    font-size: 1.75rem;
  }

  .blog-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-lg);
  }

  .blog-item-date {
    width: auto;
    font-size: 0.8125rem;
  }

  .blog-item-tags {
    align-self: flex-start;
  }

  .blog-detail-title {
    font-size: 1.875rem;
  }

  .blog-detail {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .prose {
    font-size: 1rem;
  }

  .prose h1 {
    font-size: 1.75em;
  }

  .prose h2 {
    font-size: 1.375em;
  }

  .prose h3 {
    font-size: 1.25em;
  }

  .prose pre {
    padding: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* 选择文本样式 */
::selection {
  background: rgba(239, 68, 68, 0.2);
  color: var(--text-primary);
}

/* 焦点样式 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 加载状态 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 工具提示 */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--text-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* About 页面样式 */
.about-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
  animation: contentFade 0.6s ease;
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-lg);
  border: 3px solid white;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.about-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.about-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.about-content p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

/* 名字可点击样式 */
.name {
  cursor: pointer;
}

/* 番茄时钟页面样式 */
.clock-page {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.clock-container {
  width: 400px;
  height: 300px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.clock-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.tomato-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.timer-display {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  min-width: 120px;
  text-align: center;
}

.button-container {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.btn-start {
  background-color: #4CAF50;
  color: white;
}

.btn-start:hover {
  background-color: #45a049;
}

.btn-stop {
  background-color: #f44336;
  color: white;
}

.btn-stop:hover {
  background-color: #da190b;
}

.btn-reset {
  background-color: #2196F3;
  color: white;
}

.btn-reset:hover {
  background-color: #0b7dda;
}

.hidden {
  display: none;
}

/* Events 页面样式 */
.events-page {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.events-container {
  width: 700px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
}

.events-container header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-right: 150px;
}

.events-container header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.events-container header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.header-buttons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
  background-color: #2980b9;
}

.clear-btn {
  padding: 8px 15px;
  border-radius: 20px;
  background-color: #e74c3c;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.clear-btn:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
}

.events-list {
  background-color: transparent;
  min-height: 300px;
}

.event-item {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  cursor: move;
  transition: background-color 0.2s;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.event-item.completed {
  opacity: 0.6;
  background-color: rgba(0, 0, 0, 0.02);
}

.event-item.completed .event-name {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.event-item.completed .event-note {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.event-item.completed .event-number {
  background-color: var(--text-tertiary);
}

.event-item .event-name {
  cursor: pointer;
  transition: all 0.2s;
}

.event-item .event-name:hover {
  color: #3498db;
}

.event-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.event-item.drag-over {
  background-color: rgba(52, 152, 219, 0.1);
  border-top: 3px solid #3498db;
  transform: translateY(2px);
}

.event-header {
  margin-bottom: 8px;
  padding-left: 10px;
  padding-right: 80px;
}

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

.event-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.event-note {
  color: #555;
  font-size: 0.95rem;
  margin-top: 5px;
  padding-left: 10px;
}

.event-number {
  position: absolute;
  left: -25px;
  top: 15px;
  width: 20px;
  height: 20px;
  background-color: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 5px;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
}

.event-actions {
  position: absolute;
  right: 15px;
  top: 15px;
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
}

.edit-btn {
  color: #3498db;
}

.edit-btn:hover {
  color: #2980b9;
}

.delete-btn {
  color: #e74c3c;
}

.delete-btn:hover {
  color: #c0392b;
}

.drag-handle {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-medium);
  cursor: move;
  font-size: 1.2rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: var(--radius-sm);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  margin: 0;
  color: var(--text-primary);
}

.close {
  color: var(--text-tertiary);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 10px;
  padding: 0 20px;
}

.form-group label {
  display: block;
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 20px 10px 20px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px solid var(--border-light);
}

.submit-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #2980b9;
}

.cancel-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.cancel-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
}
