* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f6f7fb;
  --card: rgba(255,255,255,.86);
  --card2: #f0f2f8;
  --border: #e2e6ef;
  --text: #2b3245;
  --muted: #7a8299;
  --gold: #e09600;
  --gold-dark: #b87a00;
  --blue: #2f6fe0;
  --green: #1fa866;
  --red: #e04b4b;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  /* 剑网3十七周年庆背景图 + 暖白纱罩保证可读性 */
  background-image:
    linear-gradient(180deg, rgba(253,248,238,.42) 0%, rgba(246,247,251,.72) 340px, rgba(246,247,251,.86)),
    url('bg.jpg');
  background-attachment: scroll, fixed;
  background-size: 100% 100%, cover;
  background-position: center top, center top;
  background-repeat: no-repeat;
  color: var(--text);
  min-height: 100vh;
}
@media (max-width: 768px) {
  /* iOS 对 fixed 背景支持差，回退为随页面滚动 */
  body { background-attachment: scroll, scroll; }
}
.wrap { max-width: none; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(43,50,69,.06);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 20px; flex-wrap: wrap; }
.logo { font-size: 18px; font-weight: 700; color: var(--gold-dark); }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 6px 12px; border-radius: 8px; transition: all .15s;
}
.nav a:hover { color: var(--gold-dark); background: var(--card2); }
.header-btns { display: flex; gap: 8px; }

/* ---------- 导航栏收起（手机端） ---------- */
header { transition: transform .25s ease; }
header.nav-up { transform: translateY(-100%); box-shadow: none; }
/* 收起后不留空白：手机端隐藏时改为 fixed 定位（脱离文档流），正文自动上移补齐 */
@media (max-width: 768px) {
  header.nav-up { position: fixed; left: 0; right: 0; width: 100%; }
}
.nav-toggle {
  position: absolute; right: 10px; bottom: -12px; z-index: 60;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: 11px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 5px rgba(43,50,69,.18);
  display: none; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle:hover { color: var(--gold-dark); }
/* 收起后的边缘缩略条：贴左/右边缘、竖排文字，可拖动换边和上下移动，点击展开导航 */
.nav-dock {
  position: fixed; right: 0; top: 45vh; z-index: 60;
  writing-mode: vertical-rl; letter-spacing: 3px;
  padding: 14px 5px; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.95); cursor: pointer;
  border: 1px solid var(--border); border-right: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 8px rgba(43,50,69,.15);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.nav-dock:active { background: #fff; color: var(--gold-dark); }
.nav-dock.left {
  right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 8px rgba(43,50,69,.15);
}
@media (min-width: 769px) { .nav-dock { display: none !important; } }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
}

/* ---------- 按钮 / 表单 ---------- */
.btn {
  border: none; border-radius: 8px; padding: 8px 16px;
  font-size: 14px; cursor: pointer; font-weight: 600; transition: all .15s;
}
.btn.primary { background: var(--gold); color: #fff; }
.btn.primary:hover { background: var(--gold-dark); }
.btn.ghost { background: #fff; color: var(--muted); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--gold-dark); border-color: var(--gold); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid transparent; }
.btn.danger:hover { border-color: var(--red); background: rgba(224,75,75,.06); }
.btn.small { padding: 4px 10px; font-size: 12px; }
input, select, textarea {
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; width: 100%;
  font-family: inherit;
}
select { cursor: pointer; }
.srv-row { display: flex; flex-direction: column; gap: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- 全服金价 ---------- */
.gold-list { display: flex; flex-direction: column; gap: 2px; }
.gold-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 13px; cursor: default; }
.gold-row:nth-child(odd) { background: rgba(240, 242, 248, .6); }
.gold-row.best { background: rgba(224, 150, 0, .12); border: 1px solid rgba(224, 150, 0, .35); }
.gold-row.hide { display: none; }
.gold-row .g-s { color: var(--text); }
.gold-row .g-p { font-weight: 700; color: var(--gold-dark); }
.gold-row.best .g-p { color: #c2560a; }
.gold-row .g-p i { font-style: normal; font-weight: 400; font-size: 10px; color: var(--muted); margin-left: 3px; }
.gold-more { width: 100%; margin-top: 6px; }

/* ---------- 留言板 ---------- */
.msg-card.featured { border-left: 4px solid var(--gold); }
.msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.msg-name { font-weight: 700; font-size: 14px; }
.msg-content { white-space: pre-wrap; word-break: break-word; }
.msg-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,.6); }
.msg-row.unread { border-color: var(--gold); background: rgba(255, 214, 102, .12); }
.msg-row .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; margin-right: 6px; vertical-align: 1px; }
.msg-row .msg-content { margin: 4px 0; font-size: 14px; }
.msg-form-box textarea { width: 100%; font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; box-sizing: border-box; background: rgba(255,255,255,.8); }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px; align-items: end;
}
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.form-grid .btn { align-self: end; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.row { display: flex; gap: 10px; margin-top: 12px; }

/* ---------- 区块 ---------- */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 20px;
  max-width: none;
  margin: 0 auto;
  padding: 28px 20px 40px;
  align-items: start;
}
main { padding: 0; min-width: 0; }

/* ---------- 顶部：全团本价格表横幅 ---------- */
.price-banner {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding: 14px 18px;
  border-radius: 14px; text-decoration: none;
  background: linear-gradient(100deg, rgba(255,244,214,.94) 0%, rgba(255,236,190,.9) 55%, rgba(255,214,120,.88) 100%);
  border: 1px solid rgba(224,150,0,.35);
  box-shadow: 0 3px 14px rgba(184,122,0,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.price-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,122,0,.24);
  border-color: var(--gold);
}
.pb-icon {
  font-size: 26px; width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(224,150,0,.25);
}
.pb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pb-text b { color: #8f5f00; font-size: 16px; letter-spacing: .5px; }
.pb-text i { color: #a9822e; font-size: 12px; font-style: normal; }
.pb-go {
  flex: none; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 8px 14px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(184,122,0,.3);
}
@media (max-width: 560px) {
  .price-banner { padding: 12px 14px; gap: 10px; }
  .pb-icon { width: 38px; height: 38px; font-size: 21px; }
  .pb-text b { font-size: 14px; }
  .pb-text i { display: none; }
  .pb-go { padding: 6px 11px; font-size: 12px; }
}
.side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: thin; }
#sideRight { scroll-margin-top: 80px; }
.side-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
  box-shadow: 0 2px 8px rgba(43,50,69,.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.side-card h3 { font-size: 15px; color: var(--gold-dark); margin-bottom: 10px; }
.side-add { margin-bottom: 10px; }
.qr-item { border-top: 1px dashed var(--border); padding: 10px 0; font-size: 13px; }
.qr-item:first-child { border-top: 0; padding-top: 0; }
.qr-name { font-weight: 700; }
.qr-meta { color: var(--muted); font-size: 12px; line-height: 1.7; word-break: break-all; }
.qq-link { color: var(--gold-dark); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--gold-dark); cursor: pointer; }
.qq-link:hover { color: #8f5f00; border-bottom-style: solid; }
.groups-toggle {
  display: block; width: 100%; margin-top: 12px; padding: 7px 0;
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  background: rgba(224,150,0,.08); border: 1px dashed var(--gold); border-radius: 8px;
  cursor: pointer; text-align: center;
}
.groups-toggle:hover { background: rgba(224,150,0,.16); }

/* ---------- 交易行物价 ---------- */
.price-search { display: flex; gap: 6px; margin-bottom: 10px; }
.price-search input { flex: 1; min-width: 0; }
.price-cur { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; flex-wrap: wrap; }
.price-cur img { width: 24px; height: 24px; border-radius: 5px; background: #fff; border: 1px solid var(--border); }
.price-cur b { font-size: 14px; }
.price-srv { color: var(--muted); font-size: 12px; }
.price-stat { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.price-stat > div { background: var(--card2, #f8f6f0); border-radius: 8px; padding: 6px 4px; text-align: center; }
.price-stat i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.price-stat b { font-size: 12px; }
.price-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.price-list { display: flex; flex-direction: column; gap: 2px; }
.price-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 6px; background: var(--card2, #f8f6f0); border-radius: 5px; }
.price-row .p-unit { color: #8a6d1a; font-weight: 600; }
.price-row .p-count { color: var(--muted); }
.price-items { display: flex; flex-direction: column; gap: 4px; }
.price-result-list { max-height: 320px; overflow-y: auto; padding-right: 2px; }
.price-dim-list { max-height: 200px; overflow-y: auto; padding-right: 2px; }
.price-item { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 6px; border-radius: 7px; cursor: pointer; }
.price-item.dim { opacity: .55; }
.price-item .dim-tag { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--border, #e5d9bd); border-radius: 5px; padding: 0 4px; white-space: nowrap; }

/* 配方材料价 */
.recipe-box { margin-top: 10px; border-top: 1px dashed var(--border, #e5d9bd); padding-top: 8px; }
.recipe-title { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.recipe-title b { color: #d9534f; }

/* ============ 成就百科（jx3box /cj/ 联动） ============ */
.cj-banner {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 12px; border-radius: 11px; text-decoration: none;
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% -20%, rgba(255,255,255,.28) 0 26px, transparent 27px),
    radial-gradient(circle at 108% 60%, rgba(255,255,255,.16) 0 34px, transparent 35px),
    radial-gradient(circle at -8% 110%, rgba(255,255,255,.12) 0 30px, transparent 31px),
    linear-gradient(135deg, #1e5fae 0%, #2f7bd9 55%, #4d9bef 100%);
  box-shadow: 0 3px 10px rgba(31,95,174,.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cj-banner::after { /* 右侧装饰图案：奖杯水印 */
  content: '🏆'; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  font-size: 44px; opacity: .16; pointer-events: none;
}
.cj-banner:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(31,95,174,.42); }
.cj-banner-icon { font-size: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.cj-banner-txt { display: flex; flex-direction: column; min-width: 0; }
.cj-banner-txt b { font-size: 16px; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cj-banner-txt i { font-style: normal; font-size: 11px; opacity: .85; }
.cj-banner-go {
  margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: 4px 10px;
}
.cj-search { display: flex; gap: 6px; margin-top: 10px; }
/* 渡劫询问金色模块（魔盒 PVE/PVE 成就进度直连） */
.pvx-banner { margin-top: 10px; }
.pvx-banner::after { content: '🔓'; }
.pvx-banner {
  background:
    radial-gradient(circle at 88% -20%, rgba(255,255,255,.30) 0 26px, transparent 27px),
    radial-gradient(circle at 108% 60%, rgba(255,255,255,.18) 0 34px, transparent 35px),
    radial-gradient(circle at -8% 110%, rgba(255,255,255,.14) 0 30px, transparent 31px),
    linear-gradient(135deg, #b8860b 0%, #d4a017 55%, #e8b93c 100%);
  box-shadow: 0 3px 10px rgba(184,134,11,.32);
}
.pvx-banner:hover { box-shadow: 0 5px 14px rgba(184,134,11,.45); }
.cj-search input { flex: 1; min-width: 0; }
.cj-btn { background: #2f7bd9; border-color: #2f7bd9; color: #fff; }
.cj-btn:hover { background: #256abf; }
.cj-items { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.cj-item {
  display: flex; gap: 8px; align-items: flex-start; padding: 6px 7px;
  border: 1px solid var(--border, #e5d9bd); border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.7); transition: background .12s ease, border-color .12s ease;
}
.cj-item:hover { background: #eef5fd; border-color: #7db4e8; }
.cj-item img { width: 30px; height: 30px; border-radius: 6px; flex: none; background: #f3f4f8; }
.cj-item .cj-noicon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 18px; }
.cj-item-main { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.cj-item-main > b { color: var(--text, #2b3245); }
.cj-point {
  font-style: normal; font-size: 11px; font-weight: 600; color: #1e5fae;
  background: rgba(47,123,217,.12); border-radius: 5px; padding: 1px 5px; white-space: nowrap;
}
.cj-desc { font-style: normal; font-size: 11px; color: var(--muted, #8a8674); width: 100%; }
.cj-lv {
  font-style: normal; font-size: 11px; color: #b06a00;
  border: 1px solid #ecc788; border-radius: 5px; padding: 0 4px; white-space: nowrap;
}
.cj-branch { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; font-size: 11px; }
.cj-branch > i { font-style: normal; color: var(--muted, #8a8674); }
.cj-branch > s { text-decoration: none; color: #b9c4d4; }
.cj-step {
  font-style: normal; color: #3a6ea8; background: rgba(47,123,217,.08);
  border-radius: 5px; padding: 1px 5px; cursor: pointer; white-space: nowrap;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}
.cj-step em { font-style: normal; font-size: 10px; color: #7c97b4; margin-left: 2px; }
.cj-step:hover { background: rgba(47,123,217,.2); }
.cj-step.cur { color: #fff; background: #2f7bd9; font-weight: 600; }
.cj-step.cur em { color: rgba(255,255,255,.85); }
.recipe-name { font-size: 12px; font-weight: 700; color: var(--gold-dark); margin: 4px 0 2px; }
.recipe-mat .p-mat { flex: 1; text-align: right; color: var(--text, #333); cursor: pointer; }
.recipe-mat .p-mat i { font-style: normal; color: var(--muted); margin-left: 4px; }
.recipe-mat:hover { background: rgba(224,150,0,.1); }
.recipe-miss { font-size: 11px; color: var(--muted); margin-top: 4px; }
.price-item:hover { background: rgba(224,150,0,.1); }
.price-item img { width: 22px; height: 22px; border-radius: 4px; background: #fff; border: 1px solid var(--border); }
.qr-img {
  width: 100%; max-width: 180px; display: block; margin: 8px auto 0;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: zoom-in;
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; max-width: none; }
  .side { position: static; }
  .qr-img { max-width: 220px; }
}
.sec { margin-bottom: 56px; scroll-margin-top: 80px; }
.sec h2 { font-size: 22px; color: var(--gold-dark); margin-bottom: 6px; }
.sec-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.hdr-edit {
  background: #fff7e6; border: 1px solid var(--gold); border-radius: 6px;
  color: var(--gold-dark); cursor: pointer; font-size: 12px; font-weight: 600;
  padding: 3px 10px; margin-left: 10px; vertical-align: middle;
}
.hdr-edit:hover { background: var(--gold); color: #fff; }
.side-card h3 .hdr-edit { font-size: 11px; padding: 2px 7px; margin-left: 6px; }
.cfg-sec {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px;
}
.cfg-sec h4 { grid-column: 1/-1; font-size: 13px; color: var(--gold-dark); margin: 0; }
.cfg-sec .hint { grid-column: 1/-1; margin: 0; }
.cfg-sec label { font-size: 12px; color: var(--muted); }
/* v77 编辑弹窗：字号/颜色设置 */
.style-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  margin: 10px 0; padding: 10px; border: 1px dashed var(--border); border-radius: 10px;
  background: rgba(224, 150, 0, .04);
}
.style-grid label { font-size: 12px; color: var(--muted); }
.color-row { display: flex; gap: 6px; align-items: center; }
.color-row input[type="color"] {
  width: 36px; height: 30px; padding: 2px; flex: none;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer;
}
.color-row input[type="text"] { flex: 1; min-width: 0; }
.modal-card { max-height: 86vh; overflow-y: auto; }
#configBox .modal-card { max-width: 720px; }
/* 名望实时 */
.fame-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fame-tab {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 20px; font-size: 12px; padding: 3px 10px; cursor: pointer;
}
.fame-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.fame-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--border);
}
.fame-head b { color: var(--gold-dark); font-size: 15px; }
.fame-head span { color: var(--muted); font-size: 12px; }
.fame-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 1.3;
}
.fame-row.current { background: #fff3d6; border: 1px solid var(--gold); }
.fame-time { color: var(--muted); font-size: 12px; min-width: 38px; }
.fame-icon { width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; }
.fame-site { color: var(--text); font-size: 12px; }
.fame-stage { font-weight: 600; color: var(--gold-dark); font-size: 13px; margin-left: auto; text-align: right; }
.fame-live {
  display: block; font-style: normal; font-weight: 400; font-size: 11px; color: #d48806;
}
/* 抓马速递 */
.horse-srv { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.horse-srv span { color: var(--muted); white-space: nowrap; }
.horse-srv select { flex: 1; min-width: 0; max-width: 100%; }
.horse-srv-name { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.horse-srv-name b { color: var(--gold-dark); }
.srv-ok { color: #2e7d32; font-weight: 600; }
.srv-bad { color: #b0b0b0; font-weight: 600; }
.horse-cd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 6px; background: #fafafa;
}
.horse-cd b { color: var(--gold-dark); font-size: 13px; }
.horse-cd span { color: var(--muted); font-size: 11px; }
.horse-list { display: flex; flex-direction: column; gap: 4px; }
.horse-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 8px; font-size: 13px;
}
.horse-row:nth-child(odd) { background: #fafafa; }
.horse-icons { display: flex; gap: 2px; min-width: 46px; }
.horse-icons img { width: 20px; height: 20px; }
.horse-map { font-weight: 600; color: var(--text); }
.horse-time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.admin-box {
  background: #fffaf0; border: 1px dashed var(--gold);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.admin-box h3 { font-size: 15px; margin-bottom: 10px; color: var(--gold-dark); }
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; color: var(--muted); font-size: 14px;
}
.filter-bar select { width: 220px; }

/* ---------- 区块一：7天日历 ---------- */
.days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.day-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; min-height: 120px;
  box-shadow: 0 2px 8px rgba(43,50,69,.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.day-card.today { border-color: var(--gold); background: #fffdf5; }
.day-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.day-date { font-size: 16px; font-weight: 700; }
.day-week { font-size: 12px; color: var(--muted); }
.today-tag { font-size: 11px; color: var(--gold-dark); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; }
.run-item {
  background: var(--card2); border-radius: 8px; padding: 6px 8px;
  margin-bottom: 6px; font-size: 13px; display: flex; gap: 6px; align-items: flex-start;
}
.run-item .t { color: var(--gold-dark); font-weight: 700; white-space: nowrap; }
.run-item .d { flex: 1; line-height: 1.4; }
.run-item .d small { display: block; color: var(--muted); font-size: 11px; }
.run-item .x { color: var(--red); cursor: pointer; border: none; background: none; font-size: 13px; }
.day-empty { color: var(--muted); font-size: 12px; }
/* 区块二：服务器副本一览（自动联动排期） */
.run-list { margin-top: 8px; }
.run-time { color: var(--gold-dark); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(43,50,69,.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge {
  display: inline-block; background: rgba(47,111,224,.1); color: var(--blue);
  border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600;
}
.badge.gold { background: rgba(224,150,0,.12); color: var(--gold-dark); }
.card-title { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.card-meta { color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 报名表单 */
.signup-form { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.signup-form .form-grid { grid-template-columns: 1fr 1fr; }
.signup-form label { margin-bottom: 2px; }
.signup-list { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.signup-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 8px; background: var(--card2);
  border-radius: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.leader-qq { font-size: 13px; color: var(--gold-dark); margin-top: 6px; }

/* ---------- 视频区 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  background: #fff; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 20px; font-size: 14px; cursor: pointer; font-weight: 600;
}
.tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(43,50,69,.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-card .vc-body { padding: 14px; }
.vid { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 0; }
.link { color: var(--blue); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
/* 视频平台跳转按钮（B站/小红书/抖音） */
.plat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.plat-chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.plat-chip:hover { opacity: .85; text-decoration: none; transform: translateY(-1px); }
.p-bili { background: #fb7299; }
.p-xhs { background: #ff2442; }
.p-dy { background: #161823; }
/* 无法内嵌时的占位块 */
.plat-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #1b1f2a, #2a3040); color: #fff;
}
.pp-ico { font-size: 34px; line-height: 1; }
.pp-t { font-weight: 700; font-size: 15px; }
.pp-d { font-size: 12px; opacity: .72; padding: 0 16px; text-align: center; }
/* 手动封面图：铺满视频位 + 播放遮罩，点击跳平台 */
.vid-cover-wrap { position: relative; cursor: pointer; }
.vid-cover-wrap .vid { object-fit: cover; }
.cover-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; padding-left: 4px; box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.85);
  pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.vid-cover-wrap:hover .cover-play { background: rgba(0,0,0,.75); }
/* 团长账号：按平台分的模块头 */
.acc-plat {
  display: flex; align-items: center; gap: 6px;
  margin: 12px 0 6px; padding: 6px 12px;
  border-radius: 8px; color: #fff; font-weight: 700; font-size: 13px;
}
.acc-plat:first-of-type { margin-top: 4px; }
.acc-plat-other { background: var(--muted); }
.acc-empty { margin: 2px 0 4px; }

/* ---------- 弹窗 / 提示 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(43,50,69,.4); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; width: 100%; max-width: 420px;
  box-shadow: 0 10px 40px rgba(43,50,69,.18);
}
.modal-card h3 { color: var(--gold-dark); margin-bottom: 14px; }
.modal-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--text); border: 1px solid var(--gold);
  border-radius: 10px; padding: 10px 20px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(43,50,69,.15);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 200;
}
#toast.show { opacity: 1; }
.hidden { display: none !important; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 36px; border-top: 1px solid var(--border); background: #fff; }

@media (max-width: 560px) {
  .nav { order: 3; width: 100%; }
  .signup-form .form-grid { grid-template-columns: 1fr; }
}

/* ---------- 外观行情 ---------- */
.appear-lowest { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.appear-price { font-size: 26px; font-weight: 700; color: #d8232a; }
.appear-srv { font-size: 13px; color: var(--muted); }
.appear-srv-list { margin: 6px 0 2px; border-top: 1px dashed var(--border); }
.appear-srv-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 2px; border-bottom: 1px dashed var(--border); }
.appear-srv-row b { color: var(--text); }
.appear-trend { margin-top: 10px; }
.appear-pub { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; padding: 7px 10px; border: 1px dashed #d8a300; background: rgba(216, 163, 0, .07); border-radius: 8px; }
.appear-pub .pub-label { font-size: 13px; color: #9a6d00; }
.appear-pub .pub-price { font-size: 19px; font-weight: 700; color: #d8232a; }
.appear-pub .pub-remain { font-size: 12px; color: var(--muted); font-style: normal; }
.appear-trend h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); }
.trend-svg { width: 100%; height: auto; display: block; background: var(--card, #fafbfd); border: 1px solid var(--border); border-radius: 8px; padding: 4px; }

/* ---------- 抽奖 ---------- */
.lotto-prize { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--card, #fff); }
.lotto-prize.drawn { border-color: #d8a300; }
.lotto-prize-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lotto-prize-name { font-weight: 700; font-size: 15px; color: var(--text); }
.lotto-winners { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lotto-admin-row { display: flex; align-items: center; gap: 6px; margin: 5px 0; flex-wrap: wrap; }
.lotto-admin-row input { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.lotto-hist-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--text); }
.lotto-hist-row .qr-meta { margin-left: auto; }

/* ---------- 留言对话与黑名单 ---------- */
.msg-thread { display: flex; flex-direction: column; gap: 5px; margin: 6px 0; }
.msg-bubble { max-width: 88%; padding: 6px 10px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.msg-bubble.theirs { align-self: flex-start; background: var(--card2); border: 1px solid var(--border); border-top-left-radius: 2px; }
.msg-bubble.mine { align-self: flex-end; background: #e8f1ff; border: 1px solid #cfe0f7; border-top-right-radius: 2px; }
.msg-bubble-meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.msg-reply-box { display: flex; gap: 6px; margin: 6px 0 2px; }
.msg-reply-box input { flex: 1; min-width: 0; }
.bl-box { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bl-tag { display: inline-flex; align-items: center; gap: 4px; background: #fdeaea; color: #b03030; border: 1px solid #f3c6c6; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.bl-tag a { cursor: pointer; font-weight: 700; }

/* ---------- 魔盒官方拍卖行情标注 ---------- */
.price-auc { margin: 0 0 6px; font-size: 12px; color: #1a7a3a; }


/* ============================================================
   2026-09-29 改版新增（v78）：单栏布局 + 跳转横幅 + 底部双卡
   ============================================================ */

/* 主区改单栏（侧栏模块已下线，内容全宽与成就查询站一致） */
.layout.single-col { grid-template-columns: minmax(0, 1fr); max-width: none; }

/* 两个跳转模块：成就查询站（蓝）/ 魔盒渡劫咨询（金），排单报名下方一行两个 */
.jump-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 2px 0 18px;
}
.jump-duo .cj-banner { margin-top: 0; padding: 14px 16px; }
@media (max-width: 760px) { .jump-duo { grid-template-columns: 1fr; } }

/* 视频专区直达横幅（教学站） */
.video-jump {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 6px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(100deg, rgba(255,240,238,.95) 0%, rgba(255,228,224,.92) 55%, rgba(255,206,190,.9) 100%);
  border: 1px solid rgba(224,80,60,.35);
  box-shadow: 0 3px 14px rgba(184,60,40,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.video-jump:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,60,40,.24);
  border-color: #e0503c;
}
.vj-icon {
  font-size: 26px; width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(224,80,60,.25);
}
.vj-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.vj-text b { color: #a02c20; font-size: 16px; letter-spacing: .5px; }
.vj-text i { color: #b8503f; font-size: 12px; font-style: normal; }
.vj-go {
  flex: none; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #e05a3c, #b93626);
  padding: 8px 14px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(184,60,40,.3);
}
@media (max-width: 560px) {
  .video-jump { padding: 12px 14px; gap: 10px; }
  .vj-icon { width: 38px; height: 38px; font-size: 21px; }
  .vj-text b { font-size: 14px; }
  .vj-text i { display: none; }
  .vj-go { padding: 6px 11px; font-size: 12px; }
}

/* 底部双卡：各服交流群 + 团长账号（从侧栏挪到页面最下方） */
.bottom-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: none; margin: 0 auto; padding: 6px 20px 34px;
  align-items: start;
}
.bottom-cards .side-card { position: static; max-height: none; overflow: visible; }
@media (max-width: 860px) { .bottom-cards { grid-template-columns: 1fr; } }

/* 归档容器兜底隐藏（HTML 里已有 hidden + 内联样式，这里三保险） */
#legacyArchived { display: none !important; }

/* ===== v79：桌面端隐藏「▲ 收起导航」按钮（header 常驻，避免手动收起后无缩略条可恢复） ===== */
@media (min-width: 769px) { .nav-toggle { display: none !important; } }

/* ===== v79：贴右侧全站导航上线（jx3-sidenav.js 自带样式），锚点滚动预留 sticky header 高度 ===== */
#sec1, #sec3, #sec4, #sec6, #leaderAccounts, #bottomZone { scroll-margin-top: 74px; }

/* ===== v80：导航分工 —— 桌面端顶部导航栏 / 手机端右侧「导航」面板 ===== */
/* v82：全站导航统一 —— 本站导航链接行全端隐藏，统一走 jx3-sidenav.js 注入的顶部导航条（桌面）/右侧面板（手机） */
header .nav { display: none !important; }
/* 手机端导航入口统一为右侧面板：旧的 ▲ 收起按钮与缩略条整体退役（HTML/JS 保留，仅隐藏） */
.nav-toggle { display: none !important; }
.nav-dock { display: none !important; }
/* 桌面端：不出右侧悬浮按钮，导航只走顶部 */
@media (min-width: 769px) {
  #jx3NavFab { display: none !important; }
}
