/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 30%, #90EE90 70%, #228B22 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 森林背景样式 */
.forest-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 树木样式 */
.tree {
    position: absolute;
    opacity: 0.7;
    animation: treeSway 4s ease-in-out infinite;
}

.tree-1 {
    bottom: 0;
    left: 10%;
    width: 80px;
    height: 120px;
    animation-delay: 0s;
}

.tree-2 {
    bottom: 0;
    right: 15%;
    width: 100px;
    height: 140px;
    animation-delay: 1s;
}

.tree-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 130px;
    animation-delay: 2s;
}

@keyframes treeSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* 云朵样式 */
.cloud {
    position: absolute;
    opacity: 0;
    animation: cloudFloat 20s linear infinite;
}

.cloud-1 {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    animation-duration: 25s;
    animation-name: cloudFloat1;
}

.cloud-2 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    animation-duration: 30s;
    animation-delay: 5s;
    animation-name: cloudFloat2;
}

.cloud-3 {
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    animation-duration: 35s;
    animation-delay: 10s;
    animation-name: cloudFloat3;
}

.cloud-4 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    animation-duration: 28s;
    animation-delay: 15s;
    animation-name: cloudFloat4;
}

.cloud-5 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    animation-duration: 22s;
    animation-delay: 8s;
    animation-name: cloudFloat5;
}

@keyframes cloudFloat1 {
    0% { 
        transform: translateX(-50%) translateY(0px); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.8; 
    }
    25% { 
        transform: translateX(calc(-50% + 25vw)) translateY(-5px); 
    }
    50% { 
        transform: translateX(calc(-50% + 50vw)) translateY(3px); 
    }
    75% { 
        transform: translateX(calc(-50% + 75vw)) translateY(-2px); 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(calc(-50% + 100vw + 50px)) translateY(0px); 
        opacity: 0; 
    }
}

@keyframes cloudFloat2 {
    0% { 
        transform: translateX(-50%) translateY(0px); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.8; 
    }
    20% { 
        transform: translateX(calc(-50% + 20vw)) translateY(4px); 
    }
    40% { 
        transform: translateX(calc(-50% + 40vw)) translateY(-3px); 
    }
    60% { 
        transform: translateX(calc(-50% + 60vw)) translateY(6px); 
    }
    80% { 
        transform: translateX(calc(-50% + 80vw)) translateY(-1px); 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(calc(-50% + 100vw + 50px)) translateY(0px); 
        opacity: 0; 
    }
}

@keyframes cloudFloat3 {
    0% { 
        transform: translateX(-50%) translateY(0px); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.8; 
    }
    30% { 
        transform: translateX(calc(-50% + 30vw)) translateY(-4px); 
    }
    60% { 
        transform: translateX(calc(-50% + 60vw)) translateY(2px); 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(calc(-50% + 100vw + 50px)) translateY(0px); 
        opacity: 0; 
    }
}

@keyframes cloudFloat4 {
    0% { 
        transform: translateX(-50%) translateY(0px); 
        opacity: 0; 
    }
    15% { 
        opacity: 0.6; 
    }
    25% { 
        transform: translateX(calc(-50% + 25vw)) translateY(6px); 
    }
    45% { 
        transform: translateX(calc(-50% + 45vw)) translateY(-8px); 
    }
    65% { 
        transform: translateX(calc(-50% + 65vw)) translateY(4px); 
    }
    85% { 
        transform: translateX(calc(-50% + 85vw)) translateY(-3px); 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateX(calc(-50% + 100vw + 50px)) translateY(0px); 
        opacity: 0; 
    }
}

@keyframes cloudFloat5 {
    0% { 
        transform: translateX(-50%) translateY(0px); 
        opacity: 0; 
    }
    12% { 
        opacity: 0.4; 
    }
    35% { 
        transform: translateX(calc(-50% + 35vw)) translateY(-6px); 
    }
    70% { 
        transform: translateX(calc(-50% + 70vw)) translateY(3px); 
    }
    88% { 
        opacity: 0.4; 
    }
    100% { 
        transform: translateX(calc(-50% + 100vw + 50px)) translateY(0px); 
        opacity: 0; 
    }
}

/* 小鸟样式 */
.bird {
    position: absolute;
    opacity: 0.6;
    animation: birdFly 15s linear infinite;
}

.bird-1 {
    top: 5%;
    left: -50px;
    width: 40px;
    height: 20px;
    animation-duration: 8s;
    animation-name: birdFly1;
}

.bird-2 {
    top: 8%;
    left: -50px;
    width: 35px;
    height: 18px;
    animation-duration: 10s;
    animation-delay: 2s;
    animation-name: birdFly2;
}

.bird-3 {
    top: 12%;
    left: -50px;
    width: 30px;
    height: 15px;
    animation-duration: 7s;
    animation-delay: 4s;
    animation-name: birdFly3;
}

.bird-4 {
    top: 15%;
    left: -50px;
    width: 38px;
    height: 19px;
    animation-duration: 9s;
    animation-delay: 1s;
    animation-name: birdFly4;
}

.bird-5 {
    top: 18%;
    left: -50px;
    width: 32px;
    height: 16px;
    animation-duration: 6s;
    animation-delay: 3s;
    animation-name: birdFly5;
}

.bird-6 {
    top: 22%;
    left: -50px;
    width: 36px;
    height: 18px;
    animation-duration: 11s;
    animation-delay: 5s;
    animation-name: birdFly6;
}

@keyframes birdFly1 {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(25vw) translateY(-15px); }
    50% { transform: translateX(50vw) translateY(10px); }
    75% { transform: translateX(75vw) translateY(-8px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

@keyframes birdFly2 {
    0% { transform: translateX(0px) translateY(0px); }
    20% { transform: translateX(20vw) translateY(12px); }
    40% { transform: translateX(40vw) translateY(-8px); }
    60% { transform: translateX(60vw) translateY(15px); }
    80% { transform: translateX(80vw) translateY(-5px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

@keyframes birdFly3 {
    0% { transform: translateX(0px) translateY(0px); }
    30% { transform: translateX(30vw) translateY(-20px); }
    60% { transform: translateX(60vw) translateY(5px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

@keyframes birdFly4 {
    0% { transform: translateX(0px) translateY(0px); }
    15% { transform: translateX(15vw) translateY(8px); }
    35% { transform: translateX(35vw) translateY(-12px); }
    55% { transform: translateX(55vw) translateY(18px); }
    75% { transform: translateX(75vw) translateY(-10px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

@keyframes birdFly5 {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(25vw) translateY(-25px); }
    50% { transform: translateX(50vw) translateY(20px); }
    75% { transform: translateX(75vw) translateY(-15px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

@keyframes birdFly6 {
    0% { transform: translateX(0px) translateY(0px); }
    20% { transform: translateX(20vw) translateY(10px); }
    40% { transform: translateX(40vw) translateY(-18px); }
    60% { transform: translateX(60vw) translateY(12px); }
    80% { transform: translateX(80vw) translateY(-8px); }
    100% { transform: translateX(calc(100vw + 50px)) translateY(0px); }
}

/* 叶子飘落动画 */
.falling-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: leafFall 8s linear infinite;
}

/* 第一组叶子 - 立即开始 */
.leaf-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
    animation-name: leafFall1;
}

.leaf-2 {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 8s;
    animation-name: leafFall2;
}

.leaf-3 {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 6.5s;
    animation-name: leafFall3;
}

.leaf-4 {
    left: 70%;
    animation-delay: 0.5s;
    animation-duration: 9s;
    animation-name: leafFall4;
}

.leaf-5 {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 7.5s;
    animation-name: leafFall5;
}

/* 第二组叶子 - 延迟开始 */
.leaf-6 {
    left: 20%;
    animation-delay: 12s;
    animation-duration: 6.8s;
    animation-name: leafFall6;
}

.leaf-7 {
    left: 40%;
    animation-delay: 13s;
    animation-duration: 8.2s;
    animation-name: leafFall7;
}

.leaf-8 {
    left: 60%;
    animation-delay: 14s;
    animation-duration: 5.8s;
    animation-name: leafFall8;
}

.leaf-9 {
    left: 80%;
    animation-delay: 12.5s;
    animation-duration: 7.2s;
    animation-name: leafFall9;
}

.leaf-10 {
    left: 95%;
    animation-delay: 15s;
    animation-duration: 9.5s;
    animation-name: leafFall10;
}

@keyframes leafFall1 {
    0% {
        transform: translateY(-150px) translateX(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes leafFall2 {
    0% {
        transform: translateY(-150px) translateX(-40px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(60px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes leafFall3 {
    0% {
        transform: translateY(-150px) translateX(-30px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(70px) rotate(540deg);
        opacity: 0;
    }
}

@keyframes leafFall4 {
    0% {
        transform: translateY(-150px) translateX(-60px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(40px) rotate(450deg);
        opacity: 0;
    }
}

@keyframes leafFall5 {
    0% {
        transform: translateY(-150px) translateX(-35px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(65px) rotate(630deg);
        opacity: 0;
    }
}

@keyframes leafFall6 {
    0% {
        transform: translateY(-150px) translateX(-45px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(55px) rotate(480deg);
        opacity: 0;
    }
}

@keyframes leafFall7 {
    0% {
        transform: translateY(-150px) translateX(-25px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(75px) rotate(600deg);
        opacity: 0;
    }
}

@keyframes leafFall8 {
    0% {
        transform: translateY(-150px) translateX(-55px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(45px) rotate(390deg);
        opacity: 0;
    }
}

@keyframes leafFall9 {
    0% {
        transform: translateY(-150px) translateX(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(80px) rotate(510deg);
        opacity: 0;
    }
}

@keyframes leafFall10 {
    0% {
        transform: translateY(-150px) translateX(-65px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(35px) rotate(420deg);
        opacity: 0;
    }
}

/* 阳光光束 */
.sunbeams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.beam {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: beamShine 6s ease-in-out infinite;
}

.beam-1 {
    left: 20%;
    animation-delay: 0s;
}

.beam-2 {
    left: 50%;
    animation-delay: 2s;
}

.beam-3 {
    left: 80%;
    animation-delay: 4s;
}

@keyframes beamShine {
    0%, 100% { opacity: 0; transform: scaleY(0); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* 底部森林元素样式 */
.bottom-forest {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    pointer-events: none;
}

/* 更多树木样式 */
.tree-4 {
    bottom: 0;
    left: 5%;
    width: 70px;
    height: 110px;
    animation-delay: 0.5s;
}

.tree-5 {
    bottom: 0;
    right: 5%;
    width: 85px;
    height: 125px;
    animation-delay: 1.5s;
}

/* 灌木样式 */
.bush {
    position: absolute;
    bottom: 0;
    opacity: 0.8;
    animation: bushSway 3s ease-in-out infinite;
}

.bush-1 {
    left: 20%;
    width: 60px;
    height: 40px;
    animation-delay: 0s;
}

.bush-2 {
    left: 60%;
    width: 50px;
    height: 35px;
    animation-delay: 1s;
}

.bush-3 {
    left: 80%;
    width: 45px;
    height: 30px;
    animation-delay: 2s;
}

@keyframes bushSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.5deg) scale(1.02); }
    75% { transform: rotate(-0.5deg) scale(0.98); }
}

/* 水塘样式 */
.pond {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 100px;
    height: 50px;
    opacity: 0.7;
    animation: pondRipple 4s ease-in-out infinite;
}

@keyframes pondRipple {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* 兔子样式 */
.rabbit {
    position: absolute;
    bottom: 15px;
    left: 42%;
    width: 35px;
    height: 45px;
    opacity: 0.9;
    animation: rabbitDrink 8s ease-in-out infinite;
}

@keyframes rabbitDrink {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-2px) rotate(-2deg) scale(0.95); }
    50% { transform: translateY(-1px) rotate(-1deg) scale(0.9); }
    75% { transform: translateY(-2px) rotate(-2deg) scale(0.95); }
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.main-content {
    background: transparent;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

/* 欢迎区域样式 */
.welcome-section {
    margin-bottom: 50px;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 下载区域样式 */
.download-section {
    margin-top: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

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

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

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 139, 34, 0.5);
    background: linear-gradient(135deg, #1e7b1e, #228B22);
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.btn-text {
    font-weight: 600;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 页脚样式 */
.footer {
    margin-top: 40px;
    text-align: center;
    color: white;
    opacity: 0.8;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.icp-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.icp-info a:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .welcome-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .download-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .welcome-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
        gap: 8px;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding: 30px 40px;
    }
    
    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .download-section {
        margin-top: 20px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .welcome-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .download-btn {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    
    .download-btn:hover {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
}