/* index.css */
        :root {
            --primary-blue: #3498db;
            --secondary-blue: #2980b9;
            --light-blue: #e1f5fe;
            --teal: #1abc9c;
            --light-teal: #d1f2eb;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f9fbfd;
            background-image: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow-x: hidden;
        }
        
        /* 装饰元素 */
        .decoration {
            position: absolute;
            z-index: 0;
        }
        
        .dec-1 {
            top: 10%;
            left: 5%;
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, var(--primary-blue), var(--teal));
            border-radius: 50%;
            opacity: 0.1;
        }
        
        .dec-2 {
            bottom: 15%;
            right: 10%;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-blue), var(--teal));
            border-radius: 50%;
            opacity: 0.1;
        }
        
        .dec-3 {
            top: 40%;
            right: 15%;
            width: 60px;
            height: 60px;
            border: 2px solid var(--teal);
            border-radius: 50%;
            opacity: 0.1;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(120deg, var(--primary-blue), var(--teal));
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            position: relative;
            z-index: 100;
        }
        
        .logo {
            display: flex;
            align-items: center;
            color: var(--white);
            text-decoration: none;
        }
        
        .logo i {
            font-size: 2.5rem;
            margin-right: 0.8rem;
            color: var(--light);
        }
        
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .nav-buttons {
            display: flex;
            gap: 1rem;
        }
        
        .btn {
            padding: 0.6rem 1.5rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .btn-login {
            background-color: var(--white);
            color: var(--primary-blue);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        
        .btn-login:hover {
            background-color: var(--light);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        }
        
        /* 注册容器 */
        .register-container {
            max-width: 800px;
            width: 90%;
            margin: 3rem auto;
            background: var(--white);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            position: relative;
            z-index: 10;
            display: flex;
        }
        
        .register-left {
            flex: 1;
            background: linear-gradient(135deg, var(--primary-blue), var(--teal));
            padding: 3rem 2rem;
            color: var(--white);
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }
        
        .register-left h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }
        
        .register-left p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .features-list {
            text-align: left;
            margin-top: 2rem;
            padding-left: 1.5rem;
        }
        
        .features-list li {
            margin-bottom: 1rem;
            position: relative;
            padding-left: 2rem;
        }
        
        .features-list li:before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            width: 12px;
            height: 12px;
            background-color: var(--white);
            border-radius: 50%;
        }
        
        .register-right {
            flex: 1.2;
            padding: 3rem 2.5rem;
        }
        
        .register-right h3 {
            font-size: 1.8rem;
            color: var(--dark);
            margin-bottom: 1.5rem;
            text-align: center;
            background: linear-gradient(90deg, var(--primary-blue), var(--teal));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark);
        }
        
        .form-group input {
            width: 100%;
            padding: 0.8rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .form-group input:focus {
            border-color: var(--primary-blue);
            outline: none;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        
        .form-note {
            font-size: 0.85rem;
            color: #777;
            margin-top: 0.3rem;
        }
        
        /* 头像上传区域 */
        .avatar-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 1.5rem 0;
        }
        
        .avatar-preview {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: #f0f5ff;
            border: 2px dashed var(--teal);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 1rem;
            position: relative;
            cursor: pointer;
        }
        
        .avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .avatar-preview i {
            font-size: 2.5rem;
            color: var(--teal);
        }
        
        .avatar-upload p {
            color: #666;
            font-size: 0.9rem;
            text-align: center;
        }
        
        .btn-register {
            background: linear-gradient(90deg, var(--primary-blue), var(--teal));
            color: var(--white);
            width: 100%;
            padding: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 1rem;
        }
        
        .btn-register:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
        }
        
        .login-link {
            text-align: center;
            margin-top: 1.5rem;
            color: #555;
        }
        
        .login-link a {
            color: var(--teal);
            text-decoration: none;
            font-weight: 600;
        }
        
        .login-link a:hover {
            text-decoration: underline;
        }
        
        /* 底部样式 */
        footer {
            background: var(--dark);
            color: var(--light);
            padding: 2rem 5%;
            margin-top: auto;
            text-align: center;
            position: relative;
            z-index: 10;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .footer-links {
            display: flex;
            gap: 2rem;
            margin: 1.5rem 0;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .footer-links a {
            color: var(--light);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: var(--teal);
            text-decoration: underline;
        }
        
        .copyright {
            margin-top: 1rem;
            font-size: 0.9rem;
            color: #bbb;
        }
        
        /* 成功模态框 */
        .success-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .success-content {
            background: var(--white);
            border-radius: 16px;
            width: 100%;
            max-width: 450px;
            padding: 3rem 2rem;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            animation: modalAppear 0.4s ease;
        }
        
        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .success-icon {
            font-size: 4rem;
            color: var(--teal);
            margin-bottom: 1.5rem;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .success-content h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }
        
        .success-content p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 2rem;
        }
        
        .btn-back {
            background: linear-gradient(90deg, var(--primary-blue), var(--teal));
            color: var(--white);
            padding: 0.8rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            display: inline-block;
        }
        
        .btn-back:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .register-container {
                flex-direction: column;
            }
            
            .register-left {
                padding: 2rem;
            }
            
            .register-left h2 {
                font-size: 2rem;
            }
            
            .register-right {
                padding: 2rem;
            }
            
            .footer-links {
                gap: 1rem;
            }
            
            .decoration {
                display: none;
            }
        }

        /* 昵称反馈样式 */
.nickname-feedback {
    margin-top: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nickname-available {
    color: #2ecc71;
}

.nickname-unavailable {
    color: #e74c3c;
}

.nickname-checking {
    color: #3498db;
}

        /* 添加字段反馈样式 */
        .field-feedback {
            margin-top: 5px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px;
            border-radius: 4px;
        }
        
        .field-feedback.available {
            color: #27ae60;
            background-color: rgba(39, 174, 96, 0.1);
        }
        
        .field-feedback.unavailable {
            color: #e74c3c;
            background-color: rgba(231, 76, 60, 0.1);
        }
        
        .field-feedback.checking {
            color: #3498db;
            background-color: rgba(52, 152, 219, 0.1);
        }
        
        .field-feedback.error {
            color: #f39c12;
            background-color: rgba(243, 156, 18, 0.1);
        }

/* 在register.css中添加以下样式 */
.field-feedback.error {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
}
.field-feedback.success {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
}
.field-feedback i {
    margin-right: 5px;
}