/*
Theme Name: Starfield Galaxy
Theme URI: https://github.com/yourusername/starfield-galaxy
Author: 星野集
Author URI: https://xingyeji.com
Description: 高性能星空主题 - 使用星空粒子效果实现流畅的动态背景，包含鼠标跟随效果、几何动画等炫酷特效，极致性能优化，支持深色模式
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: starfield-galaxy
Tags: blog, responsive, dark-mode, starfield, galaxy, performance, animation
*/

/* ========================================
   Starfield Galaxy Theme - 银河主题配色方案
   ======================================== */

/* CSS Variables */
:root {
  /* Galaxy Theme Colors - 银河蓝紫色调 */
  --theme: #5a7cff;
  --theme-secondary: #8b5cf6;
  --theme-accent: #f093fb;
  --theme-rgb: 90, 124, 255;
  --theme-secondary-rgb: 139, 92, 246;
  --theme-accent-rgb: 240, 147, 251;
  --theme-h: #5a7cff;
  --main: #334155;
  --text: #334155;
  --text-secondary: #64748b;
  --title: #1e293b;
  --background: #ffffff;
  --background-hover: #ffffff;
  --style-a: #fff;
  --light-a: #ffffff;
  --light-b: #f1f5f9;
  --light-c: #e2e8f0;
  --light-d: #cbd5e1;
  --light-x: #94a3b8;
  --light-y: #0f172a;
  --light-z: #f8fafc;
  --dark-a: #475569;
  --dark-b: #64748b;
  --dark-c: #334155;
  --dark-d: #64748b;
  --dark-e: #94a3b8;
  --color-a: var(--theme);
  --bg-a: rgba(241, 245, 249, 0.85);
  --bg-b: rgb(242 246 255);
  --bg-c: #f1f5f9;
  --bg-d: rgba(255, 255, 255, 0.85);
  --bg-e: var(--theme);
  --bg-f: #f1f5f9;
  --bg-g: #e0e7ff;
  --bg-h: rgba(224, 231, 255, 0.6);
  --bg-i: var(--theme);
  --bg-j: rgba(241, 245, 249, 0.4);
  --bg-k: rgba(248, 250, 252, 0.9);
  --bg-l: rgba(241, 245, 249, 0.8);
  --bg-z: rgba(224, 231, 255, 0.6);
  /* Galaxy Glow Effects */
  --galaxy-glow: 0 0 20px rgba(var(--theme-rgb), 0.4);
  --galaxy-glow-strong: 0 0 30px rgba(var(--theme-rgb), 0.6), 0 0 60px rgba(var(--theme-secondary-rgb), 0.3);
  --nebula-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  /* Radius */
  --radius-wrap: 0.75rem;
  --radius-inner: 0.5rem;
  --radius-img: 0.625rem;

  /* Shadow */
  --box-shadow: 0 8px 30px -5px rgba(107, 140, 255, 0.25),
    0 4px 16px -2px rgba(0, 0, 0, 0.15);
  --box-shadow-hover: 0 12px 40px -5px rgba(107, 140, 255, 0.35),
    0 6px 20px -2px rgba(0, 0, 0, 0.2);
}

/* Dark Mode - Deep Galaxy Theme */
[data-theme="dark"] {
  --theme: #7a8dff;
  --theme-secondary: #a78bfa;
  --theme-accent: #f472b6;
  --theme-rgb: 122, 141, 255;
  --theme-secondary-rgb: 167, 139, 250;
  --theme-accent-rgb: 244, 114, 182;
  --theme-h: #7a8dff;
  --main: #cbd5e1;
  --text: #cbd5e1;
  --text-secondary: #94a3b8;
  --title: #f1f5f9;
  --background: #0f172a;
  --background-hover: #1e293b;
  --style-a: #020617;
  --light-a: #1e293b;
  --light-b: #334155;
  --light-c: #1e293b;
  --light-d: #475569;
  --light-x: #64748b;
  --light-y: #f8fafc;
  --light-z: #e2e8f0;
  --dark-a: #94a3b8;
  --dark-b: #64748b;
  --dark-c: #cbd5e1;
  --dark-d: #94a3b8;
  --dark-e: #cbd5e1;
  --color-a: var(--theme);
  --bg-a: rgba(30, 41, 59, 0.7);
  --bg-b: #1e293b;
  --bg-c: #0f172a;
  --bg-d: rgba(15, 23, 42, 0.75);
  --bg-e: #4f46e5;
  --bg-f: #0f172a;
  --bg-g: rgba(99, 102, 241, 0.2);
  --bg-h: rgba(30, 41, 59, 0.5);
  --bg-i: var(--theme);
  --bg-j: rgba(15, 23, 42, 0.4);
  --bg-k: rgba(30, 41, 59, 0.85);
  --bg-l: rgba(30, 27, 75, 0.7);
  --bg-z: rgba(49, 46, 129, 0.5);

  --galaxy-glow: 0 0 20px rgba(var(--theme-rgb), 0.5);
  --galaxy-glow-strong: 0 0 30px rgba(var(--theme-rgb), 0.7), 0 0 60px rgba(var(--theme-secondary-rgb), 0.4);

  --box-shadow: 0 8px 30px -5px rgba(0, 0, 0, 0.5), 0 0 30px -5px rgba(99, 102, 241, 0.25);
  --box-shadow-hover: 0 12px 40px -5px rgba(0, 0, 0, 0.6), 0 0 40px -5px rgba(99, 102, 241, 0.35);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  margin-top: 0 !important;
  overflow-y: scroll;
}


/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}

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

  100% {
    background-position: 200% 0;
  }
}

/* Animation Classes */


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--main);
  background: var(--bg-c);
  min-height: 100vh;
  position: relative;
}

/* 修复WordPress Admin Bar导致的body偏移问题 */
body.admin-bar {
  margin-top: 0 !important;
}

#wpadminbar {
  position: fixed !important;
}

/* WebGL Canvas Background */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-radius: 5px;
  border: 2px solid var(--bg-b);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
}

/* Text Selection */
::selection {
  background: rgba(107, 140, 255, 0.3);
  color: var(--title);
  text-shadow: 0 0 10px rgba(107, 140, 255, 0.5);
}

::-moz-selection {
  background: rgba(107, 140, 255, 0.3);
  color: var(--title);
  text-shadow: 0 0 10px rgba(107, 140, 255, 0.5);
}

a {
  color: var(--theme);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-a);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-img);
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Header & Navigation
   ======================================== */

/* Banner */
/* 伤脑筋极简风横幅样式 */
.site-banner {
  width: 100%;
  margin-top: -3.75rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-b);
  cursor: pointer;
}

/* 确保内部可点击元素正常工作 */
.site-banner .banner-cta {
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
  /* 优化背景图片加载 */
  image-rendering: auto;
  /* 使用硬件加速提升渲染性能 */
  will-change: background-image;
  /* 优化图片解码，降低内存使用 */
  content-visibility: auto;
}

/* 背景图片优化 - 使用 WebP 格式优先 */
.banner-inner[style*="background-image"] {
  /* 如果背景图片加载失败，显示渐变背景 */
  background-image: linear-gradient(135deg,
      #0f172a 0%,
      #1e293b 30%,
      #334155 60%,
      rgba(var(--theme-rgb), 0.3) 100%);
  /* 保持背景图片的裁剪和定位 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 极简背景 - 暗色星空渐变（作为备用） */
.banner-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 从左到右的线性渐变，左边 70% 完全不透明，右边 30% 逐渐透明 */
  background: linear-gradient(135deg,
      #0f172a 0%,
      #1e293b 30%,
      #334155 60%,
      rgba(var(--theme-rgb), 0.3) 100%);
  z-index: 0;
  transition: all 0.5s ease;
}

[data-theme="dark"] .banner-inner::before {
  background: linear-gradient(135deg,
      #020617 0%,
      #0f172a 30%,
      #1e293b 60%,
      rgba(var(--theme-rgb), 0.2) 100%)
}

/* 极简装饰元素 */
.minimal-element {
  position: absolute;
  z-index: 1;
  opacity: 0.1;
  transition: all 0.5s ease;
}

.minimal-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--theme);
  top: -50px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

.minimal-line {
  width: 150px;
  height: 1px;
  background: var(--theme);
  bottom: 50px;
  left: 10%;
  transform: translateX(-50%);
  animation: pulse 4s ease-in-out infinite;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1000px;
  padding: 8rem 1rem 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-height: 100vh;
  justify-content: center;
}

[data-theme="dark"] .banner-content {
  color: white;
}

/* 分类页面头部信息样式 */
.category-header-info {
  padding: 1rem 0;
}

.category-header-info .category-description {
  font-size: 0.85rem;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  line-height: 1.6;
  max-height: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
}

.category-header-info .category-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.category-header-info .post-count,
.category-header-info .sub-categories {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.category-header-info .post-count i,
.category-header-info .sub-categories i {
  font-size: 1.1rem;
}

/* 暗色模式下的分类头部 */

[data-theme="dark"] .category-header-info .category-description {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .category-header-info .post-count,
[data-theme="dark"] .category-header-info .sub-categories {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* 分类页面头部（横幅关闭时显示） */
.category-page-header-wrap {
  width: 100%;
  padding: 0 1rem 1rem;
}

.category-page-header-container {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  padding: 2rem;
  border-radius: 16px;
}

.category-page-header .category-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-page-header .category-page-title i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
}

.category-page-header .category-page-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem 0;
}

.category-page-header .category-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-page-header .post-count,
.category-page-header .sub-categories {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
}

.category-page-header .post-count i,
.category-page-header .sub-categories i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* 暗色模式 */
[data-theme="dark"] .category-page-header-wrap {
  background: linear-gradient(135deg, var(--theme-dark, #1e293b) 0%, var(--theme-secondary-dark, #334155) 100%);
}

/* 极简标题区域 */
.minimal-title-section {
  text-align: center;
  max-width: 600px;
  padding: 2rem 0;
}

.minimal-title-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.banner-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.8s ease-out;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 分类页标题图标 */
.banner-title .category-icon {
  font-size: inherit;
  /* 继承父元素 h1 的字体大小 */
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-1px);
  /* 应用与标题相同的渐变效果 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 确保图标在正确的层级 */
  position: relative;
  z-index: 10;
}

.banner-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.banner-subtitle p {
  margin-bottom: 1rem;
  padding: 0;
  text-align: left;
}

.category-header-info .post-count,
.category-header-info .sub-categories {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-subtitle .post-count::before {
  content: '📄';
  font-size: 1rem;
}

/* 文章页元信息样式 */
.post-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.meta-item i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.meta-item.tags {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
}

/* 文章摘要样式 */
.post-excerpt {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-b);
  line-height: 1.8;
  font-size: 0.75rem;
}

.post-excerpt p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  padding: 0;
  margin-bottom: 1rem;
}

[data-theme="dark"] .banner-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

/* 极简行动号召按钮 */
.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--theme);
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  font-size: 1rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-cta:hover {
  background: white;
  color: var(--theme-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 横幅搜索框样式 */
.banner-search {
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.banner-search .search-form {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.banner-search .search-form:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.2);
}

.banner-search .search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.75rem 0;
}

.banner-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.banner-search .search-submit {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--theme);
}

.banner-search .search-submit:hover {
  background: var(--theme-secondary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.4);
}

.banner-search .search-tips {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* 银河金句样式 */
.banner-quote {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 3rem;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  border-radius: 80px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.banner-quote.show {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1s ease forwards, pulse 4s ease-in-out infinite 2s;
}

.banner-quote::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(107, 140, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s ease-in-out infinite;
  z-index: 0;
}

.banner-quote>* {
  position: relative;
  z-index: 1;
}

.banner-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 140, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quote-content {
  padding: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
  font-family: 'Georgia', serif;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(107, 140, 255, 0.8);
  color: #ffffff;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quote-content:hover {
  color: #ffffff;
  transform: scale(1.02);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(107, 140, 255, 1);
}

[data-theme="dark"] .quote-content {
  color: #ffffff;
}

.quote-content::before,
.quote-content::after {
  content: '';
  position: absolute;
  font-size: 3rem;
  font-family: 'Georgia', serif;
  color: var(--theme-accent);
  opacity: 0.9;
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
  animation: glow 2s ease-in-out infinite alternate;
}

.quote-content::before {
  top: -10px;
  left: 0;
}

.quote-content::after {
  bottom: -20px;
  right: 0;
}

/* 波浪效果 */
.hero-wave-wrapper {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-wave-wrapper::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-c));
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400%;
  height: 100%;
  display: block;
}

.hero-wave path {
  fill: var(--bg-c);
}

.wave-back {
  animation: wave-flow 25s ease-in-out infinite;
  opacity: 0.4;
}

.wave-middle {
  animation: wave-flow 18s ease-in-out infinite reverse;
  opacity: 0.6;
}

.wave-front {
  animation: wave-flow 12s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes wave-flow {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-75%);
  }
}


/* 向下滚动提示 */
.banner-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.scroll-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.scroll-icon {
  font-size: 1.5rem;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.banner-scroll-hint:hover {
  transform: translateX(-50%) translateY(-5px);
}

.banner-scroll-hint:hover .scroll-icon-wrapper {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 统一页脚图标颜色 */
.footer-quick-links a i,
.busuanzi-item i,
.footer-info i {
  color: var(--theme);
}

.footer-info i {
  margin-right: 0.375rem;
}

/* 已运行时间样式 */
#uptime-display {
  color: var(--text);
  transition: all 0.3s ease;
}

/* 已运行时间数字样式 */
.uptime-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme);
  transition: all 0.3s ease;
  padding: 0 0.125rem;
  border-radius: 2px;
}

.uptime-number:hover {
  color: var(--theme-light);
  text-shadow: 0 0 5px rgba(var(--theme-rgb), 0.5);
}



.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--background);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  height: 3.75rem;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
  top: 46px;
  height: 3.75rem;
}

body.admin-bar .site-content {
  padding-top: 4rem;
}

body.admin-bar .site-content .sidebar {
  top: 3rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

/* Logo */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title);
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-shadow: var(--galaxy-glow);
  display: inline-block;
}

.logo-star {
  position: absolute;
  top: 0;
  right: -15px;
  color: var(--theme);
  font-size: 0.7rem;
  font-weight: bold;
  animation: twinkle 3s infinite ease-in-out;
  z-index: 9999;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 1px var(--theme), 0 0 2px var(--theme);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Navigation */
.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.site-header .nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  color: var(--dark-c);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: var(--radius-inner);
}

.site-header .nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.site-header .nav-menu a:hover {
  color: var(--theme);
}

.site-header .nav-menu a.active,
.site-header .nav-menu .active>a,
.site-header .nav-menu .current-menu-item>a,
.site-header .nav-menu .current-menu-parent>a,
.site-header .nav-menu .current-menu-ancestor>a,
.site-header .nav-menu .current_page_item>a,
.site-header .nav-menu .current_page_parent>a,
.site-header .nav-menu .current_page_ancestor>a,
.site-header .nav-menu .current-category>a,
.site-header .nav-menu .current-post-ancestor>a {
  color: var(--theme);
}

.site-header .nav-menu a:hover::before,
.site-header .nav-menu a.active::before,
.site-header .nav-menu .active>a::before,
.site-header .nav-menu .current-menu-item>a::before,
.site-header .nav-menu .current-menu-parent>a::before,
.site-header .nav-menu .current-menu-ancestor>a::before,
.site-header .nav-menu .current_page_item>a::before,
.site-header .nav-menu .current_page_parent>a::before,
.site-header .nav-menu .current_page_ancestor>a::before,
.site-header .nav-menu .current-category>a::before,
.site-header .nav-menu .current-post-ancestor>a::before {
  width: 60%;
}

.site-header .nav-menu a i {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.site-header .nav-menu a:hover i,
.site-header .nav-menu a.active i,
.site-header .nav-menu .active>a i {
  color: var(--theme);
  text-shadow: var(--galaxy-glow);
}

/* Dropdown Menu */
.site-header .nav-menu .menu-item-has-children {
  position: relative;
}

.site-header .nav-menu .menu-item-has-children>a::after {
  content: '\ea4e';
  font-family: 'remixicon';
  font-size: 0.95rem;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.site-header .nav-menu .menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

.site-header .nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 13rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.site-header .nav-menu .menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .nav-menu .sub-menu a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 0;
  margin: 0 0.5rem;
  border-radius: var(--radius-inner);
}

.site-header .nav-menu .sub-menu a::before {
  display: none;
}

.site-header .nav-menu .sub-menu a:hover {
  background: var(--bg-h);
  padding-left: 1.75rem;
}

/* Third-level Menu */
.site-header .nav-menu .sub-menu .menu-item-has-children {
  position: relative;
}

.site-header .nav-menu .sub-menu .menu-item-has-children>a::after {
  content: '\ea6e';
  margin-left: auto;
  font-size: 0.95rem;
  opacity: 0.7;
}

.site-header .nav-menu .sub-menu .menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

.site-header .nav-menu .sub-menu .sub-menu {
  position: absolute;
  top: -0.75rem;
  left: calc(100% + 0.5rem);
  min-width: 13rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.site-header .nav-menu .sub-menu .menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 移动端菜单 */
.header-actions .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header-actions .menu-toggle:hover {
  background: var(--theme);
  border-color: var(--theme);
  transform: scale(1.05);
}

.header-actions .menu-toggle i {
  font-size: 1.3rem;
  color: var(--dark-c);
  transition: all 0.3s ease;
}

.header-actions .menu-toggle:hover i {
  color: #fff;
}

.header-actions .menu-toggle.active i {
  color: #fff;
}

/* 默认显示移动端菜单 */
.header-actions .menu-toggle {
  display: flex;
}

/* 隐藏传统导航菜单，使用抽屉菜单 */
.site-header .main-nav {
  display: none;
}

/* 移动端抽屉菜单 */
.mobile-drawer {
  display: flex;
}

.drawer-backdrop {
  display: block;
}



/* 菜单背景遮罩 */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
  padding-top: 2.5rem;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--background);
  z-index: 1002;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(107, 140, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.mobile-drawer.active {
  transform: translateX(-320px);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--light-b);
  background-color: var(--bg-b);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
}

.drawer-title i {
  font-size: 1.3rem;
  color: var(--theme);
}

.drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--dark-c);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
}

.drawer-close:hover {
  background: var(--bg-h);
  color: var(--theme);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  max-height: calc(100vh - 120px);
}

/* 确保抽屉菜单在所有屏幕尺寸下都能正常显示 */
.mobile-drawer {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
}

.drawer-section {
  margin-bottom: 2rem;
}

.drawer-section:last-child {
  margin-bottom: 0;
}

.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-b);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-section-title i {
  font-size: 1.1rem;
  color: var(--theme);
}

/* Drawer Navigation */
.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav li {
  margin-bottom: 0.25rem;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--main);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  text-decoration: none;
  background: var(--bg-b);
}

.drawer-nav a:hover {
  background: var(--bg-h);
  color: var(--theme);
  transform: translateX(4px);
}

.drawer-nav .current-menu-item a,
.drawer-nav .current_page_item a,
.drawer-nav .current-menu-parent a,
.drawer-nav .current-menu-ancestor a,
.drawer-nav .current_page_parent a,
.drawer-nav .current_page_ancestor a,
.drawer-nav .active a {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--theme);
}

/* Drawer Navigation - Sub Menu */
.drawer-nav .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-5px);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height, opacity, transform;
}

.drawer-nav .menu-item-has-children.open>.sub-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 0.5rem 0 0 1rem;
}

.drawer-nav .sub-menu li {
  margin-bottom: 0.25rem;
}

.drawer-nav .sub-menu a {
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  background: var(--bg-b);
  border: 1px solid var(--light-b);
}

.drawer-nav .sub-menu a:hover {
  background: var(--bg-h);
  color: var(--theme);
  transform: translateX(4px);
}

.drawer-nav .sub-menu .sub-menu {
  padding-left: 1rem;
}

.drawer-nav .sub-menu .sub-menu a {
  font-size: 0.8rem;
  padding: 0.625rem 0.75rem;
}

/* Add arrow indicator for menu items with children */
.drawer-nav .menu-item-has-children>a {
  position: relative;
  padding-right: 2.5rem;
}

.drawer-nav .menu-item-has-children>a::after {
  content: '\ea4e';
  font-family: 'remixicon';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--dark-b);
}

.drawer-nav .menu-item-has-children.open>a::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--theme);
}

/* Drawer Links */
.drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-links li {
  margin-bottom: 0.25rem;
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--main);
  font-size: 0.9rem;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  text-decoration: none;
}

.drawer-links a:hover {
  background: var(--bg-h);
  color: var(--theme);
  transform: translateX(4px);
}

.drawer-links i {
  font-size: 1.1rem;
  color: var(--theme);
  width: 1.5rem;
  text-align: center;
}

/* Drawer Search */
.drawer-search {
  position: relative;
  display: flex;
  align-items: center;
}

.drawer-search-input {
  flex: 1;
  padding: 0.875rem 3.5rem 0.875rem 1.25rem;
  border: 1px solid var(--light-b);
  border-radius: var(--radius-inner);
  background: var(--background);
  color: var(--title);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-height: 3rem;
}

.drawer-search-input:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.1);
  color: var(--title);
}

.drawer-search-input::placeholder {
  color: var(--dark-c);
}

.drawer-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border: none;
  border-radius: var(--radius-inner);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(107, 140, 255, 0.2);
}

.drawer-search-submit:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

/* Drawer Footer */
.drawer-footer {
  padding: 1rem;
  border-top: 1px solid var(--light-b);
  background: var(--bg-b);
  text-align: center;
}

.drawer-footer p {
  font-size: 0.85rem;
  color: var(--dark-b);
  margin: 0 0 0.75rem 0;
}

.drawer-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-inner);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(107, 140, 255, 0.2);
}

.drawer-home-link:hover {
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.35);
  filter: brightness(1.05);
}

.drawer-home-link i {
  font-size: 1rem;
}



/* Drawer Social Links */
.drawer-social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.drawer-social .social-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-b);
  border: 1px solid rgba(107, 140, 255, 0.15);
  border-radius: var(--radius-inner);
  color: var(--main);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 2.5rem;
}

.drawer-social .social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-social .social-link:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 140, 255, 0.35);
}

.drawer-social .social-link:hover::before {
  opacity: 1;
}

.drawer-social .social-link i {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.drawer-social .social-link span {
  flex: 1;
  text-align: left;
  transition: all 0.3s ease;
}

.drawer-social .social-link:hover i {
  transform: scale(1.15);
}

/* Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  border: none;
  background: transparent;
  color: var(--dark-c);
  border-radius: var(--radius-inner);
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-btn:hover {
  background: var(--bg-h);
  color: var(--theme);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* Color Preset Toggle */
.color-preset-toggle {
  position: relative;
}

.color-preset-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--background);
  border: 1px solid rgba(107, 140, 255, 0.2);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow-hover);
  padding: 0.5rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-preset-toggle:hover .color-preset-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.color-preset-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-inner);
  color: var(--main);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  white-space: nowrap;
}

.color-preset-option:hover {
  background: var(--bg-h);
  transform: translateX(4px);
}

.color-preview {
  flex-shrink: 0;
  width: 2rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: var(--theme);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-preset-option:hover .color-preview {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(107, 140, 255, 0.3);
}

/* ========================================
   Main Content Layout
   ======================================== */

/* 页面包裹容器 */
.page-wrapper {
  width: 100%;
  padding-top: 3.75rem;
}

.site-content {
  padding-top: 1rem;
}

.content-wrapper {
  display: grid;
  gap: 1rem;
  align-items: start;
}

/* ========================================   响应式设计 - 移动优先   ======================================== */

/* 默认移动端样式 */
.content-wrapper,
.content-wrapper.two-columns,
.content-wrapper.two-columns-left,
.content-wrapper.full-width {
  grid-template-columns: 1fr;
}

.header-inner {
  padding: 0 1rem;
}

.post {
  margin-bottom: 1.5rem;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
}

.post-meta {
  gap: 1rem;
}

.widget {
  margin-bottom: 1.25rem;
}

.widget-title {
  padding: 1rem 1.25rem;
}

.widget-content {
  padding: 1rem 1.25rem;
}

.widget-title i {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.1rem;
}

.header-btn {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.2rem;
}

/* 屏幕宽度小于1200px时隐藏左侧边栏 */
.sidebar-left {
  display: none;
}

/* 媒体查询：宽度1200以上才使用三栏 */


.content-wrapper.two-columns {
  grid-template-columns: 1fr 18.75rem;
  align-items: start;
}

.content-wrapper.two-columns-left {
  grid-template-columns: 15rem 1fr;
  align-items: start;
}

.content-wrapper.full-width {
  grid-template-columns: 1fr;
  align-items: start;
}

.main-column {
  min-width: 0;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
  align-self: start;
  z-index: 90;
  min-height: 100vh;
  overflow: visible;
}

.widget {
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(107, 140, 255, 0.08);
  position: relative;
}


.widget:last-child {
  margin-bottom: 0;
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(107, 140, 255, 0.15);
}

.widget-title {
  display: flex;
  align-items: center;
  padding: 1.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--title);
  border-bottom: 1px solid var(--light-b);
  position: relative;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
}



.widget-title i {
  font-size: 1.2rem;
  color: var(--theme);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
}

.widget:hover .widget-title i {
  transform: scale(1.1);
}

.widget-content {
  padding: 1rem;
  color: var(--text);
}

.widget-content a {
  color: var(--text);
  transition: all 0.3s ease;
}

.widget-content a:hover {
  color: var(--theme);
  transform: translateX(4px);
}

/* Custom Search Widget */
.custom-search-widget {
  padding: 0.5rem 0;
}

.search-form-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 0.5rem;
  backdrop-filter: blur(0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-form-inner:focus-within {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(107, 140, 255, 0.3);
  border-color: rgba(107, 140, 255, 0.3);
}

.search-field {
  flex: 1;
  padding: 1rem 4rem 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--title);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-field:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--title);
}

.search-field::placeholder {
  color: var(--dark-c);
}

.search-submit {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: calc(100% - 1rem);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.search-submit:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.4);
}

.search-submit i {
  font-size: 1.1rem;
}

.search-field:focus+.search-submit {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
}

/* Custom Recent Posts Widget */
.custom-recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-recent-posts li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-b);
  transition: all 0.3s ease;
}

.custom-recent-posts li:last-child {
  border-bottom: none;
}

.custom-recent-posts li:hover {
  transform: translateX(4px);
}

.custom-recent-posts .post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.custom-recent-posts .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.custom-recent-posts li:hover .post-thumb img {
  transform: scale(1.1);
}

.custom-recent-posts .post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-recent-posts .post-title,
.custom-recent-posts .post-title a,
.popular-posts-list .post-title,
.popular-posts-list .post-title a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  line-height: 1.3;
  text-decoration: none;
}

.custom-recent-posts .post-title:hover,
.custom-recent-posts .post-title a:hover,
.popular-posts-list .post-title:hover,
.popular-posts-list .post-title a:hover {
  color: var(--theme);
  transform: translateX(4px);
}

.custom-recent-posts .post-date {
  font-size: 0.8rem;
  color: var(--dark-b);
  margin-top: 0.25rem;
}

/* Custom Categories Widget */
.custom-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-categories li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-b);
  transition: all 0.3s ease;
}

.custom-categories li:last-child {
  border-bottom: none;
}

.custom-categories li:hover {
  transform: translateX(4px);
}

.custom-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--main);
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.custom-categories a:hover {
  color: var(--theme);
}

.custom-categories .category-count {
  color: var(--dark-b);
  font-size: 0.8rem;
  background: rgba(107, 140, 255, 0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

/* Custom Tags Widget */
.custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.custom-tags .tag-item {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-inner);
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  color: var(--text);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.custom-tags .tag-item:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
  border-color: var(--theme);
}

/* Author Widget */
.author-card {
  text-align: center;
  padding: 1rem 0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid rgba(107, 140, 255, 0.2);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.15);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--dark-b);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  transition: all 0.3s ease;
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

/* Countdown Widget */
.countdown-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.countdown-item {
  text-align: center;
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-inner);
  margin: 0 0.25rem;
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.countdown-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  color: var(--dark-b);
  margin-top: 0.25rem;
}

.countdown-target {
  text-align: center;
  font-size: 0.9rem;
  color: var(--main);
  font-weight: 500;
}

/* 星野时刻样式 */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-time {
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-time::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: twinkle 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

.timeline-time>* {
  position: relative;
  z-index: 1;
}

.time-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-a);
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
  text-shadow: var(--galaxy-glow);
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: var(--galaxy-glow);
  }

  to {
    text-shadow: var(--galaxy-glow-strong);
  }
}

.time-separator {
  font-weight: 400;
  color: var(--theme);
  animation: pulse 1s ease-in-out infinite;
}



.date-display {
  font-size: 0.95rem;
  color: var(--dark-a);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  background: rgba(var(--theme-rgb), 0.15);
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--theme-rgb), 0.2);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--theme-rgb), 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.date-display:hover {
  background: rgba(var(--theme-rgb), 0.25);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.2);
}

.lunar-display {
  font-size: 0.85rem;
  color: var(--dark-b);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.solar-term {
  display: none;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: #f59e0b;
  padding: 0.2rem 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.7rem;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
  animation: glow 2s ease-in-out infinite alternate;
}

.solar-term::before {
  content: '节气：';
  font-size: 0.65rem;
  opacity: 0.8;
}

.season {
  background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.2) 0%, rgba(var(--theme-secondary-rgb), 0.2) 100%);
  color: var(--color-a);
  padding: 0.2rem 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--theme-rgb), 0.3);
  font-size: 0.7rem;
  box-shadow: 0 2px 4px rgba(var(--theme-rgb), 0.2);
  margin-left: 0.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

.season::before {
  content: '季节：';
  font-size: 0.7rem;
  opacity: 0.8;
}

.timeline-progress-item {
  margin-bottom: 1rem;
}

.timeline-progress-item:last-child {
  margin-bottom: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--dark-a);
  font-weight: 500;
}

.progress-text span {
  color: var(--color-a);
  font-weight: 700;
  text-shadow: var(--galaxy-glow);
}

.progress-percent {
  font-size: 0.85rem;
  color: var(--theme-accent);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(var(--theme-accent-rgb), 0.5);
}

.progress-bar-container {
  position: relative;
  height: 0.75rem;
  background: rgba(var(--theme-rgb), 0.1);
  border-radius: var(--radius-inner);
  overflow: hidden;
  border: 1px solid rgba(var(--theme-rgb), 0.2);
  box-shadow: inset 0 0 10px rgba(var(--theme-rgb), 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  border-radius: var(--radius-inner);
  transition: width 1s ease;
  box-shadow: 0 0 15px rgba(var(--theme-rgb), 0.6);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s ease-in-out infinite;
}

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

  100% {
    left: 100%;
  }
}

.timeline-info {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-a);
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-inner);
  border: 1px solid rgba(107, 140, 255, 0.2);
  flex: 1;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(107, 140, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107, 140, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.info-item:hover::before {
  left: 100%;
}

.info-item:hover {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.2);
  border-color: rgba(107, 140, 255, 0.3);
}

.info-item i {
  color: var(--theme);
  font-size: 1.1rem;
  text-shadow: var(--galaxy-glow);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.info-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--theme-secondary);
  text-shadow: var(--galaxy-glow-strong);
}



/* Popular Posts Widget */
.popular-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-posts-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-b);
  transition: all 0.3s ease;
}

.popular-posts-list li:last-child {
  border-bottom: none;
}

.popular-posts-list li:hover {
  transform: translateX(4px);
}

.post-rank {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.popular-posts-list .post-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.popular-posts-list .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-posts-list li:hover .post-thumb img {
  transform: scale(1.1);
}

.popular-posts-list .post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-posts-list .post-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.popular-posts-list .post-title:hover {
  color: var(--theme);
  transform: translateX(4px);
}

.popular-posts-list .post-views {
  font-size: 0.8rem;
  color: var(--dark-b);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Weather Widget */
.weather-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(107, 140, 255, 0.1);
}

.weather-icon {
  font-size: 2.5rem;
  color: var(--theme);
  flex-shrink: 0;
}

.weather-icon .weather-loading {
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.weather-info {
  flex: 1;
}

.weather-temp {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 0.25rem;
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--main);
  margin-bottom: 0.5rem;
}

.weather-details {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--dark-b);
}

/* Subscribe Widget */
.subscribe-card {
  text-align: center;
}

.subscribe-card p {
  margin-bottom: 1rem;
  color: var(--main);
  line-height: 1.4;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscribe-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-b);
  border-radius: var(--radius-inner);
  background: var(--background);
  color: var(--main);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.1);
}

.subscribe-button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-inner);
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.subscribe-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

/* Stats Widget */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(107, 140, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.15);
  border-color: rgba(107, 140, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-b);
}

/* Links Widget */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.links-list li:hover {
  transform: translateX(4px);
}

.links-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--main);
  transition: color 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.links-list a:hover {
  color: var(--theme);
}

.links-list i {
  color: var(--theme);
  font-size: 0.8rem;
  flex-shrink: 0;
}



/* Category Count */
.category-count {
  font-size: 0.8rem;
  color: var(--dark-b);
  margin-left: 0.5rem;
  font-weight: normal;
}

/* Post Date */
.post-date {
  font-size: 0.8rem;
  color: var(--dark-b);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========================================
   Posts
   ======================================== */
.post {
  border-radius: var(--radius-wrap);
  overflow: hidden;
  position: relative;
}

/* Home Page Post Cards */
.post-card {
  background: var(--background);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(var(--theme-rgb), 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  border-radius: var(--radius-wrap);
  overflow: hidden;
  will-change: box-shadow, border-color;
}

.post-card:hover {
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(var(--theme-rgb), 0.15);
}

/* Article Page */
.post-article {
  background: var(--background);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(var(--theme-rgb), 0.08);
  border-radius: var(--radius-wrap);
  overflow: visible;
  padding: 1.25rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.post-article:hover {
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(var(--theme-rgb), 0.15);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-prev,
.nav-next {
  width: 100%;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  background: var(--background);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(var(--theme-rgb), 0.08);
  border-radius: var(--radius-wrap);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(var(--theme-rgb), 0.15);
  color: var(--theme);
  transform: translateY(-3px);
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
  color: var(--theme);
}

/* 响应式边距设置 - 移动优先 */




.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--light-b);
  transition: transform 0.5s ease;
}

.post:hover .post-thumbnail {
  transform: scale(1.03);
}

.post-content {
  padding: 2rem;
  position: relative;
}

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--theme);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.post-category:hover {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  transform: translateY(-2px);
}

.post-category i {
  font-size: 0.9rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 1rem;
  line-height: 1.4;
  position: relative;
}

.post-title a {
  color: var(--title);
  transition: all 0.3s ease;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 100%);
  background-size: 0% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.post-title a:hover {
  color: var(--theme);
  background-size: 100% 2px;
}

/* 横幅上的文章摘要 - 白色文字 */
.banner-subtitle .post-excerpt {
  color: rgba(255, 255, 255, 0.95);
}

.post-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.5rem;
  text-align: right;
}

.read-more,
.post-card .read-more,
.post-article .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%) !important;
  color: white !important;
  border-radius: var(--radius-inner);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.read-more:hover,
.post-card .read-more:hover,
.post-article .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%) !important;
  color: white !important;
  text-decoration: none !important;
}

.read-more i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--dark-b);
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--light-b);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-meta span i {
  font-size: 1rem;
  color: var(--theme);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 作者区域样式 */
.xyj_aside__item.author {
  position: relative;
  border-radius: var(--radius-wrap);
  overflow: hidden;
  background: var(--background);
  box-shadow: var(--box-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xyj_aside__item.author::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(transparent, var(--background) 60%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* 
.xyj_aside__item.author:hover::before {
  background: linear-gradient(transparent, var(--background-hover));
} */

.xyj_aside__item.author .image {
  width: 100%;
  height: 120px;
  position: relative;
  z-index: 0;
  object-fit: cover;
  border-radius: var(--radius-wrap) var(--radius-wrap) 0 0;
}

.xyj_aside__item.author .user {
  position: relative;
  padding: 4rem 1rem 0;
  text-align: center;
  z-index: 2;
}

.xyj_aside__item.author .avatar_wrapper {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--background);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

.xyj_aside__item.author .avatar_wrapper.circle {
  border-radius: 50%;
}

.xyj_aside__item.author .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xyj_aside__item.author .avatar_frame {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  z-index: 2;
}

.xyj_aside__item.author .avatar_widget {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  z-index: 2;
}

.xyj_aside__item.author .link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.xyj_aside__item.author .link:hover {
  color: var(--theme);
  text-shadow: 0 0 8px rgba(107, 140, 255, 0.6);
}



.xyj_aside__item.author .motto_day_words {
  margin: 0.75rem 0;
  max-width: 100%;
  height: auto;
}

.xyj_aside__item.author .count {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  border-top: 1px solid var(--light-b);
  margin-top: 0.5rem;
}

.xyj_aside__item.author .count .item {
  text-align: center;
}

.xyj_aside__item.author .count .num {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--theme);
  line-height: 1;
}

.xyj_aside__item.author .count span:last-child {
  display: block;
  font-size: 0.75rem;
  color: var(--dark-b);
  margin-top: 0.25rem;
}

.xyj_aside__item.author canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 移除作者区域的内边距 */
.widget-author .widget-content {
  padding: 0;
}

/* 网站公告样式 */
.widget-announcement .announcement-content {
  line-height: 1.6;
  color: var(--main);
}

.widget-announcement .announcement-content p {
  margin-bottom: 0.75rem;
}

.widget-announcement .announcement-content p:last-child {
  margin-bottom: 0;
}

/* 相关文章样式 */
.related-posts {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(107, 140, 255, 0.08);
  transition: all 0.3s ease;
}

.related-posts:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(107, 140, 255, 0.15);
}

.related-posts-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-b);
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  padding-top: 0.5rem;
}

.related-posts-title i {
  font-size: 1.2rem;
  color: var(--theme);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
}

.related-posts:hover .related-posts-title i {
  transform: scale(1.1);
}

.related-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-post-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: rgba(107, 140, 255, 0.03);
  padding: 1rem;
  border: 1px solid rgba(107, 140, 255, 0.08);
}

.related-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.15);
  border-color: rgba(107, 140, 255, 0.15);
}

.related-post-thumb {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  flex-shrink: 0;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumb img {
  transform: scale(1.05);
}

.related-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-post-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--title);
  transition: color 0.3s ease;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-post-title:hover {
  color: var(--theme);
}

.related-post-date {
  font-size: 0.8rem;
  color: var(--dark-b);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}



/* 互动功能样式 */
.post-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(107, 140, 255, 0.1);
  border-radius: var(--radius-inner);
  color: var(--main);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

.action-item:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
  border-color: transparent;
  transition: all 0.3s ease;
}

.action-item i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

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

/* 点赞按钮 */
.like-button.liked {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
  border-color: transparent;
}

.like-button.liked i {
  font-family: 'remixicon';
  content: '\e822';
}

/* 分享按钮 */
.share-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow-hover);
  border: 1px solid rgba(107, 140, 255, 0.15);
  padding: 0.75rem 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 99999;
}

.share-button:hover .share-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: var(--main);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.share-item:hover {
  background: var(--bg-h);
  color: var(--theme);
  padding-left: 1.5rem;
}

.share-item i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

/* 微信分享弹窗 */
.wechat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.3s ease;
}

.wechat-modal.active {
  display: flex !important;
}

.wechat-modal-content {
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow-hover);
  padding: 2rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  position: relative;
}

.wechat-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--main);
  transition: color 0.3s ease;
}

.wechat-close:hover {
  color: var(--theme);
}

.wechat-modal-content h3 {
  margin-bottom: 1rem;
  color: var(--main);
}

.wechat-qrcode {
  width: 200px;
  height: 200px;
  margin: 1rem auto;
  background: white;
  padding: 10px;
  border-radius: var(--radius-inner);
}

.wechat-modal-content p {
  color: var(--minor);
  font-size: 0.9rem;
}

/* 打赏按钮 */
.reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.reward-modal.active {
  opacity: 1;
  visibility: visible;
}

.reward-content {
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow-hover);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(0);
  opacity: 1;
}

.reward-content h4 {
  color: var(--title);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.reward-methods {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.reward-method {
  flex: 1;
  min-width: 150px;
}

.reward-method h5 {
  color: var(--theme);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.reward-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border: 1px solid var(--light-b);
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.reward-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.reward-close {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-inner);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.reward-close:hover {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

/* 投币打赏按钮样式 */
.coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: coinFlip 2s infinite ease-in-out;
}

@keyframes coinFlip {

  0%,
  100% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(360deg);
  }
}

/* 打赏选择按钮 */
.reward-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.reward-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--background-hover);
  border: 2px solid var(--light-b);
  border-radius: var(--radius-wrap);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.reward-option-btn:hover {
  border-color: var(--theme);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.reward-option-btn i {
  font-size: 2.5rem;
}

.reward-option-btn.wechat-btn i {
  color: #07c160;
}

.reward-option-btn.alipay-btn i {
  color: #1677ff;
}

.reward-option-btn span {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* 打赏描述文字 */
.reward-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* 支付提示文字 */
.reward-tip {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* 大二维码样式 */
.reward-qr-large {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--light-b);
  border-radius: var(--radius-wrap);
  overflow: hidden;
  background: white;
  padding: 0.5rem;
}

.reward-qr-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 返回按钮 */
.reward-back {
  padding: 0.6rem 1.5rem;
  background: var(--light-b);
  color: var(--text);
  border: none;
  border-radius: var(--radius-inner);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.reward-back:hover {
  background: var(--light-x);
  transform: translateY(-2px);
}

/* 默认移动端互动功能样式 */
.post-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.action-item {
  justify-content: center;
}

.reward-methods {
  flex-direction: column;
  align-items: center;
}

.reward-content {
  padding: 1.5rem;
}

/* 默认移动端相关文章样式 */
.related-posts-list {
  grid-template-columns: 1fr;
}

.related-posts {
  padding: 1.5rem;
}

.related-post-thumb {
  height: 150px;
}



/* ========================================   Footer   ======================================== */
.site-footer {
  background: var(--bg-h);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  border-top: 1px solid var(--light-b);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  box-shadow: 0 0 10px rgba(107, 140, 255, 0.3);
}

.footer-inner {
  color: var(--dark-b);
  position: relative;
  z-index: 1;
}

/* 页脚顶部：Logo和社交 */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light-b);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title);
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.footer-description {
  font-size: 0.85rem;
  color: var(--dark-b);
  line-height: 1.4;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(107, 140, 255, 0.08);
  color: var(--theme);
  border: 1px solid rgba(107, 140, 255, 0.2);
  border-radius: 50%;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(107, 140, 255, 0.4);
}

/* 友情链接区域 */
.footer-links-section {
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-b);
}

.footer-links-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title);
  margin: 0.75rem 0;
}

.footer-links-title i {
  color: var(--theme);
  font-size: 1rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(107, 140, 255, 0.06);
  border: 1px solid rgba(107, 140, 255, 0.12);
  border-radius: var(--radius-inner);
  color: var(--dark-b);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

/* 页脚底部 */
.footer-bottom {
  font-size: 0.8rem;
  color: var(--dark-b);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-separator {
  color: var(--light-b);
}

.footer-bottom a {
  color: var(--theme);
  transition: all 0.25s ease;
  font-weight: 500;
  position: relative;
}

.footer-bottom a:hover {
  color: var(--theme-secondary);
  text-shadow: 0 0 8px rgba(107, 140, 255, 0.6);
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-secondary) 100%);
  transition: width 0.25s ease;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* 备案信息 */
.footer-beian {
  margin-top: 0.5rem !important;
  font-size: 0.75rem;
  color: var(--dark-b);
}

.footer-beian a {
  color: var(--dark-b);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-beian a:hover {
  color: var(--theme);
  text-shadow: none;
}

.footer-beian a::after {
  display: none;
}

.footer-beian i {
  color: var(--theme);
  font-size: 0.9rem;
}

/* 页脚主体布局 */
.footer-main {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
}

/* 左栏：网站相关信息 */
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 右栏：网站地图和统计 */
.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  max-width: 100%;
  text-align: right;
  margin: 0 auto;
}

/* 快速链接 */
.footer-quick-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-quick-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-inner);
}

/* 页脚部分标题 */
.footer-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-b);
}

.footer-section-title i {
  font-size: 1.1rem;
  color: var(--theme);
}

/* 网站地图 */
.footer-sitemap {
  margin-bottom: 1.5rem;
}

.footer-sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.footer-sitemap-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: var(--radius-inner);
}

.footer-sitemap-links a:hover {
  color: var(--theme);
  background: var(--bg-h);
  transform: translateX(5px);
}

/* 站点统计 */
.footer-stats {
  margin: 1.5rem 0;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
}

.footer-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  text-align: center;
}

.footer-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--background);
  border-radius: var(--radius-inner);
  border: 1px solid var(--light-b);
  transition: all 0.3s ease;
}

.footer-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  border-color: rgba(var(--theme-rgb), 0.2);
}

.footer-stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--title);
  line-height: 1;
}

.footer-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 不蒜子统计 */
.footer-busuanzi {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.busuanzi-item {
  display: flex;
  align-items: center;
  color: var(--text);
  padding: 0 5px;
}

.busuanzi-item i {
  font-size: 1rem;
  color: var(--theme);
}

.busuanzi-item em {
  font-style: normal;
  color: var(--title);
  margin-left: 0.25rem;
}

.busuanzi-item em.title {
  display: none;
}

/* 版权信息 */
.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* 页脚信息 */
.footer-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-info a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: var(--theme-secondary);
  text-decoration: underline;
}


/* Search Results Page Spacing */
body.search-results main {
  margin-top: 3rem;
}

/* Search Highlight */
.search-highlight {
  background-color: rgba(107, 140, 255, 0.2);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  color: var(--theme);
}

/* Search Results Info */
.search-results-info {
  background: var(--background);
  border: 1px solid var(--light-c);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  text-align: center;
}

/* 深色模式下的搜索结果信息背景 */
[data-theme="dark"] .search-results-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-results-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-results-info p {
  color: var(--main);
  font-size: 1rem;
  margin: 0;
}

/* 深色模式下的搜索结果信息文字颜色 */
[data-theme="dark"] .search-results-info p {
  color: rgba(255, 255, 255, 0.7);
}

/* Search Results List */
.search-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Search Post Card */
.post-search {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
  background: var(--background);
  border: 1px solid var(--light-c);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

/* 深色模式下的搜索结果文章背景 */
[data-theme="dark"] .post-search {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-search:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--theme);
}

/* 深色模式下的搜索结果文章悬停效果 */
[data-theme="dark"] .post-search:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(107, 140, 255, 0.3);
}

/* 搜索关键词高亮 */
.search-highlight {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

/* 搜索结果页面的搜索表单容器 */
.search-form-container {
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 搜索结果页面的搜索表单 */
.search-form-container .search-form {
  display: flex;
  gap: 0.5rem;
  background: var(--background);
  border: 1px solid var(--light-c);
  border-radius: 1rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

.search-form-container .search-form:hover {
  box-shadow: var(--box-shadow-hover);
  border-color: var(--theme);
}

.search-form-container .search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-form-container .search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.search-form-container .search-input::placeholder {
  color: var(--light-x);
}

.search-form-container .search-submit {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.search-form-container .search-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.4);
}

/* 深色模式下的搜索结果页面搜索表单 */
[data-theme="dark"] .search-form-container .search-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .search-form-container .search-form:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(107, 140, 255, 0.3);
}

[data-theme="dark"] .search-form-container .search-input {
  color: white;
}

[data-theme="dark"] .search-form-container .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .search-form-container .search-input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.post-search .post-thumbnail-link {
  width: 100%;
  height: 200px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-search .post-thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-search:hover .post-thumbnail-link img {
  transform: scale(1.05);
}

.post-search .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-search .post-header {
  margin-bottom: 0.75rem;
}

.post-search .post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.post-search .post-title a {
  color: var(--title);
  transition: all 0.3s ease;
}

.post-search .post-title a:hover {
  color: var(--theme);
}

.post-search .post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--light-x);
  margin: 0.5rem 0;
}

.post-search .post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-search .post-excerpt {
  color: var(--main);
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 100%;
  flex: 1;
}

.post-search .post-excerpt p {
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
}

/* 深色模式下的搜索结果文章文字颜色 */
[data-theme="dark"] .post-search .post-title a {
  color: white;
}

[data-theme="dark"] .post-search .post-meta {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .post-search .post-excerpt {
  color: rgba(255, 255, 255, 0.7);
}

.post-search .post-footer {
  margin-top: auto;
}

.post-search .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border-radius: var(--radius-inner);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-search .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
}

.post-search .read-more i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.post-search .read-more:hover i {
  transform: translateX(3px);
}

/* 桌面设备样式 */
@media (min-width: 769px) {
  .post-search {
    flex-direction: row;
    text-align: left;
  }

  .post-search .post-thumbnail-link {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
  }

  .post-search .post-meta {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .search-modal-content {
    width: 90%;
  }

  .search-modal-title {
    font-size: 2rem;
  }

  .search-input-large {
    padding: 1.5rem 4.5rem 1.5rem 2rem;
    font-size: 1.125rem;
  }

  .search-submit-large {
    height: calc(100% - 1rem);
    width: auto;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  }
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

/* 搜索页面横幅取消手型 */
.search .site-banner {
  cursor: default;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 95%;
  max-width: 40rem;
  position: relative;
  animation: searchModalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-modal-header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

.search-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-modal-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.search-modal-close {
  position: absolute;
  top: -4rem;
  right: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(0.5rem);
}

.search-modal-close:hover {
  background: var(--bg-h);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.2);
}

.search-form-large {
  position: relative;
  border-radius: 1rem;
  padding: 0.5rem;
  background-color: var(--bg-j);
  backdrop-filter: blur(0.5rem);
  transition: all 0.3s ease;
}

.search-input-large {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  font-size: 1rem;
  background: var(--background);
  border: 1px solid var(--light-x);
  border-radius: 0.75rem;
  color: var(--title);
  transition: all 0.3s ease;
}

.search-input-large::placeholder {
  color: var(--dark-c);
}

.search-input-large:focus {
  outline: none;
  color: var(--title);
}

.search-submit-large {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
}

.search-submit-large:hover {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
  transform: translateY(-50%);
  box-shadow: 0 6px 20px rgba(107, 140, 255, 0.4), 0 0 15px rgba(168, 85, 247, 0.3);
}

/* 搜索提示 */
.search-tips {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.search-tips-title {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.search-tag {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* 动画 */
@keyframes searchModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-2rem) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--dark-b);
  flex-wrap: wrap;
  background: var(--background);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(107, 140, 255, 0.08);
  transition: all 0.3s ease;
}

.breadcrumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(107, 140, 255, 0.15);
}

.breadcrumb a {
  color: var(--dark-b);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-inner);
  position: relative;
}

.breadcrumb a:hover {
  color: var(--theme);
  background: var(--bg-h);
  transform: translateX(2px);
}

.breadcrumb a i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.breadcrumb a:hover i {
  transform: scale(1.1);
  text-shadow: var(--galaxy-glow);
}

.breadcrumb .separator {
  color: var(--light-x);
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  transition: color 0.3s ease;
}

.breadcrumb:hover .separator {
  color: var(--theme);
}

.breadcrumb .current {
  color: var(--title);
  font-weight: 500;
  padding: 3px 6px;
}

/* 默认移动端面包屑样式 */
.breadcrumb {
  padding: 8px 12px;
  font-size: 13px;
}

.breadcrumb a {
  padding: 3px 6px;
}

.post-article .post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-article .content-container {
  line-height: 1.8;
  color: var(--main);
}

.post-article .content-container p {
  margin-bottom: 1.25rem;
}

.post-article .content-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-b);
}

.post-article .content-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--title);
  margin: 1.5rem 0 1rem;
}

.post-article .content-container ul,
.post-article .content-container ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-article .content-container li {
  margin-bottom: 0.5rem;
}

.post-article .content-container blockquote {
  border-left: 4px solid var(--theme);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--dark-b);
}

/* Markdown specific styles */

/* 表格横向滚动容器 */
.post-article .content-container .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.post-article .content-container table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.post-article .content-container th,
.post-article .content-container td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-article .content-container th {
  background: var(--light-b);
  font-weight: 600;
  color: var(--title);
}

.post-article .content-container tr:last-child td {
  border-bottom: none;
}

.post-article .content-container hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-article .content-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-article .content-container a {
  color: var(--theme);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-article .content-container a:hover {
  color: var(--hover);
  text-decoration: underline;
}

/* 评论区样式 */
.comments-area {
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(107, 140, 255, 0.08);
}

.comments-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(107, 140, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-title:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-radius: 2px;
}

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

.comment-list .comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-wrap);
  border: 1px solid rgba(107, 140, 255, 0.08);
  transition: all 0.3s ease;
}

.comment-list .comment:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(107, 140, 255, 0.15);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.05);
}

.comment-list .comment:last-child {
  margin-bottom: 0;
}

.comment-list .children {
  margin-top: 1.5rem;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(107, 140, 255, 0.1);
}

.comment-list .children .comment {
  background: rgba(255, 255, 255, 0.2);
}

.comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-author img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid rgba(107, 140, 255, 0.1);
  transition: border-color 0.3s ease;
}

.comment:hover .comment-author img {
  border-color: var(--theme);
}

.comment-author .fn {
  font-weight: 600;
  color: var(--title);
  font-size: 1rem;
}

.comment-meta .comment-time {
  font-size: 0.85rem;
  color: var(--dark-b);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-meta .comment-time:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--theme);
  border-radius: 50%;
}

.comment-content {
  margin-left: 0;
  line-height: 1.7;
  color: var(--main);
  font-size: 0.95rem;
}

.comment-content p {
  margin-bottom: 1rem;
}

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

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--theme);
  text-decoration: none;
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  background: rgba(107, 140, 255, 0.05);
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  color: var(--hover);
  background: rgba(107, 140, 255, 0.1);
  transform: translateY(-1px);
}

.comment-reply-link i {
  font-size: 0.9rem;
}

/* 评论表单样式 */
.comment-respond {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(107, 140, 255, 0.03);
  border-radius: var(--radius-wrap);
  border: 1px solid rgba(107, 140, 255, 0.08);
}

.comment-reply-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-reply-title:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  border-radius: 2px;
}

.comment-reply-title small {
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: auto;
}

.comment-reply-title small a {
  color: var(--theme);
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-reply-title small a:hover {
  color: var(--hover);
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--dark-b);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  border-left: 3px solid rgba(107, 140, 255, 0.2);
}

.required-field-message {
  font-size: 0.85rem;
  color: var(--theme);
  font-weight: 500;
}

.comment-form {
  margin-top: 1.5rem;
}

/* 评论者信息字段 - 垂直布局 */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
}

/* 输入框全宽 */
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  box-sizing: border-box;
}

/* 评论框全宽显示 */
.comment-form-comment {
  width: 100%;
  clear: both;
}

/* 评论框全宽 */
.comment-form-comment textarea {
  width: 100%;
  box-sizing: border-box;
}

/* 复选框样式优化 */
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: auto;
  margin: 0.25rem 0 0 0;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--dark-b);
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--title);
  font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(107, 140, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.comment-form input:hover,
.comment-form textarea:hover {
  border-color: rgba(107, 140, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.1);
  background: rgba(255, 255, 255, 1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.comment-form .form-submit {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.comment-form .form-submit button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-inner);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.2);
}

.comment-form .form-submit button:before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.comment-form .form-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 140, 255, 0.3);
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
}

.comment-form .form-submit button:active {
  transform: translateY(0);
}

/* 评论导航 */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(107, 140, 255, 0.1);
}

.comment-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(107, 140, 255, 0.08);
  color: var(--title);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.comment-navigation a:hover {
  background: var(--theme);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.2);
}

.comment-navigation .nav-previous i,
.comment-navigation .nav-next i {
  font-size: 1.1rem;
}

.no-comments {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--dark-b);
  font-style: italic;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-wrap);
  border: 1px dashed rgba(107, 140, 255, 0.15);
}

/* 文章目录样式 */
.widget-toc {
  margin-bottom: 1.5rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(107, 140, 255, 0.08);
  overflow: hidden;
}

.widget-toc .widget-title {
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  border-bottom: 1px solid var(--light-b);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-toc .widget-title i {
  color: var(--theme);
  font-size: 1.2rem;
}

.widget-toc .widget-content {
  padding: 1rem 1.5rem;
}

.toc-content {
  overflow-y: auto;
  background: transparent;
}

.toc-nav {
  width: 100%;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* 重置列表标记样式 */
.toc-list ::marker {
  content: '';
  display: none;
}

/* 分类列表和侧边栏菜单的列表标记重置 */
.widget-categories .toc-list ::marker,
.widget-sidebar-menu .toc-list ::marker {
  content: '';
  display: none;
}

.toc-item.toc-h2 {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.toc-item.toc-h3 {
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.toc-item.toc-h4 {
  font-weight: 500;
}

.toc-item a {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toc-item a:hover {
  color: var(--theme);
  background: var(--bg-h);
}

.toc-item a.active {
  color: var(--background);
  font-weight: 600;
  background: var(--theme);
}

/* 文章目录层级缩进 */
.toc-list ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.toc-list ul .toc-item {
  position: relative;
}

.toc-list ul .toc-item::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.75rem;
  width: 0.5rem;
  height: 1px;
  background: var(--light-c);
}

.toc-list ul .toc-item.toc-h3::before {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  top: 0.8rem;
  background: var(--theme);
}

/* 深色模式下的文章目录层级缩进 */
[data-theme="dark"] .toc-list ul .toc-item::before {
  background: var(--light-b);
}

[data-theme="dark"] .toc-list ul .toc-item.toc-h3::before {
  background: var(--theme);
}

/* 文章分类样式 */
.widget-categories .toc-list,
.widget-sidebar-menu .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-categories .toc-list li,
.widget-sidebar-menu .toc-list li,
.widget-sidebar-menu .toc-list .cat-item {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.widget-categories .toc-list a,
.widget-sidebar-menu .toc-list a,
.widget-sidebar-menu .toc-list .cat-item a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.widget-categories .toc-list a:hover,
.widget-sidebar-menu .toc-list a:hover,
.widget-sidebar-menu .toc-list .cat-item a:hover {
  color: var(--theme);
  background: var(--bg-h);
  transform: translateX(4px);
}

.widget-categories .category-count {
  font-size: 0.8rem;
  color: var(--dark-b);
  background: var(--light-b);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  min-width: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.widget-sidebar-menu .toc-list .cat-item a .category-count {
  font-size: 0.8rem;
  color: var(--dark-b);
  background: var(--light-b);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  min-width: 25px;
  text-align: center;
  transition: all 0.3s ease;
  margin-left: auto;
}

.widget-categories .toc-list a:hover .category-count,
.widget-sidebar-menu .toc-list a:hover .category-count,
.widget-sidebar-menu .toc-list .cat-item a:hover .category-count {
  background: var(--theme);
  color: var(--background);
}

/* 分类列表层级缩进 */
.widget-categories .toc-list ul,
.widget-sidebar-menu .toc-list ul,
.widget-sidebar-menu .toc-list .children {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.widget-categories .toc-list ul li,
.widget-sidebar-menu .toc-list ul li,
.widget-sidebar-menu .toc-list .children li {
  position: relative;
}

.widget-categories .toc-list ul li::before,
.widget-sidebar-menu .toc-list ul li::before,
.widget-sidebar-menu .toc-list .children li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 15px;
  width: 10px;
  height: 1px;
  background: var(--light-d);
}

/* 深色模式下的分类列表层级缩进 */
[data-theme="dark"] .widget-categories .toc-list ul li::before,
[data-theme="dark"] .widget-sidebar-menu .toc-list ul li::before,
[data-theme="dark"] .widget-sidebar-menu .toc-list .children li::before {
  background: var(--light-b);
}

/* 侧边栏菜单展开收起功能 */
/* 侧边栏菜单基础样式 */
.widget-sidebar-menu .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-sidebar-menu .toc-list li {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.widget-sidebar-menu .toc-list a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.widget-sidebar-menu .toc-list a:hover {
  color: var(--theme);
  background: var(--bg-h);
  transform: translateX(4px);
}

/* 侧边栏菜单图标 */
.widget-sidebar-menu .toc-list a i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
  color: var(--light-x);
}

.widget-sidebar-menu .toc-list a:hover i {
  color: var(--theme);
  transform: translateY(-2px);
}

/* 侧边栏菜单子菜单 */
.widget-sidebar-menu .toc-list .sub-menu {
  display: block;
  margin-left: 1rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--light-d);
  transition: all 0.3s ease;
}

.widget-sidebar-menu .toc-list .sub-menu:not(.active) {
  display: none;
}

/* 侧边栏菜单有子菜单的项 */
.widget-sidebar-menu .toc-list .menu-item-has-children>a {
  padding-right: 2rem;
  cursor: pointer;
}

/* 侧边栏菜单箭头图标 */
.widget-sidebar-menu .toc-list .menu-item-has-children>a::after {
  content: '\ea4e';
  font-family: 'remixicon';
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transition: transform 0.3s ease;
  font-size: 1rem;
  color: var(--theme);
}

.widget-sidebar-menu .toc-list .menu-item-has-children>a:hover::after {
  color: var(--theme);
}

.widget-sidebar-menu .toc-list .menu-item-has-children>a:not(.active)::after {
  transform: translateY(-50%);
  color: var(--light-x);
}

/* 侧边栏菜单二级菜单项 */
.widget-sidebar-menu .toc-list .sub-menu li {
  margin-bottom: 0.3rem;
}

.widget-sidebar-menu .toc-list .sub-menu a {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

/* 侧边栏菜单三级菜单 */
.widget-sidebar-menu .toc-list .sub-menu .sub-menu {
  margin-left: 0.8rem;
  border-left-color: var(--light-d);
}

.widget-sidebar-menu .toc-list .sub-menu .sub-menu a {
  font-size: 0.8rem;
}

/* 深色模式下的侧边栏菜单 */
[data-theme="dark"] .widget-sidebar-menu .toc-list .sub-menu {
  border-left-color: var(--light-b);
}

[data-theme="dark"] .widget-sidebar-menu .toc-list .sub-menu .sub-menu {
  border-left-color: var(--light-c);
}

[data-theme="dark"] .widget-sidebar-menu .toc-list .menu-item-has-children>a::after {
  color: var(--dark-b);
}

[data-theme="dark"] .widget-sidebar-menu .toc-list .menu-item-has-children>a:hover::after,
[data-theme="dark"] .widget-sidebar-menu .toc-list .menu-item-has-children>a.active::after {
  color: var(--theme);
}

[data-theme="dark"] .widget-sidebar-menu .toc-list a i {
  color: var(--dark-b);
}

[data-theme="dark"] .widget-sidebar-menu .toc-list a:hover i {
  color: var(--theme);
}

.toc-empty {
  color: var(--dark-b);
  text-align: center;
  margin: 0;
  padding: 2rem 0;
  font-size: 0.9rem;
}

/* 目录滚动条样式 */
.toc-content::-webkit-scrollbar {
  width: 6px;
}

.toc-content::-webkit-scrollbar-track {
  background: var(--light-b);
  border-radius: 3px;
}

.toc-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.toc-content::-webkit-scrollbar-thumb:hover {
  background: var(--dark-b);
}

.post-article .post-tags {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--light-b);
}

.post-article .post-tags .tag-item {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--bg-h);
  color: var(--theme);
  border-radius: var(--radius-inner);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.post-article .post-tags .tag-item:hover {
  background: var(--theme);
  color: white;
  transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.post-navigation .nav-prev,
.post-navigation .nav-next {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  background-color: var(--background);
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
}

.post-navigation .nav-prev:hover,
.post-navigation .nav-next:hover {
  background-color: var(--background);
  transform: translateY(-2px);
}

.post-navigation .nav-label {
  display: block;
  font-size: 0.875rem;
  color: var(--dark-b);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-next .nav-label {
  text-align: right;
}

.post-navigation .nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--title);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
  align-items: flex-start;
}

.author-box-avatar-wrapper {
  flex-shrink: 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--theme);
  box-shadow: var(--galaxy-glow);
}

.author-box-info {
  flex: 1;
}

.author-box-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.author-box-desc {
  color: var(--dark-b);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.author-box-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.author-box-website,
.author-box-posts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark-b);
  transition: color 0.3s ease;
}

.author-box-website:hover {
  color: var(--theme);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.875rem;
  width: 2.8125rem;
  height: 2.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-secondary) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 140, 255, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
  z-index: 999;
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 0.8;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
  transform: translateY(-0.25rem);
  box-shadow: 0 6px 20px rgba(107, 140, 255, 0.5), 0 0 30px rgba(168, 85, 247, 0.3);
}

.back-to-top i {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Pagination */
/* 分页导航样式 - 与主题风格统一 */
.pagination,
.nav-links {
  margin: 2rem 0;
  text-align: center;
}

.pagination .page-numbers,
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  list-style: none;
}

/* 统一分页链接样式 */
.pagination .page-numbers a,
.pagination .page-numbers span,
.pagination .page-numbers li .page-numbers,
.nav-links a,
.nav-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-inner);
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-b);
  background: var(--background);
  border: 1px solid rgba(107, 140, 255, 0.08);
}

/* 链接悬停 */
.pagination .page-numbers a:hover,
.nav-links a:hover {
  background: var(--bg-h);
  color: var(--theme);
}

/* 当前页 */
.pagination .page-numbers.current,
.pagination .page-numbers li .current,
.nav-links .current {
  background: var(--theme);
  color: white;
  font-weight: 600;
}

/* 省略号 */
.pagination .page-numbers.dots,
.pagination .page-numbers li .dots,
.nav-links .dots {
  color: var(--dark-b);
  cursor: pointer;
  background: var(--background);
  border: 1px solid rgba(107, 140, 255, 0.08);
  min-width: 2rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-inner);
}

/* 上一页下一页 */
.pagination .next,
.pagination .prev,
.pagination .page-numbers li .next,
.pagination .page-numbers li .prev,
.nav-links .next,
.nav-links .prev {
  color: var(--theme);
  font-weight: 500;
  padding: 0 8px;
  font-size: 12px;
}

.pagination .next:hover,
.pagination .prev:hover,
.pagination .page-numbers li .next:hover,
.pagination .page-numbers li .prev:hover,
.nav-links .next:hover,
.nav-links .prev:hover {
  background: var(--bg-h);
  color: var(--theme);
}

/* 默认移动端分页导航样式 */
/* 在移动端隐藏部分页码，只显示当前页、前后页和省略号 */
.pagination .page-numbers a:not(.current):not(.next):not(.prev):not(:first-child):not(:last-child),
.nav-links a:not(.current):not(.next):not(.prev):not(:first-child):not(:last-child) {
  display: none;
}

/* 省略号页码跳转功能 */
.pagination .page-numbers.dots {
  cursor: pointer;
  position: relative;
}

.pagination .page-numbers.dots:hover {
  color: var(--theme);
}

/* 页码跳转弹窗 - 使用transform优化动画 */
.pagination-jump-modal {
  position: absolute;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(107, 140, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.pagination-jump-modal[style*="display: block"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagination-jump-modal form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pagination-jump-modal .modal-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-b);
  text-align: center;
}

.pagination-jump-modal .modal-page-count {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.pagination-jump-modal .modal-error {
  font-size: 0.75rem;
  color: #ef4444;
  text-align: center;
  display: none;
  min-height: 1rem;
}

.pagination-jump-modal input {
  width: 100%;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(107, 140, 255, 0.15);
  border-radius: var(--radius-inner);
  background: var(--background);
  color: var(--dark-b);
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s ease;
}

.pagination-jump-modal input:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 2px rgba(107, 140, 255, 0.1);
}

.pagination-jump-modal .modal-actions {
  display: flex;
  gap: 0.5rem;
}

.pagination-jump-modal .jump-button,
.pagination-jump-modal .cancel-button {
  flex: 1;
  height: 2rem;
  padding: 0 1rem;
  border-radius: var(--radius-inner);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-jump-modal .jump-button {
  border: 1px solid var(--theme);
  background: var(--theme);
  color: white;
}

.pagination-jump-modal .jump-button:hover {
  background: var(--theme-h);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 140, 255, 0.3);
}

.pagination-jump-modal .cancel-button {
  border: 1px solid rgba(107, 140, 255, 0.15);
  background: var(--background);
  color: var(--dark-b);
}

.pagination-jump-modal .cancel-button:hover {
  background: var(--bg-h);
  color: var(--theme);
}

/* ========================================
   Code Highlight - 代码高亮样式
   ======================================== */

/* 代码块容器样式 - 覆盖 Prism.js 和其他样式 */
.content-container pre,
.content-container .code-crazy-code pre,
.content-container pre[class*="language-"] {
  position: relative !important;
  margin: 1.5rem 0 !important;
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%) !important;
  border-radius: var(--radius-wrap) !important;
  overflow: hidden !important;
  border: 1px solid rgba(107, 140, 255, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(107, 140, 255, 0.08),
    0 0 15px rgba(107, 140, 255, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(8px) !important;
  padding: 0 !important;
  font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

/* 通用代码块容器 - 确保HTML文章中的代码块也有相同样式 */
.content-container>pre,
.content-container>div>pre {
  position: relative !important;
  margin: 1.5rem 0 !important;
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%) !important;
  border-radius: var(--radius-wrap) !important;
  overflow: hidden !important;
  border: 1px solid rgba(107, 140, 255, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(107, 140, 255, 0.08),
    0 0 15px rgba(107, 140, 255, 0.04) !important;
  padding: 0 !important;
  font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

/* 代码块悬停效果 */
.content-container pre:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(107, 140, 255, 0.15),
    0 0 20px rgba(107, 140, 255, 0.08);
  transform: translateY(-1px) scale(1.005);
}

/* 代码块头部 - 显示语言类型 */
.content-container pre::before {
  content: attr(data-language);
  display: block;
  padding: 0.5rem 1rem 0.5rem 3.5rem;
  background-image:
    radial-gradient(circle at 1.25rem 50%, #ff5f56 0.25rem, transparent 0.25rem),
    radial-gradient(circle at 2rem 50%, #ffbd2e 0.25rem, transparent 0.25rem),
    radial-gradient(circle at 2.75rem 50%, #27ca40 0.25rem, transparent 0.25rem),
    linear-gradient(135deg, rgba(107, 140, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-bottom: 1px solid rgba(107, 140, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  color: #a5b4fc;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-wrap) var(--radius-wrap) 0 0;
}

/* 代码块头部光泽效果 */
.content-container pre::before::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.content-container pre:hover::before::after {
  left: 100%;
}

/* 代码块内的代码样式 - 覆盖其他样式 */
.content-container pre code,
.content-container .code-crazy-code pre code,
.content-container pre code[class*="language-"],
.content-container>pre code,
.content-container>div>pre code {
  display: block !important;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #ccc !important;
  background: transparent !important;
  padding: 1rem !important;
  border: none !important;
  border-radius: 0 !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
  tab-size: 4 !important;
  position: relative !important;
  z-index: 1 !important;
  counter-reset: line;
}

/* 代码行号 - 使用 CSS 计数器 */
.content-container pre code {
  counter-reset: line;
}

.content-container pre code .line,
.content-container pre code span.line,
.content-container>pre code .line,
.content-container>pre code span.line,
.content-container>div>pre code .line,
.content-container>div>pre code span.line {
  display: block;
  position: relative;
}

.content-container pre code .line::before,
.content-container pre code span.line::before,
.content-container>pre code .line::before,
.content-container>pre code span.line::before,
.content-container>div>pre code .line::before,
.content-container>div>pre code span.line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  min-width: 2rem;
  padding-right: 0.75rem;
  margin-right: 0.5rem;
  color: #6b7280;
  text-align: right;
  font-size: 0.75rem;
  -webkit-user-select: none;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

/* 代码块背景网格效果 */
.content-container pre code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  pointer-events: none;
}

/* 复制按钮 */
.content-container pre .copy-button,
.content-container>pre .copy-button,
.content-container>div>pre .copy-button {
  position: absolute;
  top: 5px;
  right: 0.75rem;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #7ec699;
  border: 1px solid rgba(107, 140, 255, 0.4);
  border-radius: var(--radius-inner);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.content-container pre .copy-button:hover {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(107, 140, 255, 0.3);
  border-color: rgba(107, 140, 255, 0.6);
}

.content-container pre .copy-button.copied {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.content-container pre .copy-button.copied::before {
  content: '✅';
}

/* 可运行代码块样式 */
.runnable-code-block {
  margin: 1.5rem 0;
  border-radius: var(--radius-wrap);
}

.runnable-code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(107, 140, 255, 0.3);
}

.runnable-code-title {
  color: var(--title);
  font-size: 1rem;
  font-weight: 600;
  margin-right: auto;

}

.runnable-code-language {
  color: #6b7280;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

.runnable-code-run,
.runnable-code-preview {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  will-change: box-shadow, filter;
  position: relative;
}

.runnable-code-run {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.runnable-code-run:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  filter: brightness(1.05);
}

.runnable-code-run:active {
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  filter: brightness(0.95);
}

.runnable-code-preview {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.runnable-code-preview:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  filter: brightness(1.05);
}

.runnable-code-preview:active {
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  filter: brightness(0.95);
}

.runnable-code-content {
  margin: 0 !important;
  border-radius: 0 !important;
  max-height: 500px;
  overflow: auto;
}

.runnable-code-output {
  padding: 1rem;
  background: #f9fafb;
  border-top: 1px solid rgba(107, 140, 255, 0.3);
  min-height: 100px;
}

.runnable-code-output:empty {
  display: none;
}

.runnable-code-source {
  display: none !important;
}

/* 行内代码样式 */
.content-container code:not(pre code) {
  font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.85em;
  padding: 0.25em 0.5em;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--theme);
  border-radius: 0.375rem;
  border: 1px solid rgba(107, 140, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* 行内代码悬停效果 */
.content-container code:not(pre code):hover {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: var(--theme);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(107, 140, 255, 0.3);
}

/* 行内代码光泽效果 */
.content-container code:not(pre code)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.content-container code:not(pre code):hover::after {
  left: 100%;
}

/* 深色模式下的行内代码 */
[data-theme="dark"] .content-container code:not(pre code) {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: #7ec699;
  border-color: rgba(107, 140, 255, 0.4);
}

/* 代码块滚动条样式 */
.content-container pre code::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.content-container pre code::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.content-container pre code::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.content-container pre code::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.5) 0%, rgba(139, 92, 246, 0.5) 100%);
  transform: scale(1.1);
}

/* Prism.js 主题调整 */
pre[class*="language-"] {
  margin: 1.5rem 0 !important;
  border-radius: var(--radius-wrap) !important;
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%) !important;
  border: 1px solid rgba(107, 140, 255, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(107, 140, 255, 0.08),
    0 0 15px rgba(107, 140, 255, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(8px) !important;
}

pre[class*="language-"]:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(107, 140, 255, 0.15),
    0 0 20px rgba(107, 140, 255, 0.08) !important;
  transform: translateY(-1px) scale(1.005) !important;
}

code[class*="language-"],
pre[class*="language-"] {
  font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
}

/* 代码高亮 Token 颜色微调 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #999;
  font-style: italic;
  text-shadow: 0 0 2px rgba(153, 153, 153, 0.3);
}

.token.punctuation {
  color: #ccc;
  text-shadow: 0 0 2px rgba(204, 204, 204, 0.3);
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #f08d49;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(240, 141, 73, 0.3);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #7ec699;
  text-shadow: 0 0 2px rgba(126, 198, 153, 0.3);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #67cdcc;
  text-shadow: 0 0 2px rgba(103, 205, 204, 0.3);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #cc99cd;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(204, 153, 205, 0.3);
}

.token.function,
.token.class-name {
  color: #f8c555;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(248, 197, 85, 0.3);
}

.token.regex,
.token.important,
.token.variable {
  color: #e2777a;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(226, 119, 122, 0.3);
}

/* 默认移动端代码块样式 */
.content-container pre {
  margin: 1rem 0;
  border-radius: var(--radius-inner);
}

.content-container pre .copy-button {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
}

.content-container pre::before {
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
}

/* ======================================== 
   响应式媒体查询 - 移动优先原则
   ========================================
   断点说明：
   - 576px: 大型手机
   - 600px: 小型平板
   - 768px: 平板
   - 782px: WordPress Admin Bar 兼容
   - 992px: 小型笔记本
   - 1024px: 笔记本/桌面
   - 1200px: 大型桌面
======================================== */

/* 断点：576px - 大型手机 */
@media (min-width: 576px) {
  .quote-content {
    font-size: 1rem;
    padding: 0 2rem;
  }

  .quote-content::before,
  .quote-content::after {
    font-size: 2.5rem;
  }

  .quote-content::before {
    top: -5px;
  }

  .quote-content::after {
    bottom: -15px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1.5rem;
  }

  .banner-content {
    padding: 7rem 1rem 4rem;
  }

  body.admin-bar .banner-content {
    padding: 10rem 1rem 2rem;
  }

  .banner-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .minimal-circle {
    width: 150px;
    height: 150px;
  }

  .minimal-line {
    width: 100px;
  }

  .hero-wave-wrapper {
    height: 70px;
  }

  /* 文章内容区域 */
  .post-article {
    padding: 1.5rem;
  }

  /* 站点内容 */
  .post-content {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .post-excerpt {
    margin-bottom: 1.5rem;
  }

  /* 小部件 */
  .widget-content {
    padding: 1rem 1.25rem;
  }

  /* 头部 */
  .header-actions {
    gap: 0.625rem;
  }

  .header-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

/* 断点：768px - 平板 */
@media (min-width: 768px) {

  /* Banner 样式 */
  .banner-quote {
    max-width: 650px;
  }

  .quote-content {
    padding: 0 2.5rem;
    font-size: 1.2rem;
  }

  .hero-wave-wrapper {
    height: 100px;
  }

  .category-header-info .category-description {
    font-size: 1rem;
  }

  .category-header-info .category-stats {
    gap: 2rem;
  }

  .category-header-info .post-count,
  .category-header-info .sub-categories {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  /* 平板继续使用汉堡菜单 */
  .header-actions .menu-toggle {
    display: flex;
  }

  .site-header .main-nav {
    display: none;
  }

  .mobile-drawer {
    display: flex;
  }

  .drawer-backdrop {
    display: block;
  }

  /* 文章内容区域 */
  .post-article {
    padding: 1.75rem;
  }

  .post-navigation {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-prev,
  .nav-next {
    flex: 1;
    width: auto;
  }

  .nav-prev {
    margin-bottom: 0;
  }

  /* 互动功能 */
  .post-actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .action-item {
    justify-content: flex-start;
  }

  .reward-methods {
    flex-direction: row;
    align-items: flex-start;
  }

  .reward-content {
    padding: 2rem;
  }

  /* 相关文章 */
  .related-posts-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .related-posts {
    padding: 2rem;
  }

  .related-post-thumb {
    height: 180px;
  }

  /* 内容布局 */
  .content-wrapper {
    grid-template-columns: 1fr 240px;
  }

  .content-wrapper.two-columns-left {
    grid-template-columns: 240px 1fr;
  }

  .content-wrapper.two-columns,
  .content-wrapper.full-width {
    grid-template-columns: 1fr;
  }

  /* 文章样式 */
  .post-title {
    font-size: 1.5rem;
  }

  /* 小部件 */
  .widget {
    margin-bottom: 1.5rem;
  }

  .widget-title i {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }

  /* 头部 */
  .header-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }

  .header-inner {
    padding: 0 1.5rem;
  }

  /* 页脚 */
  .footer-top {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 2rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-description {
    max-width: 300px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom p {
    justify-content: center;
  }

  /* 页脚主体内容 */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    flex: 1;
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  .footer-left {
    align-items: flex-start;
    text-align: left;
  }

  .footer-right {
    align-items: flex-end;
    text-align: right;
  }

  .footer-quick-links {
    justify-content: center;
  }

  .footer-busuanzi {
    justify-content: center;
  }

  /* 页脚主体布局 */
  .footer-main {
    flex-direction: row;
    gap: 3rem;
  }

  /* 站点统计 */
  .footer-stats {
    padding: 1.5rem;
  }

  .footer-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-stat-item {
    padding: 1rem;
  }

  /* 快速链接 */
  .footer-quick-links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  /* 版权信息 */
  .footer-copyright {
    font-size: 0.9rem;
  }

  /* 页脚信息 */
  .footer-info {
    font-size: 0.875rem;
  }

  /* 网站地图 */
  .footer-sitemap-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-sitemap-links a {
    font-size: 0.9rem;
  }

  .busuanzi-item {
    font-size: 0.8rem;
  }

  /* 面包屑 */
  .breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .breadcrumb a {
    padding: 0.25rem 0.5rem;
  }

  .breadcrumb .current {
    padding: 0.25rem 0.5rem;
  }

  /* 分页导航 */
  .nav-links {
    padding: 1rem;
    gap: 0.5rem;
  }

  .pagination .page-numbers a,
  .pagination .page-numbers span,
  .nav-links a,
  .nav-links span {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }

  .pagination .next,
  .pagination .prev,
  .nav-links .next,
  .nav-links .prev {
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }

  /* 在平板及以上设备显示所有页码 */
  .pagination .page-numbers a:not(.current):not(.next):not(.prev):not(:first-child):not(:last-child),
  .nav-links a:not(.current):not(.next):not(.prev):not(:first-child):not(:last-child) {
    display: flex;
  }

  /* 分页跳转弹窗 - 移动端由JS控制位置 */
  .pagination-jump-modal {
    min-width: 200px;
  }

  /* 代码块 */
  .content-container pre {
    margin: 1.5rem 0;
    border-radius: var(--radius-wrap);
  }

  .content-container pre code {
    font-size: 0.9rem;
  }

  .content-container pre .copy-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  .content-container pre::before {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* 断点：782px - WordPress Admin Bar 兼容 */
@media (min-width: 782px) {
  body.admin-bar .site-header {
    top: 2rem;
    height: 3.75rem;
  }

  body.admin-bar .site-content {
    padding-top: 3rem;
  }
}

/* 断点：992px - 小型笔记本 */
@media (min-width: 992px) {
  .banner-title {
    font-size: 2.25rem;
  }

  .banner-content {
    padding: 7rem 2rem 4rem;
  }

  body.admin-bar .banner-content {
    padding: 9rem 2rem 2rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr 300px;
  }

  /* 显示传统导航菜单 */
  .header-actions .menu-toggle {
    display: none;
  }

  .site-header .main-nav {
    display: flex;
  }

  .mobile-drawer {
    display: none;
  }

  .drawer-backdrop {
    display: none;
  }

  .solar-term {
    display: block;
  }

  /* 文章元信息 */
  .post-meta-info {
    gap: 1rem;
  }

  .meta-item {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
  }

  .meta-item i {
    font-size: 1rem;
  }

  .banner-subtitle .post-excerpt {
    font-size: 0.9rem;
  }

  .busuanzi-item em.title {
    display: block;
  }
}

/* 断点：1024px - 笔记本/桌面 */
@media (min-width: 1024px) {

  /* 文章内容区域 */
  .post-article {
    padding: 2rem;
  }

  /* 文章内容 */
  .post-content {
    padding: 2rem;
  }
}

/* 断点：1200px - 大型桌面 */
@media (min-width: 1200px) {

  /* 三栏布局 */
  .content-wrapper {
    grid-template-columns: 250px 1fr 300px;
  }

  /* 显示左侧边栏 */
  .sidebar-left {
    display: block;
  }

  /* 页脚主体布局 */
  .footer-main {
    gap: 4rem;
  }

  /* 站点统计 */
  .footer-stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* 网站地图 */
  .footer-sitemap-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* 不蒜子统计 */
  .busuanzi-item {
    font-size: 0.9rem;
    padding: 0rem 0.5rem;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {

  /* 横幅相关动画 */
  .banner-inner::before,
  .minimal-element,
  .banner-content,
  .banner-title,
  .banner-subtitle,
  .banner-cta,
  .banner-quote,
  .hero-wave,
  .banner-scroll-hint,
  .scroll-icon {
    animation: none;
  }

  /* 悬停效果 */
  .banner-cta:hover,
  .banner-scroll-hint:hover,
  .post-search:hover,
  .footer-social a:hover,
  .footer-stat-item:hover,
  .nav-links a:hover,
  .back-to-top:hover,
  .search-modal-close:hover {
    transform: none;
    animation: none;
  }

  /* 其他动画元素 */
  .search-modal-content,
  .post-excerpt p,
  .breadcrumb {
    animation: none;
  }
}