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

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0d1b2a, #162447);
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: #8a2be2;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

p, li, code {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #cfd8dc;
}

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

a:hover {
    color: #8a2be2;
}

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

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

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

code {
    color: #ffeb3b;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #32cd32;
    color: #000;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.8);
    background: #8a2be2;
    color: #fff;
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.highlight-purple {
    color: #8a2be2;
}

.highlight-green {
    color: #32cd32;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

