
/* 全局样式定义 */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #1a1a40, #2575fc);
    color: #f7931a;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: linear-gradient(to bottom, #1a1a40, #6a11cb);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

header a {
    color: #f7931a;
    text-decoration: none;
    margin: 15px 0;
    font-size: 24px;
}

main {
    margin-left: 100px;
    padding-top: 40px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2, h3, h4 {
    color: #f7931a;
    margin-top: 0;
}

h2 {
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

code, pre {
    background: #1a1a40;
    color: #f7931a;
    padding: 10px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    font-size: 0.9em;
}

button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #f7931a;
    color: #1a1a40;
    transform: scale(1.1);
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #6a11cb;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

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

@media (max-width: 768px) {
    header {
        width: 60px;
    }
    
    main {
        margin-left: 70px;
    }
    
    h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    header {
        display: none;
    }
    
    main {
        margin-left: 0;
    }
}

