/* =========================================================
   习近和平私募银行  前台样式
   配色参考：国家政务服务平台 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}
}

:root{
  --gov-red:#c30808;
  --gov-red-dark:#9a1010;
  --gov-red-light:#d21818;
  --gov-gold:#ffd35a;
  --bg:#ffffff;
  --bg-soft:#fff3f3;
  --line:#c30808;
  --shadow:0 4px 4px rgba(0,0,0,.22);
  --radius:12px;
  --header-h:0px;
}

body{
  background:#fff;
  color:#050505;
  font-size:14px;
  line-height:1.8;
}

.topbar{
  position:relative;
  height:107px;
  padding:16px 14px 12px;
  align-items:flex-start;
  background:url('../img/figma-header.png') center bottom/cover no-repeat;
  box-shadow:none;
  overflow:hidden;
}
.topbar::before{
  display:none;
}
.topbar::after{
  display:none;
}
.topbar .brand{
  position:relative;
  z-index:1;
  flex:1;
  justify-content:center;
  padding-top:3px;
}
.topbar .brand .emblem{display:none}
.topbar .brand .text{
  width:210px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:url('../img/figma-title2.png') center center/contain no-repeat;
  border-radius:0;
  box-shadow:0 4px 10px rgba(39,1,1,.25);
}
.topbar .brand .t1{
  font-size:0;
  color:transparent;
  text-shadow:none;
}
.topbar .brand .t2{display:none}
.topbar .nav-btn{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:12px;
  min-height:34px;
  padding:6px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(180deg,#f81b1b,#9f0a0a);
  color:#fff;
  font-size:13px;
  box-shadow:0 4px 4px rgba(0,0,0,.25);
}

.hero{
  width:calc(100% - 28px);
  max-width:696px;
  margin:14px auto 0;
  padding:10px 12px;
  min-height:42px;
  border-radius:8px;
  background:#c30808;
  color:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.08);
}
.hero h1{
  margin:0;
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:.4px;
  text-shadow:none;
}
.hero .sub,.hero .pill{display:none}

.container{
  max-width:750px;
  padding:16px 14px 28px;
}

.card{
  background:#fff3f3;
  border:1px solid rgba(195,8,8,.08);
  border-radius:12px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
  overflow:visible;
}
.card-head{
  position:relative;
  display:block;
  padding:22px 24px 28px;
  text-align:center;
  border-bottom:none;
  background:transparent;
}
.card-head::before{
  content:"";
  position:absolute;
  left:78px;
  right:78px;
  bottom:14px;
  height:1px;
  background:#c30808;
}
.card-head::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:13px;
  width:76px;
  height:3px;
  transform:translateX(-50%);
  background:#c30808;
}
.card-head .ico{
  position:absolute;
  left:0;
  top:22px;
  width:4px;
  height:24px;
  border-radius:0;
  background:#c61f0d;
  font-size:0;
}
.card-head .title{
  color:#050505;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
}
.card-body{
  padding:10px 26px 26px;
  color:#050505;
  font-size:13px;
  line-height:1.9;
  letter-spacing:.35px;
  text-align:justify;
}
.card-body p{
  margin:0 0 12px;
  text-indent:2em;
}
.card-body strong{color:#c30808}

.form-card{
  padding:0 24px 24px;
}
.form-section-title{
  position:relative;
  margin:0 -24px 20px;
  padding:22px 24px 30px;
  border-left:none;
  color:#c61f0d;
  font-size:16px;
  font-weight:600;
  line-height:1.35;
}
.form-section-title::before{
  content:"";
  position:absolute;
  left:24px;
  bottom:14px;
  width:180px;
  height:1px;
  background:#c30808;
}
.form-section-title::after{
  content:"";
  position:absolute;
  left:24px;
  bottom:13px;
  width:76px;
  height:3px;
  background:#c30808;
}
.field{
  margin-bottom:12px;
}
.field label{
  color:#050505;
  font-size:14px;
  font-weight:400;
  margin-bottom:0;
}
.field .req{
  color:#050505;
}
.field input[type=text],
.field input[type=tel],
.field textarea{
  min-height:38px;
  padding:4px 0 8px;
  border:none;
  border-bottom:1px solid #989797;
  border-radius:0;
  background:transparent;
  font-size:14px;
}
.field textarea{
  min-height:58px;
}
.field input:focus,.field textarea:focus{
  border-color:#c30808;
  box-shadow:none;
}
.field .hint{
  color:#555;
  font-size:11px;
  line-height:1.7;
  margin-top:8px;
}

.upload-box{
  width:150px;
  min-height:180px;
  margin:12px auto 0;
  padding:14px;
  border:none;
  border-radius:2px;
  background:#f1caca;
  box-shadow:none;
}
.upload-box:hover,.upload-box.drag{
  background:#f0bbbb;
  border-color:transparent;
}
.upload-box .up-ico{
  display:none;
}
.upload-box .up-hint{
  margin-top:58px;
  color:#050505;
  font-size:12px;
  line-height:1.6;
}
.upload-box .up-tip{
  color:#050505;
  font-size:12px;
}
.upload-preview img{
  max-width:120px;
  max-height:120px;
  border:1px solid rgba(195,8,8,.15);
  border-radius:4px;
}

.agree{
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:16px 0;
  padding:0;
  background:transparent;
  border:none;
  color:#050505;
  font-size:13px;
}
.agree input[type=checkbox]{
  width:20px;
  height:20px;
  margin-top:0;
  accent-color:#0ebeef;
}

.btn{
  min-height:44px;
  border-radius:16px;
  font-size:14px;
  font-weight:400;
  letter-spacing:.8px;
}
.btn-primary{
  border:1px solid #d00808;
  background:linear-gradient(0deg,#9a1010 0%,#d21818 99.99%);
  color:#fff;
  box-shadow:none;
}
.btn-primary:disabled{
  border-color:#bbb;
  background:#c9c9c9;
}
.btn-outline{
  border:1px solid #d00808;
  background:linear-gradient(0deg,#9a1010 0%,#d21818 99.99%);
  color:#fff;
  box-shadow:none;
}
.btn-gold{
  background:linear-gradient(0deg,#9a1010 0%,#d21818 99.99%);
  color:#fff;
  box-shadow:none;
}

.submit-wrap .foot-tip{
  color:#777;
  font-size:11px;
}

.footer{
  display:none;
}

.modal{
  max-width:360px;
  border-radius:16px;
  background:#fff3f3;
  box-shadow:0 4px 18px rgba(0,0,0,.25);
}
.modal .mh{
  padding:20px 18px 10px;
}
.modal .mh .mtitle{
  color:#110d0d;
  font-size:20px;
  font-weight:600;
}
.modal .mb{
  padding:12px 22px 16px;
  color:#636161;
  font-size:13px;
  text-align:center;
  line-height:1.85;
}
.modal .mb p{
  margin-bottom:8px;
}
.modal .mf{
  padding:0 24px 22px;
  display:block;
}
.modal .mf .btn{
  width:100%;
  margin-top:10px;
}
.success-ico{
  display:none;
}
.query-result{
  border-top:1px solid #989797;
}
.q-avatar img{
  border-color:#c30808;
}

.about-visual{
  position:relative;
  height:auto;
  aspect-ratio:660/420;
  margin:0 0 14px;
  overflow:hidden;
  border:3px solid #fff;
  border-radius:12px;
  box-shadow:0 4px 4px rgba(0,0,0,.25);
  background:url('../img/figma-building.png') center center/cover no-repeat;
}
.about-visual .tower,
.about-visual .ground{display:none}

/* ===== 关于银行 CTA ===== */
.about-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:calc(100% - 28px);
  max-width:696px;
  margin:12px auto 6px;
  padding:14px 18px;
  border-radius:10px;
  background:linear-gradient(135deg,#FFD37A 0%,#D4A94E 55%,#B88C2E 100%);
  color:#5a2a00;
  font-size:15px;
  font-weight:600;
  letter-spacing:.4px;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(184,140,46,.35),inset 0 1px 0 rgba(255,255,255,.4);
  border:1px solid rgba(255,255,255,.55);
  animation:about-cta-glow 2.4s ease-in-out infinite;
}
.about-cta:active{transform:translateY(1px)}
.about-cta__text{flex:1;text-align:center;line-height:1.4}
.about-cta__arrow{
  flex:0 0 auto;
  font-size:22px;
  line-height:1;
  color:#5a2a00;
}

.about-cta-hint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:6px auto 16px;
  color:#c30808;
  font-size:18px;
  font-weight:700;
  letter-spacing:.5px;
  animation:about-cta-finger 1s ease-in-out infinite;
}
.about-cta-hint > span:first-child{
  display:inline-block;
  animation:about-cta-text 1.6s ease-in-out infinite;
}
.about-cta-hint__finger{
  display:inline-block;
  font-size:24px;
  animation:about-cta-finger 1s ease-in-out infinite;
}

@keyframes about-cta-glow{
  0%,100%{box-shadow:0 4px 12px rgba(184,140,46,.35),inset 0 1px 0 rgba(255,255,255,.4)}
  50%{box-shadow:0 6px 18px rgba(184,140,46,.6),inset 0 1px 0 rgba(255,255,255,.55)}
}
@keyframes about-cta-finger{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}
@keyframes about-cta-text{
  0%,100%{transform:scale(1);color:#c30808}
  50%{transform:scale(1.08);color:#ff3b30}
}

@media (min-width:560px){
  body{
    background:#f8f8f8;
  }
  .topbar,.hero,.container{
    max-width:750px;
  }
  .topbar{
    margin:0 auto;
    height:214px;
  }
  .topbar .brand .text{
    width:420px;
    height:64px;
  }
  .hero{
    width:calc(100% - 54px);
  }
  .hero h1{
    font-size:18px;
  }
  .about-cta,.about-cta-hint{
    max-width:750px;
    width:calc(100% - 54px);
  }
  .about-cta{font-size:16px}
  .container{
    background:#fff;
  }
  .card-head .title{
    font-size:16px;
  }
  .card-body{
    font-size:14px;
  }
}

@media (max-width:360px){
  .topbar .brand .t1{font-size:16px}
  .topbar .nav-btn{right:10px;font-size:12px;padding:6px 10px}
  .hero h1{font-size:15px}
  .card-body{padding-left:20px;padding-right:20px}
  .form-card{padding-left:20px;padding-right:20px}
}
