* {
    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;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.app-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

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

.app-logo-placeholder {
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.app-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.app-version {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.app-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 10px;
}

.install-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 80%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
}

.install-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.install-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

.status-text {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.device-info {
    font-size: 13px;
    color: #667eea;
    margin-top: 10px;
    font-weight: 500;
}

.error-message {
    background: #fff3f3;
    color: #ff4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 15px;
    display: none;
}

/* 微信浏览器提示样式 */
.wechat-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.wechat-tip-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    animation: slideIn 0.3s ease;
}

.wechat-tip-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.9;
}

.wechat-tip-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.95;
}

.wechat-tip-action {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.wechat-tip-action strong {
    color: #ffd700;
    font-weight: bold;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qr-code-section {
    margin: 30px 0;
}

.qr-code-section p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 12px;
    overflow: hidden;
}

.qr-code-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
