
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #4caf50;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

code, pre {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    color: #4caf50;
    font-size: 0.9rem;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

button {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

.section {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tab-container {
    width: 100%;
    margin: 0 auto;
}

.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #4caf50;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.3s ease;
}

.tab-item.active {
    background-color: #4caf50;
    color: #ffffff;
    border-bottom: 2px solid #4caf50;
}

.tab-content .tab-pane {
    display: none;
    padding: 20px;
}

.tab-content .tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    p {
        font-size: 0.9rem;
    }
    .tabs {
        flex-direction: column;
    }
    .tab-item {
        border: 1px solid #cccccc;
        border-bottom: none;
    }
}

