
/* 基本变量定义 */
:root {
    --primary-gradient: linear-gradient(135deg, #4568DC, #B06AB3, #30E8BF);
    --secondary-color: #FFFFFF;
    --background-color: #0F0C29;
    --text-color: #FFFFFF;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --font-family: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--primary-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    width: 100%;
    padding: 20px;
    background: rgba(15, 12, 41, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 15px;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: #30E8BF;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 100px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 12, 41, 0.6);
}

.section {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.section h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    text-align: center;
}

.section p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.section pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.section code {
    color: #00FFAA;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed);
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background: rgba(48, 232, 191, 0.8);
    color: var(--background-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed), background 0.3s ease;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s ease;
}

.button:hover {
    transform: scale(1.1);
    background: rgba(48, 232, 191, 1);
}

.button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

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

table th, table td {
    padding: 10px;
    border: 1px solid #ffffff33;
    text-align: left;
}

table th {
    background: rgba(255, 255, 255, 0.2);
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section {
        padding: 15px;
    }
}

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

    nav a {
        margin-left: 10px;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .image-gallery img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav {
        margin-top: 10px;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .image-gallery img {
        width: 120px;
        height: 120px;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    .image-gallery img {
        width: 100px;
        height: 100px;
    }

    header h1 {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.1rem;
    }

    .button {
        padding: 6px 12px;
    }
}

/* 动态极光背景动画 */
@keyframes auroraGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: auroraGradient 15s ease infinite;
}

