/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* APP头部信息 */
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-in-out;
}

.app-logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

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

.app-info {
    flex: 1;
}

.app-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #e2b0ff, #9f44d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(159, 68, 211, 0.3);
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #ffcc00;
    margin-right: 5px;
}

.rating-value {
    font-weight: 600;
}

.app-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
}

/* APP描述 */
.app-description {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    line-height: 1.6;
    animation: slideUp 0.8s ease-in-out;
}

/* APP截图 */
.app-screenshots {
    margin-bottom: 30px;
    animation: slideUp 1s ease-in-out;
}

.screenshot-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.screenshots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
}

.screenshot {
    flex: 0 0 auto;
    width: 200px;
    height: 400px;
    margin-right: 15px;
    border-radius: 10px;
    scroll-snap-align: start;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* 下载区域 */
.download-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease-in-out;
}

.device-detection {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.device-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.device-text {
    font-size: 16px;
    color: #ccc;
}

/* 平台选择按钮 */
.platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.platform-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.platform-btn i {
    font-size: 24px;
    margin-right: 15px;
}

.platform-btn span {
    font-size: 16px;
    font-weight: 600;
}

.platform-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.platform-btn.active {
    background: linear-gradient(45deg, #9f44d3, #e2b0ff);
    box-shadow: 0 8px 15px rgba(159, 68, 211, 0.4);
}

.ios-btn:hover {
    background: linear-gradient(45deg, #007aff, #56a2ff);
}

.android-btn:hover {
    background: linear-gradient(45deg, #3ddc84, #8aefb9);
}

.car-btn:hover {
    background: linear-gradient(45deg, #9f44d3, #e2b0ff);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #9f44d3, #e2b0ff);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(159, 68, 211, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(159, 68, 211, 0.4);
}

.btn-text {
    margin-right: 10px;
}

/* 特性区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    animation: slideUp 1.4s ease-in-out;
}

.feature {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #9f44d3, #e2b0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(159, 68, 211, 0.3);
}

.feature-text h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #e2b0ff;
}

.feature-text p {
    color: #ccc;
    font-size: 14px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 68, 211, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(159, 68, 211, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(159, 68, 211, 0);
    }
}

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #1a1a2e;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-in-out;
}

.modal-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.modal-content .highlight {
    color: #e2b0ff;
    font-weight: bold;
    font-size: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .app-meta {
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 25% auto;
        padding: 20px;
    }
    
    .modal-content p {
        font-size: 16px;
    }
    
    .modal-content .highlight {
        font-size: 18px;
    }
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #9f44d3;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}