
/* 页面全局样式与基础布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #dcdde1;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 1rem;
    color: #ecf0f1;
    line-height: 1.8;
}
a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #ff9f43;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
/* 响应式网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}
.grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
/* 按钮与交互设计 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.button:hover {
    background: linear-gradient(90deg, #feb47b, #ff7e5f);
    transform: scale(1.05);
}
/* 标题与提示文字 */
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 2.5rem;
    margin: 0;
}
.header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #bdc3c7;
}
/* 文章样式 */
.article-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}
.article-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.article-section pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #ecf0f1;
    font-size: 0.9rem;
}
/* 动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.window-in-view .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}
/* 图片样式 */
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.image-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.image-container img:hover {
    transform: scale(1.1);
}
/* 响应式媒体查询 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .image-container img {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .grid-item {
        padding: 15px;
    }
    .article-section {
        padding: 20px;
    }
}

