
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #ecf0f1;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}
a {
    text-decoration: none;
    color: #1abc9c;
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #3498db;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #ecf0f1;
    position: relative;
}
.header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}
.header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #bdc3c7;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.grid-item {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    position: relative;
}
.grid-item:hover {
    transform: scale(1.05);
}
.grid-item img {
    border-radius: 10px;
    margin-bottom: 10px;
}
.article {
    background: #2c3e50;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    color: #ecf0f1;
    font-size: 1rem;
    line-height: 1.8;
}
.article h2, .article h3 {
    color: #1abc9c;
    margin-top: 20px;
}
.article pre {
    background: #34495e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #ecf0f1;
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .header h1 {
        font-size: 2rem;
    }
    .article {
        padding: 20px;
    }
}
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 5s infinite;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

