: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 {
            background: linear-gradient(135deg, #f5f7fa 0%, #e6e9ff 100%);
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding-top: 70px; /* 根据导航栏高度调整 */
        }
        
        /* 新增的导航栏样式 */
        .nav-bar {
            position: fixed; /* 改为fixed定位 */
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            padding: 18px 24px;
            display: flex;
            align-items: center;
            box-shadow: var(--shadow-md);
            z-index: 100;
            /*position: relative;*/
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        
        .nav-bar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, 
                rgba(255,255,255,0.8) 0%, 
                rgba(255,255,255,0.4) 50%, 
                rgba(255,255,255,0.8) 100%);
            opacity: 0.3;
        }
        
        .back-button {
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            display: flex;
            align-items: center;
            transition: var(--transition);
            
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            display: flex;
            align-items: center;
            transition: var(--transition);
            position: relative;
            border-radius: var(--border-radius-sm);
            overflow: hidden;
        }
        
        .back-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.1);
            opacity: 0;
            transition: var(--transition);
        }
        
        .back-button i {
            margin-right: 8px;
            font-size: 18px;
        }
        
        .back-button:hover {
            transform: translateX(-4px);
            opacity: 0.9;
        }
        
        .nav-title {
            color: white;
            font-size: 18px;
            font-weight: 600;
            margin: 0 auto;
            position: relative;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            letter-spacing: 1px;
            padding: 0 20px;
        }
        
        .container {
            width: 100%;
            max-width: 540px;
            background: white;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            position: relative;
            z-index: 1;
            margin: 8px auto;
            flex-grow: 1;
        }
        
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 160px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            z-index: -1;
            clip-path: ellipse(120% 100% at 50% 0%);
        }
        
        .form-content {
            padding: 40px 24px;
            position: relative;
        }
        
        .logo {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .logo img {
            height: 50px;
            transition: var(--transition);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
        }
        
        .logo img:hover {
            transform: translateY(-3px);
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
        }
        
        h1 {
            font-size: 26px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 32px;
            color: white;
            position: relative;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        h1 span {
            display: inline-block;
            padding: 0 16px;
            position: relative;
        }
        
        h1 span::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 36px;
            height: 3px;
            background: white;
            border-radius: 3px;
        }
        
        .form-card {
            background: white;
            border-radius: 16px;
            padding: 24px 20px;
            box-shadow: var(--shadow-md);
            margin-top: 16px;
            transform: translateY(0);
            transition: var(--transition);
        }
        
        .form-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .form-group {
            margin-bottom: 20px;
            position: relative;
        }
        
        label {
            display: block;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-color);
            letter-spacing: 0.5px;
        }
        
        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:focus, select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
            transform: translateY(-2px);
        }
        
        .input-group {
            display: flex;
            gap: 10px;
            align-items: center; /* 垂直居中 */
        }
        
        .input-group input {
            flex: 1;
        }
        
        .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;
        }
        
        .location-group {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .location-group select {
            flex: 1;
        }
        
        .optional {
            color: var(--light-text);
            font-size: 12px;
            margin-left: 5px;
            font-weight: 300;
        }
        
        .submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 20px;
            transition: var(--transition);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        
        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
        }
        
        .submit-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: 0.5s;
        }
        
        .submit-btn:hover::before {
            left: 100%;
        }
        
        .terms {
            margin-top: 20px;
            font-size: 12px;
            color: var(--light-text);
            text-align: center;
            line-height: 1.6;
        }
        
        .terms a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }
        
        .terms a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent-color);
            transition: var(--transition);
        }
        
        .terms a:hover {
            color: var(--accent-color);
        }
        
        .terms a:hover::after {
            width: 100%;
        }
        
        .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;
        }
        
        .social-icon.wechat {
            color: #09BB07; /* 微信绿色 */
            background-color: rgba(9, 187, 7, 0.1); /* 浅绿色背景 */
        }
        
        .social-icon.qq {
            color: #12B7F5; /* QQ蓝色 */
            background-color: rgba(18, 183, 245, 0.1); /* 浅蓝色背景 */
        }
        
        /* 悬停效果增强 */
        .social-icon.wechat:hover {
            background-color: rgba(9, 187, 7, 0.2);
        }
        
        .social-icon.qq:hover {
            background-color: rgba(18, 183, 245, 0.2);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .input-icon {
            position: absolute;
            right: 16px;
            top: 42px;
            color: var(--light-text);
            transition: var(--transition);
        }
        
        input:focus ~ .input-icon {
            color: var(--primary-color);
            transform: scale(1.1);
        }
        
        .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;
        }
        
        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%);
        }
        
        .social-login {
            margin-top: 24px;
            text-align: center;
        }
        
        .social-divider {
            display: flex;
            align-items: center;
            margin: 16px 0;
            color: var(--light-text);
            font-size: 12px;
        }
        
        .social-divider::before,
        .social-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-color);
            margin: 0 10px;
        }
        
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 12px;
        }
        
        .social-icon {
            width: 40px;
            height: 40px;
            margin-right: 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            color: var(--text-color);
        }
        
        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .social-icon i {
            font-size: 30px;
        }
        
        /* 响应式设计 - 更小的设备 */
        @media (max-width: 400px) {
            .form-content {
                padding: 32px 16px;
            }
            
            h1 {
                font-size: 24px;
                margin-bottom: 24px;
            }
            
            .form-card {
                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; /* 适当减小字体大小 */
            }
            
            .submit-btn {
                padding: 14px;
                font-size: 14px;
            }
            
            .social-icons {
                gap: 8px;
            }
            
            .social-icon {
                width: 36px;
                height: 36px;
            }
            
            .nav-bar {
                padding: 15px 16px;
            }
            body {
                padding-top: 60px;
            }
        }
        
        @media (max-width: 768px) {
           .form-content {
                padding: 32px 16px;
            }
            
            h1 {
                font-size: 24px;
                margin-bottom: 24px;
            }
            
            .form-card {
                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; /* 适当减小字体大小 */
            }
            
            .submit-btn {
                padding: 14px;
                font-size: 14px;
            }
            
            .social-icons {
                gap: 8px;
            }
            
            .social-icon {
                width: 36px;
                height: 36px;
            }
            
            .nav-bar {
                padding: 15px 16px;
            }
            body {
                padding-top: 60px;
            }
        }
        
/******************************************************************/
        
/* 更新后的弹窗动画样式 */
        .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);
        }