/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: -apple-system, SF UI Text, PingFang SC, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, Helvetica Neue, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    min-height: 100vh;
    color: #333;
}

a {
    text-decoration: none;
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fd79a8 100%);
    padding: 60px 20px 40px;
    text-align: center;
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-details {
    text-align: center;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.app-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    max-width: 300px;
}

/* App Statistics */
.app-stats {
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    margin: 0 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #eee;
}

/* Download Section */
.download-section {
    padding: 30px 20px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

/* Screenshots Section */
.screenshots-section {
    padding: 40px;
}

.screenshots-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 0px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    align-items: flex-start;
}

.screenshots-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.screenshot-item {
    flex: 0 0 auto;
    width: auto;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    height: auto;
    min-height: auto;
}

.screenshot-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;
    display: block;
}

/* Game Introduction */
.game-intro {
    background: white;
    margin: 20px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.intro-content {
    position: relative;
}

.intro-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.intro-text.expanded {
    max-height: none;
}

.expand-btn {
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

.expand-text {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
}

/* Game Benefits */
.game-benefits {
    background: white;
    margin: 20px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* WeChat Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.overlay img {
    position: absolute;
    opacity: 0.9;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 90%;
}

/* iOS Installation Help */
.iosexplain {
    text-align: center;
    margin: 20px auto 0;
    color: #ffa43b;
    cursor: pointer;
}

.iosexplain b {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin: -2px 5px 0 0;
    text-align: center;
    background: #ffa43b;
    color: #fff;
    border-radius: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70%;
    overflow: auto;
    background-color: rgb(255, 255, 255);
    border-radius: 1.5rem 1.5rem 0rem 0rem;
    box-shadow: 0px 0px 19px 1px #000000;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin: -10px -10px 0 0;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.gb {
    position: fixed;
    right: 0;
    margin-right: 10px;
}

.hr {
    border-bottom: 1px solid rgba(170, 170, 170, 0.21);
    margin: 30px 0;
}

.modal p {
    font-size: 15px;
    margin: 30px 0 2px 0;
    text-align: center;
    font-weight: 600;
    color: #ffa43b;
}

.modal img {
    max-width: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
}

/* Footer */
.footer {
    padding: 40px 20px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 40px 15px 30px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .app-subtitle {
        font-size: 13px;
        max-width: 280px;
    }
    
    .app-stats {
        margin: -15px 15px 0;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .download-section {
        padding: 20px 15px;
    }
    
    .download-btn {
        padding: 12px 30px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .screenshots-section {
        padding: 30px;
        min-height: auto;
    }
    
    .screenshots-container {
        min-height: auto;
        height: auto;
        gap: 20px;
    }
    
    .screenshot-item {
        max-width: 500px;
        height: auto;
    }
    
    .screenshot-item img {
        max-height: 600px;
        width: 100%;
        height: auto;
    }
    
    .game-intro,
    .game-benefits {
        margin: 15px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .intro-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 30px 10px 20px;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .app-subtitle {
        font-size: 12px;
        max-width: 260px;
    }
    
    .app-stats {
        margin: -10px 10px 0;
        padding: 12px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .download-section {
        padding: 15px 10px;
    }
    
    .download-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .screenshots-section {
        padding: 20px;
        min-height: auto;
    }
    
    .screenshots-container {
        min-height: auto;
        height: auto;
        gap: 20px;
    }
    
    .screenshot-item {
        max-width: 360px;
        height: auto;
    }
    
    .screenshot-item img {
        max-height: 500px;
        width: 100%;
        height: auto;
    }
    
    .game-intro,
    .game-benefits {
        margin: 10px;
        padding: 12px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .intro-text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .expand-text {
        font-size: 13px;
    }
}