/* ==========================================================================
   回声墙 —— 追加在梦魂系统样式之后
   只用到 :root 里的颜色变量和 .card/.btn 这些既有类，不覆盖任何原有样式
   ========================================================================== */

/* ---------------------------------------------------------------- 玩家首页的入口 */
#echoEntryCard{ border-color: rgba(158,203,255,.42); }
#echoEntryCard .inner{ text-align: center; padding: 6px 0 2px; }
.echo-tagline{ color: var(--muted); font-size: 13.5px; margin: 0 0 14px; letter-spacing: 1px; }

.echo-enter{
  position: relative; display: inline-block;
  padding: 15px 46px; border-radius: 999px; cursor: pointer;
  font-size: 21px; font-weight: 800; letter-spacing: 8px; text-indent: 8px;
  color: #fff; font-family: inherit;
  background: linear-gradient(135deg, rgba(158,203,255,.22), rgba(177,77,255,.28));
  border: 1px solid rgba(158,203,255,.42);
  box-shadow: 0 14px 38px rgba(120,80,255,.28), inset 0 0 26px rgba(158,203,255,.1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
  animation: echoBreath 3.4s ease-in-out infinite;
}
.echo-enter:hover{ transform: translateY(-2px); border-color: var(--ice);
  box-shadow: 0 18px 46px rgba(120,80,255,.42), inset 0 0 34px rgba(158,203,255,.18); }
.echo-enter:active{ transform: scale(.98); }
@keyframes echoBreath{
  0%,100%{ box-shadow: 0 14px 38px rgba(120,80,255,.24), inset 0 0 26px rgba(158,203,255,.08); }
  50%    { box-shadow: 0 18px 50px rgba(120,80,255,.44), inset 0 0 34px rgba(158,203,255,.18); }
}
.echo-hint{ color: var(--muted); font-size: 12.5px; letter-spacing: 2px; margin: 12px 0 0; }

/* ---------------------------------------------------------------- 弹窗（复用梦魂的模态遮罩写法） */
.echo-mask{
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 22px;
  background: rgba(6,4,16,.74); backdrop-filter: blur(7px);
}
.echo-mask.show{ display: flex; }
.echo-sheet{
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(38,30,78,.97), rgba(20,16,44,.99));
  border: 1px solid rgba(158,203,255,.18); border-radius: 20px;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 30px 80px rgba(0,0,0,.62);
  color: var(--text);
  animation: echoPop .26s cubic-bezier(.2,.9,.3,1.2);
  text-align: left;
}
@keyframes echoPop{ from{ transform: translateY(16px) scale(.96); opacity: 0 } to{ transform: none; opacity: 1 } }
.echo-sheet h3{ margin: 0 0 6px; font-size: 18px; letter-spacing: 1.5px; }
.echo-sheet .sub{ color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.echo-input-row{ position: relative; margin-top: 16px; }
.echo-input-row input{
  width: 100%; box-sizing: border-box;
  padding: 15px 60px 15px 15px; border-radius: 13px;
  border: 1px solid rgba(158,203,255,.2); background: rgba(11,10,24,.62);
  color: #fff; font-size: 18px; letter-spacing: 2px; font-family: inherit; outline: none;
}
.echo-input-row input:focus{ border-color: var(--ice); box-shadow: 0 0 0 3px rgba(158,203,255,.14); }
.echo-counter{ position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.echo-counter b{ color: var(--ice); }
.echo-err{ color: var(--red, #ff9a9a); min-height: 18px; font-size: 13px; margin: 6px 0 0; }
.echo-done-icon{ font-size: 34px; color: var(--ice); text-align: center; margin-bottom: 2px; }
.echo-sheet.center{ text-align: center; }
@media (prefers-reduced-motion: reduce){
  .echo-enter{ animation: none; }
  .echo-sheet{ animation: none; }
}

/* ---------------------------------------------------------------- 后台：回声墙 */
.echo-switch-row{ display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.echo-switch-row:first-of-type{ border-top: 0; }
.echo-switch-row .t{ font-size: 14.5px; }
.echo-switch-row .d{ color: var(--muted); font-size: 12.5px; }
#echo-list .echo-item{ display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
#echo-list .echo-item .txt{ flex: 1; word-break: break-all; }
#echo-list .echo-item.hidden .txt{ color: var(--muted); text-decoration: line-through; }
#echo-list .echo-item .meta{ color: var(--muted); font-size: 11.5px; white-space: nowrap; }

/* 待审核队列：条目更长（带时间+两个按钮），让它能换行，别挤成一团 */
#echo-pending-list .echo-item{ display: flex; align-items: center; gap: 10px;
  padding: 10px 0; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
#echo-pending-list .echo-item .txt{ flex: 1 1 220px; word-break: break-all; }
#echo-pending-list .echo-item .meta{ flex: 0 0 auto; color: var(--muted);
  font-size: 11.5px; white-space: nowrap; }
#echo-pending-list .echo-item .row{ flex: 0 0 auto; margin: 0; gap: 6px; }
#echo-pending-list .echo-item .btn{ padding: 5px 12px !important; font-size: 12px !important; }

/* ==========================================================================
   弹窗公告 / 新手教程
   ========================================================================== */
.mh-pop-mask{
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,4,16,.78); backdrop-filter: blur(8px);
}
.mh-pop-mask.show{ display: flex; }
.mh-pop{
  width: min(520px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(40,32,84,.98), rgba(20,16,44,.99));
  border: 1px solid rgba(158,203,255,.22); border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  color: var(--text); text-align: left;
  animation: mhPopIn .28s cubic-bezier(.2,.9,.3,1.15);
  overflow: hidden;
}
@keyframes mhPopIn{ from{ transform: translateY(18px) scale(.96); opacity: 0 } to{ transform: none; opacity: 1 } }
.mh-pop-head{
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 10px;
}
.mh-pop-head h3{ margin: 0; flex: 1; font-size: 18px; letter-spacing: 1px; line-height: 1.5; }
.mh-pop-x{
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: rgba(158,203,255,.08); border: 1px solid rgba(158,203,255,.22);
  color: var(--text); font-size: 14px; line-height: 1;
}
.mh-pop-x:hover{ background: rgba(158,203,255,.2); }
.mh-pop-x:disabled{ opacity: .3; cursor: not-allowed; }
.mh-pop-body{
  flex: 1; overflow-y: auto; padding: 4px 20px 6px;
  font-size: 14.5px; line-height: 1.95; color: #e6e1fb;
  -webkit-overflow-scrolling: touch;
}
.mh-pop-body p{ margin: 0 0 10px; }
.mh-pop-body p:last-child{ margin-bottom: 0; }
.mh-pop-lead{
  font-size: 16px !important; font-weight: 700; color: #fff !important;
  letter-spacing: .5px; margin-bottom: 12px !important;
}
.mh-pop-steps{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 0;
}
.mh-pop-steps .btn{ flex: 1; padding: 10px 12px; font-size: 14px; }
.mh-pop-page{ color: var(--muted); font-size: 13px; white-space: nowrap; }
.mh-pop-page b{ color: var(--ice); }
.mh-pop-foot{
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.06);
}
.mh-pop-tip{ min-height: 18px; font-size: 12.5px; color: var(--amber, #ffd9a0); text-align: center; }
.mh-pop-foot .btn{ width: 100%; }
/* 别忘了样式表里 .btn 带 display，会把 [hidden] 顶掉 */
.mh-pop [hidden]{ display: none !important; }
@media (prefers-reduced-motion: reduce){ .mh-pop{ animation: none; } }

/* ---- 后台「弹窗」页签 ---- */
.pop-item{ border-top: 1px solid rgba(255,255,255,.06); padding: 12px 0; }
.pop-item:first-child{ border-top: 0; }
.pop-item .t{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.pop-item .t .badge{ font-size: 11px; }
.pop-item .d{ color: var(--muted); font-size: 12.5px; margin: 4px 0 8px; }
.pop-item .body{ color: #cfc8ea; font-size: 13px; line-height: 1.8; white-space: pre-wrap;
  max-height: 120px; overflow: auto; background: rgba(11,10,24,.45);
  border: 1px solid rgba(158,203,255,.12); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.pop-item .row{ margin: 0; }
.pop-item .row .btn{ flex: 0 0 auto; padding: 6px 14px; font-size: 12.5px; }

