
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #002B5B, #000000);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Sans Bold', sans-serif;
    color: #FF9800;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 头部样式 */
header {
    background: radial-gradient(circle, rgba(0, 43, 91, 0.8), transparent);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.3), transparent);
    animation: aurora-move 15s linear infinite;
    transform: rotate(-45deg);
}

@keyframes aurora-move {
    from { transform: translateX(-50%) rotate(-45deg); }
    to { transform: translateX(50%) rotate(-45deg); }
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    z-index: 2;
    position: relative;
}

/* 选项卡布局 */
.tab-container {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    gap: 10px;
}

@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
    }
}

.tab-item {
    background: linear-gradient(135deg, #0D47A1, #1E88E5);
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.tab-item:hover {
    background: linear-gradient(135deg, #1E88E5, #4CAF50);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.tab-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tab-content {
    display: none;
    background: linear-gradient(135deg, #002B5B, #000000);
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

/* 图片与内容展示 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

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

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 文章样式 */
article {
    background: linear-gradient(135deg, #002B5B, #000000);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

article h2 {
    color: #FF9800;
    margin-top: 0;
}

article p {
    color: #FFFFFF;
    line-height: 1.8;
}

article pre {
    background: #000000;
    color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

article code {
    font-family: 'Courier New', monospace;
    color: #FF9800;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tab-item {
        padding: 10px 15px;
    }

    article pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 10px;
    }

    article pre {
        font-size: 0.8rem;
    }
}

