
/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #6A0DAD, #FF7F50);
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    font-family: 'Merriweather', serif;
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
}
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFA500;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover, linear-gradient(135deg, #6A0DAD, #FF7F50);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-title {
    font-size: 3rem;
    z-index: 2;
}
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.code-block {
    background: #282c34;
    color: #61dafb;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
}

