/* ========================================
   汇链仓零售平台 - 响应式H5样式
   适配手机/PC浏览器
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #f5f5f5; font-size: 14px; }
a { color: #333; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
input, button { font-family: inherit; font-size: inherit; outline: none; }
button { border: none; cursor: pointer; background: none; }

:root {
    --primary: #0aa564;
    --primary-dark: #077a4a;
    --secondary: #2f54eb;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --text: #333;
    --text-sub: #999;
    --border: #eee;
    --bg: #f5f5f5;
    --bg-white: #fff;
}

.container { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 60px; position: relative; }

/* 顶部导航 */
.top-nav { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.top-nav .title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; }
.top-nav .back { color: #fff; font-size: 14px; min-width: 40px; }
.top-nav .right { min-width: 40px; text-align: right; color: #fff; font-size: 14px; }

/* 底部导航 */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 640px; margin: 0 auto; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100; }
.bottom-nav a { flex: 1; text-align: center; padding: 8px 0; color: var(--text-sub); font-size: 12px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a i { display: block; font-size: 22px; margin-bottom: 2px; }
.bottom-nav a i img{ width:25px; height:25px; }
/* 卡片 */
.card { background: #fff; border-radius: 8px; padding: 12px 16px; margin: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }

/* 按钮 */
.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; text-align: center; background: var(--primary); color: #fff; border: none; font-size: 14px; }
.btn-block { display: block; width: calc(100% - 32px); margin: 16px; padding: 12px; }
.btn-disabled { background: #ccc; pointer-events: none; }
.btn-secondary { background: var(--secondary); }
.btn-success { background: var(--success); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* 表单 */
.form-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.form-item label { min-width: 80px; color: var(--text-sub); }
.form-item input { flex: 1; border: none; outline: none; font-size: 14px; padding: 6px 0; }

/* 列表 */
.list-item { background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .title { font-size: 15px; font-weight: 500; }
.list-item .desc { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.list-item .action { color: var(--primary); padding-left: 12px; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #f5f5f5; color: var(--text-sub); margin-right: 4px; }
.tag-primary { background: var(--home-green-bg, #e8f7ef); color: var(--primary); }
.tag-success { background: #e8f8ee; color: var(--success); }
.tag-warning { background: #fff7e6; color: var(--warning); }
.tag-danger { background: #fff1f0; color: var(--danger); }

/* 抢购池商品 */
.match-item { background: #fff; margin: 10px 12px; border-radius: 8px; padding: 12px 16px; }
.match-item .order-no { font-size: 12px; color: var(--text-sub); }
.match-item .price { color: var(--primary); font-size: 18px; font-weight: 600; margin: 4px 0; }
.match-item .price small { font-size: 12px; color: var(--text-sub); margin-left: 4px; font-weight: normal; }
.match-item .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.match-item .grab-btn { background: var(--primary); color: #fff; padding: 6px 16px; border-radius: 4px; }

/* 倒计时 */
.countdown { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 14px 16px; text-align: center; }
.countdown .time { font-size: 24px; font-weight: 700; margin: 6px 0; letter-spacing: 2px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 8px; padding: 24px; max-width: 320px; width: 100%; text-align: center; }
.modal-content h3 { margin-bottom: 12px; }
.modal-content .btn { margin: 8px 4px; }

/* 头像 */
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #ccc; background-size: cover; }

/* 收入概览 */
.reward-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 16px; border-radius: 8px; margin: 10px 12px; }
.reward-card .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.reward-card .row:last-child { border-bottom: none; }
.reward-card .row span:last-child { font-weight: 600; font-size: 16px; }

/* PC适配 */
@media (min-width: 768px) {
    body { background: #ececec; }
    .container { background: #fff; box-shadow: 0 0 16px rgba(0,0,0,.05); padding-bottom: 0; }
    .form-item input { font-size: 15px; }
}

/* 通用工具 */
.text-center { text-align: center; }
.text-sub { color: var(--text-sub); }
.text-primary { color: var(--primary); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }

/* 加载 */
.loading { display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--text-sub); }
.empty { text-align: center; padding: 40px 20px; color: var(--text-sub); }

/* ========================================
   首页(绿色风格)
   ======================================== */
:root {
    --home-green: #0aa564;
    --home-green-dark: #077a4a;
    --home-green-bg: #e8f7ef;
}
.home-wrap { background: #f7faf8; min-height: 100vh; padding-bottom: 20px; }

/* 顶部品牌栏 */
.home-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.home-header .brand { font-size: 20px; font-weight: 700; color: var(--home-green-dark); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.home-header .brand::before { content: ""; width: 8px; height: 20px; border-radius: 4px; background: var(--home-green); }
.home-header .login-btn { background: var(--home-green); color: #fff; font-size: 13px; padding: 6px 18px; border-radius: 16px; }
.home-header .login-btn.plain { background: var(--home-green-bg); color: var(--home-green-dark); }

/* Hero */
.home-hero { display: flex; align-items: center; padding: 6px 16px 18px; }
.home-hero h1 { font-size: 22px; line-height: 1.35; color: #1d3328; letter-spacing: 1px; }
.home-hero p { margin-top: 10px; font-size: 12px; color: #8ba89a; line-height: 1.6; }
.home-hero .txt { flex: 1; min-width: 0; }
.home-hero .pic { width: 96px; flex-shrink: 0; text-align: center; font-size: 44px; filter: drop-shadow(0 6px 10px rgba(10,165,100,.25)); }

/* 首页卡片 */
.home-card { background: #fff; border-radius: 14px; margin: 0 12px 12px; padding: 16px; box-shadow: 0 2px 10px rgba(10,60,40,.05); }
.home-card .hd { font-size: 16px; font-weight: 700; color: #1d3328; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.home-card .hd::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--home-green); }

/* 撮合链路 */
.home-flow { display: flex; align-items: center; }
.home-flow .step { flex: 1; text-align: center; }
.home-flow .step .ico { width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 12px; background: var(--home-green-bg); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.home-flow .step .name { font-size: 12px; color: #456153; font-weight: 500; }
.home-flow .arr { color: #b9d8c8; font-size: 16px; padding: 0 2px; flex-shrink: 0; }

/* 参与撮合 */
.home-join { display: flex; align-items: center; }
.home-join .info { flex: 1; min-width: 0; }
.home-join .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 10px; padding: 3px 10px; border-radius: 12px; }
.home-join .status.on { background: var(--home-green-bg); color: var(--home-green-dark); }
.home-join .status.off { background: #f0f1f2; color: #99a3a0; }
.home-join .status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.home-join .desc { font-size: 12px; color: #8ba89a; line-height: 1.6; margin-bottom: 12px; }
.home-join .desc strong { display: block; font-size: 14px; color: #1d3328; margin-bottom: 4px; }
.home-join .go-btn { display: inline-block; background: var(--home-green); color: #fff; font-size: 13px; padding: 8px 22px; border-radius: 18px; box-shadow: 0 4px 10px rgba(10,165,100,.3); }
.home-join .go-btn.off { background: #c2cdc8; box-shadow: none; pointer-events: none; }
.home-join .pic { width: 84px; flex-shrink: 0; text-align: center; font-size: 38px; }

/* 平台优势 */
.home-adv { display: flex; }
.home-adv .item { flex: 1; text-align: center; padding: 0 4px; }
.home-adv .item .ico { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: var(--home-green-bg); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.home-adv .item .t { font-size: 13px; font-weight: 600; color: #1d3328; }
.home-adv .item .d { font-size: 11px; color: #9db3a8; margin-top: 4px; line-height: 1.5; }

/* 平台概览 */
.home-stats { display: flex; }
.home-stats .item { flex: 1; text-align: center; position: relative; }
.home-stats .item + .item::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: #eef2f0; }
.home-stats .num { font-size: 20px; font-weight: 700; color: #1d3328; }
.home-stats .num em { font-style: normal; font-size: 12px; font-weight: normal; color: #9db3a8; margin-left: 2px; }
.home-stats .lbl { font-size: 12px; color: #9db3a8; margin-top: 4px; }

/* ========================================
   撮合抢购页(绿色风格)
   ======================================== */
.grab-page { background: #f7faf8; min-height: 100vh; padding: 0 16px 20px; }

/* 标题行 + 分页 */
.grab-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 12px; }
.grab-head h1 { font-size: 20px; font-weight: 700; color: var(--home-green-dark); letter-spacing: 1px; }
.grab-head .pager { font-size: 13px; color: #456153; display: flex; align-items: center; gap: 8px; }
.grab-head .pager a { color: var(--home-green); padding: 2px 6px; }
.grab-head .pager a.dis { color: #c2cdc8; pointer-events: none; }

/* 倒计时提示条 */
.grab-timer { background: #eef1ef; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #456153; margin-bottom: 12px; }
.grab-timer .chip { background: #2f3b35; color: #fff; font-size: 15px; font-weight: 700; padding: 4px 12px; border-radius: 6px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.grab-timer.off .chip { background: #99a3a0; }

.wtime { border-radius: 8px; padding: 10px 14px; text-align: center; align-items: center; gap: 10px; font-size: 13px; color: #456153; margin-bottom: 12px; }
.wtime span{ font-weight:bold; font-size:20px; }
.wtime p{ margin-top:5px; }
.wtime div{ margin-top:10px; background:#f0f0f0; color: #0aa564; font-weight: 700; width:220px; padding:10px 20px; border-radius: 5px; margin:10px auto 0px auto; }
.wtime .chip { color: #0aa564; font-size: 15px; font-weight: 700; padding: 4px 12px; border-radius: 6px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.wtime.off .chip { background: #99a3a0; }
.wtime a{ color:#0aa564; margin-top:20px; display:block; }
/* 抢单列表 */
.grab-item { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(10,60,40,.05); }
.grab-item .no { font-size: 15px; font-weight: 700; color: #1d3328; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grab-item .no::before { content: "📦"; font-size: 16px; }
.grab-item .no2 { font-size: 15px; font-weight: 700; color: #1d3328; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grab-item .no2::before { content: ""; font-size: 16px; }
.grab-item .row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; font-size: 13px; color: #456153; }
.grab-item .row .cell { padding-right: 18px; white-space: nowrap; }
.grab-item .row .cell b { font-weight: 600; color: #1d3328; }
.grab-item .row .state { color: var(--home-green); font-weight: 600; }
.grab-item .grab-btn { margin-left: auto; background: var(--home-green); color: #fff; font-size: 13px; padding: 8px 18px; border-radius: 6px; box-shadow: 0 3px 8px rgba(10,165,100,.25); white-space: nowrap; }
.grab-item .grab-btn:disabled { background: #c2cdc8; box-shadow: none; }
@media (max-width: 480px) {
    .grab-item .row .cell { padding-right: 12px; }
    .grab-item .grab-btn { width: 100%; margin: 8px 0 0; }
}

/* ========================================
   会员中心(绿色风格)
   ======================================== */
.uc-page { background: #f7faf8; min-height: 100vh; padding-bottom: 20px; }

/* 用户信息头 */
.uc-head { display: flex; align-items: center; padding: 20px 16px 14px; }
.uc-head .ava { width: 64px; height: 64px; border-radius: 50%; background: #e3efe8 center/cover; display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(10,60,40,.12); }
.uc-head .info { margin-left: 14px; flex: 1; min-width: 0; }
.uc-head .name-row { display: flex; align-items: center; gap: 8px; }
.uc-head .name { font-size: 18px; font-weight: 700; color: #1d3328; }
.uc-head .badge { font-size: 11px; padding: 2px 10px; border-radius: 10px; background: #eaf3ff; color: #3b82f6; font-weight: 500; }
.uc-head .hello { font-size: 13px; color: #8ba89a; margin-top: 6px; }
.uc-head .code { font-size: 11px; color: #b0c4ba; margin-top: 3px; }

/* 通用左栏 + 右侧内容 */
.layout-sb {  gap: 12px; padding: 12px 12px 0; }
.layout-sb .sidebar { flex: 0 0 200px; width: 100%; background: #fff; border-radius: 14px; padding: 16px 14px; box-shadow: 0 2px 10px rgba(10,60,40,.05); align-self: flex-start; box-sizing: border-box; }
.layout-sb .uc-main { flex: 1; min-width: 0; margin-top:15px; }
.layout-sb .uc-main > .uc-orders,
.layout-sb .uc-main > .uc-income { margin: 0 0 12px; padding: 16px; }

.sidebar .sb-head { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eef2f0; margin-bottom: 12px; }
.sidebar .sb-head .ava { width: 48px; height: 48px; border-radius: 50%; background: #f2f6f4 center/cover; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.sidebar .sb-head .info { flex: 1; min-width: 0; }
.sidebar .sb-head .row1 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #1d3328; }
.sidebar .sb-head .row1 .name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .sb-head .row1 .badge { font-size: 10px; font-weight: 500; background: var(--home-green-bg); color: var(--home-green-dark); padding: 2px 6px; border-radius: 8px; }
.sidebar .sb-head .row2 { font-size: 11px; color: #8ba89a; margin-top: 3px; line-height: 1.5; }
.sidebar .sb-head .login-link { color: var(--home-green-dark); }

.sidebar .sb-menu { display: flex; flex-wrap:wrap; justify-content: space-between; }
.sidebar .sb-menu a { width: calc(50% - 2.5px); display: flex; align-items: center; gap: 10px; 
    padding: 9px 10px; border-radius: 8px; margin-bottom: 5px; color: #456153; font-size: 13px; 
    text-decoration: none; transition: background .15s;background: var(--home-green-bg); color: var(--home-green-dark); }
.sidebar .sb-menu a:hover { background: #f7faf8; }
.sidebar .sb-menu a.active {  font-weight: 600; }
.sidebar .sb-menu a .ico { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
.sidebar .sb-menu a.quit { color: #e05555; margin-top: 8px; }
.sidebar .sb-menu a.quit:hover { background: #fdecec; }

@media (max-width: 720px) {
    .layout-sb { flex-direction: column; padding: 12px 12px 0; gap: 0; }
    .layout-sb .sidebar { flex: none; width: 100%; }
    .layout-sb .uc-main > .uc-orders,
    .layout-sb .uc-main > .uc-income { margin: 0 0 12px; }
}

/* 买方/卖方订单入口 */
.uc-orders { display: flex; gap: 12px; padding: 0 16px 12px; }
.uc-orders a { flex: 1; border-radius: 12px; padding: 14px; display: block; box-sizing: border-box; }
.uc-orders a.buy { background: linear-gradient(135deg, #e8f7ef, #d2efe0); }
.uc-orders a.sell { background: linear-gradient(135deg, #fdeee4, #fbe0d3); }
.uc-orders .t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.uc-orders a.buy .t { color: var(--home-green-dark); }
.uc-orders a.sell .t { color: #c26a2c; }
.uc-orders .d { font-size: 11px; color: #8ba89a; margin-top: 6px; }
.uc-orders .ico { font-size: 16px; }

/* 收益概览 */
.uc-income { background: linear-gradient(160deg, #eafaf1, #dcf5e7); border-radius: 14px; margin: 0 16px 12px; padding: 16px; box-shadow: 0 2px 10px rgba(10,60,40,.06); }
.uc-income .hd { font-size: 16px; font-weight: 700; color: #1d3328; margin-bottom: 12px; }
.uc-income .grid { display: flex; flex-wrap: wrap; }
.uc-income .cell { width: 50%; padding: 12px 0; position: relative; box-sizing: border-box; }
.uc-income .cell:nth-child(odd) { border-right: 1px solid rgba(10,165,100,.15); padding-left: 6px; }
.uc-income .cell:nth-child(even) { padding-left: 20px; }
.uc-income .cell:nth-child(-n+2) { border-bottom: 1px solid rgba(10,165,100,.15); }
.uc-income a.cell { color: inherit; }
.uc-income .v { font-size: 22px; font-weight: 700; color: var(--home-green-dark); }
.uc-income .v em { font-style: normal; font-size: 12px; font-weight: normal; color: #8ba89a; margin-left: 3px; }
.uc-income .k { font-size: 12px; color: #6f8b7d; margin-top: 4px; }

/* 功能入口 */
.uc-menu { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px; }
.uc-menu a { width: calc(50% - 5px); background: #fff; border-radius: 12px; padding: 14px; font-size: 14px; color: #1d3328; display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 8px rgba(10,60,40,.05); box-sizing: border-box; }
.uc-menu a .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--home-green-bg); color: var(--home-green-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.uc-menu a.wide { width: 100%; }
.uc-menu a.quit { color: #e05555; }
.uc-menu a.quit .ico { background: #fdecec; color: #e05555; }

/* ========================================
   登录页(品牌区)
   ======================================== */
.login-page { background: #f7faf8; min-height: 100vh; padding: 30px 24px 20px; }
.login-brand { text-align: center; padding: 30px 0 28px; }
.login-brand .logo { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: 0 10px 24px rgba(10,165,100,.3); }
.login-brand h1 { font-size: 22px; font-weight: 700; color: #1d3328; letter-spacing: 1px; }
.login-brand p { font-size: 12px; color: #8ba89a; margin-top: 8px; }
.login-form { background: #fff; border-radius: 14px; padding: 4px 18px; box-shadow: 0 2px 10px rgba(10,60,40,.06); }
.login-form .form-item { border-bottom-color: #eef2f0; }
.login-btn-main { display: block; width: 100%; margin-top: 24px; padding: 13px; border-radius: 22px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 15px; font-weight: 600; border: none; box-shadow: 0 6px 14px rgba(10,165,100,.3); }
.login-tip { text-align: center; margin-top: 16px; color: #8ba89a; font-size: 12px; }
.login-foot { text-align: center; margin-top: 22px; color: #8ba89a; font-size: 13px; }
.login-foot .register-link { color: var(--primary); font-weight: 600; padding: 4px 4px; }
.login-foot .register-link:active { color: var(--primary-dark); }

/* ========================================
   协议签署 / 我的协议
   ======================================== */
.ag-notice { font-size: 13px; color: #456153; line-height: 1.8; }
.ag-notice .warn { color: var(--danger); }

/* 协议正文(限高滚动) */
.ag-doc { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; background: #fafbfa; border: 1px solid #eef3f0; border-radius: 8px; }
.ag-doc .ag-title { font-size: 16px; font-weight: 700; color: #1d3328; text-align: center; margin-bottom: 12px; }
.ag-doc .ag-h { font-size: 13px; font-weight: 600; color: #1d3328; margin: 14px 0 4px; }
.ag-doc .ag-p { font-size: 12px; line-height: 1.8; color: #5b7568; margin-bottom: 6px; text-align: justify; }

/* 手写签名板 */
.sign-wrap { margin-top: 14px; }
.sign-tip { font-size: 12px; color: #8ba89a; margin-bottom: 6px; }
#signPad { display: block; width: 100%; height: 160px; background: #fff; border: 1px dashed #c9d6ce; border-radius: 8px; touch-action: none; cursor: crosshair; }
.sign-clear { margin-top: 8px; padding: 6px 14px; font-size: 12px; border-radius: 6px; }

/* 同意勾选 */
.ag-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #456153; line-height: 1.5; }
.ag-check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); }

/* 抢购页:未签署提醒条 */
.ag-alert { display: flex; align-items: center; gap: 8px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.ag-alert .ico { font-size: 16px; flex-shrink: 0; }
.ag-alert .txt { flex: 1; font-size: 12px; color: #8a5a00; line-height: 1.5; }
.ag-alert .go { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--primary); }

/* 我的协议 - 已签署状态条 */
.ag-signed { display: flex; align-items: center; gap: 10px; }
.ag-signed .ico { font-size: 22px; flex-shrink: 0; }
.ag-signed .t { font-size: 14px; font-weight: 600; color: #1d3328; }
.ag-signed .d { font-size: 12px; color: #8ba89a; margin-top: 3px; }

/* 我的协议 - 协议卡片 */
.ag-card .ag-head { display: flex; align-items: center; gap: 8px; }
.ag-card .ag-name { flex: 1; font-size: 14px; font-weight: 600; color: #1d3328; }
.ag-card .ag-no { font-size: 11px; color: #8ba89a; }
.ag-card .ag-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8ba89a; margin-top: 6px; }
.ag-card .ag-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6ece9; }
.ag-card .ag-signimg { display: flex; align-items: center; gap: 8px; }
.ag-card .ag-signimg .cap { font-size: 11px; color: #8ba89a; }
.ag-card .ag-signimg img { height: 46px; max-width: 140px; background: #fff; border: 1px solid #e6ece9; border-radius: 6px; }
.ag-card .ag-dl { padding: 7px 14px; font-size: 12px; border-radius: 6px; }
.ag-card .ag-miss { font-size: 12px; color: var(--danger); }

/* 撮合页:下拉刷新 / 上拉加载更多 */
.pull-tip { height: 0; line-height: 0; overflow: hidden; text-align: center; font-size: 12px; color: #8ba89a; background: #f7faf8; transition: height .15s ease; }
.load-tip { padding: 14px 0; text-align: center; font-size: 12px; color: #8ba89a; min-height: 20px; }

/* 撮合页分页:上一页 / 下一页 */
.grab-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 4px; font-size: 13px; }
.grab-pager .pbtn { display: inline-block; padding: 7px 14px; border-radius: 6px; border: 1px solid #d5e0da; color: var(--home-green); background: #fff; font-size: 13px; }
.grab-pager .pbtn:active { background: #f0f5f2; }
.grab-pager .pbtn.dis { color: #b9c5bf; border-color: #e8eeeb; background: #fafbfa; pointer-events: none; }
.grab-pager .pinfo { color: #456153; min-width: 84px; text-align: center; }

/* 首页公告 */
.notice-item { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #f2f5f3; font-size: 14px; }
.notice-item:last-child { border-bottom: none; }
.notice-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.notice-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2c4a3b; }
.notice-item .arrow { flex-shrink: 0; color: #bbb; font-size: 16px; }
.notice-item:active { opacity: .7; }

/* 我的协议 - 空态 */
.ag-empty { text-align: center; padding: 20px 0 10px; }
.ag-empty .ico { font-size: 34px; }
.ag-empty .t { font-size: 15px; font-weight: 600; color: #1d3328; margin-top: 8px; }
.ag-empty .d { font-size: 12px; color: #8ba89a; margin: 6px 0 16px; }