.efs-app {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2329;
    line-height: 1.6;
}
.efs-hero { text-align: center; padding: 20px 0 8px; }
.efs-hero h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.efs-hero p { margin: 0 auto; max-width: 560px; color: #646a73; font-size: 14px; }

.efs-notice {
    display: flex; gap: 10px; align-items: flex-start;
    background: #fff7e6; border: 1px solid #ffe1a8; color: #8c5b00;
    padding: 12px 14px; border-radius: 10px; margin: 16px 0 20px; font-size: 13.5px; line-height: 1.7;
}
.efs-notice svg { flex: 0 0 auto; margin-top: 2px; }
.efs-notice + .efs-notice { margin-top: -10px; }
.efs-notice-danger { background: #fff1f0; border-color: #ffa39e; color: #a8071a; }

.efs-tabs {
    display: flex; gap: 8px; background: #f2f3f5; padding: 6px; border-radius: 12px; margin-bottom: 18px;
}
.efs-tab {
    flex: 1; padding: 10px 16px; border: 0; background: transparent;
    border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500;
    color: #4a4f57; transition: all .18s ease;
}
.efs-tab:hover { color: #1677ff; }
.efs-tab.active { background: #fff; color: #1677ff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.efs-panel { display: none; }
.efs-panel.active { display: block; }

.efs-segmented {
    display: inline-flex; background: #f2f3f5; padding: 4px; border-radius: 10px; margin-bottom: 16px;
}
.efs-seg { position: relative; cursor: pointer; }
.efs-seg input { position: absolute; opacity: 0; pointer-events: none; }
.efs-seg span {
    display: inline-block; padding: 7px 20px; border-radius: 7px;
    font-size: 14px; color: #4a4f57; transition: all .18s ease;
}
.efs-seg input:checked + span {
    background: #fff; color: #1677ff; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.efs-form { display: block; }
.efs-field { margin-bottom: 16px; }
.efs-label { display: block; font-size: 13.5px; font-weight: 500; color: #2b2f36; margin-bottom: 8px; }
.efs-form textarea,
.efs-code-input,
.efs-form input[type="text"] {
    width: 100%; box-sizing: border-box; padding: 12px 14px;
    border: 1px solid #d0d3d6; border-radius: 10px; font-size: 14.5px;
    font-family: inherit; background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.efs-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.efs-form textarea:focus,
.efs-code-input:focus,
.efs-form input[type="text"]:focus {
    outline: 0; border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.15);
}

.efs-code-input {
    font-size: 22px !important; letter-spacing: 3px; text-align: center; font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.efs-hint { margin-top: 6px; color: #8f959e; font-size: 12.5px; line-height: 1.6; }
.efs-text-counter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}
.efs-text-counter-wrap .efs-hint { margin-top: 0; flex: 1; }
.efs-text-counter {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: #8f959e;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    transition: color .18s ease;
    white-space: nowrap;
}
.efs-text-counter.is-warn {
    color: #d46b08;
    font-weight: 500;
}
.efs-text-counter.is-over {
    color: #cf1322;
    font-weight: 600;
}
.efs-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 26px 16px; background: #fafbfc;
    border: 1.5px dashed #c9cdd4; border-radius: 12px; cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.efs-drop:hover { border-color: #1677ff; background: #f5f9ff; }
.efs-drop.dragover {
    border-color: #1677ff; background: #e6f4ff;
    box-shadow: 0 0 0 4px rgba(22,119,255,.15) inset;
}
.efs-drop-icon {
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
    background: #1677ff; color: #fff; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
}
.efs-drop-text { color: #4a4f57; font-size: 14px; word-break: break-all; }

.efs-captcha { margin: 18px 0 6px; }
.efs-slider {
    position: relative; height: 44px; background: #f2f3f5;
    border-radius: 10px; user-select: none; touch-action: none; overflow: hidden;
}
.efs-slider-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 44px;
    background: linear-gradient(90deg, #bae0ff, #91caff);
    border-radius: 10px; transition: width .1s;
}
.efs-slider-thumb {
    position: absolute; left: 0; top: 0; width: 44px; height: 44px;
    background: #1677ff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: grab; z-index: 2;
    box-shadow: 0 2px 6px rgba(22,119,255,.35);
}
.efs-slider-text {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #8f959e; font-size: 13px; pointer-events: none; z-index: 1;
}
.efs-slider.solved { background: #f6ffed; }
.efs-slider.solved .efs-slider-fill { background: linear-gradient(90deg, #b7eb8f, #95de64); }
.efs-slider.solved .efs-slider-thumb { background: #389e0d; cursor: default; }
.efs-slider.solved .efs-slider-text { color: #389e0d; font-weight: 500; }

.efs-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 22px; border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: all .18s ease; text-decoration: none; line-height: 1;
}
.efs-btn-primary {
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff; box-shadow: 0 4px 14px rgba(22,119,255,.3);
}
.efs-btn-primary:hover { color: #fff; box-shadow: 0 6px 20px rgba(22,119,255,.4); transform: translateY(-1px); }
.efs-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.efs-btn-ghost { background: #fff; color: #1677ff; border: 1px solid #c9cdd4; }
.efs-btn-ghost:hover { border-color: #1677ff; color: #0958d9; }

.efs-send-btn, .efs-fetch-btn { width: 100%; margin-top: 4px; }

/* ---------------- 进度条 ---------------- */
.efs-progress {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f5f9ff;
    border: 1px solid #bae0ff;
    border-radius: 10px;
}
.efs-progress-label {
    font-size: 13px;
    color: #0958d9;
    margin-bottom: 8px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.efs-progress-track {
    height: 8px;
    background: #e6f0ff;
    border-radius: 6px;
    overflow: hidden;
}
.efs-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1677ff, #0958d9);
    border-radius: 6px;
    transition: width .2s ease;
}

.efs-status {
    margin-top: 12px; font-size: 13.5px; line-height: 1.6; text-align: center; min-height: 1em;
}
.efs-status-error { color: #cf1322; }
.efs-status-loading { color: #1677ff; }

/* 提取码错误分类的额外颜色（保留兼容） */
.efs-fetch-warn { color: #d46b08 !important; }
.efs-fetch-error { color: #cf1322 !important; }

.efs-result {
    margin-top: 20px; background: #f6ffed; border: 1px solid #b7eb8f;
    border-radius: 14px; padding: 22px 24px; text-align: center;
}
.efs-result-title { font-size: 17px; font-weight: 600; color: #237804; margin-bottom: 6px; }
.efs-result-desc { color: #4a4f57; font-size: 13.5px; margin: 0 0 12px; }
.efs-result-note { color: #646a73; font-size: 13px; margin: 10px 0 14px; }

.efs-code-box {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #b7eb8f; border-radius: 12px;
    padding: 10px 14px; margin: 6px 0;
}
.efs-code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 24px; font-weight: 700; letter-spacing: 4px; color: #237804;
    user-select: all;
}

.efs-share-text-wrap {
    margin: 18px 0;
    text-align: left;
}
.efs-share-text-label {
    font-size: 13px; color: #4a4f57; margin-bottom: 6px;
}
.efs-share-text {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #b7eb8f;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    background: #fff;
    color: #1f2329;
    resize: vertical;
    margin-bottom: 8px;
}

/* ---------------- 提取页提示 ---------------- */
.efs-fetch-tip {
    background: #f5f9ff;
    border: 1px solid #bae0ff;
    color: #0958d9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ---------------- 提取结果：来源展示 ---------------- */
.efs-from {
    background: #e6f4ff;
    border: 1px solid #91caff;
    color: #0958d9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: left;
}
.efs-from strong {
    color: #003eb3;
    font-weight: 600;
}

.efs-note-warn {
    background: #fff7e6; border: 1px solid #ffe1a8; color: #8c5b00;
    padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; text-align: left;
}
.efs-text-content {
    background: #fafbfc; border: 1px solid #e5e6eb; border-radius: 10px; padding: 16px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
    text-align: left; max-height: 500px; overflow: auto; margin: 0;
}
.efs-file-meta { color: #4a4f57; font-size: 14px; margin-bottom: 12px; word-break: break-all; text-align: left; }
.efs-download-btn { width: auto; min-width: 180px; margin: 0 auto 10px; display: block; text-align: center; }
.efs-download-clicked {
    background: #f2f3f5 !important;
    color: #8a8f99 !important;
    box-shadow: none !important;
    transform: none !important;
}

.efs-countdown {
    display: inline-block;
    margin: 4px auto 10px;
    padding: 8px 14px;
    background: #e6f4ff;
    border: 1px solid #91caff;
    border-radius: 8px;
    color: #0958d9;
    font-size: 13.5px;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.efs-countdown-warn { background: #fff7e6; border-color: #ffd591; color: #ad6800; }
.efs-countdown-expired { background: #fff1f0; border-color: #ffa39e; color: #a8071a; }

/* ---------------- 下载完成提示 ---------------- */
.efs-download-done {
    display: block;
    margin: 6px auto 10px;
    padding: 12px 16px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 10px;
    color: #237804;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
}

.efs-risk {
    margin: 0 0 14px 0; 
    padding: 10px 14px; 
    border-radius: 10px;
    background: #fff1f0; 
    border: 1px solid #ffa39e; 
    color: #a8071a;
    font-size: 13px; 
    line-height: 1.6; 
    text-align: left;
}

@media (max-width: 560px) {
    .efs-app { padding: 0 12px; }
    .efs-hero h2 { font-size: 22px; }
    .efs-code { font-size: 20px; letter-spacing: 3px; }
    .efs-code-input { font-size: 18px !important; }
}