
/* 全局样式与基础布局 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #002f6c, #1e51a8);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}
p {
    font-size: 1.2rem;
    padding: 0 20px;
}
ul, ol {
    padding-left: 20px;
    margin: 1rem 0;
}
table {
    width: 90%;
    margin: 2rem auto;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
a {
    color: #ffcc00;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 主视觉区域设计 */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #002f6c, #0074d9);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
header h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-in-out;
}
header p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto;
}

/* 模块化内容区 */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to bottom, #1e51a8, #002f6c);
    position: relative;
}
.section:nth-child(even) {
    background: linear-gradient(to bottom, #0074d9, #1e51a8);
}
.section img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}
.element-animate {
    animation: fadeIn 1s ease-in-out;
}
.slide-animate {
    animation: slideIn 1s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    .section {
        padding: 10px;
    }
    table {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }
    p {
        font-size: 1rem;
    }
}

/* 特殊样式 */
pre code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    color: #ffcc00;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    overflow-x: auto;
}
blockquote {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-left: 5px solid #ffcc00;
    margin: 1rem 0;
}

