* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: #e8e8e8;
    border-radius: 30px;
    padding: 30px 20px 0;
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.2),
        -20px -20px 60px rgba(255, 255, 255, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 容器背景图 - 旋转160度（仅H5移动端） */
@media screen and (max-width: 768px) {
    .container::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background-image: url('beijintu.png');
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        transform: translate(-50%, -50%) rotate(160deg);
        z-index: 0;
        transform-origin: center center;
    }
    
    .container > * {
        position: relative;
        z-index: 1;
    }
}

/* Android 设备特定优化 */
@media screen and (max-width: 768px) {
    /* 优化 Android 浏览器的渲染性能 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .container {
        /* Android 设备上的优化 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }
    
    /* 优化 Android 上的视频播放 */
    .app-header-bg {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Android 上的按钮优化 */
    .download-btn {
        -webkit-tap-highlight-color: rgba(23, 195, 178, 0.3);
        touch-action: manipulation;
    }
    
    /* Android 上的链接优化 */
    .footer-link,
    .other-info-link {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
}

/* 应用信息区域（参考图一布局：图标在上，文字在下，整体居中） */
.app-header {
    position: relative;
    margin-bottom: 16px;
    border-radius: 20px 20px 40px 40px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.15),
        -10px -10px 20px rgba(255, 255, 255, 0.6),
        0 15px 30px rgba(0, 0, 0, 0.25);
}

/* 背景视频：宽度自适应，保持原始比例，完整显示 */
.app-header-bg {
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* 防止视频阻挡点击事件 */
}

/* 内容层：覆盖在背景图上，居中排列 */
.app-header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px 20px;
    z-index: 1;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    background: #e8e8e8;
    padding: 4px;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    position: relative;
}

.icon-pattern {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.app-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.platform-icon-inline {
    display: inline-flex;
    align-items: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    color: #666;
}

.platform-icon img,
.platform-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.platform-text {
    color: #666;
    font-weight: 500;
}

/* 版本信息（参考图一：居中一行展示） */
.version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 0;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(232, 232, 232, 0.5);
    backdrop-filter: blur(5px);
    border-bottom: none;
    font-size: 13px;
    color: #666;
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.version-text {
    font-size: 13px;
    color: #666;
}

.version-text strong {
    color: #333;
    font-weight: 600;
}

.update-time {
    font-size: 13px;
    color: #999;
}

.info-icon {
    font-size: 16px;
    opacity: 0.6;
}

/* 二维码区域 */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.qr-container {
    position: relative;
    display: inline-block;
    padding: 25px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 25px;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.qr-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        15px 15px 30px rgba(0, 0, 0, 0.2),
        -15px -15px 30px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.6);
}

#qr-code {
    display: none;
    width: 200px;
    height: 200px;
}

#qr-code-image {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    background: white;
    padding: 8px;
}

/* 已移除二维码区域的 logo 图标 */
/* 
.qr-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}
*/

.icon-pattern-small {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
    font-size: 12px;
    font-size: 14px;
}

.qr-app-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    color: #333;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 15px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.1),
        -6px -6px 12px rgba(255, 255, 255, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.qr-app-name:hover {
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(1px);
}

.platform-icon-small {
    display: inline-flex;
    align-items: center;
    color: #333;
}

.platform-icon-small img,
.platform-icon-small svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* 下载按钮 */
.download-section {
    text-align: center;
    margin-bottom: 30px;
}

.download-btn {
    width: 90%;
    max-width: 400px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #17c3b2 0%, #14a896 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.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 {
    background: linear-gradient(135deg, #14a896 0%, #119988 100%);
    transform: translateY(-2px);
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.25),
        -4px -4px 8px rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

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

.download-btn:active {
    transform: translateY(0);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn-size {
    font-size: 16px;
    opacity: 0.9;
}

.other-info-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 8px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: #e0e0e0;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.other-info-link:hover {
    color: #333;
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.7),
        inset 2px 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(1px);
}

/* 底部链接 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #2f6bff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 10px;
    background: #e0e0e0;
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
    color: #1f4fe6;
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(1px);
}

/* 免责声明 */
.disclaimer {
    margin-top: 50px;
    margin-bottom: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding: 15px 20px 10px;
    background: #f5f5f5;
    border-radius: 0;
}

.disclaimer p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
    font-weight: 400;
}

/* 状态信息 */
.status-info {
    text-align: center;
    font-size: 12px;
    color: #ccc;
    padding: 10px 20px 100px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
    background: #f5f5f5;
    display: block;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #e8e8e8;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.3),
        -20px -20px 60px rgba(255, 255, 255, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 12px;
    background: #e0e0e0;
    border-bottom: none;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #666;
    font-weight: 500;
}

.info-item span {
    color: #333;
}

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

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

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

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        max-width: 100%;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .app-name {
        font-size: 20px;
    }

    #qr-code {
        width: 180px;
        height: 180px;
    }

    .version-info {
        font-size: 12px;
    }

    .update-time {
        font-size: 11px;
    }
}
