.ymx-retrieve-password-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    background-color: var(--ymx-bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ymx-retrieve-tabs {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.ymx-retrieve-tabs::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 0;
    height: 2px;
    background: #e6e6e6;
}

.ymx-retrieve-tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.ymx-retrieve-tab .tab-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #e6e6e6;
    color: var(--ymx-text-muted);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.ymx-retrieve-tab .tab-label {
    color: var(--ymx-text-muted);
    font-size: 14px;
    transition: all 0.3s;
}

.ymx-retrieve-tab.active .tab-number {
    background: #007bfe;
    color: #fff;
}

.ymx-retrieve-tab.active .tab-label {
    color: #007bfe;
    font-weight: 600;
}

.ymx-retrieve-tab.completed .tab-number {
    background: #52c41a;
    color: #fff;
}

.ymx-retrieve-tab.completed .tab-label {
    color: #52c41a;
}

.ymx-retrieve-content {
    min-height: 300px;
}

.ymx-retrieve-panel {
    display: none;
    text-align: center;
}

.ymx-retrieve-panel.is-active {
    display: block;
}

.ymx-retrieve-title {
    margin-bottom: 20px;
    color: var(--ymx-text-primary);
    font-size: 20px;
    font-weight: 600;
}

.ymx-retrieve-text {
    margin-bottom: 20px;
    color: var(--ymx-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.ymx-retrieve-form {
    max-width: 400px;
    margin: 0 auto;
}

.ymx-retrieve-form-group {
    margin-bottom: 20px;
}

.ymx-retrieve-form input[type="text"],
.ymx-retrieve-form input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ymx-border-color);
    border-radius: 6px;
    background: #fafbfc;
    font-size: 15px;
    transition: all 0.3s;
}

.ymx-retrieve-form input[type="text"]:focus,
.ymx-retrieve-form input[type="password"]:focus {
    border-color: #007bfe;
    outline: none;
    background-color: var(--ymx-bg-card);
}

.ymx-retrieve-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #007bfe 0%, #4a9eff 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 254, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ymx-retrieve-submit-btn:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bfe 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 254, 0.3);
}

.ymx-retrieve-submit-btn:active {
    transform: translateY(1px);
}

.ymx-retrieve-success-message,
.ymx-retrieve-error-message {
    padding: 20px 0;
}

.ymx-retrieve-error {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #fff2f0;
    color: #ff4d4f;
    font-size: 14px;
    text-align: left;
}

.ymx-retrieve-link-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    background: #007bfe;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.ymx-retrieve-link-btn:hover {
    background: #0056b3;
}

/* ========== 专题列表页样式（已迁移至 topic-page.css）========== */

@media (max-width: 768px) {
    .ymx-retrieve-password-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .ymx-retrieve-tabs {
        margin-bottom: 30px;
    }

    .ymx-retrieve-tab .tab-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ymx-retrieve-tab .tab-label {
        font-size: 12px;
    }

    .ymx-retrieve-title {
        font-size: 18px;
    }

    .ymx-retrieve-form {
        max-width: 100%;
    }

    .main-layout {
        padding: 0;
    }
}

body.ymx-dark-mode .ymx-retrieve-password-container {
    background: #2a2a2a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.ymx-dark-mode .ymx-retrieve-tabs::before {
    background: #3a3a3a;
}

body.ymx-dark-mode .ymx-retrieve-tab .tab-number {
    background: #3a3a3a;
    color: #888888;
}

body.ymx-dark-mode .ymx-retrieve-tab .tab-label {
    color: #888888;
}

body.ymx-dark-mode .ymx-retrieve-tab.active .tab-number {
    background: #4a9eff;
    color: #fff;
}

body.ymx-dark-mode .ymx-retrieve-tab.completed .tab-number {
    background: #52c41a;
    color: #fff;
}

body.ymx-dark-mode .ymx-retrieve-tab.completed .tab-label {
    color: #52c41a;
}

body.ymx-dark-mode .ymx-retrieve-text {
    color: #aaaaaa;
}

body.ymx-dark-mode .ymx-retrieve-form input[type="text"],
body.ymx-dark-mode .ymx-retrieve-form input[type="password"] {
    border-color: #4a4a4a;
    background: #333333;
    color: #eaeaea;
}

body.ymx-dark-mode .ymx-retrieve-form input[type="text"]:focus,
body.ymx-dark-mode .ymx-retrieve-form input[type="password"]:focus {
    border-color: #4a9eff;
    background: #3a3a3a;
}

body.ymx-dark-mode .ymx-retrieve-form input::placeholder {
    color: #666666;
}

body.ymx-dark-mode .ymx-retrieve-submit-btn {
    background: linear-gradient(90deg, #2a6fd6 0%, #4a9eff 100%);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
}

body.ymx-dark-mode .ymx-retrieve-submit-btn:hover {
    background: linear-gradient(90deg, #1a5fc6 0%, #2a6fd6 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.35);
}

body.ymx-dark-mode .ymx-retrieve-error {
    background: #3a1a1a;
    color: #ff7875;
}

body.ymx-dark-mode .ymx-retrieve-link-btn:hover {
    background: #2a6fd6;
}
