/* 考后估分模块样式（1:1 复刻 m.hqwx.com/gufen，原图已本地化 /assets/tiku/img/mb/gufen_*.png） */
:root {
  --gf-red: #f7534c;
  --gf-red2: #fc534d;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fb3945; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

/* 顶栏（快问统一导航，叠在红色背景上） */
.gf-topbar { position: sticky; top: 0; z-index: 300; display: flex; align-items: center; height: 48px; padding: 0 10px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.gf-back { width: 32px; height: 32px; font-size: 20px; line-height: 30px; color: #3a3d4b; text-decoration: none; text-align: center; border-radius: 50%; }
.gf-topbar-tit { flex: 1; text-align: center; font-size: 16px; font-weight: 600; color: #17233d; }
.gf-login { flex: none; font-size: 13px; color: #3d7df5; text-decoration: none; padding: 5px 2px; }

/* banner（原图 gufen_banner.png，考试名叠加） */
.gf-banner { position: relative; width: 100%; max-width: 480px; margin: 0 auto; height: 208px;
    background: url(../img/mb/gufen_banner.png) no-repeat top center; background-size: contain; }
.gf-banner .g-name { position: absolute; top: 25px; left: 0; right: 0; text-align: center; color: #fef9e7; font-size: 13px; }

/* 白色内容卡 */
.gf-content { position: relative; max-width: 450px; margin: -18px 15px 0; background: #fff; border-radius: 6px; padding-bottom: 12px; }

/* 科目 tab 横滑（可展开全部） */
.gf-tabs { position: relative; z-index: 5; background: #fff; border-radius: 6px 6px 0 0; box-shadow: 0 5px 5px #eff4f9; }
.gf-tabs .scroll { overflow-x: auto; }
.gf-tabs .scroll::-webkit-scrollbar { display: none; }
.gf-tabs .view { white-space: nowrap; height: 44px; line-height: 42px; }
.gf-tab { display: inline-block; padding: 0 10px; text-align: center; font-size: 13px; color: #3d4044; cursor: pointer; }
.gf-tab:first-child { padding-left: 25px; }
.gf-tab:last-child { padding-right: 50px; }
.gf-tab .line { width: 16px; height: 2px; border-radius: 1px; background: #548cfe; margin: -8px auto 0; visibility: hidden; }
.gf-tab.on { font-weight: 500; }
.gf-tab.on .line { visibility: visible; }
.gf-more { width: 38px; height: 34px; padding-top: 9px; background: #fff; position: absolute; top: 5px; right: 0; text-align: center; box-shadow: -1px 0 2px #f7f7f7; cursor: pointer; }
.gf-more img { width: 14px; height: 12.5px; }

/* 展开层：全部科目 */
.gf-mask { position: fixed; inset: 0; background: rgba(15,25,45,.55); z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.gf-drawer { width: 100%; max-width: 480px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px 24px; animation: gfUp .25s ease both; }
@keyframes gfUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.gf-drawer-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gf-drawer-hd b { font-size: 16px; color: #17233d; }
.gf-drawer-hd span { font-size: 22px; color: #97a1b3; cursor: pointer; line-height: 1; padding: 0 4px; }
.gf-drawer-bd { display: flex; flex-wrap: wrap; gap: 10px; }
.gf-drawer-bd .it { padding: 9px 16px; font-size: 13px; color: #4a5568; background: #f5f7fa; border-radius: 18px; border: 1px solid transparent; cursor: pointer; }
.gf-drawer-bd .it.on { color: #f7534c; border-color: #f7534c; background: #ffefee; font-weight: 600; }

/* 试卷列表 */
.gf-list { padding: 45px 0 4px 15px; }
.gf-item { position: relative; border-bottom: 1px solid #f2f2f2; overflow: hidden; padding: 20px 90px 20px 0; margin-right: 15px; }
.gf-item:last-child { border-bottom: none; }
.gf-title { line-height: 21px; font-size: 15px; color: #3d4044; font-weight: 500; }
.gf-title .tg { display: inline-block; min-width: 22px; text-align: center; padding: 0 3px; margin-right: 5px;
    color: #fc534d; font-size: 11px; font-weight: 400; border: 1px solid #fc534d; vertical-align: 1px; }
.gf-num { display: inline-block; margin-top: 8px; padding: 1px 3px 0; line-height: 16px; border-radius: 1px;
    color: #fc534d; font-size: 11px; border: 1px solid #fc534d; }
.gf-date { margin-top: 7px; color: #b3b8c7; font-size: 12px; }
.gf-acts { position: absolute; top: 50%; right: 0; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.gf-btn { width: 82px; height: 31px; border-radius: 16px; line-height: 30px; background: #f7534c; color: #fff;
    font-size: 12px; text-align: center; text-decoration: none; }
.gf-btn.ghost { border: 1px solid #f7534c; background: none; color: #f7534c; }
.gf-btn.soft { background: #ffefee; color: #f7534c; }

/* 状态 */
.gf-loading { text-align: center; font-size: 13px; color: #b3b8c7; padding: 40px 0; }
.gf-nothing { padding: 80px 0; text-align: center; font-size: 14px; color: #999; }

@media (min-width: 481px) {
  .gf-content { margin-left: auto; margin-right: auto; }
}
