
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
    color: #d1d1d1;
    line-height: 1.6;
}

/* 主标题与页面头部 */
header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
header h1 {
    font-size: 48px;
    font-weight: bold;
    color: #4a90e2;
    text-shadow: 0 0 10px #4a90e2;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
header h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px #4a90e2;
}

/* 动态线条动画 */
.line {
    width: 100%;
    height: 2px;
    background: #4a90e2;
    position: absolute;
    top: 50%;
    animation: moveLine 5s infinite linear;
}
@keyframes moveLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-shadow: 0 0 5px #ffffff;
}

/* 图片装饰与布局 */
.image-decor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}
.image-decor img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.image-decor img:hover {
    transform: scale(1.1);
}

/* 按钮样式与交互 */
button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #2c5364;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }
    .parallax {
        height: 50vh;
    }
    .image-decor {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, table td {
    border: 1px solid #4a90e2;
    padding: 10px;
    text-align: left;
    color: #ffffff;
}
table th {
    background-color: #2C5364;
}

/* 文章样式 */
article {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
article h2, article h3 {
    color: #4a90e2;
}
article pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

