/* General Body Styles */
body {
    font-family: 'Noto Serif SC', serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Lighter background */
    color: #212529; /* Darker text for better contrast */
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #56ccf2, #2f80ed); /* New gradient */
    color: #fff;
    padding: 2.5rem 1rem; /* Increased padding */
    text-align: center;
    border-bottom: 4px solid #1e63b0; /* Adjusted border */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1.xiaozhuan {
    font-family: 'ZCOOL XiaoWei', serif; /* 小篆字体 */
    font-size: 3.8rem; /* Slightly larger */
    margin: 0;
    font-weight: 700;
    letter-spacing: 3px; /* Increased spacing */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    color: #D71319; /* 仿人民日报红 */
}

header .subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem; /* Slightly larger */
    font-weight: 300; /* Lighter weight */
    display: block;
    margin-top: 0.75rem;
    opacity: 0.85;
}

/* Main Content Styles */
main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

/* Article Card Styles */

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animated-section {
    /* This class was used for initial page load animations.
       Scroll-triggered animations are now primarily handled by .article-card and JavaScript.
       Clearing properties here to avoid conflicts.
       If this class is intended for other elements, specific scroll animation logic
       should be applied to them directly or via a new dedicated scroll animation class. */
    /* opacity: 0; */ 
    /* transform: translateY(30px); */ 
    /* animation: none; */ 
}

/*
.animated-section:hover {
    animation: subtleBounce 0.5s ease-in-out infinite alternate; /* Add a subtle bounce on hover */
/* }
*/
.article-card {
    background-color: #ffffff;
    margin-bottom: 35px; /* Increased margin */
    padding: 30px; /* Increased padding */
    border-radius: 16px; /* More rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
    /* transition: transform 0.35s ease, box-shadow 0.35s ease; */ /* Commented out as hover effect is removed */
    opacity: 0; /* Initial state for scroll animation */
    transform: translateY(30px); /* Initial state for scroll animation, matches fadeInSlideUp */
    /* animation: fadeInSlideUp 0.6s forwards; */ /* Removed: will be triggered by .is-visible */
    border: 1px solid #e9ecef; /* Subtle border */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* For smooth reveal if JS is slow or for non-animation fallback */
}

.article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInSlideUp 0.6s forwards; /* Apply animation when visible */
}

/*
.article-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Enhanced hover shadow */
/* }
*/
.article-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2.2rem; /* Larger title */
    color: #1e63b0; /* Match header accent */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 3px solid #56ccf2; /* Match header accent */
    padding-bottom: 12px;
}

.author {
    font-size: 1rem;
    color: #6c757d; /* Slightly darker gray */
    margin-bottom: 20px;
    font-style: italic;
}

.content p {
    font-size: 1.15rem; /* Slightly larger paragraph text */
    color: #343a40; /* Darker paragraph text */
    margin-bottom: 1.2em;
    text-align: justify;
    letter-spacing: 0.5px; /* Added letter spacing for readability */
}

.content .article-image {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Smoother corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow */
    margin: 20px 0; /* Increased margin */
}

.content .article-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Enhanced shadow on hover */
/* }
*/
.contact-image {
    max-width: 250px; /* Specific size for QR code */
    display: block;
    margin: 20px auto; /* Center the image */
    border: 3px solid #56ccf2; /* Themed border */
    padding: 5px; /* Padding inside border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reminder {
    background-color: #e6f7ff; /* Light blue background */
    color: #005288; /* Darker blue text */
    padding: 12px 18px;
    border-left: 5px solid #2f80ed; /* Blue accent border */
    border-radius: 12px; /* Smoother corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow */ /* More rounded */
    margin-top: 20px;
    font-size: 1.05rem;
}

.reminder strong {
    font-weight: bold;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 25px;
    background-color: #212529; /* Darker footer */
    color: #dee2e6; /* Lighter text for footer */
    margin-top: 40px;
    border-top: 3px solid #56ccf2;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for article cards (now handled by scroll trigger) */
/* .article-card:nth-child(1) { animation-delay: 0.1s; } */
/* .article-card:nth-child(2) { animation-delay: 0.3s; } */
/* .article-card:nth-child(3) { animation-delay: 0.5s; } */

/* Responsive Design */
@media (max-width: 768px) {
    header h1.xiaozhuan {
        font-size: 2.8rem;
    }
    header .subtitle {
        font-size: 1.2rem;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.5rem;
    }
    header h1.xiaozhuan {
        font-size: 2.2rem;
    }
    header .subtitle {
        font-size: 1rem;
    }
    main {
        padding: 10px;
    }
    .article-card {
        padding: 15px;
    }
    .article-title {
        font-size: 1.4rem;
    }
}