/* ============================================================
   m1 站点公共样式  —  金祥国际手机版
   ============================================================ */

:root {
    --primary:      #c8102e;
    --primary-dark: #8b0000;
    --gold:         #b8963e;
    --gold-light:   #d4af5a;
    --text-dark:    #1a1a1a;
    --text-gray:    #666;
    --text-light:   #999;
    --bg-page:      #f4f4f6;
    --bg-card:      #fff;
    --border:       #ececec;
    --radius:       10px;
    --shadow:       0 2px 12px rgba(0,0,0,.07);
}

*  { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    padding-bottom: 70px;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a  { text-decoration: none; color: inherit; }
img{ display: block; max-width: 100%; }

/* ── 顶部导航 ────────────────────────── */
.m-header {
    position: sticky; top: 0; z-index: 990;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.m-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; height: 52px;
}
.m-header .logo img   { height: 26px; }
.m-header .hd-right   { display: flex; align-items: center; gap: 10px; }
.btn-hd-kefu {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    color: var(--primary); font-size: 10px; line-height: 1;
}
.btn-hd-kefu i { font-size: 18px; }
.btn-hd-open {
    background: var(--primary); color: #fff;
    border-radius: 5px; font-size: 12px; padding: 6px 13px;
    white-space: nowrap; font-weight: 600;
}
.btn-hamburger {
    background: none; border: none; padding: 4px 2px;
    cursor: pointer; display: flex; flex-direction: column; gap: 5px;
}
.btn-hamburger span {
    display: block; width: 21px; height: 2px;
    background: var(--text-dark); border-radius: 2px; transition: .2s;
}
.m-tipbar {
    background: #fff8f8; border-top: 1px solid #f5e0e0;
    padding: 5px 14px; font-size: 11px; color: var(--primary);
    display: flex; align-items: center; gap: 5px;
}

/* ── 侧边抽屉 ────────────────────────── */
.m-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 1990;
}
.m-overlay.open { display: block; }
.m-offcanvas {
    position: fixed; top: 0; left: -285px; width: 285px; height: 100vh;
    background: #fff; z-index: 2000;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; overscroll-behavior: contain;
}
.m-offcanvas.open { left: 0; }

.oc-head {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 28px 18px 18px; position: relative;
}
.oc-head img   { height: 30px; margin-bottom: 10px; }
.oc-head h6    { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.oc-head span  { color: rgba(255,255,255,.7); font-size: 12px; }
.oc-close {
    position: absolute; top: 14px; right: 14px;
    color: #fff; font-size: 26px; cursor: pointer; line-height: 1;
}

.oc-btn-area { padding: 14px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--border); }
.oc-btn-area a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px; border-radius: 7px; font-size: 13px; font-weight: 600;
}
.btn-oc-open  { background: var(--primary); color: #fff; }
.btn-oc-moni  { border: 1.5px solid var(--primary); color: var(--primary); }

.oc-nav { list-style: none; padding: 6px 0; }
.oc-nav > li > a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; font-size: 14px; color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}
.oc-nav > li > a i.nav-icon  { color: var(--primary); font-size: 16px; width: 20px; text-align: center; }
.oc-nav > li > a .chevron    { margin-left: auto; color: #ccc; font-size: 12px; transition: transform .2s; }
.oc-nav > li.has-sub.expanded .chevron { transform: rotate(90deg); }
.oc-nav > li.has-sub.expanded > a { color: var(--primary); }
.oc-sub { display: none; list-style: none; background: #fafafa; }
.oc-sub li a {
    display: block; padding: 10px 16px 10px 46px;
    font-size: 13px; color: var(--text-gray); border-bottom: 1px solid #f0f0f0;
}
.oc-nav > li.has-sub.expanded .oc-sub { display: block; }

/* ── Banner ────────────────────────────── */
.m-banner .swiper-slide img { width: 100%; aspect-ratio: 375/180; object-fit: cover; }
.m-banner .swiper-pagination-bullet-active { background: var(--primary); }

/* ── 快捷功能 ────────────────────────── */
.quick-actions {
    background: var(--bg-card); padding: 14px 10px; margin-bottom: 8px;
    display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
}
.qa-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.qa-icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.qa-icon.red   { background: #fff0f0; color: var(--primary); }
.qa-icon.gold  { background: #fff8ec; color: var(--gold); }
.qa-icon.blue  { background: #eef2ff; color: #3a6cf4; }
.qa-icon.green { background: #edfbf3; color: #1a9c4a; }
.qa-item > span { font-size: 11px; color: var(--text-dark); text-align: center; }

/* ── 公告滚动 ────────────────────────── */
.m-notice {
    background: #fff; border-left: 3px solid var(--primary);
    margin: 0 0 8px; padding: 9px 14px;
    display: flex; align-items: center; gap: 10px;
}
.notice-tag   { font-size: 11px; color: var(--primary); white-space: nowrap; font-weight: 700; }
.notice-scroll { overflow: hidden; flex: 1; height: 18px; position: relative; }
.notice-scroll ul { position: absolute; width: 100%; top: 0; }
.notice-scroll li {
    height: 18px; line-height: 18px; font-size: 12px; color: var(--text-gray);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-more  { font-size: 11px; color: var(--primary); white-space: nowrap; }

/* ── 通用区块 ─────────────────────────── */
.m-section {
    background: var(--bg-card); margin-bottom: 8px;
    padding: 16px 14px; border-radius: 0;
}
.m-section-hd {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.m-section-hd h3 {
    font-size: 15px; font-weight: 700; color: var(--text-dark);
    display: flex; align-items: center; gap: 6px;
}
.m-section-hd h3::before {
    content: ''; display: inline-block; width: 3px; height: 15px;
    background: var(--primary); border-radius: 2px;
}
.m-section-hd a { font-size: 12px; color: var(--primary); }

/* ── 品牌优势 ────────────────────────── */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-item {
    background: var(--bg-page); border-radius: 8px; padding: 13px 11px;
    display: flex; align-items: flex-start; gap: 10px;
}
.brand-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: #fff0f0; color: var(--primary);
}
.brand-icon.shield  { background: #edfbf3; color: #1a9c4a; }
.brand-icon.lightning { background: #fff8ec; color: var(--gold); }
.brand-icon.headset { background: #eef2ff; color: #3a6cf4; }
.brand-item h5 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.brand-item p  { font-size: 11px; color: var(--text-gray); line-height: 1.5; margin: 0; }

/* ── 首选交易商（含品牌优势） ─────────── */
.m-preferred {
    background: var(--bg-card); margin-bottom: 8px; padding: 22px 16px;
    border-top: 3px solid var(--primary);
}
.m-preferred .brand-grid {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.m-preferred .preferred-features {
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.preferred-badge {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.m-preferred h2 {
    font-size: 20px; font-weight: 800; color: var(--text-dark);
    margin-bottom: 10px; line-height: 1.3;
}
.m-preferred h2 em { font-style: normal; color: var(--primary); }
.preferred-desc {
    font-size: 13px; color: var(--text-gray); line-height: 1.7;
    margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.preferred-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.pf-item { display: flex; align-items: flex-start; gap: 12px; }
.pf-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
}
.pf-text h4  { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.pf-text p   { font-size: 12px; color: var(--text-gray); line-height: 1.5; margin: 0; }
.preferred-btns { display: flex; gap: 10px; }
.btn-pf-main {
    flex: 1; background: var(--primary); color: #fff;
    text-align: center; padding: 12px; border-radius: 7px;
    font-size: 14px; font-weight: 700;
}
.btn-pf-sub {
    flex: 1; border: 1.5px solid var(--primary); color: var(--primary);
    text-align: center; padding: 12px; border-radius: 7px;
    font-size: 14px; font-weight: 600;
}

/* ── 会员权益 ────────────────────────── */
.m-member {
    margin-bottom: 8px; overflow: hidden;
    background: linear-gradient(160deg, #1a0a0f 0%, #2c0912 50%, #1a0a0f 100%);
    padding: 20px 16px 16px;
}
.member-header { margin-bottom: 16px; }
.member-title  { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.member-title i { color: var(--gold-light); font-size: 16px; }
.member-title span { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.member-header > p { color: rgba(255,255,255,.55); font-size: 13px; }
.member-perks { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; }
.perk-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.perk-item:last-child { border-bottom: none; }
.perk-num {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    border: 1.5px solid rgba(212,175,90,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--gold-light); line-height: 1;
}
.perk-body h5   { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.perk-body span { font-size: 12px; color: rgba(255,255,255,.5); }
.member-btns { display: flex; gap: 10px; }
.btn-member-open {
    flex: 1; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; text-align: center; padding: 12px;
    border-radius: 7px; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-member-moni {
    flex: 1; border: 1.5px solid rgba(212,175,90,.5); color: var(--gold-light);
    text-align: center; padding: 12px; border-radius: 7px;
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ── MT5 下载 ────────────────────────── */
.m-mt5 {
    background: #0f1a2e; margin-bottom: 8px; padding: 20px 16px;
}
.mt5-top {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
    padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mt5-logo {
    width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -1px;
}
.mt5-logo span { color: var(--gold-light); }
.mt5-info h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.mt5-info p  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.5; margin: 0; }
.mt5-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mt5-feat {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,.75);
}
.mt5-feat > i { color: var(--gold-light); font-size: 16px; flex-shrink: 0; }
.mt5-btns { display: flex; gap: 10px; }
.btn-mt5-android, .btn-mt5-ios {
    flex: 1; border-radius: 8px; padding: 11px 10px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-mt5-android {
    background: linear-gradient(135deg, #1b7e3a 0%, #145c2b 100%); color: #fff;
}
.btn-mt5-ios {
    background: linear-gradient(135deg, #1a1a2e 0%, #111 100%);
    border: 1.5px solid rgba(255,255,255,.15); color: #fff;
}
.btn-mt5-android i, .btn-mt5-ios i { font-size: 20px; }
.btn-mt5-android span, .btn-mt5-ios span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-mt5-android small, .btn-mt5-ios small { font-size: 10px; font-weight: 400; opacity: .7; }

/* ── 热门活动 ────────────────────────── */
.act-main-card {
    display: block; border-radius: var(--radius); overflow: hidden;
    margin-bottom: 10px; box-shadow: var(--shadow);
    background: var(--bg-card);
}
.act-main-img { position: relative; }
.act-main-img img { width: 100%; height: 160px; object-fit: cover; }
.act-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary); color: #fff;
    font-size: 11px; padding: 3px 8px; border-radius: 3px; font-weight: 600;
}
.act-main-body { padding: 12px 14px; }
.act-main-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.act-main-body p  { font-size: 12px; color: var(--text-gray); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.act-main-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--primary); color: #fff;
    font-size: 12px; padding: 7px 14px; border-radius: 5px; font-weight: 600;
}
.act-list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; border-top: 1px solid var(--border);
}
.act-list-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
}
.act-list-body { flex: 1; min-width: 0; }
.act-list-title { display: block; font-size: 13px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.act-list-time  { font-size: 11px; color: var(--text-light); }
.act-list-arrow { color: #ccc; font-size: 13px; }

/* ── 新闻 Tab ─────────────────────────── */
.news-tabs {
    display: flex; border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.news-tab {
    flex: 1; text-align: center; padding: 9px 0;
    font-size: 13px; color: var(--text-gray); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.news-tab.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.news-panel      { display: none; }
.news-panel.active{ display: block; }
.news-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.news-item:last-of-type { border-bottom: none; }
.news-thumb { width: 72px; height: 54px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { flex: 1; min-width: 0; }
.news-title {
    font-size: 13px; line-height: 1.55; color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta  { font-size: 11px; color: #bbb; margin-top: 5px; }
.news-item-plain {
    padding: 9px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.news-item-plain::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--primary); flex-shrink:0; }
.news-item-plain a    { flex:1; font-size:13px; color:var(--text-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.news-item-plain time { font-size:11px; color:#bbb; flex-shrink:0; }
.news-more-link {
    display: block; text-align: center; margin-top: 12px;
    font-size: 13px; color: var(--primary);
}

/* ── 资质认证 ────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cert-item img { width: 46px; height: 46px; object-fit: contain; }
.cert-item span { font-size: 10px; color: var(--text-gray); line-height: 1.4; }

/* ── 页脚版权 ─────────────────────────── */
.m-footer {
    background: #111; color: rgba(255,255,255,.45);
    padding: 18px 14px; font-size: 11px; line-height: 1.8;
}
.m-footer h6    { color: rgba(255,255,255,.75); font-size: 12px; margin-bottom: 6px; }
.m-footer hr    { border-color: rgba(255,255,255,.08); margin: 12px 0; }
.m-footer a     { color: rgba(255,255,255,.4); margin-right: 10px; }
.m-footer .risk-text { font-size: 10px; line-height: 1.6; }

/* ── 底部固定导航 ─────────────────────── */
.m-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: #fff; border-top: 1px solid var(--border);
    height: 58px; display: flex; align-items: stretch;
}
.m-bottom-nav a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    color: var(--text-gray); font-size: 10px;
}
.m-bottom-nav a i  { font-size: 20px; }
.m-bottom-nav a.active { color: var(--primary); }
.m-bottom-nav .nav-cta {
    flex: 1.3; background: var(--primary); color: #fff !important;
    font-size: 12px !important; font-weight: 700;
}
.m-bottom-nav .nav-cta i { font-size: 18px !important; }

/* ── 违规通知弹窗 ─────────────────────── */
.notice-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 9999;
    align-items: center; justify-content: center;
}
.notice-overlay.show { display: flex; }
.notice-box {
    background: #fff; border-radius: 12px; overflow: hidden;
    width: 90vw; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: popIn .3s ease;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.notice-box-head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 18px; position: relative;
}
.notice-box-head h4 { color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.notice-box-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 24px; cursor: pointer; }
.notice-box-body {
    padding: 16px 18px; font-size: 13px; color: #444; line-height: 1.8;
    max-height: 55vh; overflow-y: auto;
}
.notice-box-body p { margin-bottom: 10px; text-indent: 2em; }
.notice-box-body .warn { background: #fff5f5; border-left: 3px solid var(--primary); padding: 8px 12px; border-radius: 0 4px 4px 0; font-size: 12px; color: #666; margin: 10px 0; }
.notice-box-foot { padding: 0 18px 18px; text-align: center; }
.notice-box-foot button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border: none; border-radius: 7px;
    padding: 11px 50px; font-size: 14px; font-weight: 700; cursor: pointer;
    width: 100%;
}

/* ── 子页面页头 ───────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 16px; color: #fff;
}
.page-hero h1 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.page-hero p  { font-size: 12px; opacity: .75; margin: 0; }

/* ── 列表通用 ─────────────────────────── */
.list-card { background: var(--bg-card); margin-bottom: 8px; }
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.list-item-thumb img { width:100%; height:100%; object-fit: cover; }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.list-item-meta  { font-size: 11px; color: var(--text-light); }
.list-item-arrow { color: #ccc; font-size: 14px; }

/* ── 分页 ─────────────────────────────── */
.m-pagination { display:flex; justify-content:center; gap:8px; padding:16px 0; }
.m-pagination a { padding:7px 14px; border-radius:5px; font-size:13px; background:#fff; border:1px solid var(--border); color:var(--text-dark); }
.m-pagination a.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ── 空状态 ───────────────────────────── */
.m-empty { text-align:center; padding:40px 20px; color:var(--text-light); }
.m-empty i { font-size:48px; display:block; margin-bottom:10px; }
.m-empty p { font-size:14px; }

/* ================================================================
   用户登录后专用公共样式（user_*.php 页面）
   ================================================================ */

/* ── 登录后顶部导航 ── */
.uh-wrap {
    position: sticky; top: 0; z-index: 900;
    height: 52px; background: #fff;
    display: flex; align-items: center; padding: 0 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    gap: 10px;
}
.uh-back {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-page); border: none; cursor: pointer;
    font-size: 18px; color: var(--text-dark); flex-shrink: 0;
    text-decoration: none;
}
.uh-title {
    flex: 1; text-align: center; font-size: 15px; font-weight: 700;
    color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uh-kefu {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    color: var(--primary); font-size: 10px; line-height: 1; text-decoration: none;
    flex-shrink: 0;
}
.uh-kefu i { font-size: 20px; }

/* ── 登录后底部导航 ── */
.uf-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    height: 58px; background: #fff; border-top: 1px solid var(--border);
    display: flex; align-items: center;
}
.uf-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; text-decoration: none;
    font-size: 10px; color: #bbb; padding: 6px 0;
}
.uf-nav a i { font-size: 20px; }
.uf-nav a.active { color: var(--primary); }
.uf-nav a.uf-cta {
    color: #fff; background: var(--primary); border-radius: 50%;
    width: 46px; height: 46px; margin: 0 auto; font-size: 24px;
    padding: 0; gap: 0; flex: 0 0 46px;
}
.uf-nav a.uf-cta i { font-size: 24px; }

/* ── 登录后通用 Card ── */
.uc-page { background: #F5F0EB; min-height: calc(100vh - 52px); padding-bottom: 70px; }
.uc-section { background: #fff; margin-bottom: 8px; padding: 14px 16px; }
.uc-section-title {
    font-size: 14px; font-weight: 700; color: var(--text-dark);
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.uc-section-title::before { content:''; display:inline-block; width:3px; height:14px; background:var(--primary); border-radius:2px; }
.uc-section-title span { flex:1; }
.uc-section-title a { font-size:12px; color:var(--primary); font-weight:400; }

/* ── 表单通用 ── */
.uf-group { margin-bottom: 14px; }
.uf-group label { display:block; font-size:12px; color:var(--text-gray); margin-bottom:6px; }
.uf-group label span.req { color:var(--primary); }
.uf-input-wrap {
    display:flex; align-items:center; border:1px solid var(--border);
    border-radius:8px; padding:0 12px; background:var(--bg-page); transition:border-color .15s;
}
.uf-input-wrap:focus-within { border-color:var(--primary); background:#fff; }
.uf-input-wrap i { color:#bbb; font-size:16px; margin-right:8px; flex-shrink:0; }
.uf-input-wrap input, .uf-input-wrap select, .uf-input-wrap textarea {
    flex:1; border:none; background:transparent; padding:11px 0;
    font-size:14px; color:var(--text-dark); outline:none;
}
.uf-input-wrap textarea { resize:none; padding:10px 0; }
.uf-label-val {
    padding:11px 0; font-size:14px; font-weight:700; color:var(--primary);
}
.uf-submit {
    width:100%; background:var(--primary); color:#fff; border:none;
    padding:13px; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer;
}
.uf-submit:disabled { background:#ccc; cursor:not-allowed; }
.uf-reset {
    width:100%; background:var(--bg-page); color:var(--text-gray); border:1px solid var(--border);
    padding:12px; border-radius:8px; font-size:14px; cursor:pointer; margin-top:8px;
}

/* ── 状态徽章 ── */
.sb { display:inline-block; font-size:11px; padding:2px 8px; border-radius:10px; font-weight:600; }
.sb-pending  { background:#FFF8EC; color:#E68A00; }
.sb-review   { background:#EEF2FF; color:#3a6cf4; }
.sb-success  { background:#EDFBF3; color:#1a9c4a; }
.sb-fail     { background:#FFF0F0; color:var(--primary); }

/* ── 记录卡片 ── */
.rec-card {
    background:#fff; border-radius:10px; margin-bottom:8px;
    overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.rec-head {
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 14px; border-bottom:1px solid #F5F5F5;
}
.rec-head .r-no  { font-size:12px; color:var(--text-gray); }
.rec-head .r-amt { font-size:16px; font-weight:800; }
.rec-head .r-amt.pos { color:#1a9c4a; }
.rec-head .r-amt.neg { color:var(--primary); }
.rec-body { padding:10px 14px; display:flex; flex-wrap:wrap; gap:8px; }
.rec-field { flex:0 0 calc(50% - 4px); }
.rec-field .rf-label { font-size:10px; color:#bbb; margin-bottom:2px; }
.rec-field .rf-val   { font-size:13px; color:var(--text-dark); }
.rec-field.full      { flex:0 0 100%; }

/* ── 年份/筛选栏 ── */
.filter-bar {
    display:flex; gap:6px; padding:12px 14px; background:#fff; overflow-x:auto;
    border-bottom:1px solid var(--border); -webkit-overflow-scrolling:touch;
}
.filter-bar::-webkit-scrollbar { display:none; }
.filter-chip {
    flex:0 0 auto; padding:6px 14px; border-radius:20px;
    font-size:12px; font-weight:600; border:1px solid var(--border);
    background:var(--bg-page); color:var(--text-gray); text-decoration:none; white-space:nowrap;
}
.filter-chip.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ── 统计行 ── */
.stat-row {
    display:flex; background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    padding:14px 16px; gap:10px;
}
.stat-item { flex:1; text-align:center; }
.stat-item .s-lb { font-size:10px; color:rgba(255,255,255,.7); margin-bottom:4px; }
.stat-item .s-vl { font-size:16px; font-weight:800; color:#fff; }
.stat-item .s-vl small { font-size:11px; font-weight:400; }
