/* ==========================================================================
   情感咨询 · 问卷主页
   ========================================================================== */

.quiz-body {
    background: #f7eaf0;
}

.page-home {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 24px;
    overflow-x: hidden;
    background: var(--page-bg);
}

/* 顶部文案 + 配图 ----------------------------------------------------------- */
.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 95%;
    margin: 30px auto 0;
    color: #555;
    font-size: 13px;
    line-height: 24px;
}

.intro__text {
    margin-left: 10px;
    padding-top: 2px;
}

.intro__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #2f2730;
}

.intro__poster {
    width: 40%;
    max-width: 180px;
    flex: 0 0 auto;
}

.intro__poster img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(190, 83, 121, 0.16);
}

/* 问卷卡片 ----------------------------------------------------------------- */
.card {
    width: 95%;
    margin: 0 auto 20px;
    padding: 20px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(194, 94, 129, 0.08);
}

.card__head {
    padding: 10px 30px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.progress-row__value {
    color: #f00;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
}

.progress-row__hint {
    font-size: 14px;
    color: #5d5d5d;
    text-align: right;
}

.progress {
    height: 5px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 4px;
    background: #ebebeb;
}

.progress__bar {
    width: 20%;
    height: 5px;
    border-radius: 4px;
    background: var(--progress);
    transition: width 0.25s ease;
}

/* 题目与选项 --------------------------------------------------------------- */
.question {
    padding: 0 30px;
}

.question__title {
    margin: 5px 0 10px;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    min-height: 22px;
}

.question__options {
    display: flow-root;
}

.question__options.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

.option {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 0 1.34em;
    border: 1px solid var(--brand);
    border-radius: 5px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 14px;
    line-height: 45px;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.option:first-child {
    margin-top: 10px;
}

.option.is-check {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 14px rgba(255, 105, 155, 0.22);
}

.option:active {
    transform: scale(0.995);
}

/* 上一题 / 下一题 ----------------------------------------------------------- */
.actions {
    display: flex;
    margin-top: 10px;
}

.actions .btn {
    width: 25%;
    min-width: 76px;
    margin: 0 auto;
    padding: 0 1.34em;
    border: 1px solid var(--brand);
    border-radius: 5px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 45px;
}

.actions .btn[hidden] {
    display: none;
}

@media (max-width: 360px) {
    .card__head,
    .question {
        padding-left: 20px;
        padding-right: 20px;
    }

    .intro {
        font-size: 12px;
    }

    .intro__title {
        font-size: 18px;
    }

    .progress-row__hint {
        font-size: 12px;
    }
}
