/* ============ 全局基础 ============ */
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;        /* ← 强制不允许横向溢出 */
}
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 14px; color: #333;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img, canvas, video, iframe { max-width: 100%; height: auto; }

/* 申请页两列布局 */
.apply-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .apply-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* 申请页预算卡片 */
.budget-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
}
.budget-amount {
    font-size: 34px;
    font-weight: 600;
    margin: 6px 0;
    word-break: break-all;
    line-height: 1.15;
}
@media (max-width: 768px) {
    .budget-card { padding: 18px; }
    .budget-amount { font-size: 26px; }
}
@media (max-width: 420px) {
    .budget-amount { font-size: 22px; }
}
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

/* ============ 顶部导航 ============ */
.nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: #001529; font-weight: 600; font-size: 18px;
}
.nav-logo .ico {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a {
    color: #555; font-size: 15px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #1890ff; border-bottom-color: #1890ff;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.ws-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #aaa; display: inline-block; margin-right: 6px;
    transition: background .3s;
}
.ws-dot.on { background: #52c41a; box-shadow: 0 0 6px rgba(82,196,26,0.6); }
.user-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 13px; color: #555;
}
.user-pill .av {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #1890ff, #722ed1);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 18px;
    border-radius: 6px; border: 1px solid #d9d9d9;
    background: #fff; color: #333;
    font-size: 14px; cursor: pointer; transition: all .2s;
    white-space: nowrap;
}
.btn:hover { color: #1890ff; border-color: #1890ff; }
.btn-primary { background: linear-gradient(135deg, #1890ff, #096dd9); border: none; color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); color:#fff; }
.btn-success { background: #52c41a; border-color: #52c41a; color: #fff; }
.btn-success:hover { opacity: .9; color:#fff; }
.btn-danger  { background: #ff4d4f; border-color: #ff4d4f; color: #fff; }
.btn-danger:hover { opacity: .9; color:#fff; }
.btn-warn    { background: #faad14; border-color: #faad14; color: #fff; }
.btn-warn:hover { opacity: .9; color:#fff; }
.btn-lg { height: 48px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn-link { border:none; background:transparent; color:#1890ff; padding:0; height:auto; }
.btn-link:hover { color:#40a9ff; background: transparent; }
.btn-block { width: 100%; }

/* ============ 首页 Banner ============ */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 80px 24px 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08), transparent 50%);
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; font-weight: 600; }
.hero h1 span { color: #ffd666; }
.hero p { font-size: 16px; line-height: 1.8; opacity: .9; margin-bottom: 28px; }
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
    align-items: center;
}
.hero-btns .btn-lg {
    height: 48px;
    padding: 0 28px;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all .25s;
}
.hero-btns .btn-primary {
    background: linear-gradient(135deg,#ffd666,#fa8c16);
    border: none; color: #fff;
    box-shadow: 0 6px 16px rgba(250,140,22,0.35);
}
.hero-btns .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(250,140,22,0.45);
    color: #fff;
}
.hero-btns .btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
}
.hero-btns .btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .hero-btns { gap: 10px; max-width: 280px; }
    .hero-btns .btn-lg {
        flex: 1 1 100%;
        height: 44px;
        padding: 0 22px;
        font-size: 14px;
        margin: 0 !important;
    }
}

.hero-stats {
    display: flex; gap: 40px; margin-top: 36px;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .item { }
.hero-stats .num { font-size: 28px; font-weight: 600; color: #ffd666; }
.hero-stats .lbl { opacity: .7; font-size: 13px; margin-top: 4px; }

.hero-card {
    background: #fff; color: #333;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.hero-card h3 { font-size: 18px; margin-bottom: 18px; color: #001529; }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display:block; font-size:13px; color:#666; margin-bottom: 6px; }
.hero-card input, .hero-card select {
    width: 100%; height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}
.hero-card input:focus, .hero-card select:focus {
    outline: none; border-color: #1890ff;
}
.hero-card .estimate {
    margin-top: 16px; padding: 14px;
    background: #f5faff; border: 1px solid #d6e8ff;
    border-radius: 8px;
}
.hero-card .estimate .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.hero-card .estimate .row b { color: #1890ff; font-size: 15px; }

/* ============ 通用布局 ============ */
.container {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px;
}
.section-title { font-size: 24px; margin-bottom: 8px; color: #001529; font-weight: 600; }
.section-sub  { color: #888; margin-bottom: 24px; }

/* ============ 特色卡片 ============ */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.feature-card .ico {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
}
.feature-card h4 { font-size: 16px; margin-bottom: 8px; color: #001529; }
.feature-card p { color: #888; font-size: 13px; line-height: 1.7; }

/* ============ 用户中心布局 ============ */
.uc-layout {
    max-width: 1200px; margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}
.uc-side {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.uc-side .head {
    padding: 24px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
}
.uc-side .head .av {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 10px;
}
.uc-side .head .name { font-weight: 600; font-size: 16px; }
.uc-side .head .meta { font-size: 12px; opacity: .8; margin-top: 4px; }

.uc-menu { list-style: none; padding: 8px 0; }
.uc-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px;
    color: #555; font-size: 14px;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.uc-menu li a:hover { background: #f5f7fa; color: #1890ff; }
.uc-menu li.active a { background: #f0f8ff; color: #1890ff; border-left-color: #1890ff; font-weight: 500; }
.uc-menu .ico { width: 18px; text-align: center; }

.uc-main {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 28px;
    min-height: 500px;
}
.uc-main h2 { font-size: 20px; margin-bottom: 6px; color: #001529; }
.uc-main h2 + .desc { color: #888; font-size: 13px; margin-bottom: 24px; }

/* ============ 数据卡片 ============ */
.uc-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.uc-stat {
    background: linear-gradient(135deg, #f0f7ff, #fafcff);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e6f0ff;
}
.uc-stat .lbl { color: #888; font-size: 13px; }
.uc-stat .val { font-size: 24px; font-weight: 600; color: #1890ff; margin-top: 4px; }

/* ============ 表格 ============ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
    background: #fafafa;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px; color: #666; font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.tbl tbody td {
    padding: 14px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.tbl tbody tr:hover { background: #fafcff; }

/* ============ 表单 ============ */
.form-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-grid.cols-1 { grid-template-columns: 1fr; }
.field-item { display: flex; flex-direction: column; gap: 6px; }
.field-item label { font-size: 13px; color: #555; }
.field-item label .req { color: #ff4d4f; margin-left: 2px; }
.field-item input, .field-item select, .field-item textarea {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all .2s;
}
.field-item textarea { padding: 10px 12px; height: auto; min-height: 80px; resize: vertical; }
.field-item input:focus, .field-item select:focus, .field-item textarea:focus {
    outline: none; border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

/* ============ 标签 ============ */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px; line-height: 20px;
    background: #f5f5f5; color: #666;
}
.tag.blue { background: #e6f7ff; color: #1890ff; }
.tag.green { background: #f6ffed; color: #52c41a; }
.tag.orange { background: #fff7e6; color: #fa8c16; }
.tag.red { background: #fff1f0; color: #f5222d; }
.tag.purple { background: #f9f0ff; color: #722ed1; }

/* ============ 登录注册 ============ */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px;
}
.auth-card {
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-tabs {
    display: flex; gap: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.auth-tabs a {
    padding: 12px 4px;
    color: #888;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}
.auth-tabs a.active {
    color: #1890ff; border-bottom-color: #1890ff;
    font-weight: 500;
}
.auth-card h2 { font-size: 22px; color: #001529; margin-bottom: 24px; text-align: center; }

/* ============ 实名认证页 ============ */
.kyc-status {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 16px;
}
.kyc-status.pending { background: #fff7e6; border: 1px solid #ffd591; color: #fa8c16; }
.kyc-status.approved { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.kyc-status.rejected { background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322; }
.kyc-status.none { background: #f0f8ff; border: 1px solid #d6e8ff; color: #1890ff; }
.kyc-status .ico { font-size: 28px; }
.kyc-status .title { font-weight: 600; font-size: 15px; }
.kyc-status .sub { font-size: 13px; opacity: .85; margin-top: 4px; }

.upload-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin-bottom: 16px;
}
.upload-box {
    height: 160px;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #999; cursor: pointer;
    background: #fafafa;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.upload-box:hover { border-color: #1890ff; color: #1890ff; }
.upload-box .big { font-size: 32px; margin-bottom: 6px; }
.upload-box .lbl { font-size: 12px; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box input[type=file] { display: none; }

/* ============ 通知 / Toast ============ */
.toast-wrap {
    position: fixed; top: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
    background: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; min-width: 200px;
    animation: ti .2s ease-out;
}
@keyframes ti { from { transform: translateY(-20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.toast.success { color: #52c41a; }
.toast.error { color: #f5222d; }
.toast.warn { color: #faad14; }
.toast.info { color: #1890ff; }

/* ============ 弹窗 ============ */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 10px;
    width: 480px; max-width: 92vw; max-height: 86vh;
    display: flex; flex-direction: column;
    animation: mi .2s ease-out;
}
.modal.lg { width: 720px; }
@keyframes mi { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-h {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-h h3 { font-size: 16px; font-weight: 500; }
.modal-h .x {
    background: none; border: none; font-size: 22px; color: #999; cursor: pointer;
}
.modal-b { padding: 22px; flex: 1; overflow-y: auto; }
.modal-f {
    padding: 14px 22px;
    border-top: 1px solid #f0f0f0;
    display: flex; gap: 10px; justify-content: flex-end;
}

/* ============ 实时通知气泡 ============ */
.realtime-bubble {
    position: fixed;
    right: 24px; top: 80px;
    background: #fff;
    border-left: 4px solid #1890ff;
    padding: 14px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 360px; min-width: 280px;
    z-index: 1500;
    animation: rti .3s ease-out;
}
.realtime-bubble.success { border-left-color: #52c41a; }
.realtime-bubble.warn { border-left-color: #faad14; }
.realtime-bubble.error { border-left-color: #ff4d4f; }
.realtime-bubble .t { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.realtime-bubble .b { font-size: 13px; color: #666; line-height: 1.6; }
.realtime-bubble .x {
    position: absolute; top: 8px; right: 12px;
    background: none; border: none; color: #ccc; cursor: pointer; font-size: 18px;
}
@keyframes rti { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ Footer ============ */
.footer {
    background: #001529; color: rgba(255,255,255,0.6);
    padding: 32px 24px;
    text-align: center;
    margin-top: 60px;
    font-size: 13px; line-height: 2;
}
.footer a { color: rgba(255,255,255,0.8); }

/* ============ 描述列表 ============ */
.desc {
    display: grid; grid-template-columns: 130px 1fr;
    gap: 12px 16px;
}
.desc dt { color: #888; font-size: 13px; }
.desc dd { color: #333; font-size: 14px; }

/* ============ 通用 ============ */
.text-success { color: #52c41a; }
.text-danger { color: #ff4d4f; }
.text-warn { color: #faad14; }
.text-muted { color: #999; }
.text-bold { font-weight: 600; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; }
.mt-12 { margin-top: 12px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; } .mb-20 { margin-bottom: 20px; }
.divider { height: 1px; background: #f0f0f0; margin: 20px 0; }

/* ============ 响应式 ============ */
/* 平板 */
@media (max-width: 992px) {
    .nav-menu { gap: 18px; }
    .nav-menu a { font-size: 14px; }
    .hero h1 { font-size: 36px; }
    .uc-layout { grid-template-columns: 1fr; padding: 0 16px; gap: 14px; }
    .uc-side { position: static; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 */
@media (max-width: 768px) {
    /* 顶部导航 */
    .nav-inner { padding: 0 12px; height: 56px; }
    .nav-logo span { font-size: 16px; }
    .nav-logo .ico { width: 30px; height: 30px; font-size: 14px; }
    .nav-menu { display: none; }
    .nav-right { gap: 6px; }
    .nav-right .btn { padding: 0 10px; font-size: 12px; height: 30px; }
    .user-pill { padding: 3px 8px; font-size: 11px; gap: 6px; }
    .user-pill .av { width: 24px; height: 24px; font-size: 11px; }

    /* Hero */
    .hero { padding: 40px 16px 50px; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 26px; line-height: 1.4; }
    .hero p { font-size: 14px; }
    .hero-stats { gap: 24px; padding-top: 18px; flex-wrap: wrap; }
    .hero-stats .num { font-size: 22px; }
    .hero-stats .lbl { font-size: 11px; }
    .hero-card { padding: 20px; }
    .hero-card h3 { font-size: 16px; }
    .hero .btn-lg { height: 42px; padding: 0 22px; font-size: 14px; }
    .hero .btn-lg + .btn-lg { margin-left: 0; margin-top: 10px; display: inline-block; }

    /* 容器 */
    .container { padding: 24px 16px; }
    .section-title { font-size: 20px; }
    .section-sub { font-size: 13px; margin-bottom: 18px; }

    /* 特色卡片 */
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-card { padding: 18px 14px; }
    .feature-card .ico { width: 44px; height: 44px; font-size: 20px; margin-bottom: 10px; }
    .feature-card h4 { font-size: 14px; }
    .feature-card p { font-size: 12px; line-height: 1.6; }

    /* 用户中心布局 */
    .uc-layout { padding: 10px; gap: 10px; margin: 0; }
    .uc-side { background: #fff; border-radius: 8px; overflow: hidden; }
    /* 头部：紧凑横排 */
    .uc-side .head { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
    .uc-side .head .av { width: 36px; height: 36px; font-size: 15px; margin-bottom: 0; }
    .uc-side .head .name { font-size: 14px; line-height: 1.2; }
    .uc-side .head .meta { font-size: 11px; line-height: 1.3; }

    /* 菜单：4 列图标网格，不滚动 */
    .uc-menu {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 6px;
        border-top: 1px solid #f0f0f0;
        list-style: none;
    }
    .uc-menu li { flex-shrink: 1; }
    .uc-menu li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 10px 4px;
        text-align: center;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
        background: #f7f9fc;
        border-radius: 6px;
        border: none !important;
        color: #555;
    }
    .uc-menu li.active a {
        background: #1890ff !important;
        color: #fff !important;
        border: none !important;
    }
    .uc-menu .ico {
        font-size: 18px;
        margin: 0;
        width: auto;
    }

    .uc-main { padding: 18px 16px; min-height: 0; }
    .uc-main h2 { font-size: 18px; }
    .uc-main h2 + .desc { font-size: 12px; margin-bottom: 16px; }

    /* 用户中心统计卡 */
    .uc-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .uc-stat { padding: 12px; }
    .uc-stat .val { font-size: 18px !important; }
    .uc-stat .lbl { font-size: 12px; }

    /* 表单 */
    .form-grid, .form-grid.cols-1 { grid-template-columns: 1fr !important; gap: 14px; }
    .upload-grid { grid-template-columns: 1fr; }
    .field-item input, .field-item select, .field-item textarea { height: 38px; font-size: 14px; }

    /* 表格 → 卡片式视图（每行变一张卡，左标签右值，无需横滑） */
    .tbl { min-width: 0 !important; width: 100%; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl thead { display: none; }
    .tbl tbody tr {
        background: #fafbfc;
        border: 1px solid #f0f0f0;
        border-radius: 6px;
        padding: 8px 12px;
        margin-bottom: 10px;
    }
    .tbl tbody tr:hover { background: #f5faff; }
    .tbl tbody td {
        padding: 6px 0;
        border-bottom: 1px dashed #f0f0f0;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: right;
        word-break: break-all;
    }
    .tbl tbody td:last-child { border-bottom: none; }
    .tbl tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #888;
        font-size: 12px;
        text-align: left;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .tbl tbody td[colspan] {
        text-align: center;
        color: #999;
        padding: 16px 0;
    }
    .tbl tbody td[colspan]::before { display: none; }
    .table-scroll { overflow: visible; margin: 0; padding: 0; }

    /* 弹窗 */
    .modal-mask { padding: 8px; }
    .modal { width: 96vw !important; max-width: 96vw !important; max-height: 92vh; }
    .modal.lg { width: 96vw !important; }
    .modal-h { padding: 14px 16px; }
    .modal-h h3 { font-size: 14px; }
    .modal-b { padding: 16px; }
    .modal-f { padding: 12px 16px; flex-wrap: wrap; }

    /* 描述列表 */
    .desc { grid-template-columns: 90px 1fr; gap: 8px 12px; }

    /* 实时通知气泡 */
    .realtime-bubble {
        right: 8px; left: 8px;
        max-width: none; min-width: 0;
        top: 70px;
    }

    /* 登录注册 */
    .auth-card { padding: 28px 22px; max-width: none; }
    .auth-card h2 { font-size: 18px; margin-bottom: 18px; }
    .auth-tabs { gap: 18px; margin-bottom: 22px; }
    .auth-tabs a { font-size: 14px; }

    /* KYC 状态条 */
    .kyc-status { padding: 14px; gap: 12px; }
    .kyc-status .ico { font-size: 22px; }
    .kyc-status .title { font-size: 14px; }
    .kyc-status .sub { font-size: 12px; }

    /* 银行卡 */
    .card-list { grid-template-columns: 1fr !important; gap: 12px; }
    .bcard { padding: 18px 20px; min-height: 160px; }
    .bcard .num { font-size: 17px; letter-spacing: 3px; margin-top: 22px; }

    /* 按钮 */
    .btn { font-size: 13px; }
    .btn-lg { height: 42px; padding: 0 22px; font-size: 14px; }

    /* footer */
    .footer { padding: 22px 16px; font-size: 12px; }
}

/* iPhone 刘海/底部安全区适配 */
@supports (padding: env(safe-area-inset-top)) {
    .nav-inner { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .uc-layout { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
    .footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* 超窄屏（< 420px iPhone SE / 旧手机） */
@media (max-width: 420px) {
    .nav-inner { padding: 0 10px; }
    .nav-logo span { font-size: 14px; }
    .user-pill > span:last-child { display: none; }   /* 名字太挤就隐藏 */
    .nav-right { gap: 4px; }
    .nav-right .btn { padding: 0 8px; font-size: 11px; height: 28px; }
    .uc-menu .ico { font-size: 17px; }
    .uc-menu li a { font-size: 10px; padding: 9px 2px; }
    .hero h1 { font-size: 22px; }
    .hero-stats .num { font-size: 18px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 100%; margin: 0 !important; }
    .hero .btn-lg { width: 100%; margin-left: 0 !important; margin-bottom: 8px; }
}

/* 超窄屏（< 380px 老款手机） */
@media (max-width: 380px) {
    .uc-menu { grid-template-columns: repeat(3, 1fr); }
}

/* 超窄屏 */
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .uc-stats { grid-template-columns: 1fr; }
    .hero h1 { font-size: 22px; }
    .hero-stats { gap: 16px; }
    .hero-stats .num { font-size: 18px; }
    .uc-main { padding: 14px 12px; }
}
