body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
}
.back-home {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    background-color: #555;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.back-home:hover {
    background-color: #788bff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
h2 {
    font-size: 3em;
    font-family: 'Dancing Script', cursive;
    text-align: center;
    margin: 40px 0;
    color: #fffdfe;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
#articles {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.article {
    flex: 1 1 calc(50% - 20px);
    max-height: 180px;
    overflow: hidden;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(to bottom right, #ffffff88, #ffffffaa);
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left; /* 左对齐文字 */
}
.article:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.article h3, .article .preview {
    color: #333;
    margin: 5px 0;
    text-align: center; /* 标题居中 */
}
.article h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 18px; /* 统一标题大小 */
    text-align: center; /* 标题居中 */
}
.article .preview {
    font-size: 16px; /* 统一预览文字大小 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.fullscreen-article {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    color: #000;
    overflow-y: auto;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    font-family: 'Dancing Script', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 确保内容从顶部开始显示 */
}
.fullscreen-article h3 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}
.fullscreen-article div {
    width: 100%;
}
  .close-btn {
            position: fixed;
            top: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
  }


.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.pagination button:hover {
    background-color: #788bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .fullscreen-article, .close-btn {
        left: 5%;
        right: 5%;
    }
    .article {
        flex: 1 1 100%;
    }
}
