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

/* 防止移动端缩放和选择 */
html, body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    overflow-x: hidden;
}

/* 允许输入框选择文本 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* 下载页面样式 */
.download-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

/* 背景装饰圆圈 */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -30px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.download-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 400px;
}

.app-icon-wrapper {
    position: relative;
    margin-bottom: 70px;
    animation: float 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(153, 189, 237, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(2deg); 
    }
}

.download-btn {
    position: relative;
    width: 280px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(153, 189, 237, 0.4), 0 0 0 0 rgba(153, 189, 237, 0.5);
    overflow: hidden;
}

.download-btn span {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(153, 189, 237, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.download-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 5px 15px rgba(153, 189, 237, 0.3);
}

/* 绑定页面样式 */
.bind-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bind-container {
    width: 100%;
    max-width: 400px;
}

.bind-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(153, 189, 237, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.bind-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #99BDED 0%, #7BA4E0 100%);
}

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

.bind-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bind-subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.bind-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.optional {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #E8F0FE;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.form-group input:focus {
    outline: none;
    border-color: #99BDED;
    background: white;
    box-shadow: 0 0 0 3px rgba(153, 189, 237, 0.15), 0 4px 12px rgba(153, 189, 237, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #BBB;
}

.code-input-group {
    display: flex;
    gap: 12px;
}

.code-input-group input {
    flex: 1;
}

.send-code-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(153, 189, 237, 0.3);
}

.send-code-btn:hover {
    background: linear-gradient(135deg, #7BA4E0 0%, #99BDED 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(153, 189, 237, 0.4);
}

.send-code-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
    transform: none;
}

.bind-hint {
    color: #666;
    font-size: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.bind-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(153, 189, 237, 0.3);
    overflow: hidden;
}

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

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

.bind-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(153, 189, 237, 0.5);
}

.bind-btn:active {
    transform: scale(0.98);
}

.bind-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.platform-download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 12px rgba(153, 189, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.platform-download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.platform-download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.platform-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(153, 189, 237, 0.4);
}

.ios-btn {
    background: linear-gradient(135deg, #99BDED 0%, #7BA4E0 100%);
}

.android-btn {
    background: linear-gradient(135deg, #7BA4E0 0%, #99BDED 100%);
}

.platform-download-btn:active {
    transform: scale(0.98);
}

.platform-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.platform-download-btn span {
    color: white;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .download-container {
        padding: 30px 15px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .download-btn {
        width: 240px;
        padding: 16px 25px;
        font-size: 16px;
    }
    
    .bind-card {
        padding: 30px 20px;
    }
    
    .bind-title {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* 错误状态 */
.form-group.error input {
    border-color: #FF6B6B;
    background: #FFF5F5;
}

.error-message {
    color: #FF6B6B;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* 成功状态 */
.form-group.success input {
    border-color: #51CF66;
    background: #F8FFF9;
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
} 