
/* 基础样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f, #004aad);
    color: #ffffff;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(0,73,171,1) 0%, rgba(52,199,89,1) 100%);
    border-bottom: 2px solid #34c759;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 73, 171, 0.8);
    padding: 15px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #34c759;
}

/* 主内容区域 */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #34c759;
}

article h3, article h4 {
    color: #34c759;
}

article pre {
    background: rgba(0, 73, 171, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 73, 171, 0.8);
    color: #ffffff;
}

.footer-note {
    font-size: 0.9em;
}

/* 按钮样式 */
.button {
    background-color: #34c759;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background-color: #28a745;
}

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

    nav a {
        margin: 0 10px;
    }
}

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

    article {
        padding: 20px;
    }
}

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

    nav a {
        margin: 10px 0;
    }
}

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

    article h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 0.9em;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

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

    nav a {
        margin: 5px 0;
    }
}

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

body {
    background: radial-gradient(circle, rgb(0, 31, 63), transparent);
    animation: aurora-move 15s linear infinite;
}

