/* Here is your custom css styles. */

/* 修复关闭轮播图后导航菜单文字在白天模式下不够明显的问题 */
/* 当没有轮播图时，给导航栏添加半透明背景，提高文字可读性 */
body:not(.DarkMode) header .nav-transparent {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1) !important;
}

/* 确保导航菜单文字在白天模式下有足够的对比度 */
body:not(.DarkMode) header .nav-transparent .nav-menu a {
    color: #34495e !important;
    font-weight: 500;
}

/* 导航菜单项悬停效果 */
body:not(.DarkMode) header .nav-transparent .nav-menu a:hover {
    color: #0f9d58 !important;
}

/* Logo文字样式 */
body:not(.DarkMode) header .nav-transparent .brand-logo .logo-span {
    color: #34495e !important;
    font-weight: 600;
}

/* 搜索和主题切换按钮 */
body:not(.DarkMode) header .nav-transparent .nav-menu i {
    color: #34495e !important;
}

/* 视频播放器播放列表控制样式 */
.dplayer-prev-icon, .dplayer-next-icon {
    cursor: pointer;
    margin: 0 3px;
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dplayer-prev-icon:hover, .dplayer-next-icon:hover {
    background: linear-gradient(135deg, #42b983, #369970); /* 主题绿色渐变 */
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(66, 185, 131, 0.4);
}

/* 悬停提示样式 */
.dplayer-prev-icon::after, .dplayer-next-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #42b983, #369970);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(66, 185, 131, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dplayer-prev-icon:hover::after, .dplayer-next-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* 添加小三角箭头指向按钮 */
.dplayer-prev-icon::before, .dplayer-next-icon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #42b983;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.dplayer-prev-icon:hover::before, .dplayer-next-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

.dplayer-playlist-info {
    display: flex;
    align-items: center;
    margin: 0 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.8), rgba(54, 153, 112, 0.8));
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(66, 185, 131, 0.2);
    transition: all 0.3s ease;
}

.dplayer-playlist-info:hover {
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.9), rgba(54, 153, 112, 0.9));
    transform: scale(1.05);
}

.dplayer-prev-icon svg, .dplayer-next-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 增强按钮可见性 */
.dplayer-prev-icon .dplayer-icon-content,
.dplayer-next-icon .dplayer-icon-content {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 边框样式已整合到主样式中 */

/* 确保按钮在所有情况下都可见 */
.dplayer-controller .dplayer-prev-icon,
.dplayer-controller .dplayer-next-icon {
    position: relative;
    z-index: 10;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 确保控制栏有足够空间显示所有按钮 */
.dplayer-controller .dplayer-icons.dplayer-icons-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* 增强图标对比度 */
.dplayer-prev-icon svg path,
.dplayer-next-icon svg path {
    fill: #ffffff !important;
    stroke: #000000;
    stroke-width: 0.5;
}

/* 添加脉冲动画提示用户注意 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.dplayer-prev-icon:not(:hover),
.dplayer-next-icon:not(:hover) {
    animation: pulse 2s infinite;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .dplayer-prev-icon, .dplayer-next-icon {
        min-width: 44px;
        min-height: 44px;
        margin: 0 4px;
    }

    .dplayer-prev-icon svg, .dplayer-next-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* 强制显示所有播放列表控制按钮 */
.dplayer-prev-icon, .dplayer-next-icon, .dplayer-playlist-info {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 调试样式已移除 - 图标方向已修复 */

/* 文章视频播放器样式 */
.post-video-container {
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.05), rgba(54, 153, 112, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(66, 185, 131, 0.2);
    box-shadow: 0 4px 12px rgba(66, 185, 131, 0.1);
}

.post-video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #42b983;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-video-title i {
    font-size: 1.2rem;
}

.post-video-player {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 文章视频播放器的控制按钮样式继承全局样式 */
.post-video-player .dplayer-prev-icon,
.post-video-player .dplayer-next-icon,
.post-video-player .dplayer-playlist-info {
    /* 继承之前定义的样式 */
}

/* 暗黑模式下的文章视频容器 */
body.DarkMode .post-video-container {
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.1), rgba(54, 153, 112, 0.1));
    border-color: rgba(66, 185, 131, 0.3);
}

body.DarkMode .post-video-title {
    color: #4fd3a7;
}

/* iframe 视频播放器样式 */
.iframe-video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.iframe-control-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iframe-prev-btn, .iframe-next-btn {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    background: rgba(66, 185, 131, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(66, 185, 131, 0.3);
}

.iframe-prev-btn:hover, .iframe-next-btn:hover {
    background: rgba(66, 185, 131, 0.8);
    transform: scale(1.1);
    border-color: rgba(66, 185, 131, 0.6);
}

.iframe-playlist-info {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(66, 185, 131, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(66, 185, 131, 0.3);
}

/* iframe 控制按钮悬停提示 */
.iframe-prev-btn::after, .iframe-next-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #42b983, #369970);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.iframe-prev-btn:hover::after, .iframe-next-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* 取消静音提示样式 */
#unmute-hint {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #42b983, #369970);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(66, 185, 131, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#unmute-hint:hover {
    background: linear-gradient(135deg, #369970, #2d7a5a);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(66, 185, 131, 0.4);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(66, 185, 131, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(66, 185, 131, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(66, 185, 131, 0.3);
    }
}

/* iframe音频提示样式 */
#iframe-audio-hint {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #42b983, #369970);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    z-index: 9998;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(66, 185, 131, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#iframe-audio-hint:hover {
    background: linear-gradient(135deg, #369970, #2d7a5a);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(66, 185, 131, 0.4);
}

/* 移动端优化 */
@media (max-width: 768px) {
    #unmute-hint {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 10px 16px;
    }

    #iframe-audio-hint {
        top: 60px;
        right: 10px;
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* 视频播放器容器样式优化 */
.video-player {
    margin: 20px 0;
}

.video-player .title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
}

.video-player .title i {
    color: #42b983;
    margin-right: 8px;
}

/* ========== 代码块样式优化 ========== */

/* 代码块容器优化 */
.code-area {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 代码块头部装饰 */
.code-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* macOS风格的圆点 */
.code-area::after {
    content: " ";
    position: absolute;
    top: 14px;
    left: 16px;
    border-radius: 50%;
    background: #ff5f56;
    width: 12px;
    height: 12px;
    z-index: 2;
    box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
}

/* 代码块主体 */
pre {
    margin: 0 !important;
    padding: 50px 20px 20px 20px !important;
    background: linear-gradient(135deg, #f7fafc, #edf2f7) !important;
    border-radius: 0 !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', Consolas, 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow-x: auto;
    tab-size: 4;
}

/* 代码文本 */
pre code {
    padding: 0 !important;
    background: transparent !important;
    color: #2d3748 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    border-radius: 0 !important;
    display: block;
    white-space: pre;
    font-weight: 500 !important;
}

/* 行内代码 */
code {
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.1), rgba(54, 153, 112, 0.1)) !important;
    color: #42b983 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', 'Fira Code', Monaco, Consolas, 'Courier New', monospace !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    border: 1px solid rgba(66, 185, 131, 0.2) !important;
    box-shadow: 0 2px 4px rgba(66, 185, 131, 0.1) !important;
}

/* 代码语言标签 */
.code_lang {
    position: absolute !important;
    top: 12px !important;
    right: 80px !important;
    background: rgba(66, 185, 131, 0.9) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 3 !important;
    box-shadow: 0 2px 8px rgba(66, 185, 131, 0.3) !important;
}

/* 复制按钮 */
.code_copy {
    position: absolute !important;
    top: 10px !important;
    right: 16px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #4a5568 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 3 !important;
    backdrop-filter: blur(10px) !important;
    font-weight: 600 !important;
}

.code_copy:hover {
    background: rgba(66, 185, 131, 0.8) !important;
    border-color: rgba(66, 185, 131, 0.6) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(66, 185, 131, 0.3) !important;
}

/* 复制成功提示 */
.codecopy_notice {
    position: absolute !important;
    top: 10px !important;
    right: 16px !important;
    background: rgba(39, 201, 63, 0.9) !important;
    color: white !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    z-index: 4 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(39, 201, 63, 0.3) !important;
}

/* 代码折叠按钮 */
.code-expand {
    position: absolute !important;
    top: 8px !important;
    right: 50px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    padding: 4px !important;
    color: #4a5568 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 3 !important;
    backdrop-filter: blur(10px) !important;
}

.code-expand:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.1) !important;
}

/* 代码折叠状态 */
.code-closed pre {
    max-height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
}

.code-closed pre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #edf2f7);
    pointer-events: none;
}

/* 暗黑模式适配 */
body.DarkMode .code-area {
    background: linear-gradient(135deg, #1a1a1a, #0d1117) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.DarkMode .code-area::before {
    background: linear-gradient(135deg, #21262d, #161b22) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.DarkMode pre {
    background: linear-gradient(135deg, #1a1a1a, #0d1117) !important;
}

body.DarkMode pre code {
    color: #e2e8f0 !important;
}

body.DarkMode code {
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.15), rgba(54, 153, 112, 0.15)) !important;
    border-color: rgba(66, 185, 131, 0.3) !important;
}

body.DarkMode .code_copy {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

body.DarkMode .code-expand {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

body.DarkMode .code-expand:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.DarkMode .code-closed pre::after {
    background: linear-gradient(transparent, #0d1117) !important;
}

/* 暗黑模式代码高亮 */
body.DarkMode .hljs-keyword,
body.DarkMode .hljs-selector-tag,
body.DarkMode .hljs-literal,
body.DarkMode .hljs-section,
body.DarkMode .hljs-link {
    color: #ff79c6 !important;
}

body.DarkMode .hljs-function,
body.DarkMode .hljs-class,
body.DarkMode .hljs-title {
    color: #50fa7b !important;
}

body.DarkMode .hljs-string,
body.DarkMode .hljs-name,
body.DarkMode .hljs-type,
body.DarkMode .hljs-attribute,
body.DarkMode .hljs-symbol,
body.DarkMode .hljs-bullet,
body.DarkMode .hljs-addition,
body.DarkMode .hljs-variable,
body.DarkMode .hljs-template-tag,
body.DarkMode .hljs-template-variable {
    color: #f1fa8c !important;
}

body.DarkMode .hljs-comment,
body.DarkMode .hljs-quote,
body.DarkMode .hljs-deletion,
body.DarkMode .hljs-meta {
    color: #6272a4 !important;
}

body.DarkMode .hljs-number,
body.DarkMode .hljs-regexp,
body.DarkMode .hljs-built_in,
body.DarkMode .hljs-builtin-name {
    color: #bd93f9 !important;
}

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

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

pre::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #42b983, #369970);
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #369970, #2d7a5a);
}

/* 代码高亮增强 - 白天模式 */
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-section, .hljs-link {
    color: #d73a49 !important;
    font-weight: 600 !important;
}

.hljs-function, .hljs-class, .hljs-title {
    color: #005cc5 !important;
    font-weight: 600 !important;
}

.hljs-string, .hljs-title, .hljs-name, .hljs-type, .hljs-attribute, .hljs-symbol, .hljs-bullet, .hljs-addition, .hljs-variable, .hljs-template-tag, .hljs-template-variable {
    color: #032f62 !important;
    font-weight: 500 !important;
}

.hljs-comment, .hljs-quote, .hljs-deletion, .hljs-meta {
    color: #6a737d !important;
    font-style: italic !important;
}

.hljs-number, .hljs-regexp, .hljs-literal, .hljs-type, .hljs-built_in, .hljs-builtin-name {
    color: #005cc5 !important;
    font-weight: 500 !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .code-area {
        margin: 15px -10px;
        border-radius: 8px;
    }

    pre {
        padding: 45px 15px 15px 15px !important;
        font-size: 13px !important;
    }

    .code_lang {
        right: 60px !important;
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .code_copy {
        right: 12px !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

/* ========== 文章文字颜色优化 ========== */

/* 主体文字颜色优化 - 与主题绿色更协调 */
body {
    color: #2c3e50 !important; /* 更深的蓝灰色，与绿色主题协调 */
}

/* 文章内容文字优化 */
#articleContent,
.post-content,
.card-content {
    color: #2c3e50 !important;
    line-height: 1.8 !important;
}

/* 文章段落文字 */
#articleContent p,
.post-content p,
.card-content p {
    color: #34495e !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    margin-bottom: 1.2rem !important;
}

/* 标题颜色优化 */
#articleContent h1,
#articleContent h2,
#articleContent h3,
#articleContent h4,
#articleContent h5,
#articleContent h6 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* 文章链接颜色保持主题绿色 */
#articleContent a {
    color: #42b983 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(66, 185, 131, 0.3) !important;
    transition: all 0.3s ease !important;
}

#articleContent a:hover {
    color: #369970 !important;
    border-bottom-color: #369970 !important;
    background: rgba(66, 185, 131, 0.1) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

/* 列表文字优化 */
#articleContent ul li,
#articleContent ol li {
    color: #34495e !important;
    line-height: 1.8 !important;
    margin-bottom: 0.5rem !important;
}

/* 引用块文字优化 */
#articleContent blockquote {
    color: #5a6c7d !important;
    font-style: italic !important;
    border-left: 4px solid #42b983 !important;
    background: rgba(66, 185, 131, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* 表格文字优化 */
#articleContent table {
    color: #34495e !important;
}

#articleContent table th {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    background: rgba(66, 185, 131, 0.1) !important;
}

/* 文章信息文字优化 */
.post-info,
.post-meta,
.article-info {
    color: #7f8c8d !important;
}

.post-info a,
.post-meta a,
.article-info a {
    color: #42b983 !important;
}

.post-info a:hover,
.post-meta a:hover,
.article-info a:hover {
    color: #369970 !important;
}

/* 文章摘要文字 */
.post-summary,
.card-content .summary {
    color: #5a6c7d !important;
    line-height: 1.7 !important;
}

/* 标签和分类文字 */
.chip,
.tag,
.category {
    color: #34495e !important;
}

.chip:hover,
.tag:hover,
.category:hover {
    color: #fff !important;
}

/* 侧边栏文字优化 */
.sidebar,
.widget {
    color: #34495e !important;
}

.sidebar h3,
.widget h3,
.sidebar .title,
.widget .title {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

/* 评论区文字优化 */
.comment,
.comments {
    color: #34495e !important;
}

/* 页脚文字优化 */
footer {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer a:hover {
    color: #42b983 !important;
}

/* ========== 暗黑模式文字颜色优化 ========== */

/* 暗黑模式主体文字 */
body.DarkMode {
    color: #e2e8f0 !important;
}

/* 暗黑模式文章内容 */
body.DarkMode #articleContent,
body.DarkMode .post-content,
body.DarkMode .card-content {
    color: #e2e8f0 !important;
}

/* 暗黑模式段落文字 */
body.DarkMode #articleContent p,
body.DarkMode .post-content p,
body.DarkMode .card-content p {
    color: #cbd5e0 !important;
}

/* 暗黑模式标题 */
body.DarkMode #articleContent h1,
body.DarkMode #articleContent h2,
body.DarkMode #articleContent h3,
body.DarkMode #articleContent h4,
body.DarkMode #articleContent h5,
body.DarkMode #articleContent h6 {
    color: #f7fafc !important;
}

/* 暗黑模式链接 */
body.DarkMode #articleContent a {
    color: #68d391 !important;
    border-bottom-color: rgba(104, 211, 145, 0.3) !important;
}

body.DarkMode #articleContent a:hover {
    color: #9ae6b4 !important;
    border-bottom-color: #9ae6b4 !important;
    background: rgba(104, 211, 145, 0.1) !important;
}

/* 暗黑模式列表 */
body.DarkMode #articleContent ul li,
body.DarkMode #articleContent ol li {
    color: #cbd5e0 !important;
}

/* 暗黑模式引用块 */
body.DarkMode #articleContent blockquote {
    color: #a0aec0 !important;
    background: rgba(104, 211, 145, 0.1) !important;
    border-left-color: #68d391 !important;
}

/* 暗黑模式表格 */
body.DarkMode #articleContent table {
    color: #cbd5e0 !important;
}

body.DarkMode #articleContent table th {
    color: #f7fafc !important;
    background: rgba(104, 211, 145, 0.2) !important;
}

/* 暗黑模式文章信息 */
body.DarkMode .post-info,
body.DarkMode .post-meta,
body.DarkMode .article-info {
    color: #a0aec0 !important;
}

body.DarkMode .post-info a,
body.DarkMode .post-meta a,
body.DarkMode .article-info a {
    color: #68d391 !important;
}

body.DarkMode .post-info a:hover,
body.DarkMode .post-meta a:hover,
body.DarkMode .article-info a:hover {
    color: #9ae6b4 !important;
}

/* 暗黑模式摘要 */
body.DarkMode .post-summary,
body.DarkMode .card-content .summary {
    color: #a0aec0 !important;
}

/* 暗黑模式侧边栏 */
body.DarkMode .sidebar,
body.DarkMode .widget {
    color: #cbd5e0 !important;
}

body.DarkMode .sidebar h3,
body.DarkMode .widget h3,
body.DarkMode .sidebar .title,
body.DarkMode .widget .title {
    color: #f7fafc !important;
}

/* 暗黑模式评论 */
body.DarkMode .comment,
body.DarkMode .comments {
    color: #cbd5e0 !important;
}

/* ========== 特殊元素颜色优化 ========== */

/* 强调文字 */
strong, b {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

body.DarkMode strong,
body.DarkMode b {
    color: #f7fafc !important;
}

/* 斜体文字 */
em, i {
    color: #42b983 !important;
    font-style: italic !important;
}

body.DarkMode em,
body.DarkMode i {
    color: #68d391 !important;
}

/* 删除线文字 */
del, s {
    color: #95a5a6 !important;
}

body.DarkMode del,
body.DarkMode s {
    color: #718096 !important;
}

/* 下划线文字 */
u {
    color: #42b983 !important;
    text-decoration-color: rgba(66, 185, 131, 0.5) !important;
}

body.DarkMode u {
    color: #68d391 !important;
    text-decoration-color: rgba(104, 211, 145, 0.5) !important;
}

/* 高亮文字 */
mark {
    background: linear-gradient(135deg, rgba(66, 185, 131, 0.2), rgba(66, 185, 131, 0.1)) !important;
    color: #2c3e50 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

body.DarkMode mark {
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.3), rgba(104, 211, 145, 0.2)) !important;
    color: #f7fafc !important;
}

/* 小字体文字 */
small {
    color: #7f8c8d !important;
    font-size: 0.9em !important;
}

body.DarkMode small {
    color: #a0aec0 !important;
}

/* 键盘按键样式 */
kbd {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7) !important;
    color: #2c3e50 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', Monaco, Consolas, monospace !important;
    font-size: 0.9em !important;
    border: 1px solid #95a5a6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

body.DarkMode kbd {
    background: linear-gradient(135deg, #4a5568, #2d3748) !important;
    color: #f7fafc !important;
    border-color: #68d391 !important;
}

/* 缩写文字 */
abbr {
    color: #42b983 !important;
    border-bottom: 1px dotted #42b983 !important;
}

body.DarkMode abbr {
    color: #68d391 !important;
    border-bottom-color: #68d391 !important;
}

/* 引用文字 */
cite {
    color: #7f8c8d !important;
    font-style: italic !important;
}

body.DarkMode cite {
    color: #a0aec0 !important;
}

/* 定义文字 */
dfn {
    color: #42b983 !important;
    font-style: italic !important;
    font-weight: 500 !important;
}

body.DarkMode dfn {
    color: #68d391 !important;
}

/* 变量文字 */
var {
    color: #e74c3c !important;
    font-style: italic !important;
    font-family: 'JetBrains Mono', Monaco, Consolas, monospace !important;
}

body.DarkMode var {
    color: #fc8181 !important;
}

/* 示例输出文字 */
samp {
    color: #8e44ad !important;
    font-family: 'JetBrains Mono', Monaco, Consolas, monospace !important;
    background: rgba(142, 68, 173, 0.1) !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
}

body.DarkMode samp {
    color: #d6bcfa !important;
    background: rgba(214, 188, 250, 0.1) !important;
}
