
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background: linear-gradient(135deg, #002f6c, #4d79ff);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    width: 100%;
    background: rgba(0, 47, 108, 0.9);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #00ff7f;
}

/* 主要容器 */
.container {
    display: flex;
    flex: 1;
    margin-top: 70px;
    padding: 20px;
    background: radial-gradient(circle, rgba(255,87,34,0.1), transparent);
    animation: aurora-move 15s linear infinite;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.left-panel {
    background: rgba(0, 47, 108, 0.8);
    color: #ffffff;
}

.right-panel {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.left-panel h1, .left-panel h2, .left-panel h3, .left-panel h4 {
    color: #00ff7f;
}

.left-panel a {
    color: #00ff7f;
    text-decoration: none;
}

.left-panel a:hover {
    text-decoration: underline;
}

.right-panel img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.right-panel img:hover {
    transform: scale(1.05);
}

/* 示例展示 */
.sample-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    color: #ffffff;
}

.sample-display h2, .sample-display h3, .sample-display h4 {
    color: #ffcc00;
}

.sample-display pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.sample-display code {
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
}

/* 表格样式 */
.sample-display table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sample-display table, .sample-display th, .sample-display td {
    border: 1px solid #ffffff;
}

.sample-display th, .sample-display td {
    padding: 10px;
    text-align: left;
}

.sample-display th {
    background: #004080;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ff7f;
    color: #002f6c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.button:hover {
    transform: scale(1.1);
    background: #00e07f;
}

/* 动画 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(255,87,34,0.1), transparent); }
    50% { background: radial-gradient(circle, rgba(77,121,255,0.1), transparent); }
    100% { background: radial-gradient(circle, rgba(255,87,34,0.1), transparent); }
}

@keyframes loadChart {
    from { width: 0; }
    to { width: 100%; }
}

/* 数据可视化 */
.chart-bar {
    background-color: #4d79ff;
    height: 20px;
    margin-bottom: 10px;
    animation: loadChart 2s ease forwards;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        padding: 10px 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: row;
    }
}

@media (max-width: 1024px) {
    .navbar ul li {
        margin-left: 15px;
    }
}

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

@media (max-width: 480px) {
    .navbar a {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .navbar ul li {
        margin: 10px 0;
    }
}

/* 图标与按钮 */
.icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-right: 8px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ff7f;
    color: #002f6c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.button:hover {
    transform: scale(1.1);
    background: #00e07f;
}

/* 底部 */
.footer {
    background: rgba(0, 47, 108, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 15px 30px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer a {
    color: #00ff7f;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 20px 0;
    font-size: 14px;
}

/* 图片轮播 */
.slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.slider img {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

/* 拖拽调整分屏 */
.resizer {
    width: 10px;
    cursor: col-resize;
    background: #00ff7f;
}

@media (max-width: 768px) {
    .resizer {
        display: none;
    }
}

