
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #000046, #1CB5E0);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Bold', sans-serif;
    color: #BCC6CC;
}
a {
    color: #1CB5E0;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0F4C81;
}

/* 头部设计 */
header {
    position: relative;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.5), transparent),
                linear-gradient(135deg, #000046, #1CB5E0);
    overflow: hidden;
}
header .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}
header .title h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
header .title p {
    font-size: 1.2rem;
    margin: 10px 0 0;
    color: #BCC6CC;
}

/* 背景动画 */
@keyframes aurora-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #0F4C81, #BCC6CC, #1CB5E0, #000046);
    animation: aurora-move 15s linear infinite;
    transform-origin: 50% 50%;
    opacity: 0.3;
}

/* 选项卡布局 */
.tabs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #000046, #0F4C81);
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tab-item {
    padding: 10px 20px;
    background-color: #0F4C81;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.tab-item:hover {
    background-color: #BCC6CC;
    color: #0F4C81;
    transform: scale(1.1);
}
.tab-item.active {
    background-color: #1CB5E0;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 内容区样式 */
.tab-content {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, #0F4C81, #BCC6CC);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}
.tab-content.active {
    display: block;
}
.tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 文章排版 */
article {
    padding: 20px;
    background: linear-gradient(135deg, #000046, #0F4C81);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    color: #BCC6CC;
}
article h2, article h3 {
    color: #1CB5E0;
}
article code {
    display: block;
    background: #000046;
    color: #1CB5E0;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
article th, article td {
    border: 1px solid #BCC6CC;
    padding: 10px;
    text-align: left;
}
article th {
    background-color: #0F4C81;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .title h1 {
        font-size: 2rem;
    }
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    article h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    header .title h1 {
        font-size: 1.5rem;
    }
    .tab-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

