
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0A192F, #1E1F28);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #FF6B35;
    margin: 20px 0 10px 0;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

pre {
    background: #1E1F28;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: #FF6B35;
}

a {
    color: #FF6B35;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 导航栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #0A192F;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar h2 {
    color: #FFFFFF;
    font-size: 1.5em;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    color: #FFFFFF;
    font-size: 1em;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #FF6B35;
}

/* 主内容区域 */
.main-content {
    margin-left: 240px;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(10, 25, 47, 0.85);
    min-height: 100vh;
}

.main-content h2 {
    font-size: 2em;
}

.main-content h3 {
    font-size: 1.5em;
}

.main-content h4 {
    font-size: 1.2em;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.main-content table, .main-content th, .main-content td {
    border: 1px solid #FF6B35;
}

.main-content th, .main-content td {
    padding: 10px;
    text-align: left;
}

.main-content th {
    background-color: #FF6B35;
    color: #0A192F;
}

.line-chart {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0A192F;
    border-radius: 10px;
    margin-bottom: 20px;
}

.line-chart .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #FF6B35;
    animation: draw-line 2s linear forwards;
}

@keyframes draw-line {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 按钮样式 */
.button {
    background-color: #FF6B35;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
    border-radius: 5px;
}

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

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 220px;
        padding: 30px;
    }
}

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

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

@media (max-width: 768px) {
    .sidebar {
        width: 140px;
    }
    .main-content {
        margin-left: 160px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        bottom: 0;
        left: 0;
        flex-direction: row;
        background-color: #0A192F;
    }
    .sidebar ul {
        display: flex;
        justify-content: space-around;
    }
    .main-content {
        margin-left: 0;
        margin-bottom: 60px;
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .sidebar ul li a {
        font-size: 0.8em;
    }
    .main-content h2 {
        font-size: 1.5em;
    }
    .main-content h3 {
        font-size: 1.2em;
    }
    .main-content p {
        font-size: 0.9em;
    }
}

/* 动画与特效 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

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

th, td {
    padding: 12px 15px;
    border: 1px solid #FF6B35;
    text-align: left;
}

th {
    background-color: #FF6B35;
    color: #0A192F;
}

/* 代码示例样式 */
pre {
    background-color: #1E1F28;
    border-left: 5px solid #FF6B35;
    padding: 10px 15px;
    overflow-x: auto;
    border-radius: 4px;
}

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

/* 信息提示 */
.info-banner {
    background: rgba(255, 107, 53, 0.8);
    color: #0A192F;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

