
/**
 * 道德知音 - 全局视觉增强
 */

/* ===== 全局字体 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* ===== 全局滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0eb;
}
::-webkit-scrollbar-thumb {
    background: #8b2d2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b2222;
}

/* ===== 全局链接样式 ===== */
a {
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

/* ===== 文章列表页面 ===== */

/* 文章卡片样式 */
.ast-article-post {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    padding: 25px !important;
    margin-bottom: 24px !important;
    border: 1px solid #f0ebe5 !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.ast-article-post:hover {
    box-shadow: 0 8px 25px rgba(139, 45, 45, 0.1) !important;
    border-color: #8b2d2d !important;
    transform: translateY(-2px);
}

/* 文章标题样式 */
.ast-article-post .entry-title,
.ast-article-post .entry-title a {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2d1a1a !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

.ast-article-post .entry-title a:hover {
    color: #8b2d2d !important;
}

/* 文章元信息 */
.ast-article-post .entry-meta,
.ast-article-post .post-thumb-img-content {
    color: #999 !important;
    font-size: 13px !important;
}

/* 文章摘要 */
.ast-article-post .entry-content,
.ast-article-post .entry-summary {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-top: 10px !important;
}

/* 阅读更多按钮 */
.entry-content .read-more,
.ast-article-post .read-more {
    display: inline-block !important;
    color: #8b2d2d !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 4px 0 !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.entry-content .read-more:hover,
.ast-article-post .read-more:hover {
    color: #6b2222 !important;
    border-bottom-color: #8b2d2d !important;
}

/* ===== 单篇文章页面 ===== */

/* 文章标题 */
.single .entry-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2d1a1a !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #f0ebe5 !important;
}

/* 文章内容区 */
.single .entry-content {
    font-size: 16px !important;
    line-height: 2 !important;
    color: #444 !important;
}

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

.single .entry-content h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2d1a1a !important;
    margin: 2em 0 1em !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #f0ebe5 !important;
}

.single .entry-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2d1a1a !important;
    margin: 1.5em 0 0.8em !important;
}

/* 文章内容中的图片 */
.single .entry-content img {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* 文章内容中的表格 */
.single .entry-content table {
    border-collapse: collapse !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    margin: 1.5em 0 !important;
}

.single .entry-content table th {
    background: #8b2d2d !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
}

.single .entry-content table td {
    padding: 8px 15px !important;
    border-bottom: 1px solid #f0ebe5 !important;
}

.single .entry-content table tr:hover td {
    background: #faf8f5 !important;
}

/* ===== 导航栏增强 ===== */

/* 导航栏hover下划线效果 */
#masthead .main-header-menu > .menu-item > a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #c9a96e;
    border-radius: 1px;
}

#masthead .main-header-menu > .menu-item > a {
    position: relative;
    transition: color 0.3s ease !important;
}

/* ===== 页面通用样式 ===== */

/* 页面标题 */
.page .entry-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #2d1a1a !important;
    line-height: 1.4 !important;
}

/* ===== 返回顶部按钮 ===== */
.ast-scroll-top {
    background: #8b2d2d !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.3s ease !important;
}

.ast-scroll-top:hover {
    background: #6b2222 !important;
    transform: translateY(-3px);
}

/* ===== 分页导航 ===== */
.ast-pagination {
    margin-top: 30px !important;
}

.ast-pagination .page-numbers {
    display: inline-block !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin: 0 3px !important;
    font-weight: 600 !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
}

.ast-pagination .page-numbers:hover,
.ast-pagination .page-numbers.current {
    background: #8b2d2d !important;
    color: #fff !important;
}

/* ===== 页面过渡动画 ===== */
.ast-article-post,
.page .entry-content {
    animation: fadeInUp 0.5s ease;
}

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

/* ===== 音频播放器美化 ===== */
.audio-wrapper audio,
audio {
    width: 100% !important;
    height: 48px !important;
    border-radius: 8px !important;
}

/* ===== 面包屑导航 ===== */
.ast-breadcrumbs-wrapper {
    font-size: 13px !important;
    color: #999 !important;
    padding: 10px 0 !important;
}

.ast-breadcrumbs-wrapper a {
    color: #8b2d2d !important;
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .ast-article-post {
        padding: 18px !important;
        border-radius: 8px !important;
    }
    
    .single .entry-title {
        font-size: 22px !important;
    }
    
    .single .entry-content {
        font-size: 15px !important;
    }
}

/* ===== 打印优化 ===== */
@media print {
    #masthead, #colophon, .ast-scroll-top, .ast-breadcrumbs-wrapper {
        display: none !important;
    }
    
    .single .entry-content {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
    }
}
