
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #121212, #2c2c40);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
}
a {
    color: #00ff8f;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #00e676;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.section {
    margin-bottom: 40px;
}
.header {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    padding: 20px 0;
    text-align: center;
    position: relative;
}
.header h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
}
.header p {
    font-size: 1rem;
    margin: 10px 0 0;
}
.main-content {
    flex: 1;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background-color: #222222;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.code-block {
    background-color: #1e1e1e;
    color: #00ff8f;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}
button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background-color: #00ff8f;
    color: #000000;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .code-block {
        font-size: 0.8rem;
    }
}

