
/* 全局样式与基础布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #007BFF, #333333);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    animation: headerGlow 8s infinite alternate;
}
@keyframes headerGlow {
    from { left: -50%; }
    to { left: 150%; }
}
.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
    width: 100%;
}
.section {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}
.section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333333;
}
.section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.image-grid img:hover {
    transform: scale(1.05);
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}
.button:hover {
    background-color: #0056b3;
}
.footer {
    text-align: center;
    padding: 20px;
    background: #333333;
    color: #FFFFFF;
    margin-top: 40px;
}
.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .main-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 20px;
    }
}
/* 示例文章样式 */
.article-section {
    margin-top: 40px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.article-section h2 {
    font-size: 2rem;
    color: #333333;
    margin-bottom: 20px;
}
.article-section h3 {
    font-size: 1.5rem;
    color: #007BFF;
    margin-top: 30px;
    margin-bottom: 15px;
}
.article-section pre {
    background: #333333;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}

