/* ============================================================================
   账号绑定（手机 / 邮箱）—— bind.css
   设置页的一张卡片：两行状态 + 展开式绑定表单
   ============================================================================ */

.bind-card{ /* 复用 .fsec 的外框，这里只补内部 */ }

.bind-rows{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.bind-row{
  display:flex;align-items:center;gap:10px;
  padding:11px 13px;border-radius:12px;
  background:var(--bg-hover, rgba(128,128,140,.1));
  flex-wrap:wrap;
}
.bind-ic{
  width:30px;height:30px;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:9px;
  background:var(--bg-elev,#fff);color:var(--text-dim);
}
.bind-ic svg{width:15px;height:15px}
.bind-info{flex:1 1 auto;min-width:0}
.bind-name{font-size:13px;font-weight:700;line-height:1.4}
.bind-val{
  font-size:12px;color:var(--text-mute);
  margin-top:2px;
  font-variant-numeric:tabular-nums;
  word-break:break-all;
}
.bind-val b{color:var(--text-dim);font-weight:600}
.bind-tag{
  font-size:10.5px;font-weight:700;
  padding:2px 7px;border-radius:5px;
  background:rgba(62,192,122,.14);color:#3ec07a;
  flex:0 0 auto;
}
.bind-tag.no{background:rgba(255,171,64,.14);color:#ffab40}
.bind-btn{
  flex:0 0 auto;
  border:0;cursor:pointer;font-family:inherit;
  padding:7px 14px;border-radius:9px;
  background:var(--accent);color:#fff;
  font-size:12.5px;font-weight:700;
  transition:filter .15s,background .15s;
}
.bind-btn:hover{filter:brightness(1.08)}
.bind-btn.ghost{background:rgba(128,128,140,.16);color:var(--text-dim)}
.bind-btn.ghost:hover{background:rgba(128,128,140,.26);filter:none}
.bind-btn:disabled{opacity:.55;cursor:default}

/* 发帖门槛提示 */
.bind-need{
  display:flex;align-items:flex-start;gap:9px;
  padding:11px 13px;border-radius:11px;
  background:rgba(255,171,64,.1);
  border-left:3px solid #ffab40;
  font-size:12.5px;line-height:1.75;color:var(--text-dim);
  margin-bottom:13px;
}
.bind-need svg{width:15px;height:15px;color:#ffab40;flex:0 0 auto;margin-top:2px}
.bind-need b{color:#ffab40}

/* 展开的绑定表单 */
.bind-form{
  margin-top:4px;padding:14px 14px 6px;
  border-radius:13px;
  border:1px solid var(--border,rgba(128,128,140,.22));
  background:var(--bg-elev,#fff);
}
.bind-form[hidden]{display:none}
.bind-form h3{
  font-size:13.5px;font-weight:800;margin:0 0 4px;
}
.bind-form .bf-sub{
  font-size:11.5px;color:var(--text-mute);
  line-height:1.7;margin:0 0 13px;
}
.bf-tabs{
  display:flex;gap:5px;padding:3px;border-radius:10px;
  background:rgba(128,128,140,.13);margin-bottom:13px;
}
.bf-tabs button{
  flex:1;border:0;cursor:pointer;font-family:inherit;
  padding:7px 4px;border-radius:8px;
  background:transparent;color:var(--text-dim);
  font-size:12px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
}
.bf-tabs button svg{width:13px;height:13px}
.bf-tabs button.on{
  background:var(--bg-elev,#fff);color:var(--text);
  box-shadow:0 1px 4px rgba(0,0,0,.1);
}

.bf-fld{display:block;margin-bottom:12px}
/* ⚠ 只命中「第一个 span」＝ 标签文字。
   写成 .bf-fld > span 会把 .bf-in / .bf-cap 这两个也用 span 包裹的
   布局容器一起改成 display:block，flex 直接失效 ——
   表现是「获取验证码」挤出输入框、图形码掉到下一行（实测踩过）。 */
.bf-fld > span:first-child{
  display:block;font-size:12px;font-weight:600;
  color:var(--text-dim);margin-bottom:6px;
}
.bf-in{display:flex;position:relative;gap:7px;align-items:stretch}
.bf-in input{
  flex:1 1 auto;min-width:0;
  padding:10px 12px;border-radius:10px;
  border:1px solid var(--border,rgba(128,128,140,.24));
  background:var(--bg,#f7f7fa);color:var(--text);
  font-size:13.5px;font-family:inherit;outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.bf-in input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-h,rgba(251,114,153,.14));
}
.bf-get{
  flex:0 0 auto;
  border:0;cursor:pointer;font-family:inherit;
  padding:0 13px;border-radius:10px;
  background:var(--accent-h,rgba(251,114,153,.14));color:var(--accent);
  font-size:12px;font-weight:700;
  white-space:nowrap;
  transition:background .15s;
  min-width:88px;
}
.bf-get:hover:not(:disabled){background:rgba(251,114,153,.24)}
.bf-get:disabled{opacity:.55;cursor:default;color:var(--text-mute);background:rgba(128,128,140,.13)}

/* 图形验证码行 */
.bf-cap{display:flex;gap:7px;align-items:center}
.bf-cap input{letter-spacing:2px}
.bf-cap img{
  flex:0 0 auto;
  width:150px;height:46px;
  min-width:150px;
  border-radius:9px;border:1px solid var(--border,rgba(128,128,140,.24));
  cursor:pointer;background:rgba(128,128,140,.08);
  object-fit:fill;
  line-height:0;
}

.bf-tip{
  font-size:11.5px;line-height:1.7;
  color:var(--text-mute);
  margin:-2px 0 10px;
  min-height:1px;
}
.bf-tip.err{color:#ff6b7f}
.bf-tip.ok{color:#3ec07a}

.bf-acts{display:flex;gap:8px;justify-content:flex-end;padding-bottom:9px}

@media (max-width:420px){
  .bf-in{flex-wrap:wrap}
  .bf-get{width:100%;padding:9px 0;min-width:0}
  .bf-cap{flex-wrap:wrap}
  .bf-cap img{width:100%;height:auto;aspect-ratio:150/46}
}


/* ============================================================================
   发帖需绑手机 · 引导弹层
   ----------------------------------------------------------------------------
   ⚠ 必须显式写 [hidden]{display:none}。
     app.css 里 .modal-mask{display:grid/flex} 的优先级高于浏览器对 hidden
     属性的默认样式，结果就是「JS 里 hidden=true 了，弹层照样糊在页面上」，
     每个页面一进来就被一块半透明遮罩挡住（实测踩过两次，第二次就在这里）。
   ============================================================================ */
.modal-mask[hidden]{display:none!important}
.phone-modal{
  width:min(392px,calc(100vw - 36px));
  border-radius:18px;
  padding:26px 22px 20px;
  text-align:center;
}
.pm-ic{
  width:52px;height:52px;margin:0 auto 13px;
  border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,rgba(251,114,153,.16),rgba(168,116,255,.16));
  color:var(--accent);
}
.pm-ic svg{width:25px;height:25px}
.phone-modal h3{
  font-size:16.5px;font-weight:900;margin:0 0 8px;
  line-height:1.4;
}
.pm-sub{
  font-size:12.5px;color:var(--text-mute);
  line-height:1.75;margin:0 0 14px;
  padding:0 4px;
}
.pm-list{
  list-style:none;padding:0;margin:0 0 18px;
  text-align:left;
  font-size:12px;line-height:1.95;color:var(--text-dim);
  background:var(--bg-hover,rgba(128,128,140,.08));
  border-radius:11px;
  padding:11px 14px;
}
.pm-list li{position:relative;padding-left:15px}
.pm-list li::before{
  content:"✓";position:absolute;left:0;top:0;
  color:#3ec07a;font-weight:900;font-size:11px;
}
.pm-acts{display:flex;gap:9px}
.pm-btn{
  flex:1;
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:11px;
  border:0;cursor:pointer;font-family:inherit;
  font-size:13.5px;font-weight:800;
  text-decoration:none;
  background:var(--accent);color:#fff;
  transition:filter .15s,background .15s;
}
.pm-btn:hover{filter:brightness(1.08)}
.pm-btn.ghost{
  background:var(--bg-hover,rgba(128,128,140,.12));
  color:var(--text-dim);
  flex:0 0 auto;
  padding-left:18px;padding-right:18px;
}
.pm-btn.ghost:hover{background:rgba(128,128,140,.24);filter:none}
