* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa, #e4efe9);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1600px;
    width: 100%;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #3a0ca3, #4361ee, #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #446e7c;
    background: #f8fbfd;
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    margin-left: 0px;
    margin-top: 15px;
}

.description {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #34495e;
    text-align: center;
}

/* 水平滚动容器 */
.horizontal-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch; /* 优化移动端滚动 */
}

/* 隐藏滚动条（可选） */
.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.cards-container {
    display: flex;
    flex-wrap: nowrap; /* 关键：禁止换行 */
    gap: 30px;
    padding: 10px 0;
}

.card {
    flex: 0 0 auto; /* 禁止伸缩 */
    width: 320px;
    height: 270px;
    background: white;
    border-radius: 30px;
    box-shadow: 15px 15px 30px rgba(190, 190, 190, 0.2),
                -15px -15px 30px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

.img {
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-content {
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* 卡片颜色变化 */
.card:nth-child(1) .img { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.card:nth-child(2) .img { background: linear-gradient(135deg, #6A82FB, #FC5C7D); }
.card:nth-child(3) .img { background: linear-gradient(135deg, #42E695, #3BB2B8); }
.card:nth-child(4) .img { background: linear-gradient(135deg, #FFD26F, #3677FF); }
.card:nth-child(5) .img { background: linear-gradient(135deg, #C2E59C, #64B3F4); }

/* 滚动提示 */
.scroll-hint {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    opacity: 0.7;
}

/* 导航控制（可选） */
.navigation {
    display: flex;
    justify-content: right;
    gap: 20px;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.nav-btn {
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #3a0ca3;
    transform: scale(1.1);
}

/* 媒体查询 */
@media (max-width: 768px) {
    .card {
        width: 280px;
    }
    
    .scroll-hint {
        display: block;
    }
}

@media (min-width: 1200px) {
    .scroll-hint {
        display: none;
    }
}