:root{
  --primary:#17519e;
  --primary-dark:#123f7c;
  --bg:#f4f7fb;
  --text:#1f2937;
  --text-sub:#6b7280;
  --border:#e5e9f0;
  --card:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.6;
}
[v-cloak]{display:none}
.el-button--primary{--el-button-bg-color:var(--primary);--el-button-border-color:var(--primary);--el-button-hover-bg-color:var(--primary-dark);--el-button-hover-border-color:var(--primary-dark);--el-button-active-bg-color:var(--primary-dark);--el-button-active-border-color:var(--primary-dark)}

/* ============ 入会须知弹窗 ============ */
.notice-dialog .el-dialog__header{padding:18px 24px;border-bottom:1px solid var(--border)}
.notice-dialog .el-dialog__title{font-size:17px;font-weight:700;color:var(--text)}
.notice-dialog .el-dialog__body{padding:0}
.notice-body{max-height:62vh;overflow:auto;padding:20px 28px 8px}
.notice-title{margin:0 0 6px;font-size:19px;text-align:center;letter-spacing:.5px}
.notice-intro{margin:0 0 18px;color:var(--text-sub);text-align:center;font-size:13px}
.notice-sec{margin-bottom:18px}
.notice-h3{margin:0 0 8px;font-size:15px;color:var(--primary);padding-left:10px;border-left:3px solid var(--primary)}
.notice-p{margin:4px 0;font-size:13.5px;color:#374151}
.notice-items{margin-bottom:4px}
.notice-table{width:100%;border-collapse:collapse;margin:8px 0;font-size:13px}
.notice-table th,.notice-table td{border:1px solid var(--border);padding:8px 10px;text-align:center}
.notice-table th{background:#f1f5fb;font-weight:600;color:#334155}
.notice-table td:first-child,.notice-table th:first-child{text-align:left}
.notice-rows{margin:6px 0}
.notice-list{margin:6px 0;padding-left:20px;font-size:13.5px;color:#374151}
.notice-list li{margin:4px 0}
.notice-note{margin:8px 0 0;font-size:12.5px;color:#8a6d3b;background:#fdf6e3;border-left:3px solid #f0c040;padding:8px 10px;border-radius:0 4px 4px 0}
.notice-foot{margin:16px 0 6px;padding:10px 12px;background:#f0f5ff;border-radius:6px;color:#33507a;font-size:13px}
.notice-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:12px 24px;border-top:1px solid var(--border)}
.notice-reject-tip{color:#c2410c;font-size:13px;margin-right:auto}

/* ============ 注册 / 登录 ============ */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 16px}
.auth-card{width:420px;max-width:100%;background:var(--card);border-radius:12px;padding:28px 28px 22px;box-shadow:0 8px 30px rgba(23,81,158,.09)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.brand-logo{width:44px;height:44px;border-radius:10px;object-fit:contain;display:block;background:#fff}
.brand-name{font-size:16px;font-weight:700}
.brand-sub{font-size:12.5px;color:var(--text-sub)}
.auth-tabs .el-tabs__item{font-size:15px}
.auth-submit{width:100%;margin-top:4px}
.auth-tip{margin:12px 0 0;font-size:12.5px;color:var(--text-sub);text-align:center}
.captcha-row{display:flex;gap:10px;width:100%}
.captcha-row .el-input{flex:1}
.captcha-box{width:120px;height:40px;border:1px solid var(--border);border-radius:6px;overflow:hidden;cursor:pointer;flex:none;display:flex;align-items:center;justify-content:center;background:#f2f6fc}
.captcha-box svg{display:block}

/* ============ 顶部栏 & 页面 ============ */
.topbar{background:#fff;border-bottom:1px solid var(--border)}
.topbar-inner{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}
.topbar-title{font-size:15px;font-weight:600;color:#334155}
.topbar-user{display:flex;align-items:center;gap:14px;font-size:13.5px}
.topbar-user .u-name{font-weight:600}
.topbar-user .u-phone{color:var(--text-sub)}
.topbar-user .u-switch{color:var(--primary);cursor:pointer}
.page{max-width:1120px;margin:0 auto;padding:26px 24px 60px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
.page-title{margin:0;font-size:24px;font-weight:700}
.page-sub{margin:4px 0 0;color:var(--text-sub);font-size:13px}
.new-btn{--el-button-bg-color:#fff}

/* 统计卡 */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.stat-card{background:#fff;border-radius:10px;padding:18px;display:flex;gap:14px;align-items:flex-start;box-shadow:0 2px 10px rgba(23,81,158,.05)}
.stat-icon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
.i-blue{background:#e8f0fe;color:#1a56a8}
.i-amber{background:#fdf3e0;color:#b7791f}
.i-green{background:#e6f7ee;color:#1a7f5a}
.stat-label{font-size:13px;color:var(--text-sub)}
.stat-value{font-size:24px;font-weight:700;line-height:1.3}
.stat-value i{font-size:13px;font-weight:400;color:var(--text-sub);font-style:normal}
.stat-foot{font-size:12.5px;color:var(--text-sub);margin-top:2px}

/* 申请卡片 */
.empty-card{background:#fff;border-radius:10px;padding:40px;text-align:center;color:var(--text-sub);box-shadow:0 2px 10px rgba(23,81,158,.05)}
.app-card{background:#fff;border-radius:10px;padding:18px 20px;margin-bottom:16px;box-shadow:0 2px 10px rgba(23,81,158,.05)}
.app-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.ac-title{font-size:15px;font-weight:700}
.ac-meta{font-size:12.5px;color:var(--text-sub);margin-top:2px}
.ac-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ac-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 20px;margin:14px 0;padding:14px 16px;background:#fafbfd;border:1px solid var(--border);border-radius:8px}
.ac-item{font-size:13px;display:flex;gap:8px}
.ac-label{color:var(--text-sub);flex:none;min-width:78px}
.ac-val{color:#1f2937;word-break:break-all}
.ac-steps{margin:16px 4px 8px}
.ac-alert{margin-top:6px;font-size:13px;padding:8px 12px;border-radius:4px}
.alert-warning{background:#fdf6e3;border-left:3px solid #f0c040;color:#8a6d3b}
.alert-info{background:#eef2f7;border-left:3px solid #94a3b8;color:#475569}
.alert-primary{background:#eaf1fb;border-left:3px solid #17519e;color:#33507a}
.alert-success{background:#e8f7ef;border-left:3px solid #34a06f;color:#22684a}
.alert-danger{background:#fdecec;border-left:3px solid #d9534f;color:#9b2c2c}

/* ============ 申请抽屉 ============ */
.form-drawer .el-drawer__body{padding:0;display:flex;flex-direction:column;height:100%}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--border);flex:none}
.dh-title{font-size:16px;font-weight:700}
.dh-close{cursor:pointer;color:#94a3b8}
.dh-close:hover{color:#475569}
.drawer-body{flex:1;overflow:auto;padding:18px 24px 24px;background:var(--bg)}
.drawer-foot{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid var(--border);background:#fff}
.sec-card{background:#fff;border-radius:10px;padding:18px 20px;margin-bottom:14px}
.sec-title{font-size:15px;font-weight:600;padding-left:10px;border-left:3px solid var(--primary);margin-bottom:14px}
.mt-item{margin-bottom:0}
.type-radio{margin-right:24px}
.dyn-form .el-form-item{margin-bottom:16px}
.f-label{font-size:13.5px;color:#374151}
.static-val{display:inline-block;padding:4px 10px;background:#eef2f7;border-radius:4px;font-size:13.5px}
.field-tip{width:100%;font-size:12.5px;color:#94a3b8;line-height:1.5;margin-top:2px}

/* 上传 */
.upload-box{width:100%}
.upload-empty{border:1px dashed #c3cddc;border-radius:8px;background:#fafbfd;padding:18px;text-align:center;cursor:pointer;transition:.2s}
.upload-empty:hover{border-color:var(--primary);background:#f4f8ff}
.upload-empty.loading{opacity:.7;cursor:wait}
.upload-plus{font-size:22px;color:var(--primary);line-height:1}
.upload-text{font-size:13px;color:#475569;margin-top:4px}
.upload-sub{font-size:12px;color:#94a3b8}
.upload-preview img{max-width:100%;max-height:160px;border-radius:6px;border:1px solid var(--border);display:block}
.upload-ops{margin-top:6px;display:flex;gap:8px}

/* 签名 */
.sign-wrap{width:100%}
.sign-canvas{width:100%;height:160px;border:1px dashed #c3cddc;border-radius:8px;background:#fff;display:block;touch-action:none;cursor:crosshair}
.sign-preview img{max-width:100%;border:1px solid var(--border);border-radius:8px;background:#fff}
.sign-bar{display:flex;align-items:center;gap:10px;margin-top:8px}
.sign-tip{font-size:12.5px;color:#94a3b8}

/* 会费 */
.fee-card{background:#f3f7fd;border-radius:10px;padding:16px 20px;margin-bottom:8px}
.fee-row{display:flex;justify-content:space-between;font-size:13.5px;color:#334155;padding:4px 0}
.fee-total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid #dbe4f1;margin-top:8px;padding-top:10px;font-size:14px;font-weight:600}
.fee-total-num{font-size:22px;font-weight:700;color:var(--primary)}
.fee-note{font-size:12.5px;color:#8a6d3b;margin-top:6px}
.autosave-tip{font-size:12.5px;color:#94a3b8;text-align:left;margin:6px 2px 0}

/* 切换账号 */
.switch-dialog .el-dialog__title{font-size:16px;font-weight:700}
.switch-tip{background:#e2e8f0;border-radius:8px;padding:12px 14px;margin-bottom:16px}
.switch-tip b{display:block;margin-bottom:4px}
.switch-tip p{margin:0;font-size:12.5px;color:#475569}

/* 缴纳会费面板 */
.pay-panel{margin-top:14px;border:1px solid #dbe4f1;border-radius:10px;background:#fbfdff;padding:14px 18px}
.pay-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.pp-title{font-size:14px;font-weight:700;color:#1f2d3d;position:relative;padding-left:11px}
.pp-title::before{content:"";position:absolute;left:0;top:2px;width:3px;height:14px;border-radius:2px;background:var(--primary)}
.pp-amount{font-size:13px;color:#475569}
.pp-amount b{color:var(--primary);font-size:15px}
.pay-panel-body{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap}
.pay-info{flex:1 1 320px;min-width:280px}
.pay-info-row{display:flex;font-size:13.5px;padding:5px 0;border-bottom:1px dashed #e6edf6}
.pay-info-row .pi-label{flex:0 0 82px;color:#8a94a6}
.pay-info-row .pi-val{color:#1f2d3d;font-weight:500;word-break:break-all}
.pay-tip{font-size:12.5px;color:#8a6d3b;background:#fdf6e6;border-radius:8px;padding:9px 12px;margin-top:10px;line-height:1.7}
.pay-qr{flex:0 0 168px;text-align:center}
.pay-qr img{width:168px;height:168px;border:1px solid var(--border);border-radius:10px;background:#fff;object-fit:contain}
.pay-qr-tip{font-size:12.5px;color:#8a94a6;margin-top:6px}
.pay-proof-alert{background:#fdeceb;border:1px solid #f7c9c6;color:#b23c38;font-size:13px;border-radius:8px;padding:9px 12px;margin-bottom:12px}
.pay-proof-done{background:#f6faf7;border:1px solid #d6ebdc;border-radius:8px;padding:12px 14px}
.pp-done-title{font-size:13.5px;font-weight:600;color:#2f7d4c;margin-bottom:8px}
.pay-thumbs{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.pay-thumbs img{width:110px;height:110px;object-fit:cover;border:1px solid var(--border);border-radius:8px;background:#fff}

/* 多图上传 */
.upload-multi{display:flex;gap:12px;flex-wrap:wrap}
.um-item{position:relative;width:110px;height:110px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.um-item img{width:100%;height:100%;object-fit:cover;display:block}
.um-del{position:absolute;top:2px;right:2px;width:20px;height:20px;line-height:18px;text-align:center;border-radius:50%;background:rgba(31,45,61,.62);color:#fff;font-size:14px;cursor:pointer}
.um-del:hover{background:#d9534f}
.upload-multi .upload-empty{width:110px;height:110px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.upload-multi .upload-empty .upload-sub{display:none}

/* 缴费凭证弹窗摘要 */
.pay-summary{background:#f3f7fd;border-radius:10px;padding:12px 16px;margin-bottom:16px}
.pay-summary-row{display:flex;align-items:center;gap:10px;font-size:13.5px;color:#475569;flex-wrap:wrap}
.pay-summary-row span{color:#8a94a6}
.pay-summary-row b{color:var(--primary);margin-right:14px}
.pay-summary-tip{font-size:12.5px;color:#8a94a6;margin-top:6px;line-height:1.7}


@media (max-width:820px){
  .stat-row{grid-template-columns:1fr}
  .ac-grid{grid-template-columns:1fr 1fr}
  .page{padding:18px 14px 48px}
}

/* ================================================================
   移动端适配（微信端为主要入口，按 375~430px 宽度设计）
   Element Plus 的弹窗/抽屉宽度是内联样式，必须用 !important 覆盖
   ================================================================ */
@media (max-width:768px){

  /* ---- 弹窗与抽屉：占满可用宽度 ---- */
  .el-dialog{width:94vw!important;margin-top:5vh!important;margin-bottom:24px!important}
  .el-message-box{width:88vw!important}
  .el-drawer{width:100%!important}
  .el-dialog__body{padding:14px 16px}
  .el-dialog__header{padding:14px 16px 10px}
  .el-dialog__footer{padding:10px 16px 14px}
  .el-dialog__footer .el-button{flex:1;margin-left:0}
  .el-dialog__footer{display:flex;gap:8px}

  /* 输入框字号设 16px：低于 16px 时 iOS/微信会在聚焦瞬间自动放大页面 */
  .el-input__inner,.el-textarea__inner{font-size:16px}

  /* ---- 入会须知弹窗 ---- */
  .notice-dialog .el-dialog__header{padding:14px 16px}
  .notice-dialog .el-dialog__title{font-size:16px}
  .notice-dialog .el-dialog__body{padding:0}
  .notice-body{max-height:58vh;padding:14px 16px 4px;-webkit-overflow-scrolling:touch}
  .notice-title{font-size:17px}
  .notice-intro{font-size:12.5px;margin-bottom:14px}
  .notice-h3{font-size:14px}
  .notice-p,.notice-list{font-size:13px}
  /* 会费标准表：缩小字号与内边距，让 2~3 列的表格在手机上自然放下 */
  .notice-table{font-size:12px;margin:6px 0}
  .notice-table th,.notice-table td{padding:5px 6px;white-space:normal;word-break:break-word}
  .notice-actions{padding:10px 16px;flex-wrap:wrap;gap:8px}
  .notice-actions .el-button{flex:1;min-width:0;margin-left:0}
  .notice-reject-tip{width:100%;margin:0 0 4px}

  /* ---- 顶部栏 ---- */
  .topbar-inner{padding:10px 14px;flex-wrap:wrap;gap:6px}
  .topbar-title{font-size:14px}
  .topbar-user{gap:10px;font-size:13px}

  /* ---- 页面容器 ---- */
  .page{padding:14px 12px 44px}
  .page-head{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:14px}
  .page-title{font-size:20px}
  .page-sub{font-size:12.5px}
  .new-btn{width:100%}

  /* ---- 统计卡 ---- */
  .stat-row{grid-template-columns:1fr;gap:10px;margin-bottom:14px}
  .stat-card{padding:13px 14px;gap:12px}
  .stat-icon{width:36px;height:36px;font-size:17px}
  .stat-value{font-size:20px}

  /* ---- 申请卡片 ---- */
  .app-card{padding:14px;margin-bottom:12px}
  .app-card-head{flex-direction:column;align-items:stretch;gap:8px}
  .ac-title{font-size:14.5px}
  .ac-actions{width:100%}
  .ac-actions .el-button{flex:1 1 calc(50% - 4px);min-width:0;margin-left:0}
  .ac-grid{grid-template-columns:1fr;gap:8px;padding:12px;margin:12px 0}
  .ac-item{font-size:12.5px}
  .ac-label{min-width:72px}
  .empty-card{padding:28px 16px}

  /* ---- 申请表单抽屉 ---- */
  .drawer-head{padding:12px 14px}
  .dh-title{font-size:15px}
  .drawer-body{padding:12px 12px 20px}
  .drawer-foot{padding:10px 14px;gap:8px}
  .drawer-foot .el-button{flex:1;margin-left:0}
  .sec-card{padding:14px;border-radius:8px}
  .sec-title{font-size:14px;margin-bottom:12px}
  .dyn-form .el-form-item{margin-bottom:14px}
  .type-radio{margin-right:16px}
  .field-tip{font-size:12px}

  /* 表单字段改单列：两列时每个输入框仅约 165px，填 18 位身份证与邮箱很不便 */
  .el-col-12{max-width:100%!important;flex:0 0 100%!important}
  .el-col-8{max-width:100%!important;flex:0 0 100%!important}

  /* ---- 签名 ---- */
  .sign-canvas{height:140px}
  .sign-bar{flex-wrap:wrap}

  /* ---- 上传 ---- */
  .um-item,.upload-multi .upload-empty{width:88px;height:88px}
  .upload-empty{padding:14px}
  .upload-preview img{max-height:140px}

  /* ---- 会费卡 ---- */
  .fee-card{padding:14px}
  .fee-total-num{font-size:19px}

  /* ---- 缴费面板 ---- */
  .pay-panel{padding:12px 14px}
  .pay-panel-head{flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:8px}
  .pay-panel-body{gap:14px}
  .pay-info{min-width:0;flex:1 1 100%}
  .pay-info-row{font-size:13px}
  .pay-info-row .pi-label{flex:0 0 76px}
  .pay-qr{flex:1 1 100%;display:flex;flex-direction:column;align-items:center}
  .pay-qr img{width:150px;height:150px}
  .pay-thumbs img{width:84px;height:84px}
  .pay-summary{padding:10px 12px}
  .pay-summary-row{gap:6px;font-size:12.5px}
  .pay-summary-row b{margin-right:8px}

  /* ---- 登录 / 注册 ---- */
  .auth-page{padding:28px 12px 32px;align-items:flex-start}
  .auth-card{width:100%;padding:22px 18px 18px}
  .auth-brand{gap:10px}
  .brand-logo{width:38px;height:38px;font-size:19px}
  .brand-name{font-size:15px}
  .auth-tabs .el-tabs__item{font-size:14px;padding:0 12px}
  .captcha-row{gap:8px}
  .captcha-box{width:100px;height:38px;flex:0 0 100px}

  /* ---- 切换账号弹窗 ---- */
  .switch-tip{padding:10px 12px}
}
