
.submit-wrap {
    max-width: 820px;
    margin: 28px auto;
    padding: 0 16px;
}
.submit-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 28px 30px;
}
.submit-title {
    font-size: 24px;
    margin: 0 0 6px;
    color: #0f172a;
}
.submit-title i { color: #38bdf8; margin-right: 8px; }
.submit-sub {
    color: #64748b;
    margin: 0 0 20px;
    font-size: 14px;
}
.submit-form .field {
    margin-bottom: 18px;
}
.submit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
}
.submit-form .req { color: #ef4444; }
.submit-form input[type="text"],
.submit-form select,
.submit-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.submit-form textarea {
    resize: vertical;
    line-height: 1.7;
    min-height: 140px;
    max-height: 46vh;
    overflow: auto;
}
.editor-toolbar {
    border: 1px solid #d8e0ea;
    border-bottom: none;
    border-radius: 9px 9px 0 0;
    background: #f8fafc;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
}
.editor-toolbar button {
    border: none;
    background: #eef2f7;
    width: 34px;
    height: 32px;
    border-radius: 7px;
    cursor: pointer;
    color: #475569;
}
.editor-toolbar button:hover { background: #e2e8f0; color: #0f172a; }

.paid-btn { margin:6px 0 4px; padding:7px 12px; border:1px solid #f59e0b; background:#fffbeb; color:#b45309; border-radius:8px; cursor:pointer; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:4px; }
.paid-btn:hover { background:#fef3c7; border-color:#d97706; }

.paid-btn.paid-disabled { opacity:.55; cursor:not-allowed; filter:grayscale(.4); border-color:#cbd5e1; background:#f1f5f9; color:#94a3b8; }
.paid-btn.paid-disabled:hover { background:#f1f5f9; border-color:#cbd5e1; }


.paid-block-bar {
    margin: 6px 0 4px;
    padding: 7px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.paid-block-bar-label { font-weight: 600; color: #b45309; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.paid-block-bar-hint { color: #b45309; opacity: .72; margin-right: auto; font-size: 12px; }
.paid-block-bar button { padding: 5px 12px; border-radius: 5px; border: 1px solid transparent; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; gap: 5px; }
.paid-block-bar .btn-paid-read { background: #2563eb; color: #fff; border-color: #2563eb; }
.paid-block-bar .btn-paid-read:hover { background: #1d4ed8; border-color: #1d4ed8; }
.paid-block-bar .btn-paid-download { background: #059669; color: #fff; border-color: #059669; }
.paid-block-bar .btn-paid-download:hover { background: #047857; border-color: #047857; }
.paid-block-bar button.paid-disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.paid-block-bar button.paid-disabled:hover { filter: grayscale(.4); }
.editor-toolbar .tb-sep {
    width: 1px;
    background: #d8e0ea;
    margin: 4px 4px;
    align-self: stretch;
}
.submit-form textarea + .editor-hint,
.editor-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}
.editor-hint .mode-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}
textarea.editor-phone { font-size: 16px; } 


.rt-editor {
    border: 1px solid #d8e0ea;
    border-radius: 0 0 9px 9px;
    background: #fff;
    padding: 14px 15px;
    min-height: 180px;
    max-height: min(440px, 48vh);
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.75;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
}
.rt-editor:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.rt-editor:empty:before { content: attr(data-placeholder); color: #94a3b8; }
.rt-editor h2 { font-size: 20px; margin: 14px 0 8px; }
.rt-editor blockquote {
    margin: 10px 0; padding: 8px 14px; border-left: 4px solid #38bdf8;
    background: #f1f5f9; color: #475569; border-radius: 0 6px 6px 0;
}
.rt-editor pre {
    margin: 10px 0; padding: 12px 14px; background: #0f172a; color: #e2e8f0;
    border-radius: 8px; overflow-x: auto; font-family: Consolas, monospace; font-size: 13px;
}
.rt-editor img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.rt-editor a { color: #2563eb; }


.submit-form textarea.fs,
.rt-editor.fs {
    position: fixed;
    inset: 0;
    z-index: 99998;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 64px 20px 20px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(56,189,248,.2);
}
.rt-editor.fs { font-size: 15px; }
.editor-toolbar.fs-active,
.rt-toolbar.fs-active {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    border-radius: 0;
    box-shadow: 0 2px 14px rgba(15,23,42,.18);
}
.editor-toolbar.fs-active button[data-cmd="fullscreen"]::after,
.rt-toolbar.fs-active button[data-rtcmd="fullscreen"]::after { content: " ✕"; }
body.rt-fs-lock { overflow: hidden !important; }


.rt-toolbar { border-radius: 9px 9px 0 0; flex-wrap: wrap; }
.rt-toolbar button {
    width: auto; height: auto; min-width: 38px; padding: 5px 10px;
    font-size: 13px; font-weight: 600; color: #475569;
}
.rt-toolbar button:hover { background: #e2e8f0; color: #0f172a; }

.editor-toolbar + textarea {
    border-radius: 0 0 9px 9px;
    margin-top: -1px;
}
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-q {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 600;
    color: #0f172a;
    min-width: 90px;
    text-align: center;
}
.captcha-refresh {
    border: 1px solid #d8e0ea;
    background: #fff;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #64748b;
}
.captcha-refresh:hover { color: #38bdf8; border-color: #38bdf8; }
.submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.submit-btn:hover { opacity: .92; }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.submit-alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.recent-box {
    margin-top: 26px;
    border-top: 1px solid #eef2f7;
    padding-top: 18px;
}
.recent-box h3 { font-size: 15px; color: #334155; margin: 0 0 10px; }
.recent-box h3 i { color: #38bdf8; margin-right: 6px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.recent-list a { color: #2563eb; text-decoration: none; font-size: 14px; }
.recent-list a:hover { text-decoration: underline; }


body.modal-body { background: transparent; }
.modal-wrap {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}
.modal-wrap .submit-card {
    border-radius: 0;
    box-shadow: none;
    padding: 20px 22px;
}

@media (max-width: 600px) {
    .submit-wrap { margin: 14px auto; }
    .submit-card { padding: 18px 16px; border-radius: 12px; }
    .submit-title { font-size: 20px; }
    .submit-form textarea { max-height: 40vh; }
    .rt-editor { max-height: min(360px, 42vh); }
    .modal-wrap .submit-card { padding: 16px 14px; }
}


.lx-paid {
    display: block;
    position: relative;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px dashed #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #1e293b;
    color: #fcd34d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-all;
}


.rt-src {
    border: 1px solid #d8e0ea;
    border-radius: 0 0 9px 9px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 15px;
    min-height: 180px;
    max-height: min(440px, 48vh);
    overflow: auto;
    font-family: Consolas, "SFMono-Regular", Menlo, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
    white-space: pre;
    tab-size: 2;
}
.rt-src:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.rt-toolbar button[data-rtcmd="source"].active { background: #0ea5e9; color: #fff; }

.rt-toolbar.src-active button:not([data-rtcmd="source"]) { opacity: .35; pointer-events: none; }
