/* style.css */

/* 基础样式 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding-bottom: 70px; /* 给底部导航预留空间 */
}

.container-article {
    max-width: 900px;
    background-color: #fff;
    margin: 40px auto 80px auto;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.article-time {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.donation-section {
    text-align: center;
    margin: 60px auto;
    padding: 40px 20px;
    max-width: 650px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.donation-section p {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.donate-button {
    display: inline-block;
    background-color: #0070ba;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.donate-button:hover {
    background-color: #005c99;
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* PC端导航默认显示，手机端隐藏 */
.pc-nav {
    display: block;
}
.mobile-nav {
    display: none;
}

/* 手机端样式 */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* 给手机底部导航留空间 */
    }
    .container-article {
        margin: 20px 15px 110px 15px;
        padding: 30px 20px;
        border-radius: 14px;
    }
    .article-title {
        font-size: 2rem;
    }
    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    .donation-section {
        margin: 40px 15px;
        padding: 30px 20px;
    }

    /* 手机端导航显示，PC导航隐藏 */
    .pc-nav {
        display: none;
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background-color: #ffffff;
        border-top: 1px solid #ddd;
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 9999;
    }
    .mobile-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #555;
        text-decoration: none;
        user-select: none;
        transition: color 0.25s ease;
        padding: 6px 0;
        min-width: 50px;
    }
    .mobile-nav a:hover,
    .mobile-nav a:focus {
        color: #2563eb;
    }
    .mobile-nav a svg {
        width: 26px;
        height: 26px;
        margin-bottom: 3px;
        fill: currentColor;
    }
    .mobile-nav a.active {
        color: #2563eb;
        font-weight: 700;
    }
}
