
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #2575fc;
    margin-bottom: 1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #4a4a4a;
}
.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.main-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    transition: transform 0.3s ease-in-out;
}
.main-section:hover {
    transform: translateY(-5px);
}
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.img-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
}
.img-thumbnail:hover {
    transform: scale(1.1);
}
.gradient-bg {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}
.button {
    padding: 10px 20px;
    background-color: #ff9f43;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.button:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}
.code-block {
    background: #2d2d2d;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-bottom: 20px;
}
.list-item {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}
.footer {
    background: #2575fc;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    h1, h2, h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 0.9rem;
    }
    .code-block {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .header {
        font-size: 1.2rem;
    }
    .main-section {
        padding: 15px;
    }
    .sidebar {
        padding: 10px;
    }
}

