/* =====================================================
   社群体验官计划 · 弹窗 + 左下角入口
   ===================================================== */
.bl-eo-root {
    --bl-eo-ink: #0f172a;
    --bl-eo-body: #334155;
    --bl-eo-muted: #64748b;
    --bl-eo-line: #e8ecf1;
    --bl-eo-bg: #ffffff;
    --bl-eo-soft: #f5f7fa;
    --bl-eo-accent: #0b5cab;
    --bl-eo-accent-soft: #e8f1fb;
    --bl-eo-ok: #0f6b3c;
    --bl-eo-radius: 14px;
    --bl-eo-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 18px 40px -18px rgba(15, 23, 42, 0.28);
    --bl-eo-ease: cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-ui, 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
    -webkit-font-smoothing: antialiased;
}

/* 左下角停靠栏：启动按钮会被移入 dock，脱离 .bl-eo-root，需在此保留变量 */
.bl-corner-dock {
    --bl-eo-ink: #0f172a;
    --bl-eo-line: #e8ecf1;
    --bl-eo-accent: #0b5cab;
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 1015;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.bl-corner-dock > * {
    pointer-events: auto;
}

.bl-eo-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--bl-eo-line, #e8ecf1);
    border-radius: 999px;
    background: #fff;
    color: var(--bl-eo-ink, #0f172a);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 24px -12px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s var(--bl-eo-ease, cubic-bezier(0.16, 1, 0.3, 1)), background 0.15s ease;
}

.bl-eo-launcher.is-ready {
    opacity: 1;
    transform: none;
}

.bl-eo-launcher.is-hidden-by-modal {
    opacity: 0;
    pointer-events: none;
}

.bl-eo-launcher:hover,
.bl-eo-launcher:focus-visible {
    background: #f8fafc;
    outline: none;
}

.bl-eo-launcher-ico {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bl-eo-accent, #0b5cab);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.bl-eo-launcher-ico svg {
    width: 14px;
    height: 14px;
    display: block;
}

.bl-eo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10460;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bl-eo-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bl-eo-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: min(92vh, 780px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bl-eo-bg);
    border-radius: var(--bl-eo-radius);
    box-shadow: var(--bl-eo-shadow);
    color: var(--bl-eo-ink);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s var(--bl-eo-ease), opacity 0.2s ease;
}

.bl-eo-backdrop.is-open .bl-eo-dialog {
    transform: none;
    opacity: 1;
}

.bl-eo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bl-eo-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.bl-eo-close:hover,
.bl-eo-close:focus-visible {
    background: var(--bl-eo-soft);
    color: var(--bl-eo-ink);
    outline: none;
}

.bl-eo-body {
    padding: 22px 22px 10px;
}

.bl-eo-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bl-eo-accent-soft);
    color: var(--bl-eo-accent);
    font-size: 12px;
    font-weight: 600;
}

.bl-eo-title {
    margin: 12px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.bl-eo-lead {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--bl-eo-body);
}

.bl-eo-points {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bl-eo-soft);
    list-style: none;
}

.bl-eo-points li {
    position: relative;
    padding-left: 14px;
    margin: 0 0 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--bl-eo-body);
}

.bl-eo-points li:last-child {
    margin-bottom: 0;
}

.bl-eo-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bl-eo-accent);
}

.bl-eo-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.bl-eo-field label,
.bl-eo-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bl-eo-ink);
}

.bl-eo-field input,
.bl-eo-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--bl-eo-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bl-eo-ink);
    font: inherit;
    font-size: 13.5px;
    padding: 10px 12px;
    outline: none;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}

.bl-eo-field input:focus,
.bl-eo-field textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

.bl-eo-field textarea {
    min-height: 72px;
}

/* 自定义平台下拉 */
.bl-eo-select {
    position: relative;
}

.bl-eo-select-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--bl-eo-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bl-eo-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bl-eo-select-btn:hover {
    background: #fafbfc;
}

.bl-eo-select.is-open .bl-eo-select-btn,
.bl-eo-select-btn:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
    outline: none;
}

.bl-eo-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-eo-select-caret {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 1.5px solid var(--bl-eo-muted);
    border-bottom: 1.5px solid var(--bl-eo-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.bl-eo-select.is-open .bl-eo-select-caret {
    transform: rotate(225deg) translateY(-1px);
}

.bl-eo-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--bl-eo-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.03);
    max-height: min(240px, 42vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.bl-eo-select-menu[hidden] {
    display: none !important;
}

.bl-eo-select-menu [role="option"] {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--bl-eo-body);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.bl-eo-select-menu [role="option"]:hover,
.bl-eo-select-menu [role="option"]:focus-visible {
    background: var(--bl-eo-soft);
    color: var(--bl-eo-ink);
}

.bl-eo-select-menu [role="option"].is-active,
.bl-eo-select-menu [role="option"][aria-selected="true"] {
    background: var(--bl-eo-accent-soft);
    color: var(--bl-eo-accent);
    font-weight: 600;
}

.bl-eo-quota {
    margin-top: 2px;
    font-size: 12px;
    color: var(--bl-eo-muted);
}

.bl-eo-error {
    min-height: 18px;
    margin: 0;
    font-size: 12.5px;
    color: #dc2626;
}

.bl-eo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 22px 18px;
    border-top: 1px solid var(--bl-eo-line);
}

.bl-eo-mine {
    border: 0;
    background: transparent;
    color: var(--bl-eo-accent);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.bl-eo-mine:hover {
    text-decoration: underline;
}

.bl-eo-submit {
    appearance: none;
    border: 0;
    border-radius: 8px;
    height: 38px;
    padding: 0 18px;
    background: var(--bl-eo-ink);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.bl-eo-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bl-eo-submit:not(:disabled):hover {
    background: #1e293b;
}

.bl-eo-st {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.bl-eo-st--pending { background: #fef3c7; color: #92400e; }
.bl-eo-st--rewarded { background: #dcfce7; color: #166534; }
.bl-eo-st--rejected { background: #fee2e2; color: #991b1b; }

/* 我的提交 · 独立模态 */
.bl-eo-mine-backdrop {
    z-index: 10470;
}

.bl-eo-mine-dialog {
    width: min(100%, 480px);
}

.bl-eo-mine-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.bl-eo-mine-empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--bl-eo-muted);
    font-size: 13px;
    border: 1px dashed var(--bl-eo-line);
    border-radius: 12px;
    background: var(--bl-eo-soft);
}

.bl-eo-mine-card {
    padding: 12px;
    border: 1px solid var(--bl-eo-line);
    border-radius: 12px;
    background: #fff;
}

.bl-eo-mine-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bl-eo-mine-card__plat,
.bl-eo-mine-card__time {
    font-size: 12px;
    color: var(--bl-eo-muted);
}

.bl-eo-mine-card__url {
    display: block;
    color: var(--bl-eo-accent);
    word-break: break-all;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.bl-eo-mine-card__url:hover {
    text-decoration: underline;
}

.bl-eo-mine-card__note {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--bl-eo-body);
}

.bl-eo-mine-card__reward {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bl-eo-ok);
}

.bl-eo-pager {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.bl-eo-pager:empty {
    display: none;
}

.bl-eo-page-btn {
    appearance: none;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--bl-eo-line);
    border-radius: 8px;
    background: #fff;
    color: var(--bl-eo-body);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.bl-eo-page-btn:hover:not(:disabled) {
    background: var(--bl-eo-soft);
    color: var(--bl-eo-ink);
}

.bl-eo-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bl-eo-toast {
    position: fixed;
    left: 50%;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
    transform: translateX(-50%) translateY(8px);
    z-index: 10600;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bl-eo-toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .bl-eo-dialog {
        width: 100%;
        border-radius: 16px;
        max-height: min(94dvh, 100%);
    }

    .bl-eo-body {
        padding: 20px 16px 8px;
    }

    .bl-eo-title {
        font-size: 18px;
        padding-right: 28px;
    }

    .bl-eo-select-btn {
        min-height: 46px;
        font-size: 14px;
    }

    .bl-eo-select-menu {
        max-height: min(280px, 48dvh);
    }

    .bl-eo-select-menu [role="option"] {
        min-height: 46px;
        font-size: 14px;
    }

    .bl-eo-field input,
    .bl-eo-field textarea {
        font-size: 16px; /* iOS 避免自动放大 */
        min-height: 46px;
    }

    .bl-eo-launcher-label {
        max-width: 6.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bl-eo-foot {
        flex-wrap: wrap;
        padding: 12px 16px 16px;
    }

    .bl-eo-submit {
        width: 100%;
        min-height: 44px;
    }

    .bl-eo-mine-dialog {
        width: 100%;
    }

    .bl-eo-pager {
        justify-content: stretch;
    }

    .bl-eo-page-btn {
        flex: 1 1 0;
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-eo-backdrop,
    .bl-eo-dialog,
    .bl-eo-launcher,
    .bl-eo-toast {
        transition: none !important;
    }
}
