/* 全局样式 */
        :root {
            --primary-color: #6c5ce7;
            --primary-light: #f1f0ff;
            --secondary-color: #a29bfe;
            --accent-color: #fd79a8;
            --dark-color: #2d3436;
            --light-bg: #f9f9ff;
            --border-color: #dfe6ff;
            --text-color: #2d3436;
            --light-text: #7f8c8d;
            --error-color: #ff7675;
            --success-color: #00b894;
            --warning-color: #fdcb6e;
            --shadow-sm: 0 2px 12px rgba(108, 92, 231, 0.1);
            --shadow-md: 0 6px 24px rgba(108, 92, 231, 0.15);
            --shadow-lg: 0 12px 32px rgba(108, 92, 231, 0.2);
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            --glass-effect: rgba(255, 255, 255, 0.25);
            --border-radius-sm: 12px;
            --border-radius-md: 16px;
            --border-radius-lg: 24px;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }

        /* Header 部分 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .back-arrow {
            position: absolute;
            left: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #333333;
            transition: color 0.2s ease;
        }

        .back-arrow:hover {
            color: #007bff;
        }

        .header h2 {
            font-size: 18px;
            color: #333333;
            margin: 0;
            font-weight: 600;
        }

        /* 中间部分 */
        .container {
            text-align: center;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
            padding: 30px;
            border-radius: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            animation: fadeIn 1s ease-in-out;
            width: 80%;
            max-width: 400px;
            margin-top: 10vh;
            margin-bottom: 20px;
            position: relative;
            /*overflow: hidden;*/
        }

        h1 {
            font-size: 24px;
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            font-weight: 600;
            letter-spacing: 1px;
            animation: textGradient 5s infinite alternate;
        }

        @keyframes textGradient {
            0% {
                background: linear-gradient(135deg, #6a11cb, #2575fc);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }
            100% {
                background: linear-gradient(135deg, #2575fc, #6a11cb);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }
        }

        /* 登录方式切换标签 */
        .login-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .tab-btn {
            padding: 8px 20px;
            margin: 0 5px;
            background: transparent;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #666;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            color: white;
            box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
        }

        /* 手机登录部分 - 作为首选显示 */
        .phone-login {
            display: block;
            text-align: left;
            animation: fadeInUp 0.6s ease-out;
            
            background: white;
            border-radius: 16px;
            padding: 24px 20px;
            box-shadow: var(--shadow-md);
            margin-top: 16px;
            transform: translateY(0);
            transition: var(--transition);
        }
        
        .input-icon {
            position: absolute;
            right: 16px;
            top: 42px;
            color: var(--light-text);
            transition: var(--transition);
        }

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

        /* 微信登录部分 */
        .wechat-login {
            display: none;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-color);
            letter-spacing: 0.5px;
        }

        .form-group label::before {
            content: "";
            position: absolute;
            left: -5px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 16px;
            background: linear-gradient(to bottom, #6a11cb, #2575fc);
            border-radius: 3px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .form-group.focused label::before {
            opacity: 1;
            left: 0;
        }
        
        input, select {
            width: 100%;
            padding: 14px 20px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            font-size: 15px;
            transition: var(--transition);
            background-color: var(--light-bg);
            color: var(--text-color);
            box-shadow: var(--shadow-sm);
            -webkit-appearance: none;
        }
        
        .input-group {
            display: flex;
            gap: 10px;
            align-items: center; /* 垂直居中 */
        }
        
        .input-group input {
            flex: 1;
        }

        .input-field {
            width: 100%;
            padding: 14px 20px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            font-size: 15px;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-sizing: border-box;
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .input-field:focus {
            border-color: rgba(106, 17, 203, 0.5);
            box-shadow: 0 4px 15px rgba(106, 17, 203, 0.15);
            outline: none;
            background-color: white;
        }

        .input-field:hover {
            border-color: #c0c0c0;
        }

        /* 验证码输入组 */
        .sms-code-group {
            display: flex;
            gap: 12px;
            position: relative;
        }
        
        .floating-label {
            position: absolute;
            pointer-events: none;
            left: 20px;
            top: 16px;
            transition: var(--transition);
            background: white;
            padding: 0 5px;
            color: var(--light-text);
            font-size: 14px;
        }
        
        .fa-comment-sms:before, .fa-sms:before {
            content: "\f7cd";
        }
        
        input:focus ~ .floating-label,
        input:not(:placeholder-shown) ~ .floating-label {
            top: -8px;
            left: 16px;
            font-size: 11px;
            color: var(--primary-color);
            background: linear-gradient(to bottom, white 50%, var(--light-bg) 50%);
        }
        
        .send-code-btn {
            padding: 0 16px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            display: flex
        ;
            align-items: center;
            justify-content: center;
        }
        
        .send-code-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        }
        
        .send-code-btn i {
            margin-right: 6px;
        }
        
        .send-code-btn:disabled {
            background: #ccc;
            transform: none;
            box-shadow: none;
            cursor: not-allowed;
        }
        

        .sms-code-input {
            flex: 1;
            padding-right: 120px;
        }

        .sms-btn {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            padding: 0 20px;
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            color: white;
            border: none;
            border-radius: 0 12px 12px 0;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 110px;
            box-shadow: -2px 0 10px rgba(106, 17, 203, 0.1);
        }

        .sms-btn:hover {
            background: linear-gradient(135deg, #2575fc, #6a11cb);
            min-width: 115px;
        }

        .sms-btn:disabled {
            background: linear-gradient(135deg, #cccccc, #aaaaaa);
            color: #888;
            cursor: not-allowed;
            min-width: 110px;
        }

        /* 输入图标装饰 */
        .input-icon {
            position: absolute;
            right: 16px;
            top: 42px;
            color: var(--light-text);
            transition: var(--transition);
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
            transform: translateY(-2px);
        }
        
        input:focus ~ .input-icon {
            color: var(--primary-color);
            transform: scale(1.1);
        }

        .form-group.focused .input-icon {
            color: #6a11cb;
        }

        /* 登录按钮升级 */
        .login-btn {
            width: 100%;
            padding: 16px;
            margin-top: 25px;
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(106, 17, 203, 0.3);
            z-index: 1;
        }

        .login-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #2575fc, #6a11cb);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
        }

        .login-btn:hover::before {
            opacity: 1;
        }

        .login-btn:active {
            transform: translateY(0);
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
        }

        .login-btn i {
            margin-left: 8px;
            transition: all 0.3s ease;
        }

        .login-btn:hover i {
            transform: translateX(3px);
        }
        
        .error-message {
            color: var(--error-color);
            font-size: 12px;
            font-weight: 600;
            margin-top: 6px;
            display: none;
            animation: fadeIn 0.4s ease;
            padding-left: 5px;
        }
        
        .success-message {
            color: var(--success-color);
            font-size: 12px;
            margin-top: 6px;
            display: none;
            animation: fadeIn 0.4s ease;
        }
        
        /* 新增错误提示样式 */
        .fail-message {
            display: none;
            padding: 12px 15px;
            margin: 15px 0;
            background-color: #ffeeee;
            color: #ff4444;
            border-radius: 8px;
            border-left: 4px solid #ff4444;
            animation: fadeIn 0.3s ease-out;
            position: relative;
            box-shadow: 0 2px 8px rgba(255, 68, 68, 0.1);
        }
        
        .fail-message.show {
            display: block;
        }
        
        .fail-message i {
            margin-right: 8px;
        }
        
        .fail-message .close-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #ff4444;
            font-size: 16px;
        }

        /* 微信登录样式 */
        .wechat-link {
            display: inline-block;
            text-decoration: none;
        }

        .wechat-icon {
            width: 80px;
            height: 80px;
            cursor: pointer;
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0.9;
            filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
        }

        .wechat-icon:hover {
            transform: scale(1.1) rotate(10deg);
            opacity: 1;
            filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8));
        }

        /* 浮动标签效果 */
        .float-label {
            position: relative;
            padding-top: 20px;
        }

        .float-label label {
            position: absolute;
            top: 30px;
            left: 20px;
            color: #999;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .float-label.focused label,
        .float-label.has-value label {
            top: 12px;
            left: 15px;
            font-size: 12px;
            color: #6a11cb;
            background: white;
            padding: 0 5px;
        }

        /* 分隔线 */
        .divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            color: #999;
            font-size: 14px;
        }

        .divider::before, .divider::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid #eee;
            margin: 0 10px;
        }

        /* 注册按钮样式 */
        .register-btn {
            display: inline-block;
            /*margin-top: 15px;*/
            padding: 12px 30px;
            background: transparent;
            color: #6a11cb;
            border: 2px solid #6a11cb;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .register-btn:hover {
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            color: white;
            border-color: transparent;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
        }

        .description {
            font-size: 14px;
            color: #666666;
            margin-top: 10px;
            line-height: 1.6;
        }

        /* 背景动画 */
        @keyframes moveBackground {
            0% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
            100% {
                transform: translateY(0);
            }
        }

        .background-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: moveBackground 10s infinite ease-in-out;
        }

        .shape1 {
            width: 150px;
            height: 150px;
            top: 10%;
            left: 5%;
            animation-duration: 8s;
        }

        .shape2 {
            width: 120px;
            height: 120px;
            top: 60%;
            left: 80%;
            animation-duration: 12s;
        }

        .shape3 {
            width: 80px;
            height: 80px;
            top: 30%;
            left: 70%;
            animation-duration: 10s;
        }

        /* 标题动画 */
        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 加载动画 */
        .loading-dots {
            display: inline-flex;
            align-items: center;
        }
        .loading-dots span {
            animation: dotPulse 1.5s infinite ease-in-out;
            opacity: 0;
        }
        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }
        @keyframes dotPulse {
            0%, 100% { opacity: 0.1; }
            50% { opacity: 1; }
        }

        /* 抖动动画 */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }
        .shake {
            animation: shake 0.5s ease-in-out;
        }

        /* 响应式设计 */
        @media (max-width: 480px) {
            .send-code-btn {
                padding: 12px;
                white-space: nowrap; /* 按钮文字不换行 */
                font-size: 12px; /* 适当减小字体大小 */
            }
    
            h1 {
                font-size: 20px;
                margin-bottom: 15px;
            }

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

            .container {
                padding: 15px;
                border-radius: 20px;
                margin-top: 10vh;
                margin-bottom: 15px;
            }

            .tab-btn {
                padding: 6px 15px;
                font-size: 13px;
            }

            .input-field {
                padding: 12px 15px;
            }

            .sms-btn {
                padding: 0 12px;
                min-width: 100px;
                font-size: 12px;
            }

            .login-btn, .sms-btn {
                padding: 12px;
            }

            .register-btn {
                padding: 10px 25px;
                font-size: 13px;
            }

            .shape1 {
                width: 100px;
                height: 100px;
            }

            .shape2 {
                width: 80px;
                height: 80px;
            }

            .shape3 {
                width: 60px;
                height: 60px;
            }
        }
        
@media (max-width: 768px) {
    .send-code-btn {
        padding: 12px;
        white-space: nowrap; /* 按钮文字不换行 */
        font-size: 12px; /* 适当减小字体大小 */
    }
    
    .phone-login {
       padding: 20px 16px;
    }
    .input-group {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .input-group input {
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .send-code-btn {
        padding: 12px;
        white-space: nowrap;
        font-size: 12px;
    }
}

/******************************************************************/
        
/* 更新后的弹窗动画样式 */
        .alert-popup {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 16px 32px;
            border-radius: var(--border-radius-sm);
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            animation: slideDownFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            display: flex;
            align-items: center;
            width: 90%;
            max-width: 90%;
            opacity: 0;
        }
        
        @keyframes slideDownFadeIn {
            0% {
                opacity: 0;
                transform: translateX(-50%) translateY(-50px);
            }
            100% {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }
        
        @keyframes fadeOutUp {
            0% {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateX(-50%) translateY(-50px);
            }
        }
        
        .alert-popup.success {
            background: linear-gradient(135deg, var(--success-color) 0%, #00d2b4 100%);
            color: white;
        }
        
        .alert-popup.error {
            background: linear-gradient(135deg, var(--error-color) 0%, #ff8a7a 100%);
            color: white;
        }
        
        .alert-popup i {
            margin-right: 12px;
            font-size: 20px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .alert-popup .close-btn {
            margin-left: 20px;
            cursor: pointer;
            opacity: 0.8;
            transition: var(--transition);
            padding: 4px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            /*justify-content: center;*/
        }
        
        .alert-popup .close-btn:hover {
            opacity: 1;
            transform: scale(1.1);
            background: rgba(255,255,255,0.3);
        }