
/* CSS代码块开始 */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e6f7ff, #f9f0ff);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
header h1 {
    font-size: 24px;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 2px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #4CAF50;
}
main {
    padding-top: 80px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}
section {
    margin-bottom: 40px;
}
h2, h3 {
    color: #4CAF50;
    margin-bottom: 20px;
}
p {
    margin-bottom: 15px;
}
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    margin-bottom: 40px;
}
footer {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .parallax {
        height: 200px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* CSS代码块结束 */

