
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #0F2048, #655DBB);
    color: #FFFFFF;
    overflow-x: hidden;
    animation: background-flow 15s infinite alternate;
}
@keyframes background-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin: 20px 0;
}
p {
    line-height: 1.8;
    margin-bottom: 15px;
}
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #FFC300;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}
.header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
    z-index: -1;
    opacity: 0.5;
    animation: glow-effect 5s infinite alternate;
}
@keyframes glow-effect {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* 导航选项卡 */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.nav-tab {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.nav-tab.active {
    background: #FFD700;
    color: #0F2048;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5);
}
.nav-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* 内容区域 */
.content-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.content-section:hover {
    transform: translateY(-5px);
}

/* 图片展示 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.image-item {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.image-item:hover {
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}
code {
    color: #FFD700;
}

/* 动画效果 */
.data-flow {
    position: relative;
    overflow: hidden;
    padding: 10px;
}
.data-flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    animation: data-flow-animation 3s infinite;
}
@keyframes data-flow-animation {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    .content-section {
        padding: 15px;
    }
    pre {
        font-size: 12px;
    }
}

