
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0D47A1, #4FC3F7);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    color: #fff;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #f0f0f0;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

a {
    color: #00E5FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    color: #C8E6C9;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #C5CAE9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #90A4AE;
    text-align: left;
    color: #FFECB3;
}

th {
    background: rgba(0, 0, 0, 0.3);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.module {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(45deg, rgba(13, 71, 161, 0.8), rgba(245, 245, 245, 0.8));
    backdrop-filter: blur(10px);
    animation: aurora-move 20s linear infinite;
}

.module:nth-child(odd) {
    background: linear-gradient(45deg, rgba(13, 71, 161, 0.8), rgba(245, 245, 245, 0.8));
}

.module:nth-child(even) {
    background: linear-gradient(45deg, rgba(245, 245, 245, 0.8), rgba(13, 71, 161, 0.8));
}

.module-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.module-content img {
    flex: 1 1 300px;
    max-width: 320px;
    height: 320px;
    object-fit: cover;
}

.module-text {
    flex: 2 1 500px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ACC1;
    color: #fff;
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background: #00838F;
    transform: scale(1.05) rotate(2deg);
}

.transparent-layer {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 40px auto;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    color: #A5D6A7;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 30px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module-content {
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .module-content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .module-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    p, li, td {
        font-size: 14px;
    }
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
    .module-content img {
        max-width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .module-content {
        padding: 20px;
    }
    .module-text {
        padding: 0 10px;
    }
    pre, code {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    p, li, td {
        font-size: 12px;
    }
    .module-content img {
        max-width: 240px;
        height: 240px;
    }
}

