/**
 * 云语VIP中心 - 文章问题反馈 前台样式
 * 主色 #1e6fff / 深主 #0b4fd6 / 亮青 #00b4ff / 浅底 #f0f6ff / 边框 #d6e4ff
 * 成功 #22c55e / 警告 #f59e0b / 危险 #ef4444
 * 深色模式跟随 Juzi 主题 html[data-night]
 */

/* ====================== 入口按钮 ====================== */

.yfb-entry {
    margin: 26px 0 8px;
    text-align: center;
}
.yfb-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(30, 111, 255, .18);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.yfb-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 111, 255, .28);
    filter: brightness(1.04);
}
.yfb-entry-btn:active {
    transform: translateY(0);
}

/* ====================== 弹窗 ====================== */

.yfb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.yfb-modal.is-open {
    display: flex;
}
.yfb-mask {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 48, .45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: yfbFade .25s ease both;
}
.yfb-dialog {
    position: relative;
    width: min(480px, 100%);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d6e4ff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(30, 111, 255, .18);
    overflow: hidden;
    animation: yfbPop .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.yfb-dialog-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(30, 111, 255, .08), rgba(0, 180, 255, .06));
    border-bottom: 1px solid #d6e4ff;
}
.yfb-dialog-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
    color: #0b4fd6;
}
.yfb-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 111, 255, .18);
}
.yfb-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #7c8db0;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.yfb-dialog-close:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}
.yfb-dialog-body {
    padding: 18px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ====================== 表单 ====================== */

.yfb-field {
    margin-bottom: 15px;
}
.yfb-field > label {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #0b4fd6;
}
.yfb-field > label em {
    font-style: normal;
    color: #ef4444;
    margin-left: 3px;
}
.yfb-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: #93a3c0;
    transition: color .2s ease;
}
.yfb-count.is-warn {
    color: #f59e0b;
}
.yfb-count.is-over {
    color: #ef4444;
}
.yfb-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}
.yfb-type {
    position: relative;
    cursor: pointer;
}
.yfb-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.yfb-type span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: #f0f6ff;
    color: #0b4fd6;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
}
.yfb-type span:hover {
    border-color: #1e6fff;
}
.yfb-type input:checked + span {
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 111, 255, .18);
}
.yfb-textarea,
.yfb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    background: #f8fbff;
    color: #24304a;
    font-size: 13.5px;
    line-height: 1.7;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.yfb-textarea {
    min-height: 108px;
    resize: vertical;
}
.yfb-textarea:focus,
.yfb-input:focus {
    border-color: #1e6fff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 111, 255, .18);
}
.yfb-textarea::placeholder,
.yfb-input::placeholder {
    color: #a3b1cc;
}
.yfb-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #93a3c0;
}
.yfb-hint--id {
    margin: -6px 0 15px;
    padding: 8px 12px;
    border: 1px dashed #d6e4ff;
    border-radius: 10px;
    background: #f0f6ff;
    color: #0b4fd6;
}
.yfb-hint--id b {
    color: #1e6fff;
}
.yfb-submit {
    display: block;
    width: 100%;
    padding: 11px 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 111, 255, .18);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.yfb-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(30, 111, 255, .28);
}
.yfb-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.yfb-notice {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #93a3c0;
}

/* ====================== 提示条 ====================== */

.yfb-msg {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.yfb-msg.is-ok {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #15803d;
}
.yfb-msg.is-err {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .32);
    color: #dc2626;
}

/* ====================== 进度卡 ====================== */

.yfb-status {
    position: relative;
    border: 1px solid #d6e4ff;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.yfb-status-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #93a3c0;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.yfb-status-close:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}
.yfb-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(30, 111, 255, .07), rgba(0, 180, 255, .05));
    border-bottom: 1px solid #d6e4ff;
}
.yfb-status-no-label {
    font-size: 12px;
    color: #93a3c0;
    margin-bottom: 3px;
}
.yfb-status-no {
    font-size: 17px;
    font-weight: 700;
    color: #0b4fd6;
    letter-spacing: .5px;
}
.yfb-badge {
    flex: none;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}
.yfb-badge--pending {
    background: rgba(245, 158, 11, .14);
    color: #f59e0b;
}
.yfb-badge--approved {
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
}
.yfb-badge--rejected {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}
.yfb-status-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 13px 18px;
    background: #f0f6ff;
    border-bottom: 1px solid #d6e4ff;
}
.yfb-status-meta span {
    display: block;
    font-size: 12px;
    color: #93a3c0;
    margin-bottom: 3px;
}
.yfb-status-meta b {
    font-size: 13.5px;
    font-weight: 600;
    color: #24304a;
}
.yfb-status-progress {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #d6e4ff;
}
.yfb-progress-title,
.yfb-status-label {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #24304a;
    text-align: center;
}
.yfb-status-label {
    margin-bottom: 8px;
    text-align: left;
}
.yfb-steps {
    display: flex;
    align-items: center;
    max-width: 340px;
    margin: 0 auto;
}
.yfb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: none;
}
.yfb-step span {
    font-size: 11.5px;
    font-weight: 500;
    color: #a3b1cc;
}
.yfb-step.is-passed span {
    color: #24304a;
    font-weight: 600;
}
.yfb-step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #d6e4ff;
    background: #fff;
    color: #a3b1cc;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}
.yfb-step-dot.is-done {
    border-color: transparent;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 111, 255, .18);
}
.yfb-step-dot.is-active {
    border-color: #1e6fff;
    color: #1e6fff;
    background: #f0f6ff;
}
.yfb-step-dot.is-reject {
    border-color: transparent;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, .25);
}
.yfb-spin {
    width: 14px;
    height: 14px;
    border: 2.5px solid rgba(30, 111, 255, .25);
    border-top-color: #1e6fff;
    border-radius: 50%;
    animation: yfbSpin .8s linear infinite;
}
.yfb-step-line {
    flex: 1;
    height: 3px;
    margin: 0 8px 21px;
    border-radius: 3px;
    background: #d6e4ff;
}
.yfb-step-line.is-on {
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
}
.yfb-status-tip {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.yfb-tip--pending {
    color: #f59e0b;
}
.yfb-tip--approved {
    color: #22c55e;
}
.yfb-tip--rejected {
    color: #ef4444;
}
.yfb-status-content {
    padding: 14px 18px 16px;
    border-bottom: 1px solid #d6e4ff;
}
.yfb-content-box {
    padding: 12px 14px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: #f8fbff;
    color: #45536e;
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
}
.yfb-status-note {
    padding: 14px 18px 16px;
    border-bottom: 1px solid #d6e4ff;
}
.yfb-note-box {
    padding: 12px 14px;
    border-left: 3px solid #1e6fff;
    border-radius: 0 10px 10px 0;
    background: #f0f6ff;
}
.yfb-note-text {
    color: #45536e;
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
}
.yfb-note-time {
    margin-top: 8px;
    font-size: 12px;
    color: #93a3c0;
}
.yfb-status-foot {
    display: flex;
    gap: 10px;
    padding: 14px 18px 16px;
}
.yfb-status-btn,
.yfb-again-btn {
    flex: 1;
    padding: 9px 0;
    border-radius: 999px;
    border: 1px solid #d6e4ff;
    background: #fff;
    color: #0b4fd6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.yfb-again-btn {
    border-color: transparent;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 111, 255, .18);
}
.yfb-status-btn:hover {
    border-color: #1e6fff;
    background: #f0f6ff;
}
.yfb-again-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(30, 111, 255, .28);
}

/* ====================== 动画 ====================== */

@keyframes yfbFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes yfbPop {
    from { opacity: 0; transform: translateY(22px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes yfbSpin {
    to { transform: rotate(360deg); }
}

/* ====================== 移动端 ====================== */

@media (max-width: 480px) {
    .yfb-modal {
        padding: 14px;
    }
    .yfb-dialog {
        border-radius: 14px;
    }
    .yfb-dialog-head,
    .yfb-dialog-body {
        padding-left: 15px;
        padding-right: 15px;
    }
    .yfb-type-grid {
        gap: 7px;
    }
    .yfb-status-meta {
        grid-template-columns: 1fr;
    }
}

/* ====================== 深色模式 ====================== */

html[data-night] .yfb-mask {
    background: rgba(2, 6, 16, .62);
}
html[data-night] .yfb-dialog {
    background: #1c2333;
    border-color: rgba(214, 228, 255, .14);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
html[data-night] .yfb-dialog-head {
    background: linear-gradient(135deg, rgba(30, 111, 255, .16), rgba(0, 180, 255, .1));
    border-bottom-color: rgba(214, 228, 255, .14);
}
html[data-night] .yfb-dialog-title {
    color: #7fb0ff;
}
html[data-night] .yfb-dialog-close {
    color: #8b98b6;
}
html[data-night] .yfb-dialog-close:hover {
    background: rgba(239, 68, 68, .16);
    color: #ff7b7b;
}
html[data-night] .yfb-field > label {
    color: #7fb0ff;
}
html[data-night] .yfb-count {
    color: #7686a6;
}
html[data-night] .yfb-type span {
    background: rgba(30, 111, 255, .1);
    border-color: rgba(214, 228, 255, .16);
    color: #aebdda;
}
html[data-night] .yfb-type span:hover {
    border-color: #1e6fff;
    color: #fff;
}
html[data-night] .yfb-type input:checked + span {
    color: #fff;
}
html[data-night] .yfb-textarea,
html[data-night] .yfb-input {
    background: #232c40;
    border-color: rgba(214, 228, 255, .16);
    color: #dbe4f5;
}
html[data-night] .yfb-textarea:focus,
html[data-night] .yfb-input:focus {
    background: #232c40;
    border-color: #1e6fff;
    box-shadow: 0 0 0 3px rgba(30, 111, 255, .25);
}
html[data-night] .yfb-textarea::placeholder,
html[data-night] .yfb-input::placeholder {
    color: #5f6d8c;
}
html[data-night] .yfb-hint {
    color: #7686a6;
}
html[data-night] .yfb-hint--id {
    background: rgba(30, 111, 255, .1);
    border-color: rgba(214, 228, 255, .16);
    color: #aebdda;
}
html[data-night] .yfb-hint--id b {
    color: #7fb0ff;
}
html[data-night] .yfb-notice {
    color: #7686a6;
}
html[data-night] .yfb-msg.is-ok {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .35);
    color: #4ade80;
}
html[data-night] .yfb-msg.is-err {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .4);
    color: #ff8a8a;
}
html[data-night] .yfb-status {
    background: #1c2333;
    border-color: rgba(214, 228, 255, .14);
}
html[data-night] .yfb-status-head {
    background: linear-gradient(135deg, rgba(30, 111, 255, .14), rgba(0, 180, 255, .08));
    border-bottom-color: rgba(214, 228, 255, .14);
}
html[data-night] .yfb-status-no-label,
html[data-night] .yfb-status-meta span,
html[data-night] .yfb-note-time {
    color: #7686a6;
}
html[data-night] .yfb-status-no {
    color: #7fb0ff;
}
html[data-night] .yfb-badge--pending {
    background: rgba(245, 158, 11, .18);
    color: #fbbf24;
}
html[data-night] .yfb-badge--approved {
    background: rgba(34, 197, 94, .16);
    color: #4ade80;
}
html[data-night] .yfb-badge--rejected {
    background: rgba(239, 68, 68, .16);
    color: #ff8a8a;
}
html[data-night] .yfb-status-meta {
    background: rgba(30, 111, 255, .08);
    border-bottom-color: rgba(214, 228, 255, .14);
}
html[data-night] .yfb-status-meta b {
    color: #dbe4f5;
}
html[data-night] .yfb-status-progress,
html[data-night] .yfb-status-content,
html[data-night] .yfb-status-note {
    border-bottom-color: rgba(214, 228, 255, .14);
}
html[data-night] .yfb-progress-title,
html[data-night] .yfb-status-label {
    color: #dbe4f5;
}
html[data-night] .yfb-step span {
    color: #5f6d8c;
}
html[data-night] .yfb-step.is-passed span {
    color: #dbe4f5;
}
html[data-night] .yfb-step-dot {
    background: #232c40;
    border-color: rgba(214, 228, 255, .16);
    color: #5f6d8c;
}
html[data-night] .yfb-step-dot.is-active {
    background: rgba(30, 111, 255, .14);
    border-color: #1e6fff;
    color: #7fb0ff;
}
html[data-night] .yfb-step-line {
    background: rgba(214, 228, 255, .16);
}
html[data-night] .yfb-status-tip.yfb-tip--pending {
    color: #fbbf24;
}
html[data-night] .yfb-status-tip.yfb-tip--approved {
    color: #4ade80;
}
html[data-night] .yfb-status-tip.yfb-tip--rejected {
    color: #ff8a8a;
}
html[data-night] .yfb-content-box {
    background: #232c40;
    border-color: rgba(214, 228, 255, .16);
    color: #aebdda;
}
html[data-night] .yfb-note-box {
    background: rgba(30, 111, 255, .1);
}
html[data-night] .yfb-note-text {
    color: #aebdda;
}
html[data-night] .yfb-status-close,
html[data-night] .yfb-status-close:hover {
    color: #8b98b6;
}
html[data-night] .yfb-status-close:hover {
    background: rgba(239, 68, 68, .16);
    color: #ff7b7b;
}
html[data-night] .yfb-status-btn {
    background: #232c40;
    border-color: rgba(214, 228, 255, .16);
    color: #7fb0ff;
}
html[data-night] .yfb-status-btn:hover {
    background: rgba(30, 111, 255, .14);
    border-color: #1e6fff;
}
