/* ============================================================
   信租风控通网页版 - "风控终端" 设计系统
   深海军蓝结构 × 档案纸白 × 翡翠行动色 × 鎏金数据
   桌面：顶部导航 + 宽屏布局；移动：底部 Tab
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    /* 结构色：深海军蓝 */
    --navy-900: #081729;
    --navy-800: #0B1F3A;
    --navy-700: #122B4E;
    --navy-600: #1B3A66;
    /* 纸面 */
    --paper: #F4F5F1;
    --card: #FFFFFF;
    --line: #E3E5DE;
    --line-strong: #D2D5CC;
    /* 文字 */
    --ink: #1A2433;
    --ink-2: #5A6678;
    --ink-3: #93A0B4;
    /* 行动色：翡翠 */
    --jade: #0E7D5B;
    --jade-deep: #0A6147;
    --jade-soft: #E4F2EC;
    /* 鎏金（数据高亮） */
    --gold: #C9A35C;
    --gold-bright: #E3C285;
    /* 风险色 */
    --red: #BF3B33;
    --red-soft: #F9ECEA;
    --amber: #C8821A;
    --amber-soft: #FAF1E0;
    --green: #2E7D4F;
    --green-soft: #E7F2EA;
    --gray-soft: #EEF0EA;

    --font-num: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
    --shadow-1: 0 1px 2px rgba(8, 23, 41, .05), 0 2px 8px rgba(8, 23, 41, .05);
    --shadow-2: 0 4px 14px rgba(8, 23, 41, .10), 0 1px 3px rgba(8, 23, 41, .06);
    --radius: 12px;
    --header-h: 60px;
}

html { scroll-padding-top: 84px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; outline: none; color: var(--ink); }
img { display: block; }

/* ============ 顶部导航（桌面） ============ */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(201, 163, 92, .25);
    height: var(--header-h);
}
.site-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent);
    opacity: .9;
}
.header-inner {
    max-width: 1160px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; gap: 28px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 9px; object-fit: cover;
    border: 1px solid rgba(201, 163, 92, .45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { font-size: 10px; color: rgba(255, 255, 255, .55); letter-spacing: .18em; display: block; line-height: 1.2; }

.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
    color: rgba(255, 255, 255, .72); font-size: 14.5px; padding: 7px 14px;
    border-radius: 8px; position: relative; transition: color .18s, background .18s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-nav a.active { color: #fff; font-weight: 600; }
.main-nav a.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px;
    background: var(--gold-bright); border-radius: 2px;
}

.header-user { display: flex; align-items: center; gap: 12px; flex: none; }
.balance-chip {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(201, 163, 92, .35);
    color: var(--gold-bright); font-size: 13px; padding: 5px 12px; border-radius: 20px;
    transition: background .18s;
}
.balance-chip:hover { background: rgba(255, 255, 255, .14); }
.balance-chip b { font-family: var(--font-num); font-size: 15px; font-weight: 600; }
.user-pill { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; cursor: pointer; }
.user-pill .dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy-600); border: 1px solid rgba(255, 255, 255, .25);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-header-login {
    background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: 14px;
    padding: 7px 20px; border-radius: 8px; transition: filter .18s;
}
.btn-header-login:hover { filter: brightness(1.08); }

/* ============ 移动端底部 Tab ============ */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line);
    display: none; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(8, 23, 41, .06);
}
.tabbar-item { flex: 1; text-align: center; padding: 7px 0 5px; color: var(--ink-3); }
.tabbar-icon { width: 22px; height: 22px; margin: 0 auto 1px; }
.tabbar-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tabbar-text { font-size: 10.5px; letter-spacing: .02em; }
.tabbar-item.active { color: var(--jade); }

/* ============ 布局容器 ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.page-body { padding-bottom: 60px; min-height: calc(100vh - var(--header-h)); }

/* 子页返回头（移动端） */
.sub-head {
    display: none; position: sticky; top: 0; z-index: 80;
    background: var(--navy-800); color: #fff; height: 48px;
    align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.sub-head .back {
    position: absolute; left: 4px; top: 0; height: 48px; width: 44px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
}

/* ============ Hero 区（深蓝 + 网格纹理） ============ */
.hero {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 36px),
        radial-gradient(ellipse 80% 120% at 70% -20%, var(--navy-600), transparent 60%),
        var(--navy-800);
    color: #fff; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 80% at 15% 110%, rgba(201, 163, 92, .14), transparent 65%);
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 44px 20px 50px; position: relative; z-index: 1; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; letter-spacing: .14em; color: var(--gold-bright);
    border: 1px solid rgba(201, 163, 92, .45); border-radius: 4px; padding: 3px 10px;
    margin-bottom: 14px;
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.hero .hero-desc { color: rgba(255, 255, 255, .65); font-size: 14.5px; margin-top: 8px; max-width: 560px; }
.hero-stats { display: flex; gap: 36px; margin-top: 22px; }
.hero-stat .n {
    font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--gold-bright);
}
.hero-stat .n small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.hero-stat .l { font-size: 12px; color: rgba(255, 255, 255, .5); letter-spacing: .06em; }

/* ============ 卡片 ============ */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 16px; }
.card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.card-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--gold), var(--jade));
}
.card-title .title-extra { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* 两栏网格（桌面） */
.grid-main { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: start; margin-top: -26px; position: relative; z-index: 2; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ============ 表单 ============ */
.form-item { margin-bottom: 16px; }
.form-label { font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; display: block; font-weight: 500; letter-spacing: .02em; }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: 9px;
    background: #FBFBF9; transition: border-color .18s, box-shadow .18s, background .18s;
    font-size: 15px;
}
.form-input::placeholder { color: var(--ink-3); }
.form-input:focus { border-color: var(--jade); background: #fff; box-shadow: 0 0 0 3px rgba(14, 125, 91, .12); }
.form-input.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; min-height: 16px; }
textarea.form-input { resize: vertical; min-height: 96px; }
.input-group { display: flex; gap: 10px; }
.input-group .form-input { flex: 1; }

/* ============ 按钮 ============ */
.btn {
    display: block; width: 100%; padding: 13px 0; border-radius: 9px;
    font-size: 15.5px; font-weight: 700; text-align: center; letter-spacing: .06em;
    transition: transform .12s, box-shadow .18s, filter .18s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary {
    background: linear-gradient(135deg, #11936B, var(--jade) 55%, var(--jade-deep));
    color: #fff; box-shadow: 0 3px 10px rgba(14, 125, 91, .28);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 5px 16px rgba(14, 125, 91, .34); }
.btn-primary:disabled, .btn-primary.disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-outline { border: 1.5px solid var(--jade); color: var(--jade); background: #fff; }
.btn-outline:hover { background: var(--jade-soft); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink-2); background: #fff; }
.btn-sm { display: inline-block; width: auto; padding: 9px 22px; font-size: 14px; }
.btn-sms {
    white-space: nowrap; padding: 0 16px; border-radius: 9px;
    border: 1.5px solid var(--jade); color: var(--jade); font-size: 13px; background: #fff;
    transition: background .18s;
}
.btn-sms:hover { background: var(--jade-soft); }
.btn-sms:disabled { border-color: var(--line-strong); color: var(--ink-3); background: #FBFBF9; }

/* ============ 协议勾选 ============ */
.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 14px 2px; }
.agree-row input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--jade); flex: none; }
.agree-row a { color: var(--jade); font-weight: 500; }
.agree-row a:hover { text-decoration: underline; }

/* ============ Tab 胶囊 ============ */
.tabs {
    display: inline-flex; background: #E9EBE4; border-radius: 10px; padding: 4px; margin-bottom: 18px;
}
.tabs .tab {
    text-align: center; padding: 9px 28px; font-size: 14.5px; color: var(--ink-2);
    border-radius: 8px; cursor: pointer; transition: all .18s; font-weight: 500;
}
.tabs .tab.active { background: var(--navy-800); color: #fff; font-weight: 600; box-shadow: var(--shadow-1); }

/* ============ 弹窗 ============ */
.modal-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 23, 41, .55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
    background: #fff; width: 100%; max-width: 430px;
    border-radius: 16px; padding: 26px; position: relative;
    border-top: 3px solid var(--gold);
    animation: modalIn .28s cubic-bezier(.2, .9, .3, 1.2);
    max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { transform: translateY(26px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 18px; letter-spacing: .04em; }
.modal-close {
    position: absolute; right: 14px; top: 12px; font-size: 18px; color: var(--ink-3);
    cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .18s;
}
.modal-close:hover { background: var(--gray-soft); }

/* ============ 支付 ============ */
.pay-amount { text-align: center; font-family: var(--font-num); font-size: 38px; font-weight: 700; margin: 4px 0 20px; color: var(--navy-800); }
.pay-amount .rmb { font-size: 20px; margin-right: 2px; color: var(--gold); }
.pay-option {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all .15s;
}
.pay-option:hover { border-color: var(--ink-3); }
.pay-option.selected { border-color: var(--jade); background: var(--jade-soft); }
.pay-option.disabled { opacity: .5; cursor: not-allowed; }
.pay-option.disabled:hover { border-color: var(--line); }
.pay-option .pay-icon {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.pay-icon.wallet { background: var(--amber-soft); }
.pay-icon.wechat { background: var(--green-soft); }
.pay-option .pay-info { flex: 1; }
.pay-option .pay-name { font-weight: 600; font-size: 15px; }
.pay-option .pay-desc { font-size: 12.5px; color: var(--ink-2); }
.pay-option .pay-check {
    width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--line-strong); transition: all .15s; flex: none;
}
.pay-option.selected .pay-check { border-color: var(--jade); background: var(--jade); box-shadow: inset 0 0 0 3.5px #fff; }
.pay-recharge-link { color: var(--jade); font-size: 12px; font-weight: 600; }

/* 二维码 */
.qrcode-box { text-align: center; padding: 6px 0; }
.qrcode-box .qrcode-img {
    display: inline-block; padding: 14px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1);
    position: relative;
}
.qrcode-box .qrcode-img::before, .qrcode-box .qrcode-img::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid;
}
.qrcode-box .qrcode-img::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 14px 0 0 0; }
.qrcode-box .qrcode-img::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 14px 0; }
.qrcode-box .qr-tip { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.qrcode-box .qr-status { font-size: 14px; margin-top: 6px; color: var(--jade); font-weight: 600; }

/* ============ Toast / Loading ============ */
.toast {
    position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96);
    background: rgba(8, 23, 41, .92); color: #fff;
    padding: 13px 24px; border-radius: 10px; font-size: 14px;
    z-index: 999; opacity: 0; transition: all .22s; pointer-events: none;
    max-width: 80%; text-align: center; box-shadow: var(--shadow-2);
    border-bottom: 2px solid var(--gold);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loading-mask { position: fixed; inset: 0; z-index: 998; display: flex; align-items: center; justify-content: center; background: rgba(244, 245, 241, .45); }
.loading-box { background: rgba(8, 23, 41, .88); border-radius: 14px; padding: 22px 28px; text-align: center; }
.spinner {
    width: 30px; height: 30px; margin: 0 auto 10px;
    border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--gold-bright);
    border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #fff; font-size: 13px; letter-spacing: .04em; }

/* ============ 徽章 ============ */
.badge {
    display: inline-block; padding: 2.5px 11px; border-radius: 5px;
    font-size: 12px; font-weight: 600; letter-spacing: .03em;
}
.badge-danger { background: var(--red-soft); color: var(--red); border: 1px solid #EBC8C4; }
.badge-warning { background: var(--amber-soft); color: var(--amber); border: 1px solid #EFDDBC; }
.badge-success { background: var(--green-soft); color: var(--green); border: 1px solid #C6E0CE; }
.badge-gray { background: var(--gray-soft); color: var(--ink-2); border: 1px solid var(--line); }
.badge-primary { background: #E8EEF8; color: var(--navy-600); border: 1px solid #CCD9EC; }

/* ============ 信息行 / 表格 ============ */
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 9.5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--ink-2); flex: none; }
.info-row .value { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.text-danger { color: var(--red); }
.text-warning { color: var(--amber); }
.text-success { color: var(--green); }
.text-sub { color: var(--ink-2); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 9px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.data-table th { background: #F7F8F4; color: var(--ink-2); font-weight: 600; }

/* 统计网格 */
.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat-cell {
    background: #F8F9F5; border: 1px solid var(--line); border-radius: 10px;
    padding: 14px 6px; text-align: center;
}
.stat-cell .num { font-family: var(--font-num); font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-cell .lbl { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.stat-cell.danger { background: var(--red-soft); border-color: #EBC8C4; }
.stat-cell.danger .num { color: var(--red); }
.stat-cell.warning { background: var(--amber-soft); border-color: #EFDDBC; }
.stat-cell.warning .num { color: var(--amber); }

/* ============ 风险记录卡片 ============ */
.risk-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 12px; padding: 16px 16px 16px 20px;
    position: relative; overflow: hidden; cursor: pointer;
    transition: transform .15s, box-shadow .18s, border-color .18s;
}
.risk-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.risk-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.risk-item.level-high::before { background: var(--red); }
.risk-item.level-medium::before { background: var(--amber); }
.risk-item.level-low::before { background: var(--navy-600); }
.risk-item .risk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.risk-item .risk-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.risk-item .risk-meta { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.risk-item .risk-meta b { color: var(--ink); font-weight: 600; }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty .empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .8; }

/* ============ 报告页 ============ */
.report-hero {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px),
        radial-gradient(ellipse 70% 130% at 80% -30%, var(--navy-600), transparent 60%),
        var(--navy-800);
    color: #fff;
}
.report-hero-inner {
    max-width: 1160px; margin: 0 auto; padding: 30px 20px 34px;
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.report-hero .rh-info { flex: 1; min-width: 240px; }
.report-hero .rh-tag { font-size: 11.5px; letter-spacing: .2em; color: var(--gold-bright); margin-bottom: 6px; }
.report-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: .03em; }
.report-hero .rh-meta { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 8px; display: flex; gap: 18px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.report-hero .rh-score { text-align: center; flex: none; }
.report-hero .rh-score .sc-num {
    font-family: var(--font-num); font-size: 54px; font-weight: 700; line-height: 1;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.report-hero .rh-score .sc-lbl { font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .14em; margin-top: 4px; }
.report-hero .rh-score .sc-seg { font-size: 12px; color: var(--gold-bright); margin-top: 2px; }

.report-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; padding-top: 24px; }
.report-nav { position: sticky; top: calc(var(--header-h) + 18px); }
.report-nav .rnav-title { font-size: 11.5px; color: var(--ink-3); letter-spacing: .16em; margin: 0 0 8px 14px; }
.report-nav a {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2);
    transition: all .15s; border: 1px solid transparent; margin-bottom: 2px;
}
.report-nav a .idx { font-family: var(--font-num); font-size: 12px; color: var(--ink-3); width: 16px; }
.report-nav a:hover { background: #fff; color: var(--ink); }
.report-nav a.active { background: #fff; color: var(--navy-800); font-weight: 600; border-color: var(--line); box-shadow: var(--shadow-1); }
.report-nav a.active .idx { color: var(--gold); font-weight: 700; }

/* 移动端报告横向 tab */
.report-tabs {
    position: sticky; top: 48px; z-index: 70; display: none;
    background: #fff; border-bottom: 1px solid var(--line);
}
.report-tabs .rtab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; }
.report-tabs .rtab.active { color: var(--navy-800); border-bottom-color: var(--gold); font-weight: 700; }

.section-block { margin-top: 18px; }
.section-block .sec-title {
    font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
    padding-left: 9px; border-left: 3px solid var(--gold); letter-spacing: .02em;
}

/* 风险标签（印章风） */
.risk-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.risk-tag {
    border-radius: 10px; padding: 12px 4px; text-align: center; font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--line); background: #F8F9F5; letter-spacing: .04em;
}
.risk-tag .tag-status { font-size: 12px; margin-top: 3px; letter-spacing: .14em; font-weight: 700; }
.risk-tag.ok { background: var(--green-soft); border-color: #C6E0CE; }
.risk-tag.ok .tag-status { color: var(--green); }
.risk-tag.warn { background: var(--amber-soft); border-color: #EFDDBC; }
.risk-tag.warn .tag-status { color: var(--amber); }
.risk-tag.bad { background: var(--red-soft); border-color: #EBC8C4; }
.risk-tag.bad .tag-status { color: var(--red); }

/* 分数环 */
.score-circle {
    width: 150px; height: 150px; border-radius: 50%;
    margin: 6px auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: conic-gradient(var(--gold) var(--pct, 60%), #E7E9E2 0);
    position: relative;
}
.score-circle::before { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; box-shadow: inset 0 1px 4px rgba(8, 23, 41, .06); }
.score-circle .score-num { position: relative; font-family: var(--font-num); font-size: 40px; font-weight: 700; color: var(--navy-800); }
.score-circle .score-lbl { position: relative; font-size: 12px; color: var(--ink-2); letter-spacing: .1em; }

/* 案件卡 */
.case-item { background: #F8F9F5; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; font-size: 13.5px; }
.case-item .case-no { font-weight: 700; margin-bottom: 6px; word-break: break-all; font-variant-numeric: tabular-nums; }
.case-item .case-row { display: flex; justify-content: space-between; gap: 12px; padding: 2.5px 0; }
.case-item .case-row .label { color: var(--ink-2); flex: none; }
.case-item .case-row .val { text-align: right; word-break: break-all; font-weight: 500; }

/* ============ 钱包 ============ */
.wallet-card {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 30px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 30px),
        radial-gradient(ellipse 90% 150% at 85% -30%, var(--navy-600), transparent 65%),
        var(--navy-800);
    border-radius: 16px; padding: 26px 24px; color: #fff;
    position: relative; overflow: hidden; border: 1px solid rgba(201, 163, 92, .3);
}
.wallet-card::after {
    content: ''; position: absolute; right: -30px; bottom: -50px; width: 180px; height: 180px;
    border: 1px solid rgba(201, 163, 92, .25); border-radius: 50%;
}
.wallet-card .w-label { font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .1em; }
.wallet-card .w-balance {
    font-family: var(--font-num); font-size: 46px; font-weight: 700; margin: 6px 0 18px;
    background: linear-gradient(180deg, #fff, var(--gold-bright));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wallet-card .w-stats { display: flex; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.wallet-card .w-stat { flex: 1; }
.wallet-card .w-stat .n { font-family: var(--font-num); font-size: 17px; font-weight: 600; color: var(--gold-bright); }
.wallet-card .w-stat .l { font-size: 12px; color: rgba(255, 255, 255, .5); }

.recharge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recharge-cell {
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: 16px 4px; text-align: center; cursor: pointer; position: relative;
    transition: all .15s; background: #fff;
}
.recharge-cell:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.recharge-cell.selected { border-color: var(--jade); background: var(--jade-soft); box-shadow: 0 3px 10px rgba(14, 125, 91, .15); }
.recharge-cell .r-amount { font-family: var(--font-num); font-size: 22px; font-weight: 700; }
.recharge-cell .r-gift { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.recharge-cell .r-tag {
    position: absolute; top: -9px; right: -6px;
    background: linear-gradient(135deg, var(--red), #A33028); color: #fff; font-size: 10.5px;
    padding: 2px 8px; border-radius: 8px 8px 8px 2px; font-weight: 600; letter-spacing: .06em;
}

.log-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.log-item:last-child { border-bottom: none; }
.log-item .log-name { font-size: 14px; font-weight: 600; }
.log-item .log-remark { font-size: 12px; color: var(--ink-3); }
.log-item .log-amount { font-family: var(--font-num); font-size: 16px; font-weight: 700; text-align: right; }
.log-item .log-amount.plus { color: var(--jade); }
.log-item .log-amount.minus { color: var(--ink); }
.log-item .log-time { font-size: 12px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

/* ============ 我的 ============ */
.profile-hero {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 32px),
        radial-gradient(ellipse 70% 130% at 75% -30%, var(--navy-600), transparent 60%),
        var(--navy-800);
    color: #fff;
}
.profile-hero-inner { max-width: 760px; margin: 0 auto; padding: 34px 20px; display: flex; align-items: center; gap: 16px; }
.profile-hero .avatar {
    width: 62px; height: 62px; border-radius: 50%; flex: none;
    background: linear-gradient(145deg, var(--navy-600), var(--navy-700));
    border: 2px solid rgba(201, 163, 92, .5);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.profile-hero .p-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-hero .p-badge {
    font-size: 11px; color: var(--gold-bright); border: 1px solid rgba(201, 163, 92, .5);
    border-radius: 4px; padding: 1px 8px; letter-spacing: .08em;
}
.profile-hero .p-edit { font-size: 13px; color: rgba(255, 255, 255, .55); cursor: pointer; margin-top: 4px; }
.profile-hero .p-edit:hover { color: #fff; }

.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.menu-list + .menu-list { margin-top: 16px; }
.menu-item {
    display: flex; align-items: center; gap: 13px; padding: 16px 18px;
    border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s;
}
.menu-item:hover { background: #FAFBF7; }
.menu-item:last-child { border-bottom: none; }
.menu-item .m-icon {
    width: 36px; height: 36px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    background: var(--gray-soft);
}
.menu-item .m-text { flex: 1; font-size: 15px; font-weight: 500; }
.menu-item .m-text small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.menu-item .m-extra { color: var(--gold); font-family: var(--font-num); font-size: 16px; font-weight: 700; }
.menu-item .m-arrow { color: var(--ink-3); font-size: 17px; }

/* ============ 登录页（分屏） ============ */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 38px),
        radial-gradient(ellipse 45% 40% at 8% 108%, rgba(201, 163, 92, .12), transparent 70%),
        radial-gradient(ellipse 80% 120% at 80% -20%, var(--navy-600), transparent 60%),
        var(--navy-800);
    color: #fff; display: flex; flex-direction: column; justify-content: center;
    padding: 60px 8%; position: relative; overflow: hidden;
}
.auth-brand .ab-mark {
    width: 60px; height: 60px; border-radius: 15px; object-fit: cover;
    border: 1px solid rgba(201, 163, 92, .45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4); margin-bottom: 26px;
}
.auth-brand h1 { font-size: 32px; font-weight: 800; letter-spacing: .03em; line-height: 1.3; }
.auth-brand .ab-sub { color: rgba(255, 255, 255, .6); font-size: 15px; margin-top: 10px; }
.auth-brand .ab-features { margin-top: 38px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand .ab-feature { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.auth-brand .ab-feature .fi {
    width: 26px; height: 26px; border-radius: 7px; flex: none; margin-top: -1px;
    background: rgba(201, 163, 92, .16); border: 1px solid rgba(201, 163, 92, .4);
    color: var(--gold-bright); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.auth-brand .ab-foot { position: absolute; bottom: 26px; left: 8%; font-size: 12px; color: rgba(255, 255, 255, .35); letter-spacing: .06em; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--paper); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .auth-title { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.auth-box .auth-sub { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 26px; }
.auth-mobile-brand { display: none; }
.login-switch { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }
.login-switch a { color: var(--jade); cursor: pointer; font-weight: 600; }
.login-switch a:hover { text-decoration: underline; }

/* ============ 历史记录 ============ */
.history-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.history-item:last-child { border-bottom: none; }
.history-item:hover .h-kw { color: var(--jade); }
.history-item .h-kw { font-weight: 600; transition: color .15s; }
.history-item .h-meta { flex: 1; font-size: 12px; color: var(--ink-3); }
.history-item .h-del { color: var(--ink-3); padding: 4px 9px; border-radius: 6px; }
.history-item .h-del:hover { background: var(--red-soft); color: var(--red); }

/* ============ 提示块 ============ */
.notice { background: var(--amber-soft); border: 1px solid #EFDDBC; border-radius: 10px; padding: 13px 15px; font-size: 12.5px; color: #8A5E1A; line-height: 1.8; }
.notice.blue { background: #EDF2F9; border-color: #D4E0EF; color: var(--navy-600); }

/* ============ 图片上传 ============ */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.upload-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--gray-soft); border: 1px solid var(--line); }
.upload-cell img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.upload-cell .del {
    position: absolute; top: 3px; right: 3px; width: 21px; height: 21px;
    background: rgba(8, 23, 41, .65); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer;
}
.upload-add {
    aspect-ratio: 1; border: 1.5px dashed var(--line-strong); border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--ink-3); cursor: pointer; font-size: 24px; background: #FBFBF9; transition: all .15s;
}
.upload-add:hover { border-color: var(--jade); color: var(--jade); background: var(--jade-soft); }
.upload-add span { font-size: 12px; }

/* ============ 协议页 ============ */
.agreement-content {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; font-size: 14px; white-space: pre-wrap; word-break: break-word;
    box-shadow: var(--shadow-1); line-height: 1.9;
}

/* ============ 页面标题区（浅） ============ */
.page-title-bar { padding: 30px 0 20px; }
.page-title-bar h1 { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.page-title-bar p { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

/* ============ 载入动效 ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .5s cubic-bezier(.2, .7, .3, 1) both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }
.reveal.d4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; }
}

/* ============================================================
   响应式：移动端
   ============================================================ */
@media (max-width: 900px) {
    .grid-main, .grid-2 { grid-template-columns: 1fr; }
    .report-layout { grid-template-columns: 1fr; padding-top: 0; }
    .report-nav { display: none; }
    .report-tabs { display: flex; }
    .auth-layout { grid-template-columns: 1fr; min-height: 100vh; }
    .auth-brand { display: none; }
    .auth-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
    .auth-mobile-brand .ab-mark { width: 46px; height: 46px; border-radius: 12px; margin: 0; object-fit: cover;
        border: 1px solid rgba(201, 163, 92, .45); box-shadow: 0 2px 8px rgba(8, 23, 41, .2); }
    .auth-mobile-brand .t { font-size: 19px; font-weight: 800; }
    .auth-mobile-brand .s { font-size: 12px; color: var(--ink-2); }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .site-header { display: none; }
    .tabbar { display: flex; }
    .page-body { padding-bottom: 86px; }
    .sub-head { display: flex; }
    html { scroll-padding-top: 100px; }

    .hero-inner { padding: 26px 16px 36px; }
    .hero h1 { font-size: 22px; }
    .hero-stats { gap: 22px; margin-top: 16px; }
    .hero-stat .n { font-size: 21px; }

    .container, .container-narrow { padding: 0 12px; }
    .grid-main { margin-top: -22px; gap: 12px; }
    .card { padding: 16px; border-radius: 12px; }
    .card + .card { margin-top: 12px; }
    .grid-2 { gap: 12px; }

    .page-title-bar { padding: 20px 0 14px; }
    .page-title-bar h1 { font-size: 20px; }

    .tabs { display: flex; width: 100%; }
    .tabs .tab { flex: 1; padding: 9px 0; }

    .report-hero-inner { padding: 22px 16px 24px; gap: 18px; }
    .report-hero h1 { font-size: 20px; }
    .report-hero .rh-score .sc-num { font-size: 44px; }
    .report-tabs { top: 48px; }

    .modal-mask { align-items: flex-end; padding: 0; }
    .modal { max-width: none; border-radius: 18px 18px 0 0; animation: sheetIn .26s ease; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
    .profile-hero-inner { padding: 26px 16px; }
    .risk-tags { gap: 8px; }
    .grid-stats { gap: 8px; }
    .recharge-grid { gap: 9px; }
    .wallet-card .w-balance { font-size: 38px; }
}
@keyframes sheetIn { from { transform: translateY(50px); opacity: .6; } to { transform: none; opacity: 1; } }

/* 桌面隐藏移动专用元素 */
@media (min-width: 761px) {
    .mobile-only { display: none !important; }
}
@media (max-width: 760px) {
    .desktop-only { display: none !important; }
}
