
/* 基础样式定义 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(to bottom, #1A1A40, #000000);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p, ul, ol {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

a {
    color: #FF9900;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #FFD700;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(120deg, #1A1A40, #000000);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF9900;
    padding: 15px 20px;
    display: inline-block;
}

.tab-container {
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
}

.tabs {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(90deg, #1A1A40, #000000);
    border-radius: 10px;
    margin-bottom: 20px;
}

.tab-item {
    padding: 15px 30px;
    cursor: pointer;
    background-color: transparent;
    color: #f3f3f3;
    border: 1px solid #FF9900;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.tab-item.active {
    background-color: #FF9900;
    color: #1A1A40;
}

.tab-content {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2), transparent);
    padding: 20px;
    border-radius: 10px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

code {
    background: #1A1A40;
    color: #FF9900;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: #1A1A40;
    color: #FF9900;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(120deg, #1A1A40, #000000);
    color: #FF9900;
    margin-top: 40px;
}

