
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #001f3f;
    text-align: center;
}
p, li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}
a {
    color: #0074D9;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
}
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}
.header {
    background: linear-gradient(135deg, #001f3f, #0074D9);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-45deg);
    animation: slide 10s infinite linear;
}
@keyframes slide {
    0% { transform: translateX(-50%) rotate(-45deg); }
    100% { transform: translateX(50%) rotate(-45deg); }
}
.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}
.section {
    padding: 60px 0;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.section:nth-child(even) {
    background-color: #f4f4f4;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #001f3f;
}
.grid {
    display: grid;
    gap: 20px;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.code-block {
    background-color: #001f3f;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
}
.article-container {
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.article-container h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #001f3f;
}
.article-container p {
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .article-container {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .header {
        padding: 30px 10px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .header p {
        font-size: 1rem;
    }
    .card {
        padding: 15px;
    }
}

