
/* 全局样式与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #000033);
    color: white;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #00FFC7;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    font-weight: bold;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    position: relative;
}

li::before {
    content: '•';
    color: #00FFC7;
    font-size: 20px;
    position: absolute;
    left: -20px;
    top: 0;
}

a {
    color: #FF6F61;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF4D40;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.button {
    background-color: #FF6F61;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #FF4D40;
    transform: scale(1.05);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(135deg, #0098FF, #00FFC7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.chart-bar {
    width: 40px;
    height: 0;
    background-color: #00FFC7;
    transition: height 0.5s ease;
    margin: 10px auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
    }

    pre {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
}

