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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0D47A1, #64B5F6);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    animation: background-animation 15s linear infinite;
}

/* 背景动画 */
@keyframes background-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(13, 71, 161, 0.8);
    border-radius: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(#FFFFFF, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    color: #e0e0e0;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.article-section h2, .article-section h3 {
    color: #ffffff;
}

.article-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.article-section h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section p {
    font-size: 1rem;
    color: #dddddd;
    margin-bottom: 10px;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Source Code Pro', monospace;
    color: #a5d6a7;
}

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

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.note {
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-left: 5px solid #64B5F6;
    border-radius: 5px;
    font-size: 1rem;
    color: #ffffff;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #b0bec5;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(100, 181, 246, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.05);
    background-color: #42a5f5;
}

/* 动态粒子效果 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.7; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    header h1 {
        font-size: 2rem;
    }
    .article-section h2 {
        font-size: 1.8rem;
    }
    .article-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .article-section pre {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    .article-section h2 {
        font-size: 1.5rem;
    }
    .article-section h3 {
        font-size: 1rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

