
/* 全局样式 */
:root {
    --primary-color: #007BFF; /* 主色调 - 蓝色 */
    --secondary-color: #6F42C1; /* 辅助色 - 紫色 */
    --accent-color: #FF69B4; /* 强调色 - 粉色 */
    --background-gradient: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background: var(--background-gradient);
    color: #333;
    padding: 20px;
    animation: aurora-move 15s linear infinite;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-section, .data-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-section h2, .data-section h2 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-section pre, .data-section pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code, .data-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-gallery img {
    width: calc(33.333% - 10px);
    border-radius: 5px;
}

.notice {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 30px 0;
}

footer {
    text-align: center;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .image-gallery img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .image-gallery img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

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

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

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

/* 按钮样式 */
.button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--secondary-color);
    color: white;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 滚动动画 */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

