
/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #00ff99;
    text-shadow: 0 2px 4px rgba(0, 255, 153, 0.5);
}

p, li, td, th {
    font-size: 16px;
    line-height: 1.8;
    color: #d4d4d4;
}

a {
    color: #00ff99;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00ff99;
}

/* 页面头部设计 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 70, 0.8);
    box-shadow: 0 4px 10px rgba(0, 255, 153, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    font-size: 24px;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    padding: 10px 15px;
    border-radius: 5px;
}

nav ul li a:hover {
    background: #00ff99;
    color: #000046;
}

/* 模块化布局 */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #000046, #1c0046);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1cb5e0, #00ff99);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.2), transparent);
    transform: rotate(-45deg);
    animation: rotateBackground 10s infinite linear;
}

@keyframes rotateBackground {
    from {
        transform: rotate(-45deg);
    }
    to {
        transform: rotate(315deg);
    }
}

/* 图文展示区域 */
.article-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 70, 0.7);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 255, 153, 0.3);
}

.article-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.article-container pre {
    background: #000046;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    color: #00ff99;
    font-size: 14px;
    line-height: 1.5;
}

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-container th, .article-container td {
    padding: 10px;
    text-align: left;
    border: 1px solid #00ff99;
}

.article-container th {
    background: #00ff99;
    color: #000046;
}

/* 图片装饰与动效 */
.image-decorator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.image-decorator img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 255, 153, 0.3);
}

.image-decorator img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 153, 0.5);
}

/* 自适应布局 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .section {
        height: auto;
        padding: 40px 20px;
    }

    .article-container {
        padding: 10px;
    }

    .image-decorator img {
        width: 100px;
        height: 100px;
    }
}

