/* =========================================================
   习大 – 老百姓私募银行  前台样式
   配色参考：国家政务服务平台 gjzwfw
   ========================================================= */
:root{
  --gov-red:#C8161D;
  --gov-red-dark:#A01015;
  --gov-red-light:#E53935;
  --gov-blue:#1C4B9C;
  --gov-blue-dark:#143A7A;
  --gov-gold:#D4A94E;
  --gov-gold-dark:#B88C2E;
  --bg:#F5F5F5;
  --bg-soft:#FAF7F2;
  --text:#333;
  --text-muted:#666;
  --text-weak:#999;
  --line:#E5E5E5;
  --white:#FFFFFF;
  --shadow:0 2px 10px rgba(0,0,0,.06);
  --shadow-lg:0 6px 20px rgba(0,0,0,.08);
  --radius:10px;
  --radius-lg:14px;
  --header-h:56px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
/* 锚点滚动时预留顶部 sticky 导航高度 */
[id]{scroll-margin-top:calc(var(--header-h) + 10px)}
body{
  font-family:"PingFang SC","Microsoft YaHei","Heiti SC",system-ui,sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:15px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--gov-red);text-decoration:none}
button{font-family:inherit;cursor:pointer}

/* ===== 顶部导航 ===== */
.topbar{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(135deg,var(--gov-red) 0%,var(--gov-red-dark) 100%);
  color:#fff;
  height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 14px;
  box-shadow:0 2px 8px rgba(200,22,29,.25);
}
.topbar .brand{
  display:flex;align-items:center;gap:8px;min-width:0;flex:1;
}
.topbar .brand .emblem{
  width:30px;height:30px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,var(--gov-gold),var(--gov-gold-dark));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:900;font-size:14px;flex-shrink:0;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.3);
}
.topbar .brand .text{min-width:0}
.topbar .brand .t1{font-weight:700;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .brand .t2{font-size:11px;opacity:.9;line-height:1.2}
.topbar .nav-btn{
  border:1px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.12);
  color:#fff;padding:7px 10px;border-radius:6px;
  font-size:12px;white-space:nowrap;
  min-height:36px;display:inline-flex;align-items:center;gap:4px;
}
.topbar .nav-btn:active{background:rgba(255,255,255,.25)}

/* ===== Hero ===== */
.hero{
  background:
    linear-gradient(135deg,rgba(28,75,156,.92),rgba(20,58,122,.92)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="300" viewBox="0 0 800 300"><path fill="%23ffffff" fill-opacity="0.06" d="M0 250 L100 220 L200 240 L300 190 L400 210 L500 170 L600 200 L700 160 L800 180 L800 300 L0 300 Z"/></svg>');
  background-size:cover;background-position:center;
  color:#fff;padding:38px 18px 30px;text-align:center;
}
.hero h1{
  margin:0 0 8px;font-size:22px;font-weight:800;letter-spacing:1px;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.hero .sub{font-size:14px;opacity:.95;margin:0 0 14px}
.hero .pill{
  display:inline-block;background:var(--gov-gold);color:#3a2a05;
  font-weight:700;font-size:12px;padding:5px 12px;border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}

/* ===== 内容容器 ===== */
.container{max-width:760px;margin:0 auto;padding:14px}

/* ===== 卡片（说明） ===== */
.card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin-bottom:14px;
  overflow:hidden;
}
.card-head{
  display:flex;align-items:center;gap:10px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfbfb);
}
.card-head .ico{
  width:26px;height:26px;border-radius:6px;flex-shrink:0;
  background:linear-gradient(135deg,var(--gov-red),var(--gov-red-dark));
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
}
.card-head .title{font-size:16px;font-weight:700;color:var(--gov-red);line-height:1.3}
.card-body{padding:14px 16px;color:#444;font-size:14px}
.card-body p{margin:0 0 10px}
.card-body p:last-child{margin-bottom:0}
.card-body strong{color:var(--gov-red)}

/* ===== 表单 ===== */
.form-card{padding:16px}
.form-section-title{
  font-size:17px;font-weight:800;color:var(--gov-red);
  border-left:4px solid var(--gov-red);
  padding:2px 0 2px 10px;margin:4px 0 14px;
}
.field{margin-bottom:14px}
.field label{
  display:block;font-size:14px;color:#333;margin-bottom:6px;font-weight:500;
}
.field .req{color:var(--gov-red);margin-left:2px}
.field input[type=text],
.field input[type=tel],
.field textarea{
  width:100%;border:1px solid #d8d8d8;background:#fff;
  border-radius:8px;padding:12px 14px;font-size:15px;color:#222;
  font-family:inherit;outline:none;
  transition:border-color .15s,box-shadow .15s;
  min-height:46px;
}
.field textarea{min-height:84px;resize:vertical}
.field input:focus,.field textarea:focus{
  border-color:var(--gov-red);box-shadow:0 0 0 3px rgba(200,22,29,.1);
}
.field .hint{font-size:12px;color:var(--text-weak);margin-top:4px}

/* 头像上传 */
.upload-box{
  border:1.5px dashed #d0d0d0;background:#fafafa;border-radius:10px;
  padding:18px;text-align:center;position:relative;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.upload-box:hover,.upload-box.drag{
  border-color:var(--gov-red);background:#fff7f7;
}
.upload-box input[type=file]{display:none}
.upload-box .up-ico{font-size:34px;color:var(--gov-red);margin-bottom:6px}
.upload-box .up-hint{font-size:13px;color:#666}
.upload-box .up-tip{font-size:12px;color:var(--text-weak);margin-top:4px}
.upload-preview{display:none;text-align:center}
.upload-preview img{max-width:140px;max-height:140px;margin:0 auto;border-radius:8px;border:1px solid var(--line)}
.upload-preview .name{font-size:12px;color:#666;margin-top:6px}
.upload-preview .reset{
  display:inline-block;margin-top:8px;font-size:12px;color:var(--gov-red);
  background:transparent;border:1px solid var(--gov-red);padding:4px 10px;border-radius:4px;
}

/* 承诺 */
.agree{
  display:flex;gap:10px;align-items:flex-start;
  padding:12px 14px;background:#fff8e6;border:1px solid #f2d88a;border-radius:8px;
  margin:10px 0 16px;font-size:13px;color:#6b4a00;
}
.agree input[type=checkbox]{
  width:18px;height:18px;accent-color:var(--gov-red);flex-shrink:0;margin-top:2px;
}

/* 按钮 */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:none;border-radius:10px;padding:13px 18px;
  font-size:15px;font-weight:700;cursor:pointer;
  transition:transform .05s,box-shadow .15s,background .15s;
  min-height:48px;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(135deg,var(--gov-red),var(--gov-red-dark));
  color:#fff;box-shadow:0 4px 12px rgba(200,22,29,.3);
}
.btn-primary:disabled{background:#ccc;color:#fff;box-shadow:none;cursor:not-allowed}
.btn-outline{
  background:#fff;color:var(--gov-red);border:1.5px solid var(--gov-red);
}
.btn-gold{
  background:linear-gradient(135deg,var(--gov-gold),var(--gov-gold-dark));
  color:#3a2a05;box-shadow:0 4px 12px rgba(212,169,78,.35);
}
.btn-block{width:100%}

.submit-wrap{margin-top:8px}
.submit-wrap .foot-tip{
  font-size:12px;color:var(--text-weak);text-align:center;margin-top:10px;
}

/* ===== Footer ===== */
.footer{
  text-align:center;color:#888;font-size:12px;padding:24px 16px 32px;
  border-top:1px solid var(--line);margin-top:10px;background:#fff;
}
.footer .gov{color:var(--gov-red);font-weight:600}

/* ===== 弹窗 ===== */
.modal-mask{
  position:fixed;inset:0;background:rgba(0,0,0,.5);
  display:none;align-items:center;justify-content:center;
  z-index:100;padding:18px;animation:fadein .2s;
}
.modal-mask.show{display:flex}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.modal{
  background:#fff;border-radius:14px;width:100%;max-width:420px;
  overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.25);
  animation:pop .25s;
}
@keyframes pop{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.modal .mh{
  padding:18px 18px 8px;text-align:center;position:relative;
}
.modal .mh .mtitle{font-size:18px;font-weight:800;color:var(--gov-red);margin:0}
.modal .mh .close{
  position:absolute;right:10px;top:8px;background:none;border:none;
  font-size:22px;color:#999;width:36px;height:36px;
}
.modal .mb{padding:6px 20px 16px;font-size:14px;color:#444;line-height:1.7}
.modal .mb p{margin:0 0 8px}
.modal .mf{
  padding:10px 16px 18px;display:flex;gap:10px;flex-wrap:wrap;
}
.modal .mf .btn{flex:1 1 140px}

/* 成功图标 */
.success-ico{
  width:58px;height:58px;margin:6px auto 6px;
  border-radius:50%;background:linear-gradient(135deg,#2e7d32,#4caf50);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;
  box-shadow:0 6px 14px rgba(46,125,50,.35);
}

/* 查询结果 */
.query-result{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
.q-avatar{text-align:center;margin:6px 0 12px}
.q-avatar img{
  width:120px;height:120px;border-radius:10px;object-fit:cover;
  border:2px solid var(--gov-gold);box-shadow:0 4px 12px rgba(0,0,0,.1);
  display:inline-block;
}
.q-avatar-tip{font-size:12px;color:#888;margin-top:6px}
.kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #eee;font-size:13px}
.kv:last-child{border-bottom:none}
.kv .k{color:#888;flex-shrink:0}
.kv .v{color:#222;text-align:right;word-break:break-all}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600}
.badge.pending{background:#fff4cc;color:#8a6d00}
.badge.ok{background:#d4f1d8;color:#2e7d32}
.badge.reject{background:#fde0e0;color:#c62828}

/* Toast */
.toast{
  position:fixed;top:20px;left:50%;transform:translateX(-50%);
  background:rgba(0,0,0,.82);color:#fff;padding:10px 18px;border-radius:8px;
  font-size:13px;z-index:999;display:none;max-width:85%;
}
.toast.show{display:block;animation:fadein .2s}

/* ===== 响应式 ===== */
@media (min-width:560px){
  .hero h1{font-size:26px}
  .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
}
@media (min-width:768px){
  .hero{padding:60px 24px 50px}
  .hero h1{font-size:30px}
  .topbar{padding:0 22px}
  .topbar .brand .t1{font-size:17px}
  .container{padding:18px}
  .card-head .title{font-size:18px}
  .card-body{font-size:15px}
}

/* 小屏细节 */
@media (max-width:360px){
  .topbar .brand .t1{font-size:13px}
  .topbar .nav-btn{padding:6px 8px;font-size:11px}
  .hero h1{font-size:19px}
}
