/* 前端样式 - 炫酷APP下载页 */

* {
    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;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景图片 - 仅适配手机 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%);
}

/* 主容器 - 适配手机 */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* APP列表容器 */
.app-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-bottom: 120px;
    position: relative;
    z-index: 50;
}

/* APP卡片 - 简洁模式 */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

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

/* APP图标 - 优化尺寸 */
.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
}

.app-icon img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 11;
}

.app-icon i {
    font-size: 45px;
    color: #667eea;
    position: relative;
    z-index: 11;
}

/* APP名称 */
.app-name {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(102, 126, 234, 0.5);
    max-width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* APP描述 */
.app-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    margin-top: 10px;
    padding: 0 15px;
    font-weight: 400;
}

/* 下载按钮 - 优化动画 */
.download-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.5),
        0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

.download-btn:active {
    transform: scale(0.95);
    box-shadow: 
        0 5px 20px rgba(102, 126, 234, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 1.3rem;
}

/* 隐藏原有的下载按钮和多余信息 */
.app-info,
.app-meta,
.app-desc,
.download-info {
    display: none;
}

/* 无APP提示 */
.no-apps {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.no-apps i {
    font-size: 60px;
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

.no-apps p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 400px) {
    .app-icon {
        width: 85px;
        height: 85px;
    }

    .app-icon img {
        width: 60px;
        height: 60px;
    }

    .app-name {
        font-size: 1.3rem;
    }

    .app-description {
        font-size: 0.95rem;
    }

    .download-btn {
        padding: 14px 40px;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

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

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 二维码区域样式 */
.qrcode-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qrcode-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.qrcode-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.qrcode-title i {
    font-size: 1.3rem;
    color: #667eea;
}

.qrcode-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode canvas {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.qrcode-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.qrcode-logo img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 8px;
}

.qrcode-logo i {
    font-size: 22px;
    color: #667eea;
}

.qrcode-hint {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 响应式二维码 */
@media (max-width: 400px) {
    .qrcode-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .qrcode-title {
        font-size: 1rem;
    }
    
    #qrcode canvas {
        width: 180px !important;
        height: 180px !important;
    }
    
    .qrcode-logo {
        width: 45px;
        height: 45px;
    }
    
    .qrcode-logo img {
        width: 32px;
        height: 32px;
    }
    
    .qrcode-logo i {
        font-size: 20px;
    }
}
