
/* 全局样式与基础设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #002f6c, #2a4b7c);
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    text-align: center;
}

p {
    font-size: 16px;
    text-align: justify;
    margin: 10px 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.module {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button {
    background: linear-gradient(90deg, #3ecf8e, #ff9d00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #ff9d00;
    font-size: 14px;
}

.chart {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bar {
    width: 20%;
    height: 0;
    background-color: #3ecf8e;
    transition: height 0.5s ease;
    border-radius: 5px;
}

.bar:nth-child(1) { height: 100px; }
.bar:nth-child(2) { height: 150px; }
.bar:nth-child(3) { height: 120px; }
.bar:nth-child(4) { height: 180px; }

/* 响应式设计 */
@media (max-width: 768px) {
    .module {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .chart {
        flex-direction: column;
    }

    .bar {
        width: 100%;
        margin-bottom: 10px;
    }
}

