/*注册页*/
/* register.css */

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* 减去页眉页脚高度 */
    padding: 2rem 0;
}

.register-container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 0 auto;
}

.register-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.8rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.verification-code .code-input-container {
    display: flex;
    gap: 0.8rem;
}

.verification-code input {
    flex: 1;
}

.btn-get-code {
    padding: 0 1.2rem;
    background-color: #edf2f7;
    color: #2d3748;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-get-code:hover {
    background-color: #e2e8f0;
}

.btn-get-code:disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.btn-register-submit {
    padding: 0.9rem;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-register-submit:hover {
    background-color: #3182ce;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .register-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .verification-code .code-input-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-get-code {
        padding: 0.6rem;
    }
}

/* 错误状态 */
.form-group input.error {
    border-color: #e53e3e;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

/* 成功状态 */
.form-group input.success {
    border-color: #38a169;
}

.form-group input.success:focus {
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

/* 表单样式 */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* 验证码输入区域 */
.code-input-container {
    display: flex;
    gap: 10px;
}

#verificationCode {
    flex: 1;
}

.btn-get-code {
    padding: 12px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* 注册按钮 */
.btn-register-submit {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-register-submit:hover {
    background-color: #45a049;
}


/* 登录链接1 */
.register-link {
    text-align: center;
    color: #666;
}

.register-link a {
    color: #4285f4;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 登录链接2 */
.register-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}



/* ========== 悬浮攻略提示组件  ========== */

 /* 精致卡片气泡悬浮提示 */
.guide-float-cloud {
    position: fixed;
    top: 120px;
    right: 40px;
    z-index: 99999;
    cursor: pointer;
    animation: cloudFloat 3s ease-in-out infinite;
    text-decoration: none;
}

.guide-float-cloud:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

.guide-cloud-body {
    width: 110px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.3),
        0 2px 6px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 卡片内部白色背景 */
.guide-cloud-body::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: 12px;
}

/* 卡片小尾巴 */
.guide-cloud-body::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: #ffffff;
    border-top: 2px solid #764ba2;
    border-right: 2px solid #764ba2;
    border-radius: 0 3px 0 0;
}

/* 提示文字 */
.guide-cloud-text {
    position: relative;
    z-index: 10;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-cloud-text::before {
    content: '✨';
    font-size: 13px;
}

/* 脉冲动画效果 */
.guide-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    animation: pulseRing 2s ease-out infinite;
    top: 0;
    left: 0;
}

/* 小标签 */
.guide-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,107,107,0.4);
    z-index: 20;
    animation: badgePulse 1.5s ease-in-out infinite;
}

/* 动画定义 */
@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}