
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #001f3f, #000000);
    color: #FFFFFF;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 40px 0;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #FFA500;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    grid-column: span 12;
    font-size: 2.5em;
}

h3 {
    grid-column: span 12;
    font-size: 1.8em;
    color: #32CD32;
}

h4 {
    font-size: 1.5em;
    color: #1E90FF;
}

/* 段落样式 */
p {
    grid-column: span 12;
    font-size: 1em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    grid-column: span 12;
    background: #2C2C2C;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* 表格样式 */
table {
    grid-column: span 12;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #FFA500;
    padding: 10px;
    text-align: left;
}

th {
    background: #1E90FF;
}

td {
    background: #2C2C2C;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    grid-column: span 3;
}

/* 按钮样式 */
button {
    background-color: #FFA500;
    border: none;
    padding: 15px 30px;
    color: #FFFFFF;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 165, 0, 0.4);
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9);
    padding: 20px 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFA500;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1200px) {
    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(8, 1fr);
    }

    img {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
        padding: 20px 0;
    }

    img {
        grid-column: span 6;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .container {
        grid-template-columns: repeat(4, 1fr);
    }

    img {
        grid-column: span 4;
    }
}

@media (max-width: 320px) {
    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* 交互动画 */
.module:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 提示信息 */
.notice {
    grid-column: span 12;
    text-align: center;
    font-size: 1.2em;
    color: #FFD700;
    margin-bottom: 30px;
}

