
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面整体背景与字体 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #dcdcdc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #1cb5e0, #000046);
    color: #ffffff;
}

header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

header p {
    font-size: 18px;
    color: #dcdcdc;
}

/* 导航菜单 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #1cb5e0;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover {
    color: #1cb5e0;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

section p {
    font-size: 16px;
    color: #dcdcdc;
    margin-bottom: 20px;
    text-align: justify;
}

section pre {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 按钮样式 */
button {
    background-color: #1cb5e0;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 10px 0;
}

button:hover {
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
    background: linear-gradient(45deg, #1cb5e0, #00ffcc);
}

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

.image-gallery img {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
}

/* 信息卡片 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(28, 181, 224, 0.5);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #dcdcdc;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }

    nav a {
        font-size: 15px;
    }

    main {
        padding: 30px 0;
    }

    section h2 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .image-gallery img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 36px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    section h2 {
        font-size: 28px;
    }
}

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

    nav a {
        font-size: 14px;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-gallery img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    nav a {
        font-size: 13px;
    }

    section h2 {
        font-size: 24px;
    }

    .image-gallery img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 20px;
    }

    nav a {
        font-size: 12px;
    }

    section h2 {
        font-size: 20px;
    }

    .image-gallery img {
        width: 140px;
        height: 140px;
    }
}

/* 动态粒子效果 */
.particles-js-canvas-el {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 信息提示 */
.reference-note {
    text-align: center;
    font-size: 14px;
    color: #ffcc00;
    margin-top: 30px;
}

