
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A237E, #4C6EF5);
    color: #EAEAEA;
    line-height: 1.6;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #4C6EF5, #BA68C8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
pre {
    background: #1A237E;
    color: #4C6EF5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}
button {
    background: linear-gradient(90deg, #4C6EF5, #BA68C8);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
button:hover {
    animation: bounce 0.3s ease-in-out;
}
@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}
.section.active {
    opacity: 1;
    transform: translateY(0);
}
.chart-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #4C6EF5;
    position: relative;
    margin: 20px auto;
}
.chart-circle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #1A237E;
    animation: fill 2s linear infinite;
}
@keyframes fill {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
    pre {
        font-size: 0.9rem;
    }
}

