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

/* 页面背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #333C4D);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* 渐变动画 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #0A1F44, #333C4D, #0A1F44, #333C4D);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 31, 68, 0.7);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFD700;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 200px;
    height: calc(100% - 80px);
    backdrop-filter: blur(10px);
    background-color: rgba(51, 60, 77, 0.7);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #FFD700;
}

/* 主内容区域 */
.main-content {
    margin-left: 220px;
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
}

/* 标题样式 */
.main-content h1, .main-content h2, .main-content h3 {
    color: #FFD700;
    margin-bottom: 20px;
}

.main-content h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.main-content h2 {
    font-size: 2em;
    margin-top: 40px;
}

.main-content h3 {
    font-size: 1.5em;
    margin-top: 30px;
}

/* 段落样式 */
.main-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #ffffff;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

/* 代码块样式 */
pre {
    background: rgba(51, 60, 77, 0.9);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #FFD700;
}

code {
    font-size: 0.95em;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 动画与交互 */
.button {
    background-color: #333C4D;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    font-size: 1em;
}

.button:hover {
    transform: scale(1.1);
    background-color: #555E73;
}

/* 链接样式 */
a.internal-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.internal-link:hover {
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 100px 30px 30px 30px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 180px;
    }
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 100px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px;
    }
    .main-content h1 {
        font-size: 2em;
    }
    .main-content h2 {
        font-size: 1.8em;
    }
    .main-content h3 {
        font-size: 1.3em;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 10px;
    }
    .main-content {
        padding: 100px 10px 10px 10px;
    }
    .main-content h1 {
        font-size: 1.8em;
    }
    .main-content h2 {
        font-size: 1.5em;
    }
    .main-content h3 {
        font-size: 1.1em;
    }
}

/* 提示文字样式 */
.reference-note {
    text-align: center;
    font-size: 1em;
    margin-top: 40px;
    color: #FFD700;
}

/* 数据可视化样式 */
.pie-chart, .line-chart, .bar-chart {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 20px auto;
    position: relative;
}

.pie-chart {
    background: conic-gradient(#FFD700 0%, #FFD700 50%, transparent 50%);
    border-radius: 50%;
}

.line-chart, .bar-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

/* 客服模块 */
.chat-module {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(51, 60, 77, 0.8);
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-module:hover {
    transform: scale(1.1);
}

.chat-module img {
    width: 30px;
    height: 30px;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* 加载屏幕动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F44, #333C4D);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: aurora-move 15s linear infinite;
    z-index: 2000;
}

.loading-screen .loader {
    width: 50px;
    height: 50px;
    border: 5px solid #FFD700;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 结尾样式 */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(10, 31, 68, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 40px;
    border-top: 1px solid #555E73;
}

