/* ==========================================================================
   审核拨款进度查询（Figma「新页面-1」981 高 /「新页面-2」1261 高）
   沿用 base.css 的换算：1rem = 100 个设计稿 px
   ========================================================================== */

body.body--progress,
.page--progress {
    background: linear-gradient(180deg, #fff5e9 0%, #fff6ed 70%, #fff8f2 100%);
}

/* --------------------------------------------------------------- 顶部横幅 */

.pr-hero {
    position: relative;
    display: block;
    width: 100%;
    height: 2.21rem;
    overflow: hidden;
}

.pr-hero__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pr-back {
    position: absolute;
    top: 0.22rem;
    left: 0.08rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.53rem;
    height: 0.24rem;
    font-size: 0.1rem;
    font-weight: 500;
    line-height: 0.145rem;
    color: #05008f;
    text-align: center;
    background: #fff;
    border-radius: 0.03rem;
}

/* ------------------------------------------------------------- 白卡通用 */

.pr-card {
    position: relative;
    margin: 0 0.13rem;
    background: #fff;
    border-radius: 0.11rem;
}

/* 查询卡向上压住横幅：横幅 221 收尾，卡片起于 165 */
.pr-query {
    height: 2.48rem;
    margin-top: -0.56rem;
}

.pr-card__title {
    position: absolute;
    top: 0.2rem;
    left: 0.26rem;
    font-size: 0.16rem;
    font-weight: 700;
    line-height: 0.232rem;
    color: #072a68;
    white-space: nowrap;
    transform: translateY(-50%);
}

.pr-card__bar {
    position: absolute;
    top: -0.06rem;
    left: -0.11rem;
    width: 0.045rem;
    height: 0.16rem;
    background: linear-gradient(135deg, #00a4ff 0%, #0055ee 100%);
    border-radius: 0.02rem;
}

/* ------------------------------------------------------------- 查询表单 */

.pr-query__label {
    position: absolute;
    top: 0.54rem;
    left: 0.15rem;
    font-size: 0.132rem;
    font-weight: 700;
    line-height: 0.1914rem;
    color: #0c214d;
    white-space: nowrap;
    transform: translateY(-50%);
}

.pr-query__form {
    position: static;
}

.pr-query__field {
    position: absolute;
    top: 0.69rem;
    left: 0.15rem;
    display: flex;
    gap: 0.13rem;
    align-items: center;
    width: 3.37rem;
    height: 0.325rem;
    padding: 0 0.1rem;
    background: #fff;
    box-shadow: inset 0 0 0 0.01rem #d3d9e4;
    border-radius: 0.06rem;
}

.pr-query__field-icon {
    display: block;
    flex-shrink: 0;
    width: 0.17rem;
    height: 0.18rem;
}

.pr-query__input {
    flex: 1 0 0;
    min-width: 0;
    height: 0.23rem;
    font-family: inherit;
    font-size: 0.124rem;
    color: #0c214d;
    background: transparent;
    border: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pr-query__input::placeholder { color: #8993a4; }
.pr-query__field.is-error { box-shadow: inset 0 0 0 0.01rem #e2574c; background: #fff7f6; }

.pr-query__hint {
    position: absolute;
    top: 1.12rem;
    left: 0.15rem;
    display: flex;
    gap: 0.13rem;
    align-items: center;
    width: 3.37rem;
    height: 0.3rem;
    padding: 0 0.11rem;
    font-size: 0.108rem;
    line-height: 0.1566rem;
    color: #0c214d;
    white-space: nowrap;
    background: #e9f4ff;
    border-radius: 0.07rem;
}

.pr-query__hint img {
    display: block;
    flex-shrink: 0;
    width: 0.16rem;
    height: 0.18rem;
}

.pr-query__btn {
    position: absolute;
    top: 1.52rem;
    left: 0.15rem;
    display: flex;
    gap: 0.09rem;
    align-items: center;
    justify-content: center;
    width: 3.37rem;
    height: 0.395rem;
    font-size: 0.14rem;
    font-weight: 700;
    line-height: 0.203rem;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, #309cff 0%, #0052eb 100%);
    border-radius: 0.09rem;
}

.pr-query__btn:active { opacity: 0.92; }
.pr-query__btn[disabled] { opacity: 0.65; pointer-events: none; }

.pr-query__btn-arrow { display: block; width: 0.07rem; height: 0.1rem; }

.pr-query__rule {
    position: absolute;
    top: 2.03rem;
    left: 0.15rem;
    display: flex;
    align-items: center;
    width: 3.37rem;
    height: 0.345rem;
    padding: 0 0.1rem;
    background: #fff9e9;
    box-shadow: inset 0 0 0 0.01rem #ffe1a6;
    border-radius: 0.07rem;
}

.pr-query__rule img {
    display: block;
    flex-shrink: 0;
    width: 0.16rem;
    height: 0.16rem;
}

.pr-query__rule i {
    flex-shrink: 0;
    width: 0.0069rem;
    height: 0.17rem;
    margin: 0 0.11rem;
    background: #d39219;
}

.pr-query__rule span {
    font-size: 0.097rem;
    line-height: 0.1436rem;
    color: #925400;
    white-space: nowrap;
}

.pr-query__rule b {
    margin-left: auto;
    font-size: 0.133rem;
    font-weight: 700;
    line-height: 0.1929rem;
    color: #b97a00;
    white-space: nowrap;
}

/* ------------------------------------------------- 查询态「查询后可查看」 */

.pr-pre {
    height: 1.85rem;
    margin-top: 0.05rem;
}

.pr-pre__item {
    position: absolute;
    left: 0.12rem;
    display: flex;
    gap: 0.11rem;
    align-items: center;
    width: 3.43rem;
    height: 0.44rem;
    padding: 0 0.1rem;
    background: #fff;
    box-shadow: inset 0 0 0 0.01rem #edf0f5;
    border-radius: 0.07rem;
}

.pr-pre__item:nth-of-type(1) { top: 0.39rem; }
.pr-pre__item:nth-of-type(2) { top: 0.86rem; }
.pr-pre__item:nth-of-type(3) { top: 1.33rem; }

.pr-pre__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 0.28rem;
    height: 0.28rem;
    background: linear-gradient(135deg, #42aaff 0%, #267bf2 100%);
    border-radius: 0.14rem;
}

.pr-pre__icon img { display: block; width: 0.17rem; height: 0.17rem; }

.pr-pre__text {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    flex-direction: column;
    gap: 0.01rem;
}

.pr-pre__text strong {
    font-size: 0.116rem;
    font-weight: 700;
    line-height: 0.168rem;
    color: #0c214d;
    white-space: nowrap;
}

.pr-pre__text small {
    font-size: 0.097rem;
    line-height: 0.14rem;
    color: #68769a;
    white-space: nowrap;
}

.pr-pre__chevron {
    display: block;
    flex-shrink: 0;
    width: 0.07rem;
    height: 0.12rem;
}

.pr-note {
    display: flex;
    gap: 0.11rem;
    align-items: center;
    width: 3.39rem;
    height: 0.3rem;
    margin: 0.05rem auto 0;
    padding: 0 0.18rem;
    font-size: 0.1rem;
    line-height: 0.145rem;
    color: #4c6283;
    white-space: nowrap;
    background: #eef4ff;
    border-radius: 0.07rem;
}

.pr-note img { display: block; flex-shrink: 0; width: 0.14rem; height: 0.14rem; }

/* 返回首页（沿用首页按钮的 347×53 规格） */
.pr-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.47rem;
    height: 0.53rem;
    margin: 0.1rem auto 0;
    font-size: 0.19rem;
    font-weight: 500;
    line-height: 0.24rem;
    color: #1550d8;
    letter-spacing: 0.005rem;
    background: #fff;
    box-shadow: inset 0 0 0 0.01rem #1550d8;
    border-radius: 0.15rem;
}

.pr-home-btn:active { transform: scale(0.985); }

/* ================================================= 结果态（新页面-2） ==== */

.pr-result {
    position: relative;
    height: 2.11rem;
    margin: 0.04rem 0.11rem 0;
    background: #fff;
    border-radius: 0.1rem;
}

.pr-result__avatar {
    position: absolute;
    top: 0.1rem;
    left: 0.13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.34rem;
    height: 0.34rem;
    background: linear-gradient(135deg, #e7f1ff 0%, #d7e7ff 100%);
    border-radius: 0.1rem;
}

.pr-result__avatar img { display: block; width: 0.18rem; height: 0.2rem; }

.pr-result__title {
    position: absolute;
    top: 0.14rem;
    left: 0.56rem;
    font-size: 0.135rem;
    font-weight: 700;
    line-height: 0.19rem;
    color: #081631;
    white-space: nowrap;
}

.pr-result__sub {
    position: absolute;
    top: 0.41rem;
    left: 0.56rem;
    font-size: 0.115rem;
    line-height: 0.165rem;
    color: #46597b;
    white-space: nowrap;
}

.pr-result__matched {
    position: absolute;
    top: 0.35rem;
    left: 2.23rem;
    display: flex;
    gap: 0.08rem;
    align-items: center;
    width: 1.38rem;
    height: 0.28rem;
    padding: 0 0.13rem;
    font-size: 0.103rem;
    font-weight: 700;
    line-height: 0.1442rem;
    color: #1264db;
    white-space: nowrap;
    background: #eaf3ff;
    border-radius: 0.06rem;
}

.pr-result__matched img { display: block; flex-shrink: 0; width: 0.14rem; height: 0.16rem; }

/* 三格数字 1:60（18,489,357×130，相对卡片为 7,72） */
.pr-stats {
    position: absolute;
    top: 0.72rem;
    left: 0.07rem;
    display: flex;
    width: 3.57rem;
    height: 1.3rem;
    background: #f2f9ff;
    border-radius: 0.08rem;
}

/* 三格不是等分：设计稿竖线在 135 / 257，三格分别 117 / 122 / 118 */
.pr-stat {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.13rem 0 0 0.14rem;
}

.pr-stat--invite { width: 1.17rem; }
.pr-stat--gain   { width: 1.22rem; }
.pr-stat--rank   { width: 1.18rem; }

/* 竖分隔线 1:61 / 1:62 */
.pr-stat + .pr-stat::before {
    position: absolute;
    top: 0.11rem;
    left: 0;
    width: 0.0069rem;
    height: 0.49rem;
    background: #d4e2f2;
    content: "";
}

.pr-stat__icon {
    display: block;
    width: 0.18rem;
    height: 0.17rem;
}

.pr-stat--gain .pr-stat__icon { width: 0.16rem; height: 0.18rem; }

.pr-stat__label {
    display: block;
    margin-top: 0.015rem;
    font-size: 0.1rem;
    line-height: 0.14rem;
    color: #17264d;
    white-space: nowrap;
}

/* 数字与单位顺排，不用绝对定位——位数变多时单位往右推，不会压在一起 */
.pr-stat__value {
    display: flex;
    align-items: baseline;
    margin-top: 0.025rem;
    white-space: nowrap;
}

.pr-stat__value b {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.24rem;
    font-weight: 700;
    line-height: 0.36rem;
    color: #0048c4;
}

.pr-stat--invite .pr-stat__value b { font-size: 0.27rem; line-height: 0.39rem; }
.pr-stat--gain .pr-stat__value b { color: #237e4c; }

.pr-stat__value i {
    font-size: 0.115rem;
    font-style: normal;
    font-weight: 500;
    color: #17264d;
}

.pr-stat__value i:first-child { margin-right: 0.025rem; }
.pr-stat__value i:last-child { margin-left: 0.03rem; }

.pr-stat--rank .pr-stat__label { font-size: 0.093rem; line-height: 0.13rem; }

/* 加速规则条 1:102（25,564,344×48，相对卡片 14,147） */
.pr-rule {
    position: absolute;
    top: 1.47rem;
    left: 0.14rem;
    width: 3.44rem;
    height: 0.48rem;
    /* 左内边距要 42：图标绝对定位在 12~32，写 26 会被图标压住 */
    padding: 0.11rem 0 0 0.42rem;
    background: #e5f3ff;
    border-radius: 0.08rem;
}

.pr-rule img {
    position: absolute;
    top: 0.11rem;
    left: 0.12rem;
    display: block;
    width: 0.2rem;
    height: 0.2rem;
}

.pr-rule__label,
.pr-rule__calc {
    font-size: 0.115rem;
    font-weight: 700;
    line-height: 0.161rem;
    white-space: nowrap;
}

.pr-rule__label { color: #142c55; }
.pr-rule__calc { color: #034cc3; }

.pr-rule__sub {
    display: block;
    margin-top: 0.025rem;
    font-size: 0.1rem;
    line-height: 0.14rem;
    color: #506689;
    white-space: nowrap;
}

/* ------------------------------------------------------- 档案详细信息 */

.pr-file {
    position: relative;
    height: 2.05rem;
    margin: 0.04rem 0.11rem 0;
    background: #fff;
    border-radius: 0.1rem;
}

.pr-file__title {
    position: absolute;
    top: 0.09rem;
    left: 0.13rem;
    display: flex;
    gap: 0.12rem;
    align-items: center;
    height: 0.19rem;
    font-size: 0.13rem;
    font-weight: 700;
    line-height: 0.182rem;
    color: #081631;
    white-space: nowrap;
}

.pr-file__title img { display: block; width: 0.15rem; height: 0.19rem; }

.pr-file__table {
    position: absolute;
    top: 0.35rem;
    left: 0.1rem;
    width: 3.52rem;
    height: 1.09rem;
    box-shadow: inset 0 0 0 0.01rem #e0e8f3;
    border-radius: 0.06rem;
}

.pr-file__row {
    display: flex;
    gap: 0.16rem;
    align-items: center;
    height: 0.2725rem;
    padding: 0 0.07rem 0 0.08rem;
}

.pr-file__row + .pr-file__row {
    box-shadow: 0 -0.0059rem 0 #e0e8f3 inset;
}

.pr-file__row img { display: block; flex-shrink: 0; width: 0.13rem; height: 0.13rem; }

.pr-file__label {
    flex-shrink: 0;
    font-size: 0.105rem;
    line-height: 0.147rem;
    color: #435776;
    white-space: nowrap;
}

.pr-file__value {
    flex: 1 0 0;
    min-width: 0;
    font-size: 0.105rem;
    line-height: 0.147rem;
    color: #17264d;
    text-align: right;
    white-space: nowrap;
}

.pr-file__value.is-green { font-weight: 700; color: #237e4c; }

/* ----------------------------------------------------------- 两个按钮 */

/* 设计稿按钮在档案卡内：卡片起于 632、按钮起于 788 -> 相对 156；
   左缘 18 相对卡片 11 -> 7 */
.pr-actions {
    position: absolute;
    top: 1.56rem;
    left: 0.07rem;
    display: flex;
    gap: 0.08rem;
    width: 3.57rem;
}

.pr-btn {
    display: flex;
    gap: 0.1rem;
    align-items: center;
    justify-content: center;
    height: 0.39rem;
    font-size: 0.112rem;
    font-weight: 700;
    line-height: 0.1568rem;
    white-space: nowrap;
    border-radius: 0.08rem;
}

.pr-btn img { display: block; width: 0.19rem; height: 0.18rem; }

.pr-btn--primary {
    width: 1.75rem;
    color: #fff;
    background: linear-gradient(180deg, #267fff 0%, #065bdd 100%);
}

.pr-btn--ghost {
    width: 1.74rem;
    color: #2079f3;
    background: #edf5ff;
    box-shadow: inset 0 0 0 0.01rem #91beff;
}

.pr-btn:active { opacity: 0.9; }

/* ========================================= 未查到档案的提示弹窗 ======== */

.prmodal {
    position: fixed;
    inset: 0;
    z-index: 790;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    visibility: hidden;
    background: rgba(6, 18, 40, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.prmodal.is-open { visibility: visible; opacity: 1; }

.prmodal__box {
    width: 3rem;
    padding: 0.26rem 0.2rem 0.2rem;
    text-align: center;
    background: #fff;
    border-radius: 0.14rem;
    transform: translateY(0.14rem) scale(0.98);
    transition: transform 0.25s ease;
}

.prmodal.is-open .prmodal__box { transform: none; }

.prmodal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.46rem;
    height: 0.46rem;
    margin: 0 auto 0.12rem;
    background: #fff4e6;
    border-radius: 0.23rem;
}

.prmodal__icon img { display: block; width: 0.22rem; height: 0.22rem; }

.prmodal__title {
    font-size: 0.17rem;
    font-weight: 700;
    line-height: 0.24rem;
    color: #072a68;
}

.prmodal__desc {
    margin-top: 0.08rem;
    font-size: 0.13rem;
    line-height: 0.2rem;
    color: #5a6b86;
}

.prmodal__note {
    margin-top: 0.1rem;
    padding: 0.08rem 0.1rem;
    font-size: 0.115rem;
    line-height: 0.17rem;
    color: #925400;
    background: #fff9e9;
    border-radius: 0.07rem;
}

.prmodal__actions {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.18rem;
}

.prmodal__btn {
    display: flex;
    flex: 1 0 0;
    align-items: center;
    justify-content: center;
    height: 0.42rem;
    font-size: 0.145rem;
    font-weight: 500;
    color: #5a6b86;
    background: #f1f4f9;
    border-radius: 0.08rem;
}

.prmodal__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #309cff 0%, #0052eb 100%);
}

.prmodal__btn:active { opacity: 0.9; }
