
/* 基础样式与布局 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #4c6ef5, #8e44ad);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.header {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.content-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    transition: transform 0.3s ease-in-out;
}
.content-box:hover {
    transform: translateY(-5px);
}
article {
    font-size: 1rem;
    line-height: 1.7;
    color: #fff;
    margin-top: 20px;
}
article h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #f9f9f9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
article h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #d4d4d4;
}
article p {
    margin-bottom: 20px;
    text-indent: 2em;
}
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    overflow: auto;
    margin: 20px 0;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .content-box {
        padding: 20px;
        font-size: 0.9rem;
    }
    article h2 {
        font-size: 1.6rem;
    }
    article h3 {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .header {
        font-size: 1.5rem;
    }
    .content-box {
        padding: 15px;
        font-size: 0.8rem;
    }
    article h2 {
        font-size: 1.4rem;
    }
    article h3 {
        font-size: 1.1rem;
    }
}
/* 动画与交互效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-in-out forwards;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.image-item:hover {
    transform: scale(1.05);
}
.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #ccc;
}

