
/* 全局样式定义 */
:root {
    --primary-dark: #0d0d0d;
    --secondary-dark: #1e1e1e;
    --accent-electric-blue: #00bfff;
    --accent-neon-green: #39ff14;
    --accent-purple: #8a2be2;
    --text-light: #f0f0f0;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-electric-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-neon-green);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-purple);
}

/* 布局容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-electric-blue);
}

.header nav a {
    margin-left: 20px;
    color: var(--text-light);
    font-size: 1rem;
    transition: color var(--transition-speed);
}

.header nav a:hover {
    color: var(--accent-neon-green);
}

/* 卡片设计 */
.card {
    background: var(--secondary-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

code {
    font-family: 'Consolas', monospace;
    color: var(--accent-neon-green);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 4px;
}

/* 按钮样式 */
button {
    background: var(--accent-electric-blue);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-speed);
}

button:hover {
    background: var(--accent-purple);
}

/* 示例数据展示区域 */
.data-section {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
    padding: 40px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.data-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

.data-section li {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header nav a {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 0.9rem;
    }

    .card {
        padding: 15px;
    }
}

