/* ============================================================
   问卷填写页样式（独立页面，支持自定义 Banner / 主题色）
   ============================================================ */
.fill-body {
    background: #F4F8FD;
    margin: 0;
    padding: 0;
    color: var(--text, #22303F);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.fill-banner {
    width: 100%;
    background: #E8F1FC;
    overflow: hidden;
}

.fill-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

.banner-caption {
    background: #fff;
    border-bottom: 1px solid var(--border, #E3ECF7);
    padding: 14px 0;
    font-size: 14px;
    color: var(--muted, #6B7C93);
    text-align: center;
}

.fill-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 18px;
}

.fill-main { padding-top: 28px; padding-bottom: 60px; }

.fill-card {
    background: #fff;
    border: 1px solid var(--border, #E3ECF7);
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(30, 78, 140, .08);
    padding: 40px 44px 36px;
}

.fill-head { margin-bottom: 18px; }

.fill-title {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: .5px;
    color: #1B2A3A;
}

.fill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted, #6B7C93);
    font-size: 13px;
}

.fill-desc {
    background: #F7FAFF;
    border-left: 3px solid var(--primary, #2B7DE9);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #46586E;
    margin: 20px 0 6px;
    line-height: 1.8;
}

.fill-desc p,
.fill-desc div,
.fill-footer p,
.fill-footer div {
    margin: 0 0 8px;
}
.fill-desc p:last-child,
.fill-desc div:last-child,
.fill-footer p:last-child,
.fill-footer div:last-child { margin-bottom: 0; }
.fill-desc ul,
.fill-desc ol {
    margin: 4px 0 8px 20px;
    padding: 0;
}
.fill-desc li { margin: 2px 0; }

.fill-notice {
    background: #F2FBF7;
    border: 1px solid #CDEBDE;
    border-radius: 10px;
    padding: 22px;
    margin-top: 24px;
    text-align: center;
    color: #177A55;
}
.fill-notice h2 { font-size: 18px; margin: 0 0 6px; }
.fill-notice p { margin: 0; font-size: 14px; }

/* ---------- 题目 ---------- */
.q-item {
    padding: 26px 0 22px;
    border-bottom: 1px solid #EFF4FA;
}

.q-item:last-of-type { border-bottom: none; }

.q-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #1F2D3D;
}

.q-no { display: inline; color: var(--primary, #2B7DE9); font-weight: 700; margin-right: 8px; }
.q-text { display: inline; }
.q-required { display: inline; color: #E0554F; margin-left: 3px; }

.q-hint { color: var(--muted, #6B7C93); font-size: 12px; margin-top: 8px; }

.q-error {
    margin-top: 10px;
    color: #C0392B;
    font-size: 13px;
}

.q-item.has-error {
    background: #FFFAFA;
    border-radius: 10px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom-color: transparent;
    box-shadow: inset 0 0 0 1px #FADBD8;
    margin: 6px -16px;
}

.opt-list { display: flex; flex-direction: column; gap: 8px; }

.opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #E7EFF9;
    border-radius: 9px;
    background: #FBFDFF;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .15s, background .15s;
    line-height: 1.6;
}
.opt:hover { border-color: #BFD9FA; background: #F6FAFF; }

.opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt-mark {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #C7D7EA;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: .15s;
}

.opt input:checked + .opt-mark {
    border-color: var(--primary, #2B7DE9);
    background: var(--primary, #2B7DE9);
}

.opt input:checked + .opt-mark:after {
    content: "";
    position: absolute;
    top: 5px; left: 5px; width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
}

.opt input[type=checkbox] + .opt-mark { border-radius: 5px; }

.opt input[type=checkbox]:checked + .opt-mark:after {
    content: "";
    position: absolute;
    top: 3px; left: 2px;
    width: 10px; height: 8px;
    background: transparent;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    transform: rotate(-45deg);
}

.opt input:checked ~ .opt-text { color: #16508F; font-weight: 600; }

/* ---------- 评分 ---------- */
.rating-list { display: flex; flex-wrap: wrap; gap: 8px; }

.rating-item {
    position: relative;
    min-width: 46px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E1EBF7;
    border-radius: 9px;
    background: #FBFDFF;
    cursor: pointer;
    font-size: 15px;
    color: #46586E;
    transition: .15s;
}
.rating-item:hover { border-color: #BFD9FA; }
.rating-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-item input:checked + span {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 9px;
    background: var(--primary, #2B7DE9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---------- 署名与提交 ---------- */
.fill-respondent {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed #E3ECF7;
}
.fill-respondent label { display: block; font-size: 14px; color: var(--muted, #6B7C93); margin-bottom: 8px; }

.fill-actions { margin-top: 26px; text-align: center; }

.fill-submit {
    width: 100%;
    height: 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    background: var(--primary, #2B7DE9);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity .15s;
}
.fill-submit:hover { opacity: .92; }

.fill-hint { color: var(--muted, #6B7C93); font-size: 12px; margin-top: 10px; }

.fill-footer {
    text-align: center;
    color: #8496AB;
    font-size: 13px;
    padding: 26px 0 8px;
    line-height: 1.9;
}

@media (max-width: 640px) {
    .fill-card { padding: 26px 20px 24px; border-radius: 12px; }
    .fill-title { font-size: 22px; }
    .fill-banner img { max-height: 240px; }
    .fill-main { padding-top: 16px; }
    .q-item { padding: 20px 0 18px; }
}
