
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1c1c1c);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px 0;
}
.header {
    grid-column: span 12;
    text-align: center;
    margin-bottom: 40px;
}
.header h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #1E90FF, #00FF7F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}
.section {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card {
    background: linear-gradient(135deg, #1E90FF, #00FF7F);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.1);
}
.code-block {
    background: #222;
    color: #00FF7F;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.button {
    background: linear-gradient(90deg, #1E90FF, #00FF7F);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.button:hover {
    background: #00FF7F;
}
.button:active {
    transform: scale(0.95);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(8, 1fr);
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .section {
        grid-column: span 8;
    }
}
@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    .header h1 {
        font-size: 2rem;
    }
    .section {
        grid-column: span 4;
    }
    .code-block {
        font-size: 0.8rem;
    }
}

