﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: linear-gradient(180deg, #e8f4fc 0%, #f4f9fc 200px, #fafbfc 400px, #ffffff 100%);
    color: #1a1a1a;
}

a {
    color: #2f7fd4;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    min-width: 100px;
    text-align: center;
    border-radius: 20px;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.96);
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: background .2s, box-shadow .2s, transform .15s;
    white-space: nowrap;
}

    .btn-nav:hover {
        background: #fff;
        box-shadow: 0 4px 14px rgba(0,0,0,.1);
        transform: translateY(-1px);
        text-decoration: none;
        color: #1a1a1a;
    }

.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 40px 60px;
}

.article-card {
    background: transparent;
    padding: 40px 60px 50px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 24px;
}

.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

    .article-content p {
        text-indent: 2em;
        margin-bottom: 1em;
    }

    .article-content .section-label {
        text-indent: 0;
        margin: 1.2em 0 .5em;
        font-size: 15px;
        color: #1a1a1a;
    }

    .article-content .indent-line {
        text-indent: 0;
        padding-left: 2.5em;
        margin-bottom: .5em;
    }

        .article-content .indent-line a {
            color: #2f7fd4;
            text-decoration: underline;
        }

            .article-content .indent-line a:hover {
                color: #1a5fad;
            }

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.4;
        margin: 1.5em 0 .6em;
        text-indent: 0;
    }

    .article-content h2 {
        font-size: 1.15em;
    }

    .article-content h3 {
        font-size: 1.05em;
    }

    .article-content hr {
        border: none;
        border-top: 1px solid #e5e5e5;
        margin: 1.5em 0;
    }

    .article-content ul,
    .article-content ol {
        margin: .5em 0 1em 2em;
    }

    .article-content li {
        margin-bottom: .3em;
    }

    .article-content blockquote {
        border-left: 3px solid #e8793a;
        margin: 1.2em 0;
        padding: 10px 16px;
        background: #fef9f5;
        color: #555;
        border-radius: 0 3px 3px 0;
    }

        .article-content blockquote p {
            text-indent: 0;
            margin: 0;
        }

    .article-content code {
        font-family: "JetBrains Mono", "Courier New", monospace;
        font-size: .875em;
        background: #f3f4f6;
        border: 1px solid #e5e5e5;
        border-radius: 3px;
        padding: 1px 5px;
        color: #c0392b;
    }

    .article-content pre {
        background: #1e1e2e;
        border-radius: 4px;
        padding: 16px 20px;
        overflow-x: auto;
        margin: 1.2em 0;
        font-size: .875em;
        line-height: 1.65;
    }

        .article-content pre code {
            background: none;
            border: none;
            padding: 0;
            color: #cdd6f4;
        }

    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.2em 0;
        font-size: .9em;
    }

    .article-content th,
    .article-content td {
        padding: 8px 12px;
        border: 1px solid #e5e5e5;
        text-align: left;
    }

    .article-content th {
        background: #f9f9f9;
        font-weight: 600;
        color: #555;
    }

    .article-content tr:hover td {
        background: #fafafa;
    }

    .article-content img {
        max-width: 100%;
        border-radius: 4px;
        margin: 1em auto;
        display: block;
    }

    .article-content strong {
        font-weight: 600;
    }

    .article-content em {
        font-style: italic;
        color: #555;
    }

.site-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px 30px;
    text-align: right;
    font-size: 13px;
    color: #999;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
        height: 70px;
    }

    .page-wrap {
        padding: 20px 20px 40px;
    }

    .article-card {
        padding: 28px 24px 36px;
    }

    .article-title {
        font-size: 20px;
    }

    .site-footer {
        padding: 16px 20px 24px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 16px;
    }

    .article-card {
        padding: 24px 18px 30px;
    }

    .article-title {
        font-size: 18px;
    }

    .btn-nav {
        min-width: 80px;
        padding: 7px 0;
        font-size: 13px;
    }
}

@media print {
    .site-header, .site-footer {
        display: none;
    }

    body {
        background: #fff;
    }

    .article-card {
        padding: 0;
    }
}
