/* ============================================================
 *  css/net.css
 *  账号与联网玩法 UI —— 前缀统一 lnet-，避免与游戏样式冲突
 * ============================================================ */

/* ---------------- 右上角账号胶囊 ---------------- */
.lnet-acc{
  position: fixed; top: 12px; right: 12px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lnet-acc-login{
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(24,30,38,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 13px; padding: 7px 15px; border-radius: 20px;
  cursor: pointer; font-family: inherit; letter-spacing: .3px;
  transition: background .16s, border-color .16s;
}
.lnet-acc-login:hover{ background: rgba(224,122,47,.9); border-color: rgba(224,122,47,.9); }
.lnet-mode{
  font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.18); padding: 2px 8px; border-radius: 10px;
}
.lnet-acc-body{
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(24,30,38,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 13px; border-radius: 20px; color: #fff;
}
.lnet-acc-body b{ font-size: 13px; font-weight: 500; }
.lnet-acc-body i{ font-style: normal; font-size: 11.5px; color: #ffcf9a; }
.lnet-panel{
  position: absolute; top: 46px; right: 0; width: 208px;
  background: #fff; border-radius: 14px; padding: 14px 15px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  color: #2a2622;
}
.lnet-panel.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.lnet-row{ display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: #6b645c; }
.lnet-row b{ color: #2a2622; font-weight: 600; }
.lnet-badge{
  margin-top: 8px; padding: 5px 9px; border-radius: 6px; font-size: 11.5px;
  background: #fdf1e2; color: #a8611f; text-align: center;
}
.lnet-links{ margin: 10px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.lnet-links button{
  flex: 1 1 45%; font-size: 11.5px; padding: 6px 4px; border-radius: 7px;
  border: 1px solid #e8e1d6; background: #faf8f4; color: #5d564d;
  cursor: pointer; font-family: inherit;
}
.lnet-links button:hover{ border-color: #e07a2f; color: #c25f18; background: #fff7ee; }
.lnet-acc-logout{
  width: 100%; margin-top: 4px; padding: 7px; border-radius: 8px;
  border: 1px solid #eadfd4; background: #fff; color: #8a8078;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.lnet-acc-logout:hover{ color: #b8443a; border-color: #e7c3bf; }

/* ---------------- 登录浮层 ---------------- */
.lnet-modal{
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,20,26,.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  padding: 20px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lnet-modal.show{ opacity: 1; visibility: visible; }
.lnet-card{
  position: relative; width: 100%; max-width: 352px;
  background: #fffdf9; border-radius: 20px; padding: 30px 28px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  transform: translateY(10px) scale(.98); transition: transform .22s;
}
.lnet-modal.show .lnet-card{ transform: translateY(0) scale(1); }
.lnet-close{
  position: absolute; top: 12px; right: 14px; width: 28px; height: 28px;
  border: 0; background: transparent; color: #b3aaa0; font-size: 22px;
  line-height: 1; cursor: pointer; border-radius: 50%;
}
.lnet-close:hover{ background: #f3ede4; color: #6b645c; }
.lnet-title{ margin: 0 0 5px; font-size: 20px; font-weight: 600; color: #241f1a; }
.lnet-sub{ margin: 0 0 20px; font-size: 12.5px; color: #918a80; line-height: 1.6; }
.lnet-card label{ display: block; font-size: 12px; color: #8d857b; margin: 13px 0 6px; }
.lnet-card input{
  width: 100%; padding: 10px 13px; border: 1px solid #e6dfd3; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fdfbf7; color: #241f1a;
  transition: border-color .15s, background .15s;
}
.lnet-card input:focus{ outline: none; border-color: #e07a2f; background: #fff; }
.lnet-submit{
  width: 100%; margin-top: 20px; padding: 12px; border: 0; border-radius: 11px;
  background: #e07a2f; color: #fff; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.lnet-submit:hover{ background: #cd6b22; }
.lnet-submit:disabled{ background: #d4c3b1; cursor: default; }
.lnet-switch{ margin-top: 14px; text-align: center; font-size: 12.5px; color: #918a80; }
.lnet-switch a{ color: #c25f18; text-decoration: none; }
.lnet-switch a:hover{ text-decoration: underline; }
.lnet-tip{ margin-top: 14px; font-size: 11.5px; color: #b3aaa0; text-align: center; line-height: 1.6; }
.lnet-err{
  margin-top: 13px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px;
  background: #fdecea; color: #b8443a; border: 1px solid #f3cdc8;
}

/* ---------------- 轻提示 ---------------- */
.lnet-toast{
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(10px);
  z-index: 300; padding: 9px 18px; border-radius: 20px;
  background: rgba(24,28,34,.9); color: #fff; font-size: 13px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  max-width: 78vw; text-align: center; pointer-events: none;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lnet-toast.show{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.lnet-toast.bad{ background: rgba(150,52,42,.94); }

/* ---------------- 联网玩法的通用弹层 ---------------- */
.lnet-sheet{
  position: fixed; inset: 0; z-index: 190;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(16,20,26,.6);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lnet-sheet.show{ opacity: 1; visibility: visible; }
.lnet-sheet-card{
  width: 100%; max-width: 420px; max-height: 82vh; overflow-y: auto;
  background: #fffdf9; border-radius: 18px; padding: 24px 22px 18px;
  box-shadow: 0 22px 56px rgba(0,0,0,.32);
}
.lnet-sheet-card h3{ margin: 0 0 4px; font-size: 17px; color: #241f1a; font-weight: 600; }
.lnet-sheet-card .lnet-sheet-sub{ margin: 0 0 16px; font-size: 12.5px; color: #918a80; }
.lnet-sheet-card .lnet-sheet-body{ font-size: 13.5px; color: #4a443c; line-height: 1.8; }
.lnet-sheet-card .lnet-sheet-foot{ margin-top: 18px; display: flex; gap: 9px; }
.lnet-sheet-card .lnet-sheet-foot button{
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #e6dfd3;
  background: #fff; color: #5d564d; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.lnet-sheet-card .lnet-sheet-foot button.pri{
  background: #e07a2f; border-color: #e07a2f; color: #fff;
}
.lnet-sheet-card .lnet-sheet-foot button:hover{ filter: brightness(.97); }
.lnet-list{ margin: 0; padding: 0; list-style: none; }
.lnet-list li{
  padding: 9px 11px; border-radius: 9px; background: #faf7f1;
  margin-bottom: 7px; font-size: 13px; color: #4a443c;
  display: flex; justify-content: space-between; gap: 10px;
}
.lnet-list li b{ font-weight: 600; color: #241f1a; }
.lnet-quote{
  border-left: 3px solid #e5c9a8; padding: 4px 0 4px 13px; margin: 12px 0;
  font-size: 14px; color: #5a5148; line-height: 1.85; font-style: normal;
}
.lnet-muted{ color: #9b938a; font-size: 12.5px; }
.lnet-opt{
  display: block; width: 100%; text-align: left; margin-bottom: 8px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid #e6dfd3;
  background: #fff; color: #3d3730; font-size: 13.5px; cursor: pointer;
  font-family: inherit; line-height: 1.6;
}
.lnet-opt:hover{ border-color: #e07a2f; background: #fff8ef; }

@media (max-width: 560px){
  .lnet-acc{ top: 8px; right: 8px; }
  .lnet-card{ padding: 26px 20px 18px; }
  .lnet-panel{ width: 190px; }
}

/* ---------------- 音效按钮 ---------------- */
.lnet-sfx-btn{
  position: fixed; top: 12px; right: 148px; z-index: 60;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(24,30,38,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s, opacity .15s;
}
.lnet-sfx-btn:hover{ border-color: rgba(224,122,47,.9); background: rgba(224,122,47,.6); }
.lnet-sfx-btn.off{ opacity: .45; }

/* ---------------- 玩法网格 ---------------- */
.lnet-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.lnet-grid-item{
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px; border: 1px solid #e6dfd3;
  background: #fff; cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .14s, background .14s;
}
.lnet-grid-item:hover{ border-color: #e07a2f; background: #fff8ef; }
.lnet-grid-item b{ font-size: 13.5px; color: #241f1a; font-weight: 600; }
.lnet-grid-item span{ font-size: 11.5px; color: #9b938a; }

/* ---------------- 结局战报 ---------------- */
.lnet-end{
  margin: 16px 0 4px; padding: 14px 15px; border-radius: 12px;
  background: rgba(36,31,26,.045); border: 1px dashed rgba(36,31,26,.18);
  color: #3d3730; text-align: left;
}
.lnet-end-title{ font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.lnet-end-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.lnet-end-grid div{ display: flex; justify-content: space-between; font-size: 12.5px; }
.lnet-end-grid span{ opacity: .55; }
.lnet-end-grid b{ font-weight: 600; }
.lnet-end-btn{
  margin-top: 8px; padding: 7px 13px; border-radius: 8px;
  border: 1px solid rgba(36,31,26,.2); background: #fff;
  color: #4a443c; font-size: 12px; cursor: pointer; font-family: inherit;
  transition: border-color .14s, color .14s, background .14s;
}
.lnet-end-btn:hover{ border-color: #e07a2f; color: #c25f18; background: #fff8ef; }
.lnet-end-links{ display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------------- 案卷片段 ---------------- */
.lnet-frags{ margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.95; color: #4a443c; }
.lnet-frags li{ margin-bottom: 4px; }

/* ---------------- 榜单 tab ---------------- */
.lnet-tabs{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.lnet-tabs button{
  padding: 5px 12px; border-radius: 16px; border: 1px solid #e6dfd3;
  background: #fff; color: #7b736a; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.lnet-tabs button.on{ background: #e07a2f; border-color: #e07a2f; color: #fff; }

/* ---------------- 表单字段 ---------------- */
.lnet-fld{ display: block; font-size: 12.5px; color: #8d857b; margin: 12px 0 0; }
.lnet-fld input,.lnet-fld select{
  display: block; width: 100%; margin-top: 5px; padding: 9px 12px;
  border: 1px solid #e6dfd3; border-radius: 9px; font-size: 14px;
  font-family: inherit; background: #fdfbf7; color: #241f1a;
}
.lnet-fld input:focus,.lnet-fld select:focus{ outline: none; border-color: #e07a2f; background: #fff; }

@media (max-width: 560px){
  .lnet-sfx-btn{ right: 132px; top: 8px; width: 28px; height: 28px; font-size: 12px; }
  .lnet-grid{ grid-template-columns: 1fr; }
}
