/* 投稿页样式（submit.php） */
.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: 160px;
}
.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; }
.submit-form textarea + .editor-hint,
.editor-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}
textarea.editor-phone { font-size: 16px; } /* 手机端避免缩放 */

.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; }

/* 弹窗内嵌模式：去掉多余边距，让 iframe 内部紧凑 */
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-card { padding: 18px 16px; }
    .submit-title { font-size: 20px; }
    .modal-wrap .submit-card { padding: 16px 14px; }
}
