/* 
 * 博客内容样式增强
 * Content Enhancement Styles
 */

/* ==================== 文章内容基础优化 ==================== */
.single .type-post .entry-content,
.page .entry-content {
    font-size: 17px;
    color: #2c3e50;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* 段落优化 */
.entry-content p {
    margin-bottom: 24px;
    line-height: 1.9;
    text-align: justify;
}

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

/* ==================== 标题样式优化 ==================== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
}

.entry-content h2 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--accent-color, #f16b6f);
}

.entry-content h3 {
    font-size: 24px;
    padding-left: 12px;
    border-left: 4px solid var(--accent-color, #f16b6f);
}

.entry-content h4 {
    font-size: 20px;
}

.entry-content h5 {
    font-size: 18px;
}

.entry-content h6 {
    font-size: 16px;
    color: #666;
}

/* ==================== 链接样式优化 ==================== */
.entry-content a {
    color: var(--accent-color, #f16b6f);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.entry-content p a {
    border-bottom: 2px solid var(--accent-color, #f16b6f);
    margin: 0 3px;
    padding: 0 2px;
}

.entry-content p a:hover {
    transition: box-shadow 0.2s linear;
    box-shadow: inset 0 -20px 0 rgba(241, 107, 111, 0.15);
    background-color: rgba(241, 107, 111, 0.05);
}

/* ==================== 列表样式优化 ==================== */
.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content ul li {
    list-style: none;
    position: relative;
    margin: 12px 0;
    line-height: 1.8;
}

.entry-content ul li::before {
    content: '●';
    color: var(--accent-color, #f16b6f);
    font-size: 12px;
    position: absolute;
    left: -20px;
    top: 0;
}

.entry-content ol {
    counter-reset: list-counter;
}

.entry-content ol li {
    counter-increment: list-counter;
    margin: 12px 0;
    line-height: 1.8;
    position: relative;
}

.entry-content ol li::marker {
    color: var(--accent-color, #f16b6f);
    font-weight: 600;
}

/* ==================== 引用块样式优化 ==================== */
.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid var(--accent-color, #f16b6f);
    border-radius: 0 8px 8px 0;
    position: relative;
    font-style: italic;
    color: #555;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: var(--accent-color, #f16b6f);
    opacity: 0.2;
    position: absolute;
    left: 10px;
    top: -10px;
    font-family: Georgia, serif;
    line-height: 1;
}

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

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

/* ==================== 图片样式优化 ==================== */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-content img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.entry-content figure {
    margin: 30px 0;
}

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

.entry-content figcaption {
    text-align: center;
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

/* ==================== 表格样式优化 ==================== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content table thead {
    background: var(--accent-color, #f16b6f);
    color: #fff;
}

.entry-content table th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #fff;
}

.entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.entry-content table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.entry-content table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 分隔线样式优化 ==================== */
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 40px 0;
}

/* ==================== 强调文本样式 ==================== */
.entry-content strong,
.entry-content b {
    font-weight: 600;
    color: #1a1a1a;
}

.entry-content em,
.entry-content i {
    font-style: italic;
    color: #555;
}

.entry-content mark {
    background: linear-gradient(transparent 50%, rgba(241, 107, 111, 0.3) 50%);
    padding: 2px 4px;
    border-radius: 2px;
}

/* ==================== WordPress古腾堡块样式 ==================== */
.entry-content .wp-block-quote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid var(--accent-color, #f16b6f);
}

.entry-content .wp-block-image {
    margin: 30px 0;
}

.entry-content .wp-block-gallery {
    margin: 30px 0;
}

.entry-content .wp-block-embed {
    margin: 30px 0;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .single .type-post .entry-content,
    .page .entry-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .entry-content h2 {
        font-size: 24px;
    }

    .entry-content h3 {
        font-size: 20px;
    }

    .entry-content h4 {
        font-size: 18px;
    }

    .entry-content table {
        font-size: 14px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 10px 8px;
    }

    .entry-content blockquote {
        padding: 15px 20px;
    }
}

/* ==================== 特殊内容块 ==================== */
/* 提示框 */
.entry-content .notice,
.entry-content .tip,
.entry-content .warning,
.entry-content .info {
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 5px solid;
    background: #f8f9fa;
}

.entry-content .tip {
    border-left-color: #28a745;
    background: #f0f9f4;
}

.entry-content .warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.entry-content .info {
    border-left-color: #17a2b8;
    background: #f0f8ff;
}

/* ==================== 文章标签优化 ==================== */
.entry-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.entry-tags a {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 6px 14px;
    margin: 5px 8px 5px 0;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.entry-tags a:hover {
    background: var(--accent-color, #f16b6f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(241, 107, 111, 0.3);
}

/* ==================== 打印样式优化 ==================== */
@media print {
    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }

    .entry-content a {
        color: #000;
        text-decoration: underline;
    }

    .entry-content img {
        box-shadow: none;
    }
}

