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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #002366, #9400D3);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #9400D3;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00AEFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s infinite alternate;
}

header p {
    font-size: 1.2rem;
    color: #FFFFFF;
}

/* 主内容样式 */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFD700;
    position: relative;
}

section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #FFD700;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

article h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00FF7F;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    margin-bottom: 20px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #00FFFF;
}

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

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

table th {
    background: #9400D3;
}

table td {
    background: rgba(255, 255, 255, 0.1);
}

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* 按钮样式 */
button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 174, 255, 0.8);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background: #00AEFF;
}

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

    section h2 {
        font-size: 2rem;
    }
}

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

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

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

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

    section h2 {
        font-size: 1.5rem;
    }

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

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

    section h2 {
        font-size: 1.2rem;
    }
}

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

    section h2 {
        font-size: 1rem;
    }

    article {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #00AEFF, 0 0 20px #9400D3;
    }
    to {
        text-shadow: 0 0 20px #00AEFF, 0 0 30px #9400D3;
    }
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* 链接样式 */
a {
    color: #00FFFF;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #00FFFF;
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
    width: 0;
}

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


