/* ===== 账号 · 云存档 · 断线 · 维护 / 更新 · 邮件 · 公告 · 好友 · 客服 · 推送 (js/account.js, mail.js, friends.js, support.js) ===== */

/* ---- full-screen notices: 维护中 / 需要更新 (same look as the loading screen) ---- */
.boot.blk { z-index: 410; }
.blk-ic { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(255, 211, 90, 0.35)); }
.blk-t { font: 24px var(--font-cn); font-weight: normal; letter-spacing: 2px; color: var(--gold); text-shadow: 0 3px 0 #3a1a04; }
.blk-p { margin: 0; font-size: 14px; line-height: 1.6; color: #e8dcf4; }
.blk-s { margin: 0; font-size: 12px; color: var(--muted); }
.blk-cd { display: grid; gap: 2px; padding: 8px 18px; background: #1e1828; box-shadow: 0 0 0 2px #3a2a4a, 0 0 0 4px #0c0814; }
.blk-cd small { color: var(--muted); font-size: 12px; }
.blk-cd b { font: 22px var(--font-cn); font-weight: normal; color: var(--ember-hi); }
.blk-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }

/* ---- 重连中: a small red tag at the front of the goal bar ---- */
.goal .g-net { display: inline-flex; align-items: center; gap: 2px; margin-right: 5px; padding: 0 4px 0 2px; font: 11px/1.35 var(--font-cn); font-style: normal; color: #fff; background: #b8303a; box-shadow: 0 0 0 1px var(--edge); cursor: pointer; animation: gNet 1.2s steps(2) infinite; }
.goal .g-net img { width: 11px; height: 11px; object-fit: contain; }
@keyframes gNet { 50% { background: #7a1a22; } }
.net-box { display: grid; gap: 8px; }
.net-ic { display: grid; place-items: center; }
.net-big { width: 56px; height: 56px; object-fit: contain; }
.net-box p { margin: 0; text-align: center; }
.net-l { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; color: var(--muted); }

/* ---- 设置 → 账号与云存档 ---- */
.acc-card { gap: 8px; }
.acc-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.acc-ic { width: 34px; height: 36px; object-fit: contain; padding: 3px; background: var(--panel-hi); box-shadow: var(--px); }
.acc-id { display: grid; gap: 1px; min-width: 0; }
.acc-id small { font-size: 11px; color: var(--muted); }
.acc-id b { font: 700 17px var(--font-px); letter-spacing: 1px; color: var(--text); }
.acc-st { justify-self: start; padding: 0 6px; font: 11px/1.5 var(--font-cn); color: #0e2a14; background: var(--good); }
.acc-st.g { color: #2a1206; background: var(--gold); }
.acc-warn { margin: 0; padding: 6px 8px; font-size: 12.5px; line-height: 1.5; color: #ffe2b0; background: rgba(255, 143, 58, 0.12); box-shadow: inset 3px 0 0 var(--ember); }
.acc-warn b { color: var(--ember-hi); }
.acc-binds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.acc-binds.col { grid-template-columns: 1fr; }
.acc-b { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; border: 0; text-align: left; background: var(--panel-hi); box-shadow: var(--px); font: 14px var(--font-cn); color: var(--text); }
.acc-b .acc-bi { grid-row: span 2; width: 20px; height: 20px; object-fit: contain; }
.acc-b small { font: 11px var(--font-body); color: var(--gold); }
.acc-b.on { background: linear-gradient(#1f3a26, #182a1e); box-shadow: var(--px), inset 0 0 0 1px #3f8a52; }
.acc-b.on small { color: var(--good); }
.acc-b.on small::before { content: "✓ "; }
.acc-binds.col .acc-b { grid-template-rows: auto; padding: 9px 10px; font-size: 15px; }
.acc-binds.col .acc-b .acc-bi { grid-row: auto; width: 22px; height: 22px; }
.acc-b.apple { background: #0c0c10; }
.acc-cloud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 8px; background: rgba(74, 138, 232, 0.1); box-shadow: inset 0 0 0 1px rgba(127, 216, 255, 0.25); }
.acc-cb { display: flex; gap: 6px; }
.acc-ci { width: 26px; height: 20px; object-fit: contain; }
.acc-cloud div { display: grid; min-width: 0; }
.acc-cloud b { font: 14px var(--font-cn); font-weight: normal; color: var(--cyan); }
.acc-cloud small { font-size: 11.5px; color: var(--muted); }
.acc-foot { display: flex; justify-content: space-between; }
.acc-foot .link { margin: 0; }
.acc-foot .acc-del { color: #c27a82; }
@media (max-width: 420px) {
  .acc-cloud { grid-template-columns: auto minmax(0, 1fr); }
  .acc-cb { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---- 存档冲突 ---- */
.modal-box.cf-box { width: min(100%, 560px); }
.cf-lead { margin: 0 0 8px; }
.cf-lead b { color: var(--ember-hi); }
.cf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-side { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px; background: var(--plate); box-shadow: var(--px); }
.cf-side.best { background: linear-gradient(#2a2416, #1a1423); box-shadow: var(--px), inset 0 0 0 2px var(--gold); }
.cf-side > small { font-size: 12px; color: var(--muted); }
.cf-side > b { font: 22px var(--font-cn); font-weight: normal; color: var(--gold); }
.cf-side dl { margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.cf-side dl div { display: flex; justify-content: space-between; gap: 6px; }
.cf-side dt { color: var(--muted); }
.cf-side dd { margin: 0; text-align: right; }
.cf-side .btn { margin-top: 6px; }
.cf-rec { position: absolute; top: -8px; right: 6px; padding: 0 6px; font: 11px/1.6 var(--font-cn); font-style: normal; color: #2a1206; background: var(--gold); box-shadow: 0 0 0 1px var(--edge); }

/* ---- e-mail / switching / deleting ---- */
.em-box, .sw-box, .del-box { display: grid; gap: 8px; }
.em-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.em-row .txt { width: 100%; }
label.em-row { grid-template-columns: 5.5em minmax(0, 1fr); }
.del-box label.em-row { grid-template-columns: 8.5em minmax(0, 1fr); }
.sw-to { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; background: var(--plate); box-shadow: var(--px); }
.sw-to div { display: grid; gap: 1px; }
.sw-to small { font-size: 11px; color: var(--muted); }
.sw-to b { font: 700 17px var(--font-px); }
.sw-to span { font-size: 12.5px; color: var(--gold); }
.del-ic { justify-self: center; width: 40px; height: 40px; object-fit: contain; }
.del-box p { margin: 0; }
.del-l { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; color: #ffc0c6; }

/* ---- 我的主页 head: 邮件 ---- */
.pg-r { gap: 6px; }
.pg-mail { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.pg-mi { width: 18px; height: 12px; object-fit: contain; }
.pg-n { position: absolute; top: -7px; right: -7px; min-width: 16px; padding: 0 3px; font: 700 10px/16px var(--font-px); font-style: normal; text-align: center; color: #fff; background: var(--bad); box-shadow: 0 0 0 1px var(--edge); }

/* ---- 邮件 ---- */
.modal-box.ml-sheet { width: min(100%, 540px); }
.ml-box { display: grid; gap: 8px; }
.ml-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-height: 56vh; overflow-y: auto; }
.ml-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px 8px; border: 0; text-align: left; background: var(--plate); box-shadow: var(--px); color: var(--muted); }
.ml-row.unread { background: var(--panel-hi); color: var(--text); }
.ml-row.att { box-shadow: var(--px), inset 3px 0 0 var(--gold); }
.ml-ic { width: 26px; height: 18px; object-fit: contain; }
.ml-row.unread .ml-ic { filter: drop-shadow(0 0 4px rgba(255, 211, 90, 0.6)); }
.ml-mid { display: grid; gap: 2px; min-width: 0; }
.ml-mid b { font: 15px var(--font-cn); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-row:not(.unread) .ml-mid b { color: var(--muted); }
.ml-mid small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-mid small em { font-style: normal; }
.ml-mid small em.soon { color: var(--bad); }
.ml-k { display: inline-block; margin-right: 4px; padding: 0 4px; font: 10.5px/1.5 var(--font-cn); font-style: normal; color: var(--text); background: var(--line); }
.ml-r { display: flex; align-items: center; }
.ml-ats { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; max-width: 120px; }
.ml-at { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 2px; font: 700 11px var(--font-px); color: var(--text); background: rgba(0, 0, 0, 0.3); }
.ml-at img { width: 14px; height: 14px; object-fit: contain; }
.ml-at.q { color: var(--qc); box-shadow: inset 0 0 0 1px var(--qc); font: 11px var(--font-cn); }
.ml-ats.big { max-width: none; justify-content: flex-start; gap: 6px; }
.ml-at.big { padding: 5px 8px 5px 5px; gap: 5px; font-size: 14px; background: var(--plate); box-shadow: var(--px); }
.ml-at.big img { width: 24px; height: 24px; }
.ml-at.big.q { box-shadow: var(--px), inset 0 0 0 2px var(--qc); }
.ml-ats.got { opacity: 0.45; filter: grayscale(0.7); }
.ml-got { font: 11px var(--font-cn); font-style: normal; color: var(--muted); }
.ml-foot { display: flex; justify-content: space-between; gap: 8px; }
.ml-empty { display: grid; justify-items: center; gap: 4px; padding: 24px 8px; color: var(--muted); }
.ml-empty p { margin: 0; font: 16px var(--font-cn); color: var(--text); }
.ml-eic { width: 48px; height: 32px; object-fit: contain; opacity: 0.7; }
.ml-back { margin-right: 4px; }
.ml-sheet .modal-head h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-meta { font-size: 12px; color: var(--muted); }
.ml-meta b { color: var(--text); font-weight: normal; }
.ml-body { padding: 10px; font-size: 14px; line-height: 1.7; background: #f4e8cf; color: #3a2614; box-shadow: var(--px), inset 0 0 0 3px #e2cfa6; max-height: 40vh; overflow-y: auto; }
.ml-body b { color: #8a3a10; }
.ml-body .ml-h { color: #6a2a08; }
.ml-attb h4 { display: flex; align-items: center; gap: 5px; margin: 0 0 5px; font: 14px var(--font-cn); font-weight: normal; color: var(--gold); }
.ml-gi { width: 16px; height: 16px; object-fit: contain; }

/* ---- 公告 ---- */
.modal-box.an-sheet { width: min(100%, 540px); }
.an-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-height: 62vh; overflow-y: auto; }
.an-list li { background: var(--plate); box-shadow: var(--px); }
.an-list li.on { background: var(--panel-hi); }
.an-h { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 8px; border: 0; background: none; text-align: left; color: var(--text); }
.an-h b { font: 15px var(--font-cn); font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-h small { font-size: 11px; color: var(--muted); }
.an-k { padding: 0 5px; font: 11px/1.6 var(--font-cn); font-style: normal; color: #fff; }
.an-k.k-up { background: #2a7a4a; }
.an-k.k-ev { background: #b0601a; }
.an-k.k-mt { background: #a8303a; }
.an-k.k-nw { background: #4a5a9a; }
.an-pin { padding: 0 4px; font: 10px/1.6 var(--font-cn); font-style: normal; color: #2a1206; background: var(--gold); }
.an-b { padding: 2px 10px 10px; font-size: 13.5px; line-height: 1.7; color: #e8dcf4; }
.an-b .ml-h { color: var(--gold); }

/* ---- 好友 ---- */
.so-home-seg { flex-wrap: nowrap; gap: 2px; }
.so-home-seg button { padding-inline: 4px; font-size: 13px; }
.fd-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; }
.fd-hic { width: 38px; height: 32px; object-fit: contain; }
.fd-hl { display: grid; gap: 1px; min-width: 0; }
.fd-hl b { font: 17px var(--font-cn); font-weight: normal; color: var(--gold); }
.fd-hl small { font-size: 12px; color: var(--muted); }
.fd-hl .fd-id { font: 700 13px var(--font-px); color: var(--text); letter-spacing: 1px; }
.fd-hl .link { margin: 0; }
.fd-ha { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fd-tip { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.fd-seg { margin: 8px 0 6px; }
.fd-seg button { flex: 1; position: relative; }
.fd-n { display: inline-block; min-width: 15px; margin-left: 2px; padding: 0 3px; font: 700 10px/15px var(--font-px); font-style: normal; color: #fff; background: var(--bad); }
.fd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fd-lc { padding: 6px; }
.fd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; background: var(--panel); box-shadow: var(--px); }
.fd-mid { display: grid; gap: 1px; min-width: 0; }
.fd-mid small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-r { display: grid; justify-items: end; gap: 3px; }
.fd-on { padding: 0 5px; font: 10.5px/1.5 var(--font-cn); font-style: normal; color: #0e2a14; background: var(--good); }
.fd-off { font-size: 10.5px; color: var(--muted); }
.fd-ok { font-size: 12px; color: var(--good); }
.fd-btns { display: flex; gap: 4px; }
.fd-btns .btn { display: inline-flex; align-items: center; gap: 3px; padding-inline: 7px; }
.fd-gi { width: 13px; height: 13px; object-fit: contain; }
.fd-get { animation: fdGet 1.4s ease-in-out infinite; }
@keyframes fdGet { 50% { filter: brightness(1.25); } }
.fd-empty { display: grid; justify-items: center; gap: 5px; padding: 22px 8px; color: var(--muted); text-align: center; }
.fd-empty p { margin: 0; font: 16px var(--font-cn); color: var(--text); }
.fd-eic { width: 56px; height: 46px; object-fit: contain; opacity: 0.8; }
.fd-foot { display: block; margin-top: 6px; text-align: center; }

/* ---- 设置 → 服务 ---- */
.svc-card h4 { margin: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.svc-b { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 4px 6px; border: 0; background: var(--panel-hi); box-shadow: var(--px); font: 13px var(--font-cn); color: var(--text); }
.svc-b img { width: 24px; height: 20px; object-fit: contain; }
.svc-b:active { transform: translateY(1px); }
.svc-n { position: absolute; top: 3px; right: 4px; min-width: 15px; padding: 0 3px; font: 700 10px/15px var(--font-px); font-style: normal; color: #fff; background: var(--bad); }

/* ---- 客服与反馈 ---- */
.modal-box.cs-sheet { width: min(100%, 540px); }
.cs-box { display: grid; gap: 8px; }
.cs-seg button { flex: 1; position: relative; }
.cs-faq { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 56vh; overflow-y: auto; }
.cs-faq li { background: var(--plate); box-shadow: var(--px); }
.cs-faq li.on { background: var(--panel-hi); }
.cs-faq button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 8px; border: 0; background: none; text-align: left; color: var(--text); }
.cs-faq button b { font: 14.5px var(--font-cn); font-weight: normal; }
.cs-faq button i { font-style: normal; color: var(--muted); }
.cs-q { width: 12px; height: 12px; object-fit: contain; }
.cs-faq p { margin: 0; padding: 0 10px 10px 27px; font-size: 13px; line-height: 1.65; color: #e8dcf4; }
.cs-form { display: grid; gap: 8px; }
.cs-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-types .chip { font-size: 13px; color: var(--muted); }
.cs-types .chip.on { color: #2a1206; background: var(--gold); }
.cs-ta { min-height: 110px; resize: vertical; }
.cs-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cs-tk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 58vh; overflow-y: auto; }
.cs-tk li { display: grid; gap: 4px; padding: 8px; background: var(--plate); box-shadow: var(--px); }
.cs-tkh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-tkh small { flex: 1; font-size: 11px; color: var(--muted); }
.cs-ty { padding: 0 5px; font: 11px/1.6 var(--font-cn); font-style: normal; color: var(--text); background: var(--line); }
.cs-st { padding: 0 5px; font: 11px/1.6 var(--font-cn); font-style: normal; color: #2a1206; background: var(--gold); }
.cs-st.ok { color: #0e2a14; background: var(--good); }
.cs-tk p { margin: 0; font-size: 13px; color: var(--muted); }
.cs-rp { padding: 6px 8px; font-size: 13px; line-height: 1.6; background: rgba(98, 230, 135, 0.08); box-shadow: inset 3px 0 0 var(--good); }
.cs-rp b { color: var(--good); font-weight: normal; }

/* ---- 推送提醒 ---- */
.modal-box.pu-sheet { width: min(100%, 480px); }
.pu-box { display: grid; gap: 8px; }
.pu-ic { justify-self: center; width: 36px; height: 36px; object-fit: contain; }
.pu-box > p { margin: 0; text-align: center; }
.pu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pu-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; background: var(--plate); box-shadow: var(--px); }
.pu-list li div { display: grid; gap: 1px; }
.pu-list li b { font: 14.5px var(--font-cn); font-weight: normal; }
.pu-list li small { font-size: 11.5px; color: var(--muted); }
.pu-list.off { opacity: 0.55; }

/* ---- 顶栏: only the page's own resources + 钻石 (always, with ＋ to 充值) ---- */
.res-chip.gem { order: 9; padding-right: 2px; background: linear-gradient(#3a1430, #24101f); box-shadow: var(--px), inset 0 0 0 1px rgba(192, 64, 160, 0.75); }
.res-plus { display: grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; font: 700 13px/1 var(--font-px); font-style: normal; color: #2a1206; background: var(--gold); box-shadow: 0 0 0 1px var(--edge); cursor: pointer; }
.res-plus:active { transform: translateY(1px); }
.res-more { display: inline-block; order: 10; }

/* ---- messages outside the fight: a pop-up at the bottom (above the dock / a bottom sheet; --tb set by ui.js) ---- */
.tlow { position: fixed; left: 50%; bottom: calc(var(--tb, 14px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 420; width: min(88vw, 420px); pointer-events: none; transition: bottom 0.18s ease; }
.tlow .toasts { position: relative; inset: auto; display: grid; justify-items: center; width: 100%; }
.tlow .toasts:empty { display: none; }
.tlow .toast { position: relative; inset: auto; grid-area: 1 / 1; max-width: 100%; min-height: 36px; padding: 7px 14px; font-size: 14px; line-height: 1.35; background: rgba(22, 15, 32, 0.97); box-shadow: var(--px), 0 8px 22px rgba(0, 0, 0, 0.55); animation: tlowIn 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.tlow .toast.gold-t { box-shadow: var(--px), inset 0 0 0 1px var(--gold), 0 8px 22px rgba(0, 0, 0, 0.55); }
.tlow .toast.bad { box-shadow: var(--px), inset 0 0 0 1px var(--bad), 0 8px 22px rgba(0, 0, 0, 0.55); }
.tlow .toast.out { opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease-in, transform 0.2s ease-in; }
@keyframes tlowIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* ---- 商城: a small switch inside 充值 (贵族特权) and 时装 (锻造台 · 配饰) ---- */
.shop-sub { flex-wrap: nowrap; margin: 0 0 8px; }
.shop-sub button { flex: 1; position: relative; }
.shop-nav button { flex: 1 1 0; min-width: 0; padding: 5px 2px 4px; font-size: 12.5px; white-space: nowrap; }
