/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

/* 主容器 */
.container {
    max-width: 500px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.slogan {
    font-size: 14px;
    color: #999;
}

/* 邀请信息卡片 */
.invite-info {
    margin-bottom: 30px;
}

.invite-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(252, 182, 159, 0.3);
}

.invite-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.invite-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
}

.invite-code-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.invite-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #ff6b6b;
    font-size: 18px;
    letter-spacing: 2px;
}

.invite-reward {
    font-size: 14px;
    color: #666;
}

.highlight {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 16px;
}

/* 功能特色 */
.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 13px;
    color: #666;
}

/* 下载按钮 */
.download-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 28px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

/* 应用信息 */
.app-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.app-info p {
    font-size: 13px;
    color: #666;
}

.app-info span {
    font-weight: bold;
    color: #333;
}

/* 底部信息 */
.footer {
    text-align: center;
}

.tips {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.copyright {
    font-size: 11px;
    color: #ccc;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式适配 */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .app-name {
        font-size: 24px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .features {
        margin-bottom: 25px;
    }
    
    .feature-icon {
        font-size: 28px;
    }
}
