body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #f5f5f5, #e0e0e0, #f0f0f0, #f5f5f5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container {
    max-width: 100%;
    width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.main-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
}
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}
.btn:hover {
    background: #5a7df4;
    transform: translateY(-2px);
}
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    color: #666;
}

.horizontal-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.horizontal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.horizontal-links a:hover {
    color: #3498db;
}

/* 轮播样式 - 针对百度SEO优化 */
.image-slider {
    width: 100%;
    max-width: 400px; /* 百度推荐尺寸 */
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-slider {
    height: 250px; /* 固定高度 */
}

.image-slider img {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.5s ease;
    object-fit: cover; /* 填充容器并裁剪 */
    object-position: center; /* 居中显示 */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .image-slider {
        flex: 0 0 40%;
        margin-bottom: 0;
    }
    
    .main-content {
        flex: 1;
    }
}
