/* DEBUG: 优雅标题样式；原因：提供美观且突出但不突兀的标题效果 */
/* 说明：采用渐变色彩和精致边框，确保美观度和可读性的平衡 */
:root {
  --title-primary-light: #6366f1;
  --title-secondary-light: #8b5cf6;
  --title-accent-light: #ec4899;
  --title-primary-dark: #60a5fa;
  --title-secondary-dark: #34d399;
  --title-accent-dark: #f472b6;
  --title-bg-light: rgba(255, 255, 255, 0.85);
  --title-bg-dark: rgba(30, 41, 59, 0.85);
}

/* 文章页面标题优雅样式 */
#post .post-title,
article.post-content .post-title,
.layout .post-title {
  position: relative !important;
  display: inline-block !important;
  text-align: center !important;
  font-size: 2.4em !important;
  font-weight: 700 !important;
  margin: 1.5em auto 2em !important;
  padding: 0.6em 2em !important;
  background: linear-gradient(135deg, var(--title-bg-light) 0%, rgba(249, 250, 251, 0.9) 100%) !important;
  color: var(--title-primary-light) !important;
  border: 2px solid transparent !important;
  border-radius: 50px !important;
  background-clip: padding-box !important;
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  max-width: 90% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* 渐变边框效果 */
#post .post-title::before,
article.post-content .post-title::before,
.layout .post-title::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(45deg, var(--title-primary-light), var(--title-secondary-light), var(--title-accent-light), var(--title-primary-light)) !important;
  border-radius: 50px !important;
  z-index: -1 !important;
  opacity: 0.8 !important;
  background-size: 300% 300% !important;
  animation: gradientShift 6s ease infinite !important;
}

/* 深色模式标题样式 */
[data-theme='dark'] #post .post-title,
[data-theme='dark'] article.post-content .post-title,
[data-theme='dark'] .layout .post-title {
  background: linear-gradient(135deg, var(--title-bg-dark) 0%, rgba(51, 65, 85, 0.9) 100%) !important;
  color: var(--title-primary-dark) !important;
  box-shadow: 
    0 4px 15px rgba(96, 165, 250, 0.2),
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme='dark'] #post .post-title::before,
[data-theme='dark'] article.post-content .post-title::before,
[data-theme='dark'] .layout .post-title::before {
  background: linear-gradient(45deg, var(--title-primary-dark), var(--title-secondary-dark), var(--title-accent-dark), var(--title-primary-dark)) !important;
  opacity: 0.9 !important;
}

/* 渐变边框动画 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50% !important; }
  50% { background-position: 100% 50% !important; }
}

/* 悬停效果 */
#post .post-title:hover,
article.post-content .post-title:hover,
.layout .post-title:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.25),
    0 12px 35px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  color: var(--title-secondary-light) !important;
}

[data-theme='dark'] #post .post-title:hover,
[data-theme='dark'] article.post-content .post-title:hover,
[data-theme='dark'] .layout .post-title:hover {
  box-shadow: 
    0 6px 20px rgba(96, 165, 250, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: var(--title-secondary-dark) !important;
}

/* 首页文章标题样式 */
.article-title {
  position: relative !important;
  display: block !important;
  font-size: 1.5em !important;
  font-weight: 600 !important;
  margin: 0.8em 0 !important;
  padding: 0.5em 1em !important;
  color: var(--title-primary-light) !important;
  border-left: 4px solid var(--title-primary-light) !important;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
  border-radius: 0 8px 8px 0 !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
}

[data-theme='dark'] .article-title {
  color: var(--title-primary-dark) !important;
  border-left-color: var(--title-primary-dark) !important;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, rgba(52, 211, 153, 0.08) 100%) !important;
}

.article-title:hover {
  border-left-color: var(--title-secondary-light) !important;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
  color: var(--title-secondary-light) !important;
  transform: translateX(5px) !important;
}

[data-theme='dark'] .article-title:hover {
  border-left-color: var(--title-secondary-dark) !important;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.2) 0%, rgba(52, 211, 153, 0.12) 100%) !important;
  color: var(--title-secondary-dark) !important;
}

/* 文章内容中的 H1 标题 */
#article-container .post-content h1 {
  position: relative !important;
  display: block !important;
  font-size: 1.8em !important;
  font-weight: 700 !important;
  margin: 1.2em 0 1em !important;
  padding: 0.4em 1.2em !important;
  color: var(--title-primary-light) !important;
  border-bottom: 2px solid var(--title-primary-light) !important;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%) !important;
  border-radius: 0 0 8px 0 !important;
  transition: all 0.3s ease !important;
}

[data-theme='dark'] #article-container .post-content h1 {
  color: var(--title-primary-dark) !important;
  border-bottom-color: var(--title-primary-dark) !important;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.1) 0%, transparent 100%) !important;
}

#article-container .post-content h1:hover {
  border-bottom-color: var(--title-secondary-light) !important;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%) !important;
  color: var(--title-secondary-light) !important;
}

[data-theme='dark'] #article-container .post-content h1:hover {
  border-bottom-color: var(--title-secondary-dark) !important;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, transparent 100%) !important;
  color: var(--title-secondary-dark) !important;
}

/* 移除所有原有的装饰线 */
.post-title:after,
.article-title:after,
#article-container .post-content h1:after {
  display: none !important;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  #post .post-title,
  article.post-content .post-title,
  .layout .post-title {
    font-size: 1.8em !important;
    padding: 0.5em 1.5em !important;
    margin: 1em auto 1.5em !important;
    max-width: 95% !important;
  }
  
  .article-title {
    font-size: 1.3em !important;
    padding: 0.4em 0.8em !important;
  }
  
  #article-container .post-content h1 {
    font-size: 1.5em !important;
    padding: 0.3em 1em !important;
  }
}

/* 导入Google字体 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* 全局字体设置 */
:root {
  --global-font-family: 'Lato', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --title-font-family: 'Noto Serif SC', 'Lato', serif;
  --code-font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* 全局字体应用 */
body {
  font-family: var(--global-font-family);
  font-size: 16px;
  line-height: 1.8;
  color: #4c4948;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6,
.site-title,
.post-title,
.article-title {
  font-family: var(--title-font-family);
  font-weight: 700;
  line-height: 1.5;
}

/* 代码字体 */
pre, code,
.highlight {
  font-family: var(--code-font-family);
  font-size: 0.95em;
}

/* 文章内容优化 */
.post-content {
  font-size: 1.05em;
  line-height: 2;
  letter-spacing: 0.01em;
}

/* 全局标题样式优化 */
.article-title,
.post-title,
#article-container .post-content h1 {
    position: relative;
    color: #1e88e5 !important;
    font-weight: 700;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 首页文章标题样式 */
.article-title {
    color: #1e88e5 !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 文章页面标题效果 */
#post .post-title,
article.post-content .post-title,
.layout .post-title {
    position: relative;
    font-family: var(--title-font-family);
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    padding: 0.5em 0;
    margin-bottom: 1.2em;
    color: #1e88e5 !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 深色模式下的标题样式 */
[data-theme='dark'] .article-title,
[data-theme='dark'] .post-title,
[data-theme='dark'] #article-container .post-content h1 {
    color: #64b5f6 !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 鼠标悬停效果 */
.article-title:hover,
.post-title:hover,
#article-container .post-content h1:hover {
    transform: translateY(-2px);
    color: #1565c0 !important;
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.6);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

/* 深色模式下悬停效果 */
[data-theme='dark'] .article-title:hover,
[data-theme='dark'] .post-title:hover,
[data-theme='dark'] #article-container .post-content h1:hover {
    color: #90caf9 !important;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.6);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* 移除所有装饰线 */
.post-title:after,
.article-title:after,
#article-container .post-content h1:after {
    display: none;
}

/* 确保移动设备上也能正常显示 */
@media screen and (max-width: 768px) {
    .article-title,
    .post-title,
    #article-container .post-content h1 {
        font-size: 1.8em;
        -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.5);
    }
    
    [data-theme='dark'] .article-title,
    [data-theme='dark'] .post-title,
    [data-theme='dark'] #article-container .post-content h1 {
        -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.5);
    }
}

/* 首页标题区域样式 */
#site-info {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

/* 文章卡片信息样式 */
.index-info {
    position: relative;
    padding: 1rem;
    border-radius: 8px;
}

.index-info,
.index-info a {
    color: #fff !important;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 深色模式下的标题样式 */
[data-theme='dark'] .post-title {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 文章标题优化 */
#post .post-title,
article.post-content .post-title,
.layout .post-title {
  position: relative;
  font-family: 'Noto Serif SC', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft Yahei', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  padding: 0.5em 0;
  margin-bottom: 1.2em;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  color: #fff !important;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 浅色模式下的标题样式 */
[data-theme='light'] #post .post-title,
[data-theme='light'] article.post-content .post-title,
[data-theme='light'] .layout .post-title {
  color: #fff !important;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 深色模式下的标题样式 */
[data-theme='dark'] #post .post-title,
[data-theme='dark'] article.post-content .post-title,
[data-theme='dark'] .layout .post-title {
  color: #fff !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* 鼠标悬停动画效果 */
#post .post-title:hover,
article.post-content .post-title:hover,
.layout .post-title:hover {
  transform: translateY(-2px);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* 深色模式下悬停效果 */
[data-theme='dark'] #post .post-title:hover,
[data-theme='dark'] article.post-content .post-title:hover,
[data-theme='dark'] .layout .post-title:hover {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* 移除底部装饰线 */
#post .post-title:after,
article.post-content .post-title:after,
.layout .post-title:after {
  display: none;
}

/* 侧边栏优化 */
.aside-content {
  font-size: 0.95em;
}

/* 导航菜单优化 */
.nav-menu {
  font-size: 1.05em;
  font-weight: 500;
}

/* 标签和分类优化 */
.tag-cloud a,
.category-list a {
  font-family: var(--global-font-family);
  font-weight: 500;
}

/* 代码块优化 */
.highlight {
  font-size: 0.92em;
  line-height: 1.6;
}

/* 控制文章封面图片尺寸 */
.post-cover {
  width: 100%;
  max-width: 1920px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0 auto;
}

article.post .post-cover {
  width: 100%;
  max-width: 1920px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0 auto;
}

#page-header.post-bg {
  height: auto !important;
  aspect-ratio: 16/9;
  max-height: 1080px;
}

#page-header.post-bg:before {
  background-color: transparent !important;
}

.full_page #page-header {
  height: auto !important;
  aspect-ratio: 16/9;
  max-height: 1080px;
}

/* 确保图片质量 */
.post-cover img,
article.post .post-cover img,
#page-header.post-bg {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 文章页面隐藏banner */
body.post #page-header.not-top-img {
  background-image: none !important;
  height: 0 !important;
  padding: 0 !important;
}

body.post #page-header.post-bg {
  background-image: none !important;
  height: auto !important;
  padding: 0 !important;
}

/* 文章封面图片样式 */
#article-container .post-content img:first-child {
  max-width: 1920px !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  object-fit: cover !important;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
}

/* 隐藏文章页面的banner遮罩 */
body.post #page-header:before {
  background: none !important;
}

/* 标题发光动画 - 浅色模式 */
@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.3));
    }
}

/* 标题发光动画 - 深色模式 */
@keyframes titleGlowDark {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(100, 181, 246, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(100, 181, 246, 0.6));
    }
}

/* 应用发光动画 */
.post-title {
    animation: titleGlow 3s ease-in-out infinite;
}

[data-theme='dark'] .post-title {
    animation: titleGlowDark 3s ease-in-out infinite;
}

/* 深色模式全局样式 */
[data-theme='dark'] {
    --text-color: #e0e0e0;
    --text-highlight-color: #90caf9;
    --link-color: #64b5f6;
    --link-hover-color: #90caf9;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --sidebar-bg: #1e1e1e;
    --border-color: #333;
}

[data-theme='dark'] body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 深色模式卡片样式 */
[data-theme='dark'] .card-widget,
[data-theme='dark'] .layout > div:first-child:not(.sticky_layout) .card-widget,
[data-theme='dark'] #recent-posts > .recent-post-item,
[data-theme='dark'] .layout > div:first-child:not(.sticky_layout) .recent-post-item {
    background: var(--card-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 深色模式链接样式 */
[data-theme='dark'] a {
    color: var(--link-color);
}

[data-theme='dark'] a:hover {
    color: var(--link-hover-color);
}

/* 深色模式导航栏 */
[data-theme='dark'] #nav {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
}

/* 深色模式代码块 */
[data-theme='dark'] pre,
[data-theme='dark'] code {
    background-color: #2d2d2d !important;
    color: #e0e0e0;
}

/* 深色模式引用块 */
[data-theme='dark'] blockquote {
    background: var(--card-bg);
    border-left: 4px solid var(--link-color);
}

/* 深色模式表格 */
[data-theme='dark'] table {
    border-color: var(--border-color);
}

[data-theme='dark'] th,
[data-theme='dark'] td {
    border-color: var(--border-color);
}

/* 深色模式分割线 */
[data-theme='dark'] hr {
    border-color: var(--border-color);
}

/* 深色模式标签和分类 */
[data-theme='dark'] .tag-cloud a,
[data-theme='dark'] .category-list a {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme='dark'] .tag-cloud a:hover,
[data-theme='dark'] .category-list a:hover {
    color: var(--link-hover-color);
    background: var(--bg-color);
}

/* 深色模式文章元信息 */
[data-theme='dark'] .post-meta,
[data-theme='dark'] .post-meta a {
    color: #888;
}

[data-theme='dark'] .post-meta a:hover {
    color: var(--link-hover-color);
}

/* 深色模式滚动条 */
[data-theme='dark'] ::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background-color: #444;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

/* 深色模式按钮 */
[data-theme='dark'] button,
[data-theme='dark'] .button-hover {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme='dark'] button:hover,
[data-theme='dark'] .button-hover:hover {
    background: var(--link-color);
    color: #fff;
}

/* 深色模式输入框 */
[data-theme='dark'] input,
[data-theme='dark'] textarea {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* 深色模式图片亮度调整 */
[data-theme='dark'] img {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

[data-theme='dark'] img:hover {
    filter: brightness(1);
}

/* 深色模式下的阴影效果 */
[data-theme='dark'] .shadow-box {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 深色模式下的卡片悬停效果 */
[data-theme='dark'] .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* 深色模式下的文章标题样式增强 */
[data-theme='dark'] .post-title,
[data-theme='dark'] .article-title,
[data-theme='dark'] #article-container .post-content h1 {
    color: #90caf9 !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
    animation: titleGlowDark 3s ease-in-out infinite;
}

[data-theme='dark'] .post-title:hover,
[data-theme='dark'] .article-title:hover,
[data-theme='dark'] #article-container .post-content h1:hover {
    color: #bbdefb !important;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
}

/* 页面标题背景样式 */
.page-header {
    position: relative;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    background-position: center;
    background-size: cover;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* 页面内容样式 */
#article-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 深色模式优化 */
[data-theme='dark'] #article-container {
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] #article-container h1,
[data-theme='dark'] #article-container h2 {
    color: #90caf9;
    border-bottom: 1px solid var(--border-color);
}

[data-theme='dark'] #article-container h3,
[data-theme='dark'] #article-container h4 {
    color: #64b5f6;
}

[data-theme='dark'] #article-container p,
[data-theme='dark'] #article-container li {
    color: var(--text-color);
}

/* 隐私政策页面特定样式 */
.privacy-policy {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 2rem;
    border-radius: 8px;
}

/* 浅色模式 */
[data-theme='light'] .privacy-policy {
    background: #fff;
    color: #333;
}

/* 深色模式 */
[data-theme='dark'] .privacy-policy {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* 标题样式 */
.privacy-policy h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2em;
}

[data-theme='light'] .privacy-policy h1 {
    color: #1e88e5;
}

[data-theme='dark'] .privacy-policy h1 {
    color: #90caf9;
}

.privacy-policy h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}

[data-theme='light'] .privacy-policy h2 {
    color: #1976d2;
    border-bottom: 2px solid rgba(25, 118, 210, 0.2);
}

[data-theme='dark'] .privacy-policy h2 {
    color: #64b5f6;
    border-bottom: 2px solid rgba(100, 181, 246, 0.2);
}

/* 段落和列表样式 */
.privacy-policy p,
.privacy-policy li {
    margin: 1rem 0;
}

[data-theme='light'] .privacy-policy p,
[data-theme='light'] .privacy-policy li {
    color: #333;
}

[data-theme='dark'] .privacy-policy p,
[data-theme='dark'] .privacy-policy li {
    color: #e0e0e0;
}

/* 列表样式 */
.privacy-policy ul,
.privacy-policy ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.privacy-policy ul li {
    position: relative;
    padding-left: 1.2em;
}

.privacy-policy ul li::before {
    content: '•';
    position: absolute;
    left: 0;
}

[data-theme='light'] .privacy-policy ul li::before {
    color: #1976d2;
}

[data-theme='dark'] .privacy-policy ul li::before {
    color: #64b5f6;
}

/* 链接样式 */
[data-theme='light'] .privacy-policy a {
    color: #1976d2;
    border-bottom: 1px dashed rgba(25, 118, 210, 0.3);
}

[data-theme='dark'] .privacy-policy a {
    color: #64b5f6;
    border-bottom: 1px dashed rgba(100, 181, 246, 0.3);
}

[data-theme='light'] .privacy-policy a:hover {
    color: #1565c0;
    border-bottom-color: #1565c0;
}

[data-theme='dark'] .privacy-policy a:hover {
    color: #90caf9;
    border-bottom-color: #90caf9;
}

/* 引用样式 */
.privacy-policy blockquote {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

[data-theme='light'] .privacy-policy blockquote {
    background: rgba(25, 118, 210, 0.05);
    border-left: 4px solid #1976d2;
}

[data-theme='dark'] .privacy-policy blockquote {
    background: rgba(100, 181, 246, 0.05);
    border-left: 4px solid #64b5f6;
}

/* 分割线样式 */
[data-theme='light'] .privacy-policy hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .privacy-policy hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 代码块样式 */
.privacy-policy code {
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: var(--code-font-family);
}

[data-theme='light'] .privacy-policy code {
    background: rgba(25, 118, 210, 0.1);
    color: #333;
}

[data-theme='dark'] .privacy-policy code {
    background: rgba(100, 181, 246, 0.1);
    color: #81d4fa;
}

/* 使用条款页面样式 */
.terms-of-service {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 2rem;
    border-radius: 8px;
}

/* 浅色模式 */
[data-theme='light'] .terms-of-service {
    background: #fff;
    color: #333;
}

/* 深色模式 */
[data-theme='dark'] .terms-of-service {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* 标题样式 */
.terms-of-service h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2em;
}

[data-theme='light'] .terms-of-service h1 {
    color: #1e88e5;
}

[data-theme='dark'] .terms-of-service h1 {
    color: #90caf9;
}

.terms-of-service h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}

[data-theme='light'] .terms-of-service h2 {
    color: #1976d2;
    border-bottom: 2px solid rgba(25, 118, 210, 0.2);
}

[data-theme='dark'] .terms-of-service h2 {
    color: #64b5f6;
    border-bottom: 2px solid rgba(100, 181, 246, 0.2);
}

/* 段落和列表样式 */
.terms-of-service p,
.terms-of-service li {
    margin: 1rem 0;
}

[data-theme='light'] .terms-of-service p,
[data-theme='light'] .terms-of-service li {
    color: #333;
}

[data-theme='dark'] .terms-of-service p,
[data-theme='dark'] .terms-of-service li {
    color: #e0e0e0;
}

/* 列表样式 */
.terms-of-service ul,
.terms-of-service ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.terms-of-service ul li {
    position: relative;
    padding-left: 1.2em;
}

.terms-of-service ul li::before {
    content: '•';
    position: absolute;
    left: 0;
}

[data-theme='light'] .terms-of-service ul li::before {
    color: #1976d2;
}

[data-theme='dark'] .terms-of-service ul li::before {
    color: #64b5f6;
}

/* 链接样式 */
[data-theme='light'] .terms-of-service a {
    color: #1976d2;
    border-bottom: 1px dashed rgba(25, 118, 210, 0.3);
}

[data-theme='dark'] .terms-of-service a {
    color: #64b5f6;
    border-bottom: 1px dashed rgba(100, 181, 246, 0.3);
}

[data-theme='light'] .terms-of-service a:hover {
    color: #1565c0;
    border-bottom-color: #1565c0;
}

[data-theme='dark'] .terms-of-service a:hover {
    color: #90caf9;
    border-bottom-color: #90caf9;
}

/* 高亮框样式 */
.terms-of-service .highlight-box {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

[data-theme='light'] .terms-of-service .highlight-box {
    background: rgba(25, 118, 210, 0.05);
    border-left: 4px solid #1976d2;
}

[data-theme='dark'] .terms-of-service .highlight-box {
    background: rgba(100, 181, 246, 0.05);
    border-left: 4px solid #64b5f6;
}

/* 日期信息样式 */
.terms-of-service .date-info {
    text-align: right;
    margin-top: 2rem;
    font-style: italic;
}

[data-theme='light'] .terms-of-service .date-info {
    color: #666;
}

[data-theme='dark'] .terms-of-service .date-info {
    color: #aaa;
}

/* 音乐播放器样式 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[data-theme='dark'] .music-player {
    background: rgba(30, 30, 30, 0.9);
}

.music-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.music-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #1e88e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme='dark'] .music-control {
    color: #64b5f6;
}

.music-control:hover {
    color: #1565c0;
    transform: scale(1.1);
}

[data-theme='dark'] .music-control:hover {
    color: #90caf9;
}

#current-song-info {
    font-size: 0.9em;
    color: #666;
    margin: 0 10px;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme='dark'] #current-song-info {
    color: #aaa;
}

/* 音乐控制按钮样式 */
#music-toggle {
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

#music-toggle i {
    transition: all 0.3s ease;
    font-size: 1em;
}

#music-toggle.playing i {
    color: #1e88e5;
    animation: musicIconPulse 2s infinite;
}

[data-theme='dark'] #music-toggle.playing i {
    color: #64b5f6;
}

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

/* 音乐按钮悬停效果 */
#music-toggle:hover {
    transform: scale(1.1);
}

#music-toggle:hover i {
    color: #1565c0;
}

[data-theme='dark'] #music-toggle:hover i {
    color: #90caf9;
}

/* 修复底部空白问题 - 温和版 */
/* DEBUG: 修复页脚下方的多余空白 */
#footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#footer-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
}

/* 确保页面渲染正确 */
html, body {
  overflow-x: hidden; /* 防止横向滚动 */
}

/* 修正背景区域高度 */
#web_bg {
  bottom: 0;
  margin-bottom: 0;
}

/* DEBUG: 添加项目页面自定义样式 */

/* 项目容器样式 */
.project-container {
  margin-bottom: 2rem;
}

/* 项目导航样式 */
.project-nav {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-nav-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #3273dc;
  border-bottom: 2px solid #3273dc;
  padding-bottom: 0.5rem;
}

.project-nav-list {
  list-style: none;
  padding-left: 0;
}

.project-nav-list li {
  margin-bottom: 0.5rem;
}

.project-nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.project-nav-list a:hover {
  background-color: #eef2f7;
  padding-left: 1.5rem;
  color: #3273dc;
}

/* 代码示例样式 */
.project-code-example {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.project-code-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #3273dc;
  border-bottom: 2px solid #3273dc;
  padding-bottom: 0.5rem;
}

/* 项目下载按钮样式 */
.btn-download {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3273dc;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-download:hover {
  background-color: #2366d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 项目页面响应式布局 */
@media screen and (max-width: 768px) {
  .project-nav, .project-code-example {
    padding: 0.75rem;
  }
  
  .project-nav-list a {
    padding: 0.4rem 0.75rem;
  }
}

/* 强调提示样式 */
.project-note {
  background-color: #f6f8fa;
  border-left: 4px solid #42b983;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* 翻译按钮样式 */
#translate-button {
  cursor: pointer;
}

#translate-toggle {
  cursor: pointer;
  padding: 8px;
  background: var(--btn-bg);
  border-radius: 5px;
  border: none;
  color: var(--btn-color);
  transition: all 0.3s;
}

#translate-toggle:hover {
  background: var(--btn-hover-color);
}

/* 在移动设备上调整翻译按钮位置 */
@media screen and (max-width: 768px) {
  #translate-button {
    margin-bottom: 8px;
  }
}

/* 添加翻译中的加载效果 */
.translating {
  opacity: 0.7;
  position: relative;
}

.translating::after {
  content: "翻译中...";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 999;
}

/* 防止在翻译过程中点击页面 */
.translating-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 998;
  display: none;
}

.translating-active .translating-overlay {
  display: block;
}
