﻿/* wen.css - 文章页面样式 */

/* ========== 重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0ebe5;
    min-height: 100vh;
    padding: 30px 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== 文章容器 ========== */
.article-box {
    width: 60%;
    max-width: 680px;
    background: #fefcf9;
    border-radius: 0;
    padding: 28px 32px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    border-bottom: 3px solid #d4a373;
}

/* ========== 标题 ========== */
.head-card {
    padding-bottom: 12px;
    border-bottom: 1px solid #ede6dc;
    margin-bottom: 18px;
}

.head-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.badge-icon {
    display: inline-block;
    background: #b5835a;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    text-align: center;
    line-height: 22px;
    font-size: 11px;
    flex-shrink: 0;
}

.badge-label {
    font-size: 11px;
    color: #a68b78;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.article-headline {
    font-size: 22px;
    font-weight: 700;
    color: #3d2c1e;
    line-height: 1.4;
    margin-bottom: 6px;
}

.article-info {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #b8a394;
}

/* ========== 内容 ========== */
.content-body {
    font-size: 15px;
    line-height: 2;
    color: #4a3a2c;
}

.content-body p {
    margin-bottom: 14px;
}

.content-body h1,
.content-body h2,
.content-body h3 {
    margin: 16px 0 10px;
    color: #3d2c1e;
}

.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px auto;
    border-radius: 4px;
}

.content-body blockquote {
    border-left: 3px solid #d4a373;
    padding: 8px 16px;
    margin: 12px 0;
    background: #f8f3ee;
    color: #5a4a3a;
}

.content-body ul,
.content-body ol {
    padding-left: 22px;
    margin: 10px 0;
}

.content-body li {
    margin-bottom: 4px;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.content-body th,
.content-body td {
    border: 1px solid #ede6dc;
    padding: 6px 10px;
    text-align: left;
}

.content-body th {
    background: #f8f3ee;
    font-weight: 600;
}

/* ========== 相关阅读 ========== */
.related-box {
    width: 60%;
    max-width: 680px;
    background: #fefcf9;
    border-radius: 0;
    padding: 16px 28px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-bottom: 3px solid #d4a373;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #3d2c1e;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ede6dc;
}

/* ========== 链接列表 ========== */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.footer-links a {
    color: #6b5a4a;
    text-decoration: none;
    font-size: 13px;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    line-height: 1.6;
}

.footer-links a:hover {
    color: #b5835a;
    border-bottom-color: #b5835a;
}

/* ========== 首页链接 ========== */
.home-link-box {
    width: 60%;
    max-width: 680px;
    text-align: center;
    margin: 4px 0 0 0;
    padding: 6px 0;
}

.home-link {
    display: inline-block;
    color: #3d2c1e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 28px;
    background: transparent;
    border: 1px solid #d4a373;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.home-link:hover {
    background: #d4a373;
    color: #fff;
}

/* ========== 底部 ========== */
.article-footer {
    width: 60%;
    max-width: 680px;
    text-align: center;
    padding: 10px 0 2px;
    color: #b8a394;
    font-size: 11px;
    border-top: 1px solid #ede6dc;
    margin-top: 2px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    body {
        padding: 24px 10%;
    }

    .article-box,
    .related-box,
    .home-link-box,
    .article-footer {
        width: 80%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 18px 6%;
    }

    .article-box,
    .related-box,
    .home-link-box,
    .article-footer {
        width: 90%;
    }

    .article-box {
        padding: 22px 20px 18px;
    }

    .article-headline {
        font-size: 19px;
    }

    .content-body {
        font-size: 14px;
    }

    .related-box {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px 4%;
    }

    .article-box,
    .related-box,
    .home-link-box,
    .article-footer {
        width: 96%;
    }

    .article-box {
        padding: 16px 14px 14px;
        border-bottom-width: 2px;
    }

    .article-headline {
        font-size: 16px;
    }

    .badge-icon {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
    }

    .badge-label {
        font-size: 10px;
    }

    .content-body {
        font-size: 13.5px;
        line-height: 1.9;
    }

    .article-info {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .related-box {
        padding: 12px 12px;
        border-bottom-width: 2px;
    }

    .related-title {
        font-size: 13px;
    }

    .footer-links {
        gap: 4px 6px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 2px 0;
    }

    .home-link {
        font-size: 12px;
        padding: 6px 18px;
        border-width: 1px;
    }

    .article-footer {
        font-size: 10px;
        padding: 8px 0 2px;
    }
}