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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景动画元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 188, 5, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(10px) translateY(10px); }
}

/* 固定开发者徽章 */
.developer-badge {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    animation: badgeGlow 3s ease-in-out infinite alternate;
}

.developer-text {
    font-family: 'Fredoka One', cursive;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.developer-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.7;
    animation: rotateGlow 4s linear infinite;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 游戏头部 */
.game-header {
    text-align: center;
    padding: 80px 20px 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.game-icon {
    position: relative;
    width: 80px;
    height: 80px;
}

.icon-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: iconBounce 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.icon-emoji {
    font-size: 36px;
    animation: iconRotate 3s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.game-title {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

@keyframes titleGlow {
    0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5); }
}

/* 主要内容 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 横幅区域 */
/* 横幅区域样式修改 */
.banner-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
    display: flex;
    justify-content: center;
}

.banner-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 50%;
    max-width: 600px;
    margin: 0 auto;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* 截图图片样式调整 */
.screenshot-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.screenshot-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.banner-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.star-1 { top: 20%; left: 15%; animation-delay: 0s; }
.star-2 { top: 30%; right: 20%; animation-delay: 2s; }
.star-3 { bottom: 25%; left: 20%; animation-delay: 4s; }

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

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    animation: techScan 3s linear infinite;
}

@keyframes techScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 截图区域 */
.screenshots-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.screenshot-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-10px);
}

.screenshot-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.screenshot-card:nth-child(2) .screenshot-placeholder {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.screenshot-card:nth-child(3) .screenshot-placeholder {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.screenshot-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.screenshot-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: iconFloat 3s ease-in-out infinite;
}

.screenshot-content p {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateGlow 4s linear infinite;
}

.screenshot-card:hover .card-glow {
    opacity: 0.8;
}

/* 下载按钮 */
.game-footer {
    text-align: center;
    padding: 40px 20px 60px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.google-play-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.google-play-button:hover {
    transform: scale(1.05);
}

.google-play-badge {
    height: 80px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.button-text {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
}

.button-subtext {
    font-size: 14px;
    opacity: 0.8;
}

.button-icon svg {
    width: 24px;
    height: 24px;
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.button-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: particleSweep 2s linear infinite;
}

@keyframes particleSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
    }
    
    .banner-image {
        height: 250px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    
    .screenshot-image {
        height: 300px;
    }
    
    .developer-badge {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
    }
    
    .developer-text {
        font-size: 12px;
    }
    
    .google-play-badge {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 100px 20px 30px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .banner-image {
        height: 200px;
        border-radius: 15px;
    }
    
    .screenshot-image {
        height: 250px;
    }
    
    .google-play-badge {
        height: 50px;
    }
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加到文件末尾 */

/* 水果粒子动画样式 */
.fruit-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.fruit-particle {
    position: absolute;
    font-size: 20px;
    animation: fruitFall 10s linear infinite;
    pointer-events: none;
}

@keyframes fruitFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-container {
        width: 90%;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.screenshot-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-10px);
}

.screenshot-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.screenshot-card:nth-child(2) .screenshot-placeholder {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.screenshot-card:nth-child(3) .screenshot-placeholder {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.screenshot-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.screenshot-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: iconFloat 3s ease-in-out infinite;
}

.screenshot-content p {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateGlow 4s linear infinite;
}

.screenshot-card:hover .card-glow {
    opacity: 0.8;
}

/* 下载按钮 */
.game-footer {
    text-align: center;
    padding: 40px 20px 60px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.google-play-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.google-play-button:hover {
    transform: scale(1.05);
}

.google-play-badge {
    height: 80px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.button-text {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
}

.button-subtext {
    font-size: 14px;
    opacity: 0.8;
}

.button-icon svg {
    width: 24px;
    height: 24px;
    animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.button-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: particleSweep 2s linear infinite;
}

@keyframes particleSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
    }
    
    .banner-image {
        height: 250px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    
    .screenshot-image {
        height: 300px;
    }
    
    .developer-badge {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
    }
    
    .developer-text {
        font-size: 12px;
    }
    
    .google-play-badge {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 100px 20px 30px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .banner-image {
        height: 200px;
        border-radius: 15px;
    }
    
    .screenshot-image {
        height: 250px;
    }
    
    .google-play-badge {
        height: 50px;
    }
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加到文件末尾 */

/* 游戏图标样式 */
.game-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.game-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Banner图片按原始宽高比显示 */
.banner-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

/* 截图按原始宽高比显示 */
.screenshot-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

/* 下载按钮区域 */
.download-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #000000;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Nunito', sans-serif;
}

.download-button:hover {
    background-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 移除原有的game-footer样式 */
.game-footer {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-image {
        max-height: 300px;
    }
    
    .download-button {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .download-icon {
        width: 20px;
        height: 20px;
    }
}