/* ============================================================
   06-import-wizard.css —— 三种导入方式共用向导样式
   enfdModal / hgTokenModal / qrLoginModal
   ============================================================ */

/* ---------- 森空岛凭证导入 ---------- */
#enfdModal { z-index: 20000 !important; }
#enfdModal .enfd-wizard {
    max-width: 820px;
    width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 20px;
}
#enfdModal .batch-header h2 { font-size: 1.35rem; }
#enfdModal .enfd-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 18px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 16px;
}
#enfdModal .enfd-progress-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
#enfdModal .enfd-progress-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: #98a5b3;
    border: 2px solid #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.25s;
}
#enfdModal .enfd-progress-label { font-size: 0.82rem; color: #8a94a0; font-weight: 500; white-space: nowrap; }
#enfdModal .enfd-progress-line { flex: 1 1 auto; height: 2px; background: #e2e8f0; margin: 0 6px 24px; border-radius: 2px; }
#enfdModal .enfd-progress-item.active .enfd-progress-dot {
    background: #3f7e6b;
    color: #fff;
    border-color: #3f7e6b;
    box-shadow: 0 0 0 4px rgba(63,126,107,0.15);
    transform: scale(1.05);
}
#enfdModal .enfd-progress-item.active .enfd-progress-label { color: #3f7e6b; font-weight: 700; }
#enfdModal .enfd-progress-item.done .enfd-progress-dot { background: #b8d5cb; color: #fff; border-color: #b8d5cb; }
#enfdModal .enfd-progress-item.done .enfd-progress-label { color: #6ba08e; }
#enfdModal .enfd-step-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 4px 8px; font-size: 1rem; line-height: 1.75; color: #333; }
#enfdModal .enfd-step { display: none; }
#enfdModal .enfd-step.active { display: block; }
#enfdModal .enfd-step-title { font-size: 1.15rem; font-weight: 700; color: #1a2a3a; margin: 0 0 12px 0; }
#enfdModal .enfd-step-desc { font-size: 1rem; color: #444; margin: 0 0 14px 0; }
#enfdModal .enfd-step-list { font-size: 1rem; color: #333; margin: 0 0 14px 0; padding-left: 1.4em; }
#enfdModal .enfd-step-list li { margin-bottom: 6px; }
#enfdModal .enfd-step-list code,
#enfdModal .enfd-step-desc code { background: #eef2f7; padding: 2px 7px; border-radius: 4px; color: #c0392b; font-size: 0.95rem; }
#enfdModal .enfd-warning-box {
    background: #fff8e6;
    border: 1px solid #ffd86b;
    border-left: 4px solid #f0b400;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
#enfdModal .enfd-warning-title { font-size: 1.08rem; font-weight: 700; color: #8a5e00; margin-bottom: 10px; }
#enfdModal .enfd-warning-box ul { margin: 0; padding-left: 1.3em; font-size: 0.98rem; color: #5f4400; line-height: 1.8; }
#enfdModal .enfd-warning-box li { margin-bottom: 8px; }
#enfdModal .enfd-center-btn-wrap { text-align: center; margin: 22px 0 14px; }
#enfdModal .enfd-open-skland-btn {
    display: inline-block;
    background: #3f7e6b;
    color: #fff;
    padding: 14px 42px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(63,126,107,0.25);
}
#enfdModal .enfd-note {
    text-align: center;
    font-size: 0.95rem;
    color: #b0885a;
    background: #fdf6ec;
    border: 1px dashed #e8cfae;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 8px auto 0;
    max-width: 520px;
}
#enfdModal .enfd-img-wrap {
    text-align: center;
    margin: 14px 0;
    background: #f8fafc;
    border: 1px dashed #d0d7de;
    border-radius: 10px;
    padding: 12px;
}
#enfdModal .enfd-img-wrap img { max-width: 100%; max-height: 320px; border-radius: 6px; display: block; margin: 0 auto; }
#enfdModal .enfd-img-fallback { display: none; color: #999; font-size: 0.95rem; padding: 40px 0; }
#enfdModal .enfd-code-box {
    display: flex;
    align-items: stretch;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    overflow: hidden;
    margin: 14px 0 4px;
    border: 1px solid #333;
}
#enfdModal .enfd-code-box code {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-all;
    color: #d4d4d4;
}
#enfdModal .enfd-copy-btn {
    flex-shrink: 0;
    background: #3f7e6b;
    color: #fff;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}
#enfdModal .enfd-copy-btn.copied { background: #b0885a; }
#enfdModal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}
#enfdModal textarea:focus { border-color: #3f7e6b; }
#enfdModal .enfd-status { margin-top: 12px; font-size: 1rem; min-height: 1.6em; font-weight: 500; }
#enfdModal .enfd-status.err { color: #c0392b; }
#enfdModal .enfd-status.ok { color: #3f7e6b; }
#enfdModal .enfd-status.info { color: #555; }
#enfdModal .enfd-import-summary {
    background: #f0f7f4;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #2c4a40;
    border: 1px solid #d4e5de;
    line-height: 1.8;
}
#enfdModal .enfd-import-summary b { color: #3f7e6b; font-weight: 700; }
#enfdModal .enfd-import-summary .warn { color: #b0885a; }
#enfdModal .config-preview-grid { max-height: 44vh; }
#enfdModal .enfd-wizard-footer {
    flex-shrink: 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid #eef2f6;
}
#enfdModal .enfd-wizard-footer button {
    padding: 12px 34px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
#enfdModal .enfd-btn-back { background: #eef2f6; color: #444; }
#enfdModal .enfd-btn-next { background: #3f7e6b; color: #fff; margin-left: auto; }
#enfdModal .enfd-btn-next:disabled { background: #ccc; cursor: not-allowed; }

/* ---------- 官网 Token 导入 ---------- */
#hgTokenModal { z-index: 20000 !important; }
#hgTokenModal .enfd-wizard {
    max-width: 820px;
    width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 20px;
}
#hgTokenModal .batch-header h2 { font-size: 1.35rem; }
#hgTokenModal .enfd-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 18px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 16px;
}
#hgTokenModal .enfd-progress-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
#hgTokenModal .enfd-progress-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: #98a5b3;
    border: 2px solid #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.25s;
}
#hgTokenModal .enfd-progress-label { font-size: 0.82rem; color: #8a94a0; font-weight: 500; white-space: nowrap; }
#hgTokenModal .enfd-progress-line { flex: 1 1 auto; height: 2px; background: #e2e8f0; margin: 0 6px 24px; border-radius: 2px; }
#hgTokenModal .enfd-progress-item.active .enfd-progress-dot {
    background: #3f7e6b;
    color: #fff;
    border-color: #3f7e6b;
    box-shadow: 0 0 0 4px rgba(63,126,107,0.15);
    transform: scale(1.05);
}
#hgTokenModal .enfd-progress-item.active .enfd-progress-label { color: #3f7e6b; font-weight: 700; }
#hgTokenModal .enfd-progress-item.done .enfd-progress-dot { background: #b8d5cb; color: #fff; border-color: #b8d5cb; }
#hgTokenModal .enfd-progress-item.done .enfd-progress-label { color: #6ba08e; }
#hgTokenModal .enfd-step-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 4px 8px; font-size: 1rem; line-height: 1.75; color: #333; }
#hgTokenModal .enfd-step { display: none; }
#hgTokenModal .enfd-step.active { display: block; }
#hgTokenModal .enfd-step-title { font-size: 1.15rem; font-weight: 700; color: #1a2a3a; margin: 0 0 12px 0; }
#hgTokenModal .enfd-step-desc { font-size: 1rem; color: #444; margin: 0 0 14px 0; }
#hgTokenModal .enfd-step-list { font-size: 1rem; color: #333; margin: 0 0 14px 0; padding-left: 1.4em; }
#hgTokenModal .enfd-step-list li { margin-bottom: 6px; }
#hgTokenModal .enfd-step-list code,
#hgTokenModal .enfd-step-desc code { background: #eef2f7; padding: 2px 7px; border-radius: 4px; color: #c0392b; font-size: 0.95rem; }
#hgTokenModal .enfd-warning-box {
    background: #fff8e6;
    border: 1px solid #ffd86b;
    border-left: 4px solid #f0b400;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
#hgTokenModal .enfd-warning-title { font-size: 1.08rem; font-weight: 700; color: #8a5e00; margin-bottom: 10px; }
#hgTokenModal .enfd-warning-box ul { margin: 0; padding-left: 1.3em; font-size: 0.98rem; color: #5f4400; line-height: 1.8; }
#hgTokenModal .enfd-warning-box li { margin-bottom: 8px; }
#hgTokenModal .enfd-center-btn-wrap { text-align: center; margin: 22px 0 14px; }
#hgTokenModal .enfd-open-skland-btn {
    display: inline-block;
    background: #3f7e6b;
    color: #fff;
    padding: 14px 42px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(63,126,107,0.25);
}
#hgTokenModal .enfd-note {
    text-align: center;
    font-size: 0.95rem;
    color: #b0885a;
    background: #fdf6ec;
    border: 1px dashed #e8cfae;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 8px auto 0;
    max-width: 520px;
}
#hgTokenModal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}
#hgTokenModal textarea:focus { border-color: #3f7e6b; }
#hgTokenModal .enfd-status { margin-top: 12px; font-size: 1rem; min-height: 1.6em; font-weight: 500; }
#hgTokenModal .enfd-status.err { color: #c0392b; }
#hgTokenModal .enfd-status.ok { color: #3f7e6b; }
#hgTokenModal .enfd-status.info { color: #555; }
#hgTokenModal .enfd-import-summary {
    background: #f0f7f4;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #2c4a40;
    border: 1px solid #d4e5de;
    line-height: 1.8;
}
#hgTokenModal .enfd-import-summary b { color: #3f7e6b; font-weight: 700; }
#hgTokenModal .enfd-import-summary .warn { color: #b0885a; }
#hgTokenModal .config-preview-grid { max-height: 44vh; }
#hgTokenModal .enfd-wizard-footer {
    flex-shrink: 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid #eef2f6;
}
#hgTokenModal .enfd-wizard-footer button {
    padding: 12px 34px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
#hgTokenModal .enfd-btn-back { background: #eef2f6; color: #444; }
#hgTokenModal .enfd-btn-next { background: #3f7e6b; color: #fff; margin-left: auto; }
#hgTokenModal .enfd-btn-next:disabled { background: #ccc; cursor: not-allowed; }

/* ---------- 森空岛扫码登录 ---------- */
#qrLoginModal { z-index: 20000 !important; }
#qrLoginModal .enfd-wizard {
    max-width: 820px;
    width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 20px;
}
#qrLoginModal .batch-header h2 { font-size: 1.35rem; }
#qrLoginModal .enfd-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 18px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 16px;
}
#qrLoginModal .enfd-progress-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
#qrLoginModal .enfd-progress-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: #98a5b3;
    border: 2px solid #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.25s;
}
#qrLoginModal .enfd-progress-label { font-size: 0.82rem; color: #8a94a0; font-weight: 500; white-space: nowrap; }
#qrLoginModal .enfd-progress-line { flex: 1 1 auto; height: 2px; background: #e2e8f0; margin: 0 6px 24px; border-radius: 2px; }
#qrLoginModal .enfd-progress-item.active .enfd-progress-dot {
    background: #3f7e6b;
    color: #fff;
    border-color: #3f7e6b;
    box-shadow: 0 0 0 4px rgba(63,126,107,0.15);
    transform: scale(1.05);
}
#qrLoginModal .enfd-progress-item.active .enfd-progress-label { color: #3f7e6b; font-weight: 700; }
#qrLoginModal .enfd-progress-item.done .enfd-progress-dot { background: #b8d5cb; color: #fff; border-color: #b8d5cb; }
#qrLoginModal .enfd-progress-item.done .enfd-progress-label { color: #6ba08e; }
#qrLoginModal .enfd-step-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 4px 8px; font-size: 1rem; line-height: 1.75; color: #333; }
#qrLoginModal .enfd-step { display: none; }
#qrLoginModal .enfd-step.active { display: block; }
#qrLoginModal .enfd-step-title { font-size: 1.15rem; font-weight: 700; color: #1a2a3a; margin: 0 0 12px 0; }
#qrLoginModal .enfd-import-summary {
    background: #f0f7f4;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #2c4a40;
    border: 1px solid #d4e5de;
    line-height: 1.8;
}
#qrLoginModal .enfd-import-summary b { color: #3f7e6b; font-weight: 700; }
#qrLoginModal .enfd-import-summary .warn { color: #b0885a; }
#qrLoginModal .config-preview-grid { max-height: 44vh; }
#qrLoginModal .enfd-wizard-footer {
    flex-shrink: 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid #eef2f6;
}
#qrLoginModal .enfd-wizard-footer button {
    padding: 12px 34px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
#qrLoginModal .enfd-btn-back { background: #eef2f6; color: #444; }
#qrLoginModal .enfd-btn-next { background: #3f7e6b; color: #fff; margin-left: auto; }
#qrLoginModal .enfd-btn-next:disabled { background: #ccc; cursor: not-allowed; }
/* ============================================================
   账号确认卡片（三弹窗共用）
   ============================================================ */
.enfd-account-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 18px auto;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.enfd-account-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a2a3a;
    line-height: 1.4;
    word-break: break-all;
    letter-spacing: 0.3px;
}
.enfd-account-meta {
    font-size: 0.85rem;
    color: #555;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.3px;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .enfd-account-card { padding: 16px 18px; max-width: 300px; }
    .enfd-account-name { font-size: 1.05rem; }
    .enfd-account-meta { font-size: 0.78rem; }
}