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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ffd6e7 0%, #ffebf3 50%, #e6f2ff 100%);
    color: #5a4a6a;
    line-height: 1.6;
    padding: 0 15px;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 飘落樱花效果 */
.sakura {
    position: absolute;
    top: -50px;
    width: 15px;
    height: 15px;
    background: #ffb6c1;
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear forwards;
    z-index: 0;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 闪烁星星效果 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

header {
    text-align: center;
    padding: 20px 0 15px;
    position: relative;
    z-index: 1;
}

h1 {
    color: #ff6b93;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #ffd1dc, 4px 4px 0px rgba(255, 182, 193, 0.3);
    position: relative;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1px;
}

h1:before, h1:after {
    content: '✦';
    color: #ff9eb5;
    margin: 0 10px;
    font-size: 24px;
}

.description {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 147, 0.15);
    border: 2px solid #ffd1dc;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.description:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff9eb5, #ffd1dc, #a2d2ff, #bde0fe);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
}

.main-description {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b93;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sub-description {
    color: #8a6fa3;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    background: rgba(255, 240, 245, 0.7);
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #ffc0cb;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0 25px;
    position: relative;
    z-index: 1;
}

.btn-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    border: 2px solid transparent;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn:hover:after {
    opacity: 1;
}

.btn-qq {
    background: linear-gradient(135deg, #ff9eb5, #ff6b93);
    color: white;
    border-color: #ffd1dc;
}

.btn-free {
    background: linear-gradient(135deg, #a2d2ff, #6a9eff);
    color: white;
    border-color: #bde0fe;
}

.btn-resource {
    background: linear-gradient(135deg, #cdb4db, #a882c1);
    color: white;
    border-color: #e0c3f7;
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn i {
    font-size: 20px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-tip {
    font-size: 11px;
    font-weight: normal;
    margin-top: 6px;
    opacity: 0.9;
    text-align: center;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 10px;
    color: #8a6fa3;
    width: 100%;
}

/* 修改轮播图容器尺寸为720*1056比例 */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 0 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    height: 0;
    padding-bottom: 146.67%; /* 1056/720 * 100% 保持比例 */
    border: 3px solid #ffd1dc;
    z-index: 1;
    touch-action: pan-y pinch-zoom; /* 允许垂直滚动和缩放 */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.carousel a {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    text-decoration: none;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.02);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffd1dc;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: #ff6b93;
    transform: scale(1.3);
    border-color: #ff9eb5;
}

footer {
    text-align: center;
    color: #a2a2d0;
    font-size: 12px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px dashed #ffd1dc;
    position: relative;
    z-index: 1;
}

.heart {
    color: #ff6b93;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 浮动小动物装饰 */
.floating-cat, .floating-bunny {
    position: absolute;
    font-size: 24px;
    z-index: 0;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.floating-cat {
    top: 10%;
    left: 5%;
}

.floating-bunny {
    bottom: 15%;
    right: 5%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    .btn {
        min-height: 75px;
        font-size: 13px;
    }
    
    .carousel-container {
        padding-bottom: 146.67%; /* 保持比例不变 */
    }
}