
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置背景渐变和字体 */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #0abde3;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: #f0f0f0;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: #0abde3;
}

.navbar-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #0abde3;
    transition: width 0.3s;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h3 {
    font-size: 1.5em;
    color: #0abde3;
}

/* 段落样式 */
p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn-highlight, .btn-hover {
    background-color: #0abde3;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-highlight:hover, .btn-hover:hover {
    background-color: #10ac84;
    transform: scale(1.05);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #0abde3;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* 加载动画样式 */
.loader {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #0abde3;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* 扫描光线动画 */
.scan-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #0abde3 50%, rgba(255,255,255,0) 100%);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { transform: translateX(-50%) translateY(-100%); }
    50% { transform: translateX(-50%) translateY(100%); }
    100% { transform: translateX(-50%) translateY(-100%); }
}

/* 仪表盘样式 */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chart {
    flex: 1 1 45%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0abde3, #10ac84);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .chart {
        flex: 1 1 100%;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

