/* code3-unique.css */
body {
    background-color: #fdfdfd;
}

.main-content-page {
    background-color: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    border-radius: 12px;
    margin-top: 60px;
    padding-top: 20px;
    padding-bottom: 30px;
    margin-left: 100px;
    margin-right: 100px;
}

.article-list-section {
    padding-top: 20px;
    padding-bottom: 0;
}
.article-list-section h2.page-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-family: 'MaintitleFont', 'KaiTi', 'SimSun', sans-serif;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 25px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.article-card {
    background-color: transparent;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex; /* 让卡片内容可以撑满高度 */
}

.article-card:hover {
    background-color: rgba(248, 249, 250, 0.9);
}

/* --- 新的布局样式 START --- */
.article-content { 
    display: flex;
    flex-direction: column;
    width: 100%; /* 确保内容区占满卡片宽度 */
    box-sizing: border-box;
}

.article-content h3 a { text-decoration: none; color: #555; }

.article-card-footer {
    margin-top: auto; /* 核心：将footer推到底部 */
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-meta { 
    font-size: 0.9em; 
    color: #777;
}
.read-more-link { 
    display: inline-block; 
    color: #555; 
    text-decoration: none; 
    font-weight: bold; 
}
/* --- 新的布局样式 END --- */

.pagination {
    margin-bottom: 30px;
}

/* Responsive Styles and other styles remain the same */
@media (max-width: 1200px) { .main-content-page { margin-left: 50px; margin-right: 50px; } }
@media (max-width: 768px) {
    body { background-color: #ffffff; }
    .main-content-page { margin-left: 10px; margin-right: 10px; margin-top: 30px; padding-top: 15px; padding-bottom: 20px; border-radius: 10px; }
    .article-list-section { padding-top: 10px; }
    .article-list-section h2.page-title { font-size: 2em; margin-bottom: 30px; }
    .footer-left p { font-size: 0.85em; }
}
@media (max-width: 359px) {
    .article-list-section h2.page-title { font-size: 1.8em; }
}