:root {
    --primary-color: #FFC107;
    --primary-dark: #FFA000;
    --primary-light: #ffecb3;
    --highlight-color: #f0b90b;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --text-dark: #2c3e50;
    --border-color: #dddddd;
    --info-color: #2196F3;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --step-active: #FFC107;
    --step-inactive: #dddddd;
    --step-completed: #2ecc71;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    position: relative;
    margin: 10px 0;
}

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--step-inactive);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--step-inactive);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background-color: var(--step-active);
}

.step.completed .step-circle {
    background-color: var(--step-completed);
}

.step-text {
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-text {
    color: var(--step-active);
    font-weight: bold;
}

.step.completed .step-text {
    color: var(--step-completed);
}

/* 步骤内容区域 */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

/* 自动保存开关样式 - 重新定位 */
.auto-save-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 8px;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 优化语言选择器 */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.language-selector select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    color: var(--text-color);
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    max-width: 100px;
}

.language-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* 优化logo区域 */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 5px;
}

.logo-container img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 10px;
    object-fit: contain;
}

.logo-container h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.logo-container p {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 2px;
}

/* 优化表单组间距 */
.form-group {
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

/* 优化输入框样式 */
.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 40px;
    position: relative;
}

.input-with-prefix:focus-within {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

.input-with-prefix:hover {
    border-color: var(--highlight-color);
}

.phone-prefix {
    display: none;
    align-items: center;
    padding: 0 8px;
    height: 100%;
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 13px;
}

.phone-prefix.active {
    display: flex;
}

.country-flag {
    width: 16px;
    height: 12px;
    margin-right: 3px;
    object-fit: cover;
    border-radius: 2px;
}

.form-control {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent;
    outline: none;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.form-control:not(#phone-email):focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
    background-color: rgba(240, 185, 11, 0.05);
}

.form-control:not(#phone-email):hover {
    border-color: var(--highlight-color);
}

.input-with-prefix .form-control {
    border: none;
    padding-right: 70px;
}

.phone-prefix.active ~ .form-control {
    padding-right: 70px;
}

/* 优化按钮样式 */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #333;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    font-size: 13px;
    padding: 6px 10px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    background-color: #cccccc;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* 优化验证码布局 */
.verification-code {
    display: flex;
    gap: 6px;
}

.verification-code input {
    flex: 1;
}

/* 成功页面样式 */
.success-container {
    text-align: center;
}

.success-icon {
    font-size: 28px;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.success-message {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

/* 优化应用下载区域 */
.app-download {
    text-align: center;
    margin: 15px 0 8px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.app-download h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 15px;
}

.app-download p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 90px;
    font-size: 12px;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* 优化页脚 */
.footer {
    text-align: center;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 11px;
}

/* 错误消息样式 */
.error-message {
    color: var(--error-color);
    font-size: 11px;
    margin-top: 3px;
    display: none;
}

.success-message {
    color: var(--success-color);
    font-size: 11px;
    margin-top: 3px;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    background-color: var(--info-color);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

/* 邮箱建议样式 */
.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    max-height: 120px;
    overflow-y: auto;
    display: none;
}

.email-suggestion {
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.email-suggestion:hover, .email-suggestion.active {
    background-color: #f0f0f0;
}

/* 优化验证状态样式 */
.validation-status {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    display: none;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 5;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.validation-status.valid {
    color: var(--success-color);
    display: block;
    border-color: var(--success-color);
    opacity: 1;
    animation: fadeInScale 0.3s ease-out;
}

.validation-status.invalid {
    color: var(--error-color);
    display: block;
    border-color: var(--error-color);
    opacity: 1;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(-50%) scale(0.9); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    body {
        padding: 10px;
        justify-content: flex-start;
    }

    .container {
        padding: 15px;
        margin: 5px 0;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-container img {
        width: 45px;
        height: 45px;
    }

    .logo-container h1 {
        font-size: 18px;
    }

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

    .form-control {
        padding: 7px 9px;
        font-size: 13px;
        min-height: 38px;
    }

    .input-with-prefix {
        min-height: 38px;
    }

    .btn {
        padding: 7px 10px;
        font-size: 13px;
        min-height: 38px;
    }

    .validation-status {
        right: 6px;
        font-size: 9px;
        max-width: 90px;
        padding: 2px 4px;
    }

    .input-with-prefix .form-control {
        padding-right: 60px;
    }

    .phone-prefix.active ~ .form-control {
        padding-right: 60px;
    }

    .app-download {
        margin: 12px 0 6px;
        padding: 10px;
    }

    .app-download h3 {
        font-size: 14px;
    }

    .download-btn {
        min-width: 85px;
        font-size: 11px;
    }

    .step-circle {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .step-text {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 12px;
    }

    .logo-container img {
        width: 40px;
        height: 40px;
    }

    .logo-container h1 {
        font-size: 16px;
    }

    .logo-container p {
        font-size: 11px;
    }

    .form-control {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .input-with-prefix {
        min-height: 36px;
    }

    .btn {
        min-height: 36px;
        font-size: 12px;
        padding: 6px 8px;
    }

    .verification-code {
        flex-direction: column;
        gap: 5px;
    }

    #send-code {
        margin-top: 0;
    }

    .download-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .download-btn {
        min-width: auto;
        width: 100%;
    }

    .validation-status {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 3px;
        display: inline-block;
        max-width: 100%;
        text-align: right;
        animation: fadeInDown 0.3s ease-out;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-3px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .input-with-prefix .form-control {
        padding-right: 8px;
    }

    .phone-prefix.active ~ .form-control {
        padding-right: 8px;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-height: 600px) and (max-width: 480px) {
    .app-download {
        display: none;
    }

    .footer {
        margin-top: 8px;
    }
}
.wechat-tip {
    display: none; /* 默认隐藏，通过JS控制显示 */
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10000;
    background-color: #fff6e0;
    border: 1px solid #ffc53d;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 280px;
}

.tip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tip-text {
    color: #d48806;
    font-size: 14px;
    line-height: 1.4;
    margin-right: 8px;
}

.tip-close {
    cursor: pointer;
    color: #d48806;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.tip-close:hover {
    color: #874d00;
}
/* 密码输入框容器样式 - 更新 */
.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 输入框样式调整 */
.password-container .form-control {
    padding-right: 40px; /* 为眼睛图标留出空间 */
    width: 100%;
    box-sizing: border-box;
}

/* 眼睛图标样式 - 精确定位到输入框内部末尾 */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 2; /* 确保图标在输入框上方 */
}

.toggle-password:hover {
    opacity: 1;
}

/* 眼睛图标 - 使用SVG背景 */
.toggle-password.show-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.toggle-password.hide-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
}
/* 添加步骤1的下载区域样式 */
.step1-download {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.step1-download h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.step1-download p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6c757d;
}

.step1-download .download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.step1-download .download-btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.step1-download .download-btn:hover {
    background-color: #218838;
}

.step1-download .download-btn.android {
    background-color: #28a745;
}

.step1-download .download-btn.android:hover {
    background-color: #218838;
}

.step1-download .download-btn.ios {
    background-color: #007bff;
}

.step1-download .download-btn.ios:hover {
    background-color: #0056b3;
}

@media (max-width: 480px) {
    .step1-download .download-buttons {
        flex-direction: column;
    }

    .step1-download .download-btn {
        width: 100%;
    }
}