/*!
 * Modern Glassmorphism Theme v2.0
 * Refined design with enhanced responsiveness and polish
 * Optimized for Desktop, Tablet, and Mobile
 */

[data-theme="customize"] {
  /* 主色调 - 粉紫渐变 */
  --pico-primary: #f093fb;
  --pico-primary-hover: #f5576c;
  --pico-primary-background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* 背景 - 动态渐变 */
  --pico-background-color: transparent;
  
  /* 卡片背景 - 毛玻璃效果 */
  --card-background: rgba(255, 255, 255, 0.12);
  --card-background-hover: rgba(255, 255, 255, 0.18);
  --card-backdrop-blur: blur(25px);
  
  /* 文字系统 */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-placeholder: rgba(255, 255, 255, 0.4);
  
  /* 边框系统 */
  --border-light: rgba(255, 255, 255, 0.15);
  --border-medium: rgba(255, 255, 255, 0.25);
  --border-highlight: rgba(255, 255, 255, 0.4);
  
  /* 表单元素 */
  --pico-form-element-border-color: var(--border-medium);
  --pico-form-element-focus-color: #ffffff;
  --pico-form-element-background: rgba(255, 255, 255, 0.08);
  
  /* 代码块 */
  --pico-code-background-color: rgba(0, 0, 0, 0.25);
  
  /* 阴影系统 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(240, 147, 251, 0.4);
  --pico-box-shadow: var(--shadow-md);
}

/* 全局背景与动画 */
body {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

/* 导航栏增强 */
.site-navbar {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-navbar.scrolled {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.site-navbar .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .site-navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.site-navbar .brand {
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.site-navbar .brand:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.site-navbar .desc {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  margin-left: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

/* 导航菜单 */
.nav-menu {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a {
  color: var(--text-primary);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 搜索框增强 */
#s {
  background: var(--pico-form-element-background);
  border: 1px solid var(--pico-form-element-border-color);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  width: 200px;
  font-size: 0.9rem;
}

#s::placeholder {
  color: var(--text-muted);
}

#s:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--pico-form-element-focus-color);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
  width: 280px;
  outline: none;
}

/* 移动端搜索框 */
@media (max-width: 768px) {
  #s {
    width: 100%;
    min-width: auto;
  }
  
  #s:focus {
    width: 100%;
  }
}

/* 主容器 */
.container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
    padding: 0 1rem;
  }
}

.container-thin {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container-thin {
    max-width: 100%;
  }
}

/* 文章卡片增强版 */
.post {
  background: var(--card-background);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 光泽扫过效果 */
.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.post:hover::before {
  left: 100%;
}

/* 底部光晕效果 */
.post::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

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

/* 桌面端悬停效果 */
@media (min-width: 769px) {
  .post:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(240, 147, 251, 0.2);
    border-color: var(--border-highlight);
    background: var(--card-background-hover);
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .post {
    border-radius: 22px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .post:hover {
    transform: none;
  }
  
  .post:hover::before {
    left: -100%;
  }
}

/* 文章标题增强 */
.entry-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.entry-title a {
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #e8e8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.entry-title a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.entry-title a:hover::after {
  width: 100%;
}

.entry-title a:hover {
  filter: brightness(1.15);
  transform: translateX(4px);
}

/* 文章元信息 - 响应式布局 */
.entry-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 480px) {
  .entry-meta {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
}

.entry-meta li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .entry-meta li {
    font-size: 0.85rem;
  }
}

.entry-meta time {
  color: var(--text-secondary);
}

.entry-meta a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--text-primary);
}

/* 文章内容 - 优化可读性 */
.entry-content {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.entry-content p {
  margin-bottom: 1.5em;
}

/* 图片增强 */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 2em auto;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: zoom-in;
}

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

.entry-content figure {
  margin: 2em 0;
}

.entry-content figure img {
  margin: 0;
}

.entry-content figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75em;
  font-style: italic;
}

.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
}

.entry-content h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-content h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.entry-content h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* 列表样式优化 */
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.entry-content ul {
  list-style-type: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.75em;
}

.entry-content ul li::before {
  content: '•';
  position: absolute;
  left: -1em;
  color: var(--pico-primary);
  font-weight: bold;
  font-size: 1.2em;
}

.entry-content ol {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
}

.entry-content ol li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  counter-increment: item;
}

.entry-content ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0.5em;
  color: var(--pico-primary);
  font-weight: 600;
}

.entry-content li {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

/* 引用块美化 */
.entry-content blockquote {
  border-left: 4px solid var(--pico-primary);
  padding: 1.25em 1.5em;
  margin: 2em 0;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 12px 12px 0;
  position: relative;
  overflow: hidden;
}

.entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.entry-content blockquote p {
  margin-bottom: 0.5em;
  position: relative;
  z-index: 1;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content code {
  background: var(--pico-code-background-color);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
}

.entry-content pre {
  background: var(--pico-code-background-color);
  padding: 1.5em;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.entry-content a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  word-break: break-word;
}

.entry-content a:hover {
  color: #f093fb;
  text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

/* 标签和分类美化 */
.entry-content p[itemprop="keywords"] {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.entry-content p[itemprop="keywords"] a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  margin: 0.25rem 0.5rem 0.25rem 0;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.entry-content p[itemprop="keywords"] a:hover {
  background: var(--pico-primary-background);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* 分隔线美化 */
.post-separator {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(240, 147, 251, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
  margin: clamp(3rem, 6vw, 5rem) auto;
  max-width: 300px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.post-separator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 分页导航 - 响应式设计 */
nav ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

nav ul li a,
nav ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  background: var(--card-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

@media (max-width: 480px) {
  nav ul {
    gap: 0.4rem;
  }
  
  nav ul li a,
  nav ul li span {
    min-width: 40px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

nav ul li.current span {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* 文章导航（上一篇/下一篇） */
.post-nav {
  margin-top: 3rem;
}

.page-navigator {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .page-navigator {
    flex-direction: column;
    gap: 1rem;
  }
}

.page-navigator li {
  flex: 1;
}

.page-navigator a {
  display: block;
  background: var(--card-background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-navigator a:hover {
  background: var(--card-background-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-navigator .prev a::before {
  content: '← ';
  margin-right: 0.5rem;
}

.page-navigator .next a::after {
  content: ' →';
  margin-left: 0.5rem;
}

/* 页脚 - 响应式布局 */
.site-footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

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

.site-footer .d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .site-footer .d-flex {
    flex-direction: column;
    text-align: center;
  }
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.site-footer a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 评论区域增强 */
#comments {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

#comments h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.comment-item {
  background: var(--card-background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: var(--card-background-hover);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.comment-avatar {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.comment-item:hover .comment-avatar {
  transform: scale(1.1) rotate(5deg);
}

.comment-meta {
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.comment-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.75rem;
}

.comment-reply a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.comment-reply a:hover {
  background: var(--pico-primary-background);
  color: white;
  transform: translateY(-2px);
}

/* 评论表单 */
.respond {
  margin-top: 3rem;
  background: var(--card-background);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

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

#comment-form textarea {
  width: 100%;
  min-height: 120px;
  background: var(--pico-form-element-background);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#comment-form textarea:focus {
  outline: none;
  border-color: var(--pico-form-element-focus-color);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 20px rgba(240, 147, 251, 0.3);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.grid input {
  width: 100%;
  background: var(--pico-form-element-background);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 0.875rem 1.125rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.grid input:focus {
  outline: none;
  border-color: var(--pico-form-element-focus-color);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .respond {
    padding: 1.5rem;
  }
}

/* 按钮系统增强 */
button, [type="submit"], [type="button"], .btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white;
  padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 4vw, 3rem);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  font-size: clamp(0.95rem, 2vw, 1rem);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

button::before,
[type="submit"]::before,
[type="button"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before,
[type="submit"]:active::before,
[type="button"]:active::before {
  width: 300px;
  height: 300px;
}

@media (max-width: 480px) {
  button, [type="submit"], [type="button"] {
    width: 100%;
    padding: 1rem 2rem;
  }
}

button:hover, [type="submit"]:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6), 0 0 20px rgba(240, 147, 251, 0.3);
}

button:active, [type="submit"]:active {
  transform: translateY(-1px) scale(1.02);
}

button:disabled,
[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 档案标题增强 */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted) !important;
  opacity: 0.8;
}

h6.text-center {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card-background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  display: inline-block;
  padding: 1rem 2rem;
}

/* 移动端导航菜单增强 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-light);
    overflow-y: auto;
  }
  
  #nav-toggler:checked ~ .nav-menu {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu a {
    padding: 1.25rem 1rem;
    width: 100%;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  .nav-menu form {
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .nav-menu #s {
    width: 100%;
    font-size: 1rem;
  }
}

/* 桌面端隐藏切换按钮 */
@media (min-width: 769px) {
  .nav-toggler-btn {
    display: none;
  }
  
  #nav-toggler {
    display: none;
  }
}

/* 滚动条美化 - 跨浏览器支持 */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
  background-clip: padding-box;
}

/* Firefox 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* 触摸设备增强 */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: rgba(240, 147, 251, 0.3);
    user-select: none;
  }
  
  a, button, input, [role="button"], textarea {
    user-select: auto;
    min-height: 48px;
    min-width: 48px;
  }
  
  .post:hover {
    transform: none;
  }
  
  .post:hover::before,
  .post:hover::after {
    display: none;
  }
  
  .comment-item:hover {
    transform: none;
  }
}

/* 深色模式精细调整 */
[data-theme="customize"][data-theme="dark"] {
  --pico-primary: #a78bfa;
  --pico-primary-hover: #8b5cf6;
  --pico-primary-background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --card-background: rgba(17, 24, 39, 0.65);
  --card-background-hover: rgba(17, 24, 39, 0.75);
  --text-primary: #f9fafb;
  --text-secondary: rgba(249, 250, 251, 0.85);
  --text-muted: rgba(249, 250, 251, 0.6);
  --text-placeholder: rgba(249, 250, 251, 0.4);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-highlight: rgba(255, 255, 255, 0.25);
  --pico-code-background-color: rgba(31, 41, 55, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* 打印样式优化 */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-navbar,
  .site-footer,
  .nav-menu {
    display: none;
  }
  
  .post {
    background: white;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* 打印样式优化 */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-navbar,
  .site-footer,
  .nav-menu {
    display: none;
  }
  
  .post {
    background: white;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  [data-theme="customize"] {
    --pico-primary: #ffffff;
    --pico-primary-hover: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --pico-muted-border-color: #ffffff;
  }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 100% 100%;
  }
  
  .post::before,
  .post::after,
  .post-separator::before {
    display: none;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post {
  animation: fadeIn 0.6s ease forwards;
}

.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }