/* 球迷热聊发布弹窗：江南水墨与站点绿色系 */
.post-editor-modal {
    font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: #173e2d;
}

.post-editor-modal .post-editor-overlay {
    background: rgba(12, 28, 20, .66);
    backdrop-filter: blur(2px);
}

.post-editor-modal .post-editor-container {
    width: min(920px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(215, 231, 220, .9);
    border-radius: 20px;
    background: #f8fbf7 url('/images/shared/jiangnan-modal-bg.png') center center / cover no-repeat;
    box-shadow: 0 28px 80px rgba(7, 34, 21, .34);
}

.post-editor-modal .post-editor-header {
    flex: none;
    align-items: flex-start;
    min-height: 122px;
    padding: 27px 32px 23px;
    border-bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 251, .65), rgba(255, 255, 251, .08));
    color: #123c2a;
}

.post-editor-modal .header-left {
    align-items: flex-start;
    gap: 15px;
}

.post-editor-modal .header-left > i {
    margin-top: 8px;
    color: #176341;
    font-size: 30px;
}

.post-editor-modal .header-copy h2 {
    margin: 0 0 5px;
    color: #113b29;
    font: 700 30px/1.25 "Songti SC", SimSun, serif;
    letter-spacing: .07em;
}

.post-editor-modal .header-copy p {
    margin: 0;
    color: #657b6b;
    font: 14px/1.5 "Songti SC", SimSun, serif;
    letter-spacing: .08em;
}

.post-editor-modal .close-btn {
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid #bdd7c7;
    background: rgba(255, 255, 255, .82);
    color: #174d35;
    font-size: 17px;
}

.post-editor-modal .close-btn:hover {
    border-color: #36815c;
    background: white;
    color: #176341;
    transform: none;
}

.post-editor-modal .post-editor-body {
    min-height: 0;
    padding: 0 30px 16px;
    background: rgba(253, 254, 251, .48);
    scrollbar-color: #96b9a3 transparent;
    scrollbar-width: thin;
}

.post-editor-modal .post-editor-form { gap: 14px; }

.post-editor-modal .form-section {
    padding: 17px 19px;
    border: 1px solid #dce9df;
    border-radius: 16px;
    background: rgba(255, 255, 255, .87);
    box-shadow: 0 6px 18px rgba(27, 80, 47, .07);
}

.post-editor-modal .section-title {
    gap: 9px;
    margin-bottom: 11px;
    color: #174732;
    font: 700 17px/1.35 "Songti SC", SimSun, serif;
}

.post-editor-modal .section-title i {
    color: #20704c;
    font-size: 18px;
}

.post-editor-modal .required-badge {
    padding: 3px 8px;
    border-radius: 12px;
    background: #28734e;
    color: white;
    font: 600 11px/1.2 "Microsoft YaHei", sans-serif;
}

.post-editor-modal .form-group { margin: 0; }

.post-editor-modal .form-input,
.post-editor-modal .tag-dropdown-header,
.post-editor-modal .editor-wrapper {
    border: 1px solid #bfd6c6;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.post-editor-modal .form-input {
    min-height: 46px;
    padding: 10px 15px;
    color: #1e3d2d;
    font-size: 15px;
}

.post-editor-modal .form-input:focus,
.post-editor-modal .tag-dropdown-header:hover,
.post-editor-modal .tag-dropdown-container:focus-within .tag-dropdown-header,
.post-editor-modal .editor-wrapper:focus-within {
    border-color: #3c8b62;
    box-shadow: 0 0 0 3px rgba(50, 128, 82, .12);
}

.post-editor-modal .form-input::placeholder,
.post-editor-modal .tag-dropdown-header .placeholder { color: #8b9a90; }

.post-editor-modal .tag-dropdown-header { min-height: 46px; padding: 10px 15px; }
.post-editor-modal .tag-dropdown-header i { color: #206746; }
.post-editor-modal .tag-dropdown-menu { border: 1px solid #c6ddce; box-shadow: 0 12px 26px rgba(20, 67, 40, .17); }
.post-editor-modal .tag-search { background: #f4faf5; border-color: #e0ece3; }
.post-editor-modal .tag-option:hover { background: #f3faf5; }
.post-editor-modal .tag-option.selected { background: #eaf5ec; }
.post-editor-modal .tag-option.selected .tag-checkbox { border-color: #2c7950; background: #2c7950; }
.post-editor-modal .selected-tag { border-color: #b9d9c3 !important; background: #edf7ef !important; }
.post-editor-modal .selected-tag span { color: #246947 !important; }

.post-editor-modal .input-hint { margin-top: 7px; color: #798b7e; font-size: 12px; }
.post-editor-modal .char-counter { color: #246947; }
.post-editor-modal .hint-text { color: #94a39a; }

.post-editor-modal .editor-wrapper { overflow: hidden; }
.post-editor-modal .quill-editor,
.post-editor-modal .fallback-textarea { height: 138px; }
.post-editor-modal .fallback-textarea { color: #1e3d2d; }
.post-editor-modal .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e1ece3;
    background: rgba(246, 251, 247, .94);
}
.post-editor-modal .ql-container.ql-snow { border: 0; }
.post-editor-modal .ql-editor { min-height: 138px; color: #1e3d2d; }
.post-editor-modal .ql-editor.ql-blank::before { color: #92a096; }
.post-editor-modal .ql-snow .ql-stroke { stroke: #315d45; }
.post-editor-modal .ql-snow .ql-fill { fill: #315d45; }
.post-editor-modal .ql-snow .ql-picker-label { color: #315d45; }
.post-editor-modal .ql-snow .ql-active .ql-stroke,
.post-editor-modal .ql-snow button:hover .ql-stroke { stroke: #218051; }
.post-editor-modal .ql-snow .ql-active .ql-fill,
.post-editor-modal .ql-snow button:hover .ql-fill { fill: #218051; }
.post-editor-modal .ql-snow .ql-picker.ql-expanded .ql-picker-label,
.post-editor-modal .ql-snow .ql-picker-options { border-color: #bdd8c7; }
.post-editor-modal .ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before { content: "正文"; }

.post-editor-modal .optional-section {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    background: rgba(248, 253, 248, .88);
}

.post-editor-modal .section-header {
    align-self: start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 16px 0 15px 19px;
    border: 0;
    background: transparent;
    text-align: left;
}

.post-editor-modal .section-header:hover { background: transparent; }
.post-editor-modal .section-header .section-title { margin: 0; white-space: nowrap; }
.post-editor-modal .section-header .toggle-icon { color: #4e8564; font-size: 10px; }
.post-editor-modal .optional-content.show { max-height: 220px; padding: 13px 18px 14px 0; }
.post-editor-modal .info-list { gap: 4px; }
.post-editor-modal .info-item { gap: 8px; padding: 0; background: transparent; color: #65786a; font-size: 12px; line-height: 1.45; }
.post-editor-modal .info-item i { color: #27764e; font-size: 11px; }
.post-editor-modal .info-item i.fa-check-circle { color: #27764e; }

.post-editor-modal .post-editor-footer {
    flex: none;
    padding: 13px 30px;
    border-top: 1px solid rgba(212, 230, 217, .85);
    background: rgba(253, 254, 250, .9);
}

.post-editor-modal .post-editor-footer .btn {
    min-height: 44px;
    padding: 10px 21px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.post-editor-modal .post-editor-footer .btn-primary {
    border: 1px solid #246b47;
    background: #246b47;
    color: white;
    box-shadow: 0 6px 15px rgba(26, 92, 53, .2);
}
.post-editor-modal .post-editor-footer .btn-primary:hover:not(:disabled) { background: #185738; box-shadow: 0 8px 18px rgba(26, 92, 53, .25); }
.post-editor-modal .post-editor-footer .btn-secondary { border: 1px solid #2b7751; background: rgba(255, 255, 255, .74); color: #256846; }
.post-editor-modal .post-editor-footer .btn-secondary:hover:not(:disabled) { background: #edf7ef; }
.post-editor-modal .post-editor-footer .btn-outline { border: 1px solid #cbded0; background: rgba(255, 255, 255, .75); color: #4c6b57; }
.post-editor-modal .post-editor-footer .btn-outline:hover:not(:disabled) { border-color: #7dae8b; color: #246947; }
.post-editor-modal button:focus-visible,
.post-editor-modal input:focus-visible { outline: 2px solid #268454; outline-offset: 2px; }

@media (max-width: 700px) {
    .post-editor-modal .post-editor-container { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
    .post-editor-modal .post-editor-header { min-height: 96px; padding: 18px 18px 15px; }
    .post-editor-modal .header-left { gap: 10px; }
    .post-editor-modal .header-left > i { margin-top: 5px; font-size: 23px; }
    .post-editor-modal .header-copy h2 { font-size: 24px; }
    .post-editor-modal .header-copy p { font-size: 11px; letter-spacing: 0; }
    .post-editor-modal .close-btn { width: 34px; height: 34px; }
    .post-editor-modal .post-editor-body { padding: 0 12px 12px; }
    .post-editor-modal .post-editor-form { gap: 10px; }
    .post-editor-modal .form-section { padding: 14px; }
    .post-editor-modal .optional-section { display: block; padding: 0; }
    .post-editor-modal .section-header { padding: 13px 14px 6px; }
    .post-editor-modal .optional-content.show { padding: 5px 14px 14px; max-height: 250px; }
    .post-editor-modal .post-editor-footer { padding: 11px 12px; }
    .post-editor-modal .post-editor-footer .btn { padding: 9px 12px; }
}

@media (max-width: 390px) {
    .post-editor-modal .post-editor-footer .btn { font-size: 12px; }
    .post-editor-modal .footer-left, .post-editor-modal .footer-right { gap: 7px; }
    .post-editor-modal .input-hint { gap: 10px; align-items: flex-start; }
    .post-editor-modal .hint-text { text-align: right; }
}
