/* QSY 玩家后台模板：右侧悬浮米金面板 + 全屏原画背景。新页面只需引入本文件并沿用 .panel/.head/.body 结构。
   超管后台（深色侧栏）不在这里，在同级目录 reuse-superadmin/ 。 */
html,body{height:100%;margin:0}
*{box-sizing:border-box}
body{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#223;
  min-height:100vh;
  background:#1a1410 url("/ht/bg.jpg?v=20261001c") no-repeat left center / cover fixed;
}
main{
  width:100%;
  max-width:420px;
  position:fixed;
  left:auto;
  right:18px;
  top:0;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  padding:18px 10px 36px;
}
main::-webkit-scrollbar{display:none}
.panel{
  background:rgba(255,252,246,.92);
  border:0;
  box-shadow:0 10px 28px rgba(20,12,8,.22);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:14px;
}
.head{
  background:linear-gradient(90deg,#c9a227,#a67c1a);
  color:#fff;
  padding:12px 16px;
  font-size:16px;
  font-weight:650;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.head small{font-weight:400;font-size:12px;opacity:.9}
.body{padding:16px}
.hint{color:#6b5a48;font-size:13px;line-height:1.6;margin:0 0 12px}
.hint b{color:#8a5a12}
label{display:block;margin:10px 0 6px;color:#6b5a48;font-size:.88rem}
input,select,textarea{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d8c8a8;
  background:#fff;
  color:#223;
  font:inherit;
}
input:focus,select:focus{outline:none;border-color:#c9a227;box-shadow:0 0 0 3px rgba(201,162,39,.18)}
.row2{display:flex;gap:8px}
.row2>div{flex:1}
.btn{
  margin-top:12px;
  width:100%;
  padding:11px 12px;
  border:0;
  border-radius:8px;
  background:linear-gradient(90deg,#c9a227,#8a6414);
  color:#fff;
  font-weight:650;
  cursor:pointer;
  font:inherit;font-weight:650;
}
.btn:disabled{opacity:.6;cursor:wait}
.btn.alt{background:linear-gradient(90deg,#6b7c3a,#4d5c28)}
.btn.ghost{background:#ece4d4;color:#5a4a36}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chips button{flex:1;min-width:64px;padding:7px 0;border:1px solid #d8c8a8;border-radius:8px;background:#fffaf0;color:#6b4f12;cursor:pointer;font:inherit;font-size:.85rem}
.chips button:hover{background:#f4ead2}
.badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#f1e3bd;
  color:#7a5410;
  font-size:.78rem;
}
.head .badge{background:rgba(255,255,255,.22);color:#fff}
.msg{margin-top:10px;min-height:1.3em;color:#8a5a12;font-size:.9rem;line-height:1.5}
.msg.ok{color:#3f6b1f}
.msg.bad{color:#a8321e}
.hidden{display:none!important}
.links{display:grid;gap:10px}
.links a{display:block;padding:14px 16px;border-radius:10px;background:#fffaf0;border:1px solid #eadcb9;color:#5a3f0c;text-decoration:none}
.links a b{display:block;font-size:15px;margin-bottom:4px;color:#7a5410}
.links a span{font-size:12.5px;color:#7b6a55;line-height:1.5}
.links a:hover{background:#f6edd8}
.foot{color:#5a4a36;font-size:12px;text-align:center;line-height:1.7;margin:6px auto 0;padding:4px 12px;width:fit-content;max-width:100%;background:rgba(255,252,246,.86);border-radius:12px}
.foot a{color:#8a5a12;font-weight:600}
.search-wrap{position:relative}
.suggest{
  position:absolute;
  left:0;right:0;top:100%;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-height:360px;
  overflow:auto;
  background:#fff;
  border:1px solid #d8c8a8;
  border-top:0;
  border-radius:0 0 8px 8px;
  box-shadow:0 10px 18px rgba(20,12,8,.16);
}
.suggest button{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:48px;
  text-align:left;
  padding:9px 10px;
  border:0;
  border-right:1px solid #eee4d0;
  border-bottom:1px solid #eee4d0;
  background:#fff;
  color:#223;
  cursor:pointer;
  font:inherit;
  font-size:.86rem;
  line-height:1.35;
}
.suggest button:nth-of-type(2n){border-right:0}
.suggest button:hover,.suggest button.active{background:#f4ead2}
.suggest-name{min-width:0;word-break:break-word}
.suggest-id{flex:0 0 auto;color:#9a6e19;font-size:.78rem;font-weight:650}
.suggest-tip{grid-column:1/-1;padding:8px 12px;color:#8a5a12;font-size:.82rem;background:#faf4e6}
.picked{
  margin-top:8px;
  padding:8px 10px;
  border-radius:8px;
  background:#f6edd8;
  color:#5a471f;
  font-size:.9rem;
}
.log{list-style:none;margin:0;padding:0;font-size:12.5px;color:#5a4a36}
.log li{padding:8px 0;border-bottom:1px dashed #eadcb9;display:flex;justify-content:space-between;gap:10px}
.log li:last-child{border-bottom:0}
.log time{color:#9a8a72;flex:0 0 auto}
.risk-mask{
  position:fixed;inset:0;z-index:80;
  background:rgba(18,12,8,.55);
  display:flex;align-items:center;justify-content:center;
  padding:18px;
}
.risk-card{
  width:100%;max-width:360px;
  background:#fffaf1;
  border-radius:12px;
  box-shadow:0 16px 40px rgba(20,12,8,.35);
  padding:18px 16px 14px;
  color:#223;
}
.risk-title{font-size:16px;font-weight:700;margin:0 0 10px;color:#6a3b12}
.risk-body{font-size:13px;line-height:1.65;color:#4a3b2c;margin:0 0 14px}
.risk-body p{margin:0 0 8px}
.risk-actions{display:flex;gap:8px}
.risk-actions .btn{margin-top:0;flex:1}
@media screen and (max-width:900px){
  body{background-position:center top}
}
@media screen and (max-width:700px){
  main{left:0;right:0;max-width:none;width:100%;padding:12px 8px 28px}
  .panel{background:rgba(255,252,246,.94)}
}
