
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A1A37, #2C3E50);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    transition: background 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #34C759;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #28A745;
}

code, pre {
    font-family: 'Courier New', monospace;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    display: inline-block;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 1rem 0;
    padding: 1rem;
    max-width: 100%;
    overflow-x: auto;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #2C3E50, #1A1A37);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #34C759;
}

.navbar .menu {
    display: flex;
    gap: 1rem;
}

.navbar .menu a {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.navbar .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 主内容区域 */
.main {
    margin-top: 6rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.section {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

.section h2 {
    color: #34C759;
    margin-bottom: 1rem;
}

/* 示例数据展示 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-item {
    background: linear-gradient(135deg, #2C3E50, #1A1A37);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.data-item:hover {
    transform: scale(1.05);
}

.data-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

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

.background-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #1A1A37, #2C3E50, #1A1A37);
    background-size: 300% 300%;
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* 暗模式切换 */
body.dark-mode {
    background: linear-gradient(135deg, #121212, #1A1A37);
}

body.dark-mode .section, body.dark-mode .data-item {
    background: linear-gradient(135deg, #121212, #1A1A37);
}

body.dark-mode .navbar {
    background: linear-gradient(90deg, #121212, #1A1A37);
}

