/* 填表页（首页 /）专用样式：只保留「一行 = 左标签 + 右控件」这套行式布局。
   配色、按钮、卡片、hero、徽标、缩略图等通用件都在 report.css 里，
   本页挂 .ar-form .ar-page 双类，与其它举报端页面共用同一份设计系统。
   本文件在 report.css 之后加载，同名属性的行式覆盖以这里为准。 */

/* ---------- 分段区块内的行 ---------- */

.ar-form form { margin-top: 22px; }

.ar-form .row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px dashed var(--f-line-soft);
    align-items: start;
}

.ar-form .row:last-child { border-bottom: 0; }
.ar-form .row > .label { padding-top: 5px; font-size: 14px; }
.ar-form .idx { color: #9aa6b6; font-size: 12px; margin-right: 7px; font-variant-numeric: tabular-nums; }
.ar-form .req { color: var(--f-err); margin-left: 3px; font-weight: 700; }
.ar-form .hint { display: block; color: var(--f-muted); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
/* 标签列里的附注跟在文字后面，不另起一行 */
.ar-form .row > .label .hint { display: inline; margin: 0 0 0 6px; }

.ar-form .cbody { padding: 8px 22px 20px; }

/* ---------- 行内控件 ---------- */

.ar-form .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    align-items: center;
}

.ar-form .choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.ar-form .choice input {
    accent-color: var(--f-brand);
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.ar-form .inline-input { width: 190px !important; padding: 8px 10px !important; }
.ar-form .subline { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ar-form .subline .sep-text { color: var(--f-muted); font-size: 13px; }

.ar-form .counter { font-size: 12px; color: var(--f-muted); text-align: right; margin-top: 5px; }
.ar-form .counter.over { color: var(--f-err); }

/* ---------- 附件框 ---------- */

.ar-form .filebox {
    border: 1px dashed #b9c8d9;
    background: #fbfdff;
    border-radius: 10px;
    padding: 14px;
}

.ar-form .file-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ar-form .file-tip { margin: 9px 0 0; color: var(--f-muted); font-size: 12.5px; }

.ar-form .thumb-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 32, 51, .68);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

/* ---------- 提交条 ---------- */

.ar-form .submitbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: #fff;
}

.ar-form .submitbar .tip { color: var(--f-muted); font-size: 12.5px; max-width: 560px; margin: 0; }
.ar-form .btn.submit { font-size: 16px; padding: 12px 28px; font-weight: 600; }

/* ---------- 已提交者的查询 / 撤销入口卡片 ---------- */

.ar-form .quick-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 0;
    padding: 14px 18px;
    border: 1px solid #cfe0f1;
    border-radius: 12px;
    background: #eef4fb;
}

.ar-form .quick-entry .qe-text { font-size: 13.5px; line-height: 1.6; color: #33516f; }
.ar-form .quick-entry .qe-text strong { display: block; margin-bottom: 2px; font-size: 15px; color: #153f68; }
.ar-form .quick-entry .btn { white-space: nowrap; font-size: 13.5px; }

/* ---------- 校验 ---------- */

.ar-form .error-line { color: var(--f-err); font-size: 12.5px; display: none; margin-top: 6px; }
.ar-form .error-line.show { display: block; }

/* ---------- 窄屏 ---------- */

@media (max-width: 720px) {
    .ar-form .row { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
    .ar-form .row > .label { padding-top: 0; }
    .ar-form .cbody { padding: 4px 16px 16px; }
    .ar-form .submitbar { padding: 16px; }
    .ar-form .btn.submit { width: 100%; }
    .ar-form .inline-input { width: 100% !important; }
    .ar-form .quick-entry .btn { width: 100%; }
}