/* ===== 业务图片 / 文件（订单、帖子、评论、举报） ===== */
.gx-cf-field { margin-bottom: 16px; }
/* 原生文件框会被页面 .form-group input 规则撑出来，必须彻底隐藏，只保留自定义按钮 */
.gx-cf-field input[type="file"],
.gx-cf-input,
.form-group.gx-cf-field input[type="file"],
.main-container .form-group.gx-cf-field input[type="file"],
.main-container .form-group input.gx-cf-input,
input[data-cf-dynamic="1"] {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none !important;
    display: none !important;
}
.gx-cf-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px dashed rgba(244, 196, 48, 0.65);
    background: rgba(244, 196, 48, 0.08);
    color: inherit;
    font-size: 13px;
    cursor: pointer;
}
.gx-cf-picker-btn:hover { border-style: solid; background: rgba(244, 196, 48, 0.16); }
.gx-cf-hint { margin-top: 6px; font-size: 12px; opacity: 0.75; line-height: 1.5; }
.gx-cf-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gx-cf-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(127, 140, 160, 0.35);
    background: rgba(127, 140, 160, 0.08);
    font-size: 12px;
}
.gx-cf-chip img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}
.gx-cf-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.gx-cf-chip__rm {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    min-height: 32px;
    min-width: 32px;
    color: #e17055;
}
.gx-cf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 12px 0;
}
.gx-cf-item--image { min-width: 0; }
.gx-cf-img-link { display: block; line-height: 0; }
.gx-cf-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0,0,0,0.06);
}
.gx-cf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.85;
}
.gx-cf-item--doc {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(127, 140, 160, 0.35);
}
.gx-cf-icon { font-size: 22px; }
.gx-cf-name { font-weight: 600; word-break: break-all; }
.gx-cf-del, .gx-cf-meta a {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: 11px;
}
.gx-cf-del { color: #e17055; }
.gx-cf-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.gx-cf-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0,0,0,0.06);
}
.gx-cf-thumb-more, .gx-cf-thumbs--files { font-size: 12px; opacity: 0.8; }
.gx-cf-item--gone { font-size: 12px; opacity: 0.75; font-style: italic; }
.gx-cf-existing { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gx-cf-exist {
    position: relative;
    width: 72px;
}
.gx-cf-exist img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.gx-cf-exist__rm {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #e17055;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    padding: 0;
}

@media (max-width: 768px) {
    .gx-cf-gallery { grid-template-columns: 1fr 1fr; }
    .gx-cf-img { height: 140px; }
    .gx-cf-picker-btn { width: 100%; }
    .gx-cf-chip { width: 100%; }
    .gx-cf-chip__name { max-width: none; }
}
@media (max-width: 480px) {
    .gx-cf-gallery { grid-template-columns: 1fr; }
}
