/* ==================================================================
   云海仙途 · 界面样式
   水墨青金 · 无外部字体/图片依赖
   ================================================================== */

:root {
  --ink: #060a0c;
  --bg: #081013;
  --panel: rgba(13, 23, 26, 0.72);
  --panel-solid: #0d171a;
  --panel-2: rgba(18, 31, 34, 0.9);
  --line: rgba(127, 209, 185, 0.14);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-gold: rgba(216, 176, 106, 0.26);
  --text: #d9e4e0;
  --text-dim: #a9bab5;
  --muted: #71857f;
  --jade: #7fd1b9;
  --jade-deep: #2f6f60;
  --gold: #d8b06a;
  --gold-soft: #e8d3a4;
  --cinnabar: #d0604a;
  --blue: #8fb8e8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans SC", sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(127, 209, 185, 0.18); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(127, 209, 185, 0.32); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 背景 ---------------- */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 16%, rgba(232, 211, 164, 0.75), transparent 60%),
    radial-gradient(1px 1px at 28% 9%, rgba(200, 220, 220, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 41% 22%, rgba(216, 176, 106, 0.5), transparent 60%),
    radial-gradient(1px 1px at 57% 12%, rgba(220, 230, 230, 0.55), transparent 60%),
    radial-gradient(1.6px 1.6px at 68% 20%, rgba(232, 211, 164, 0.45), transparent 60%),
    radial-gradient(1px 1px at 81% 8%, rgba(200, 220, 220, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 91% 24%, rgba(216, 176, 106, 0.4), transparent 60%),
    radial-gradient(1px 1px at 6% 32%, rgba(220, 230, 230, 0.3), transparent 60%),
    radial-gradient(1px 1px at 73% 33%, rgba(220, 230, 230, 0.25), transparent 60%);
  opacity: 0.9;
}

.bg::before {
  content: "";
  position: absolute; right: 13%; top: 9%;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #f7edd4 0%, #e3c68e 44%, #b98d4c 68%, rgba(185, 141, 76, 0) 71%);
  opacity: 0.16;
  filter: blur(1px);
  box-shadow: 0 0 90px 30px rgba(216, 176, 106, 0.1);
}

.bg-mountain {
  position: absolute; left: -5%; right: -5%; bottom: 0;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
}
.bg-mountain.m3 {
  height: 54vh; opacity: 0.62;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><path d='M0 560 L140 430 L250 500 L380 380 L520 520 L640 420 L760 520 L900 400 L1040 520 L1180 430 L1320 530 L1460 450 L1600 540 L1600 900 L0 900 Z' fill='%23162c33'/></svg>");
}
.bg-mountain.m2 {
  height: 42vh; opacity: 0.8;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><path d='M0 690 L180 540 L300 650 L470 500 L620 670 L800 560 L960 690 L1130 580 L1300 700 L1470 600 L1600 690 L1600 900 L0 900 Z' fill='%23102126'/></svg>");
}
.bg-mountain.m1 {
  height: 28vh; opacity: 0.9;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'><path d='M0 800 L220 660 L380 780 L560 640 L760 800 L940 690 L1120 810 L1320 700 L1500 800 L1600 740 L1600 900 L0 900 Z' fill='%230a181d'/></svg>");
}

.bg-mist {
  position: absolute; left: -20%; right: -20%; height: 40vh; bottom: 6vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(127, 209, 185, 0.09), transparent 62%);
  filter: blur(20px);
  animation: drift 46s ease-in-out infinite alternate;
}
.bg-mist.mist2 {
  bottom: 18vh; height: 30vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(216, 176, 106, 0.06), transparent 60%);
  animation-duration: 63s; animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translateX(-4%) scale(1); }
  to { transform: translateX(5%) scale(1.08); }
}

.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(10, 22, 26, 0) 38%, rgba(3, 7, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 9, 11, 0.6), rgba(4, 9, 11, 0.04) 28%, rgba(3, 6, 8, 0.62));
}

/* ---------------- 登录 ---------------- */

.login {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeIn 0.6s ease;
}

.login-card {
  position: relative;
  width: min(470px, 94vw);
  padding: 46px 42px 34px;
  background:
    linear-gradient(180deg, rgba(20, 35, 38, 0.92), rgba(9, 17, 20, 0.96));
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}
.login-card::before, .login-card::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.login-card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.login-card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.seal {
  position: absolute; top: 18px; right: 20px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(208, 96, 74, 0.65);
  color: var(--cinnabar);
  font-family: var(--serif); font-size: 22px;
  transform: rotate(6deg);
  opacity: 0.9;
}

.brand {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  font-weight: 500;
  background: linear-gradient(180deg, #f2e6c8, #d8b06a 55%, #9a7440);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(216, 176, 106, 0.16);
}
.brand-sub {
  margin-top: 6px; margin-bottom: 30px;
  color: var(--muted); font-size: 12px; letter-spacing: 0.5em; text-indent: 0.5em;
}

.login-form { text-align: left; }
.field-label {
  display: block; margin: 0 0 8px;
  color: var(--text-dim); font-size: 12px; letter-spacing: 0.18em;
}
.field-label .muted { letter-spacing: 0; }

.input {
  width: 100%;
  padding: 11px 13px;
  background: rgba(3, 8, 10, 0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #4f625e; }
.input:focus { border-color: rgba(127, 209, 185, 0.55); box-shadow: 0 0 0 3px rgba(127, 209, 185, 0.08); }

.root-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 22px; }
.root-card {
  padding: 12px 4px 10px;
  background: rgba(6, 12, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  transition: 0.18s;
}
.root-card .rc {
  display: block; margin: 0 auto 6px;
  width: 34px; height: 34px; line-height: 32px;
  border-radius: 50%; border: 1px solid currentColor;
  font-family: var(--serif); font-size: 18px;
}
.root-card .rn { font-size: 12px; color: var(--text-dim); }
.root-card:hover { transform: translateY(-2px); border-color: rgba(127, 209, 185, 0.4); }
.root-card.on { border-color: var(--gold); background: rgba(216, 176, 106, 0.08); box-shadow: 0 0 20px rgba(216, 176, 106, 0.1); }
.root-card.on .rn { color: var(--gold-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(180deg, rgba(127, 209, 185, 0.13), rgba(127, 209, 185, 0.05));
  border: 1px solid rgba(127, 209, 185, 0.22);
  border-radius: 6px;
  color: var(--text);
  letter-spacing: 0.08em;
  transition: 0.16s ease;
  user-select: none;
}
.btn:hover:not(:disabled) {
  border-color: rgba(127, 209, 185, 0.55);
  box-shadow: 0 0 18px rgba(127, 209, 185, 0.14);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, #2f7a68, #1d4c42);
  border-color: #3f8f7b;
  color: #eafff8;
  box-shadow: 0 6px 20px rgba(47, 122, 104, 0.25);
}
.btn.primary:hover:not(:disabled) { box-shadow: 0 8px 26px rgba(64, 160, 136, 0.4); }
.btn.gold {
  background: linear-gradient(180deg, #6b5228, #44331a);
  border-color: rgba(216, 176, 106, 0.6);
  color: #f6e8c8;
}
.btn.danger {
  background: linear-gradient(180deg, rgba(208, 96, 74, 0.22), rgba(208, 96, 74, 0.06));
  border-color: rgba(208, 96, 74, 0.45);
  color: #f0b6a8;
}
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 13px; font-size: 15px; letter-spacing: 0.4em; text-indent: 0.4em; }
.btn.small { padding: 5px 11px; font-size: 12px; letter-spacing: 0.04em; }
.btn.block { width: 100%; }

.login-note { margin-top: 14px; color: var(--muted); font-size: 11.5px; text-align: center; letter-spacing: 0.05em; }
.login-note.err { color: #e08a78; }

/* ---------------- 主布局 ---------------- */

.game {
  position: relative; z-index: 10;
  height: 100vh;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 344px;
  grid-template-rows: 66px minmax(0, 1fr);
  grid-template-areas:
    "top top top"
    "nav page rail";
  animation: fadeIn 0.5s ease;
}

.topbar {
  grid-area: top;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(8, 15, 18, 0.92), rgba(8, 15, 18, 0.55));
  border-bottom: 1px solid var(--line-gold);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-name { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; white-space: nowrap; }
.who-realm {
  color: var(--gold-soft); font-size: 12px; letter-spacing: 0.12em;
  padding: 2px 8px; border: 1px solid rgba(216, 176, 106, 0.28); border-radius: 3px;
  white-space: nowrap;
}
.root-chip {
  display: inline-block;
  width: 20px; height: 20px; line-height: 18px; text-align: center;
  border-radius: 50%; border: 1px solid currentColor;
  font-size: 11px; font-family: var(--serif);
  vertical-align: middle;
}

.exp-wrap { min-width: 0; }
.exp-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.exp-num { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.exp-rate { margin-left: auto; color: var(--jade); font-variant-numeric: tabular-nums; }

.bar {
  position: relative; height: 7px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2f6f60, var(--jade) 70%, var(--gold));
  border-radius: 99px;
  transition: width 0.25s linear;
  box-shadow: 0 0 10px rgba(127, 209, 185, 0.5);
}
.bar.thin { height: 4px; }
.bar.hp > i { background: linear-gradient(90deg, #8a2f28, #d0604a 70%, #e8a08a); box-shadow: 0 0 10px rgba(208, 96, 74, 0.4); }
.bar.mon > i { background: linear-gradient(90deg, #6d2a3a, #b4526a); }

.res { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.res-item { text-align: right; white-space: nowrap; }
.res-item .k { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.res-item .v { font-family: var(--serif); font-size: 16px; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* ---------------- 左侧导航 ---------------- */

.sidenav {
  grid-area: nav;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 15, 18, 0.5), rgba(8, 15, 18, 0.2));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 0;
  background: none; border: 0; border-left: 2px solid transparent;
  color: var(--muted);
  transition: 0.18s;
}
.nav-item .ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  font-family: var(--serif); font-size: 19px;
  background: rgba(255, 255, 255, 0.015);
  transition: 0.18s;
}
.nav-item .lb { font-size: 11px; letter-spacing: 0.16em; }
.nav-item:hover { color: var(--text-dim); }
.nav-item:hover .ic { border-color: rgba(127, 209, 185, 0.3); }
.nav-item.on { color: var(--jade); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(127, 209, 185, 0.07), transparent 70%); }
.nav-item.on .ic { border-color: rgba(127, 209, 185, 0.45); box-shadow: 0 0 16px rgba(127, 209, 185, 0.12), inset 0 0 12px rgba(127, 209, 185, 0.06); }

/* ---------------- 页面通用 ---------------- */

.page {
  grid-area: page;
  overflow-y: auto;
  padding: 22px 26px 40px;
  scroll-behavior: smooth;
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.page-head h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--gold-soft);
  text-shadow: 0 0 30px rgba(216, 176, 106, 0.18);
}
.page-sub { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.page-side { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }

.panel {
  background: linear-gradient(180deg, rgba(16, 28, 31, 0.82), rgba(9, 17, 20, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0, 0, 0, 0.22);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 {
  font-family: var(--serif); font-weight: 500; font-size: 14px;
  letter-spacing: 0.2em; color: var(--text-dim);
}
.panel-head .hint { font-size: 11px; color: var(--muted); }

.tag {
  display: inline-block; padding: 1px 6px; margin-left: 6px;
  font-size: 10px; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 3px; color: var(--muted);
  vertical-align: 1px;
}
.tag.gold { border-color: rgba(216, 176, 106, 0.4); color: var(--gold); }
.tag.jade { border-color: rgba(127, 209, 185, 0.4); color: var(--jade); }
.tag.red { border-color: rgba(208, 96, 74, 0.4); color: #e08a78; }

.tile {
  position: relative;
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.22));
  color: var(--tc, #9fb0aa);
  cursor: pointer;
  transition: 0.16s ease;
  overflow: hidden;
}
.tile .g { font-family: var(--serif); font-size: 20px; line-height: 1; text-shadow: 0 0 12px currentColor; opacity: 0.92; }
.tile .q { position: absolute; right: 3px; bottom: 1px; font-size: 10px; color: #d6e2de; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.tile:hover { transform: translateY(-2px); border-color: var(--tc); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 14px color-mix(in srgb, var(--tc) 22%, transparent); }
.tile.t1 { --tc: #9fb0aa; }
.tile.t2 { --tc: #7fd1b9; }
.tile.t3 { --tc: #8fb8e8; }
.tile.t4 { --tc: #d8b06a; }
.tile.lg { width: 56px; }
.tile.xl { width: 76px; }
.tile.xl .g { font-size: 30px; }

/* ---------------- 修炼 ---------------- */

.cult-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 420px); gap: 22px; align-items: start; }

.cult-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px 26px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(127, 209, 185, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(13, 25, 28, 0.7), rgba(8, 15, 18, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cult-stage::after {
  content: "道"; position: absolute; right: 18px; bottom: 4px;
  font-family: var(--serif); font-size: 120px; color: rgba(216, 176, 106, 0.035);
  pointer-events: none;
}

.cult-ring {
  --p: 0;
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from -90deg, #7fd1b9 calc(var(--p) * 1turn), rgba(127, 209, 185, 0.06) 0);
  box-shadow: 0 0 60px rgba(127, 209, 185, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.4);
  transition: background 0.3s linear;
}
.cult-ring::before {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #143034, #091417 68%);
  border: 1px solid rgba(127, 209, 185, 0.22);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}
.cult-ring::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px dashed rgba(216, 176, 106, 0.3);
  animation: spin 52s linear infinite;
}
.cult-ring.meditating { box-shadow: 0 0 80px rgba(127, 209, 185, 0.24), inset 0 0 40px rgba(0, 0, 0, 0.4); }
.cult-ring.meditating::after { animation-duration: 18s; border-color: rgba(216, 176, 106, 0.55); }
.cult-ring.meditating .cult-orb { animation: breathe 3.6s ease-in-out infinite; }

.cult-inner { position: relative; z-index: 2; text-align: center; }
.cult-orb {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #d6fff3, #7fd1b9 38%, #2f6f60 72%, #123c34);
  box-shadow: 0 0 34px rgba(127, 209, 185, 0.55);
  opacity: 0.9;
}
.cult-realm { font-family: var(--serif); font-size: 22px; letter-spacing: 0.18em; color: var(--gold-soft); }
.cult-exp { margin-top: 6px; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cult-rate { margin-top: 2px; font-size: 12px; color: var(--jade); font-variant-numeric: tabular-nums; }

.cult-actions { display: flex; gap: 10px; margin-top: 26px; z-index: 2; }
.cult-actions .btn { min-width: 128px; }

.buff-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; z-index: 2; }
.buff {
  padding: 4px 10px; border-radius: 99px; font-size: 11.5px;
  border: 1px solid rgba(127, 209, 185, 0.3);
  color: var(--jade);
  background: rgba(127, 209, 185, 0.06);
  font-variant-numeric: tabular-nums;
}

.side-stack { display: flex; flex-direction: column; gap: 16px; }

.break-panel { padding: 16px; }
.break-panel .chance { font-family: var(--serif); font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums; }
.break-panel .chance small { font-size: 13px; color: var(--muted); }
.break-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.break-note { color: var(--muted); font-size: 11.5px; line-height: 1.7; }

.realm-ladder { padding: 6px 0; }
.realm-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  color: var(--muted); font-size: 12.5px;
  border-left: 2px solid transparent;
}
.realm-step .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.realm-step.done { color: var(--jade); }
.realm-step.done .dot { background: var(--jade); box-shadow: 0 0 8px var(--jade); }
.realm-step.now { color: var(--gold-soft); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(216, 176, 106, 0.08), transparent); }
.realm-step.now .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.realm-step .need { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }

.stat-line { display: flex; justify-content: space-between; padding: 7px 16px; font-size: 12.5px; border-bottom: 1px dashed rgba(255, 255, 255, 0.04); }
.stat-line:last-child { border-bottom: 0; }
.stat-line .k { color: var(--muted); }
.stat-line .v { color: var(--text); font-variant-numeric: tabular-nums; }
.stat-line .v.jade { color: var(--jade); }

.note-strip {
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px; padding: 12px 18px;
  background: linear-gradient(90deg, rgba(216, 176, 106, 0.04), rgba(127, 209, 185, 0.02));
}
.note-strip .note-k {
  font-family: var(--serif); font-size: 12px; letter-spacing: 0.3em;
  color: var(--gold); white-space: nowrap;
}
.note-strip .note-t { font-size: 11.5px; color: var(--muted); }
.note-strip .note-q {
  margin-left: auto; font-family: var(--serif); font-size: 13px;
  color: rgba(216, 176, 106, 0.55); letter-spacing: 0.1em; white-space: nowrap;
}

/* ---------------- 洞府 ---------------- */

.zone-list { display: flex; flex-direction: column; gap: 16px; }
.zone-card { padding: 0; overflow: hidden; }
.zone-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(127, 209, 185, 0.05), transparent 70%);
  border-bottom: 1px solid var(--line-soft);
}
.zone-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.12em; color: var(--gold-soft); }
.zone-meta { color: var(--muted); font-size: 11.5px; }
.zone-desc { margin-left: auto; max-width: 46%; color: var(--muted); font-size: 11.5px; text-align: right; line-height: 1.6; }
.zone-card.locked { opacity: 0.62; }
.zone-card.locked .zone-head { background: rgba(0, 0, 0, 0.2); }

.node-list { padding: 6px 10px 10px; }
.node-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 8px;
  transition: 0.16s;
}
.node-row + .node-row { border-top: 1px dashed rgba(255, 255, 255, 0.045); }
.node-row:hover { background: rgba(127, 209, 185, 0.03); }
.node-row.active { background: linear-gradient(90deg, rgba(127, 209, 185, 0.1), transparent 80%); }
.node-row .tile { width: 44px; flex: 0 0 44px; }
.node-main { flex: 1; min-width: 0; }
.node-name { font-size: 13.5px; color: var(--text); }
.node-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.node-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.node-progress .bar { flex: 1; }
.node-progress .num { font-size: 10px; color: var(--jade); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.node-row .btn { flex: 0 0 auto; }

.skill-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.skill-box { padding: 11px 13px; }
.skill-box .sn { font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; }
.skill-box .sn b { color: var(--gold-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
.skill-box .bar { margin-top: 7px; }
.skill-box .se { margin-top: 4px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- 秘境 ---------------- */

.monster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; }
.monster-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 33, 0.8), rgba(9, 16, 19, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.18s;
}
.monster-card:hover { border-color: rgba(127, 209, 185, 0.35); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
.monster-card > .btn { align-self: flex-start; min-width: 96px; padding-left: 22px; padding-right: 22px; }
.monster-top { display: flex; align-items: center; gap: 12px; }
.mon-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 8px; border: 1px solid rgba(208, 96, 74, 0.28);
  background: radial-gradient(circle at 50% 30%, rgba(208, 96, 74, 0.16), rgba(0, 0, 0, 0.2));
  font-family: var(--serif); font-size: 22px; color: #e0a294;
}
.monster-name { font-size: 15px; font-family: var(--serif); letter-spacing: 0.08em; }
.monster-lv { font-size: 11px; color: var(--muted); }
.monster-desc { font-size: 11.5px; color: var(--muted); line-height: 1.65; min-height: 36px; }
.monster-stats { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; }
.monster-stats b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.threat { position: absolute; top: 12px; right: 12px; font-size: 10px; letter-spacing: 0.1em; }
.threat.easy { color: var(--jade); }
.threat.even { color: var(--gold); }
.threat.hard { color: #e08a78; }

/* ---------------- 炼器 / 炼丹 ---------------- */

.craft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.recipe {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(16, 28, 31, 0.8), rgba(9, 16, 19, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.recipe.locked { opacity: 0.6; }
.recipe-top { display: flex; align-items: center; gap: 12px; }
.recipe-top .tile { width: 48px; flex: 0 0 48px; }
.recipe-name { font-size: 14.5px; font-family: var(--serif); letter-spacing: 0.06em; }
.recipe-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mat {
  padding: 3px 8px; font-size: 11px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.mat.miss { color: #e08a78; border-color: rgba(208, 96, 74, 0.35); background: rgba(208, 96, 74, 0.06); }
.recipe-actions { display: flex; gap: 8px; margin-top: auto; }
.recipe-actions .btn { flex: 1; padding: 6px 8px; font-size: 12px; }

/* ---------------- 坊市 ---------------- */

.mkt-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.mkt-search { flex: 1; min-width: 180px; max-width: 320px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 11px; font-size: 11.5px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  transition: 0.15s;
}
.chip:hover { color: var(--text-dim); border-color: rgba(127, 209, 185, 0.3); }
.chip.on { color: var(--jade); border-color: rgba(127, 209, 185, 0.5); background: rgba(127, 209, 185, 0.08); }

.mkt-table { overflow: hidden; }
.mkt-head, .mkt-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 88px 88px 88px 92px;
  align-items: center; gap: 10px;
  padding: 8px 14px;
}
.mkt-head { color: var(--muted); font-size: 10.5px; letter-spacing: 0.14em; border-bottom: 1px solid var(--line-soft); }
.mkt-head .num, .mkt-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.mkt-row { border-bottom: 1px dashed rgba(255, 255, 255, 0.04); cursor: pointer; transition: 0.14s; }
.mkt-row:last-child { border-bottom: 0; }
.mkt-row:hover { background: rgba(127, 209, 185, 0.05); }
.mkt-row .tile { width: 34px; }
.mkt-row .name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-row .name small { color: var(--muted); font-size: 10px; margin-left: 6px; }
.mkt-row .sell { color: #e0a294; }
.mkt-row .buy { color: var(--jade); }
.mkt-row .last { color: var(--text-dim); }
.mkt-row .act { text-align: right; }
.mkt-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 12px; }

/* 坊市详情弹窗 */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.book-row { display: flex; justify-content: space-between; padding: 3px 6px; border-radius: 3px; }
.book-row.sell { color: #e0a294; }
.book-row.buy { color: var(--jade); }
.book-row:hover { background: rgba(255, 255, 255, 0.04); }
.book-head { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; margin-bottom: 4px; }
.spark { width: 100%; height: 54px; margin-top: 6px; }

.trade-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.trade-form .full { grid-column: span 2; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { flex: 1; padding: 7px; background: transparent; border: 0; color: var(--muted); font-size: 12px; }
.seg button.on { background: rgba(127, 209, 185, 0.12); color: var(--jade); }
.seg button.on.sell { background: rgba(208, 96, 74, 0.14); color: #e0a294; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; }
.hint-line { font-size: 11px; color: var(--muted); }

.my-orders { margin-top: 16px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px dashed rgba(255, 255, 255, 0.05); font-size: 12px; }
.order-row .side { width: 34px; font-size: 11px; }
.order-row .side.sell { color: #e0a294; }
.order-row .side.buy { color: var(--jade); }
.order-row .grow { flex: 1; }
.order-row .num { font-variant-numeric: tabular-nums; color: var(--text-dim); }

/* ---------------- 角色 ---------------- */

.char-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.char-card { padding: 22px; text-align: center; }
.char-avatar {
  width: 96px; height: 96px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 40px;
  border: 1px solid var(--line-gold);
  background: radial-gradient(circle at 50% 32%, rgba(216, 176, 106, 0.16), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 40px rgba(216, 176, 106, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.char-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; color: var(--gold-soft); }
.char-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.char-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.counter { padding: 8px; border: 1px solid var(--line-soft); border-radius: 6px; }
.counter .k { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.counter .v { font-family: var(--serif); font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }

.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.equip-slot {
  padding: 14px; text-align: center;
  border: 1px dashed var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  min-height: 132px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.equip-slot.filled { border-style: solid; border-color: rgba(216, 176, 106, 0.24); }
.equip-slot .tile { width: 52px; }
.equip-slot .slot-name { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.equip-slot .item-name { font-size: 12.5px; color: var(--gold-soft); }
.equip-slot .stats { font-size: 10.5px; color: var(--jade); }

/* ---------------- 仙榜 ---------------- */

.board-table { width: 100%; border-collapse: collapse; }
.board-table th, .board-table td { padding: 10px 14px; text-align: left; font-size: 12.5px; }
.board-table th { color: var(--muted); font-weight: 400; font-size: 10.5px; letter-spacing: 0.14em; border-bottom: 1px solid var(--line-soft); }
.board-table tr + tr td { border-top: 1px dashed rgba(255, 255, 255, 0.04); }
.board-table .rank { width: 60px; font-family: var(--serif); color: var(--gold); }
.board-table .me { background: rgba(127, 209, 185, 0.05); }
.board-table .dot-online { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); margin-right: 6px; }
.board-table .dot-off { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3c4a47; margin-right: 6px; }

/* ---------------- 右侧栏---------------- */

.rail {
  grid-area: rail;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 16px;
  min-height: 0;
  border-left: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 15, 18, 0.45), rgba(8, 15, 18, 0.25));
}

.bag-panel { flex: 0 0 auto; max-height: 300px; display: flex; flex-direction: column; }
.bag-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 10px; overflow-y: auto;
}
.bag-grid .tile { width: 100%; }
.bag-empty { grid-column: span 6; padding: 24px 0; text-align: center; color: var(--muted); font-size: 11.5px; }

.feed-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.tab {
  flex: 1; padding: 9px; background: none; border: 0;
  color: var(--muted); font-size: 12px; letter-spacing: 0.16em;
  border-bottom: 2px solid transparent;
}
.tab.on { color: var(--gold-soft); border-bottom-color: var(--gold); }

.feed { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
.log-line { font-size: 11.5px; color: var(--text-dim); line-height: 1.55; padding-left: 9px; position: relative; }
.log-line::before { content: ""; position: absolute; left: 0; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.log-line.good { color: var(--jade); }
.log-line.good::before { background: var(--jade); }
.log-line.gold { color: var(--gold); }
.log-line.gold::before { background: var(--gold); }
.log-line.bad { color: #e08a78; }
.log-line.bad::before { background: #e08a78; }
.log-line time { color: #4e615d; font-size: 10px; margin-right: 5px; font-variant-numeric: tabular-nums; }

.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; padding: 8px 12px; font-size: 12px; }
.chat-line { margin-bottom: 6px; line-height: 1.5; word-break: break-word; }
.chat-line .cn { color: var(--gold-soft); margin-right: 5px; }
.chat-line .cn.sys { color: var(--muted); }
.chat-line .ct { color: var(--text-dim); }
.chat-line.sys .ct { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line-soft); }
.chat-input .input { padding: 7px 9px; font-size: 12px; }

/* ---------------- 战斗层---------------- */

.battle-layer {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(30, 12, 12, 0.55), rgba(2, 5, 7, 0.9));
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
  padding: 20px;
}
.battle-box {
  width: min(780px, 96vw);
  background: linear-gradient(180deg, rgba(22, 34, 36, 0.96), rgba(8, 14, 16, 0.98));
  border: 1px solid rgba(216, 176, 106, 0.28);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.battle-top { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; letter-spacing: 0.16em; }
.battle-arena {
  display: grid; grid-template-columns: 1fr 90px 1fr;
  align-items: center; gap: 8px;
  padding: 26px 24px 18px;
  background: radial-gradient(ellipse at 50% 20%, rgba(208, 96, 74, 0.08), transparent 60%);
}
.fighter { text-align: center; position: relative; }
.fight-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.1em; color: var(--gold-soft); }
.fight-realm { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.fight-orb {
  width: 74px; height: 74px; margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px;
  border: 1px solid rgba(127, 209, 185, 0.3);
  background: radial-gradient(circle at 50% 32%, rgba(127, 209, 185, 0.16), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 30px rgba(127, 209, 185, 0.12);
}
.fight-orb.mon { border-color: rgba(208, 96, 74, 0.32); background: radial-gradient(circle at 50% 32%, rgba(208, 96, 74, 0.18), rgba(0, 0, 0, 0.3)); color: #e0a294; box-shadow: 0 0 30px rgba(208, 96, 74, 0.12); }
.hpbar { max-width: 230px; margin: 0 auto; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.hpbar > i { display: block; height: 100%; width: 100%; transition: width 0.25s ease; }
.hpbar.p > i { background: linear-gradient(90deg, #2f6f60, var(--jade)); box-shadow: 0 0 12px rgba(127, 209, 185, 0.5); }
.hpbar.m > i { background: linear-gradient(90deg, #7a2c25, #d0604a); box-shadow: 0 0 12px rgba(208, 96, 74, 0.4); }
.hpnum { max-width: 230px; margin: 5px auto 0; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vs { text-align: center; font-family: var(--serif); color: rgba(216, 176, 106, 0.5); font-size: 22px; letter-spacing: 0.1em; }
.vs small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.1em; margin-top: 4px; }

.battle-log {
  height: 132px; overflow-y: auto;
  padding: 10px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; line-height: 1.7;
  display: flex; flex-direction: column; gap: 2px;
}
.bl { color: var(--text-dim); }
.bl.p { color: var(--jade); }
.bl.m { color: #e0a294; }
.bl.sys { color: var(--muted); font-style: italic; }
.battle-actions { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.battle-actions .btn { flex: 1; }

.float-dmg {
  position: absolute; left: 50%; top: 26%;
  transform: translateX(-50%);
  font-family: var(--serif); font-size: 22px; color: #ffd9a8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 180, 120, 0.5);
  pointer-events: none;
  animation: floatUp 0.95s ease-out forwards;
}
.float-dmg.crit { font-size: 30px; color: #ffb27a; }
.float-dmg.hurt { color: #ff9a8a; }

.battle-box.shake { animation: shake 0.28s ease; }

/* ---------------- 弹窗 / 提示 ---------------- */

.modal-layer {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(2, 5, 7, 0.72);
  backdrop-filter: blur(4px);
  padding: 20px;
  animation: fadeIn 0.18s ease;
}
.modal {
  width: min(760px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(19, 32, 35, 0.98), rgba(8, 15, 18, 0.99));
  border: 1px solid rgba(216, 176, 106, 0.26);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: rise 0.22s ease;
}
.modal.narrow { width: min(520px, 94vw); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; color: var(--gold-soft); font-weight: 500; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 18px 20px 22px; }
.modal-x {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); font-size: 15px;
}
.modal-x:hover { color: var(--text); border-color: rgba(208, 96, 74, 0.5); }

.tooltip {
  position: fixed; z-index: 100;
  max-width: 300px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(16, 28, 31, 0.98), rgba(7, 13, 15, 0.99));
  border: 1px solid rgba(127, 209, 185, 0.28);
  border-radius: 7px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  font-size: 12px; line-height: 1.6;
  pointer-events: none;
}
.tip-title { font-family: var(--serif); font-size: 14px; letter-spacing: 0.06em; }
.tip-sub { color: var(--muted); font-size: 10.5px; margin-bottom: 5px; }
.tip-desc { color: var(--text-dim); font-size: 11.5px; }
.tip-stat { color: var(--jade); font-size: 11.5px; }
.tip-price { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, 0.08); color: var(--gold); font-size: 11px; }

.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 9px 18px;
  background: rgba(10, 20, 23, 0.95);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12.5px; color: var(--text-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease, toastOut 0.4s ease 2.6s forwards;
}
.toast.good { border-color: rgba(127, 209, 185, 0.45); color: var(--jade); }
.toast.bad { border-color: rgba(208, 96, 74, 0.45); color: #e08a78; }
.toast.gold { border-color: rgba(216, 176, 106, 0.45); color: var(--gold); }

/* ---------------- 动画 ---------------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 34px rgba(127, 209, 185, 0.55); }
  50% { transform: scale(1.12); box-shadow: 0 0 56px rgba(127, 209, 185, 0.85); }
}
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

.rail-toggle {
  display: none;
  position: fixed; right: 14px; bottom: 74px; z-index: 45;
  width: 48px; height: 48px; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: rgba(10, 20, 23, 0.92);
  color: var(--gold); font-family: var(--serif); font-size: 19px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(216, 176, 106, 0.12);
}
.rail-toggle:active { transform: scale(0.94); }
/* ---------------- 响应式---------------- */

@media (max-width: 1240px) {
  .game { grid-template-columns: 84px minmax(0, 1fr) 304px; }
  .topbar { grid-template-columns: 210px minmax(0, 1fr) 290px; gap: 16px; }
  .cult-ring { width: 240px; height: 240px; }
  .zone-desc { display: none; }
  .skill-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .game { grid-template-columns: 78px minmax(0, 1fr); grid-template-areas: "top top" "nav page"; }
  .rail {
    display: flex;
    position: fixed; top: 66px; right: 0; bottom: 0;
    width: min(360px, 92vw);
    z-index: 44;
    background: linear-gradient(180deg, rgba(10, 19, 22, 0.98), rgba(7, 13, 15, 0.99));
    transform: translateX(103%);
    transition: transform 0.26s ease;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
  }
  #game.rail-open .rail { transform: none; }
  #game.rail-open .rail-backdrop { display: block; }
  .rail-toggle { display: grid; }
  .rail-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 43;
    background: rgba(2, 5, 7, 0.45);
    backdrop-filter: blur(1px);
  }
  .rail .bag-panel { max-height: 46vh; }
  .cult-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: 180px minmax(0, 1fr); }
  .res { display: none; }
}

@media (max-width: 700px) {
  .game {
    grid-template-columns: 1fr;
    grid-template-rows: 62px minmax(0, 1fr) 58px;
    grid-template-areas: "top" "page" "nav";
  }
  .sidenav { flex-direction: row; justify-content: space-around; padding: 0; border-right: 0; border-top: 1px solid var(--line-soft); }
  .nav-item { flex: 1; padding: 6px 0; border-left: 0; border-top: 2px solid transparent; }
  .nav-item .ic { width: 30px; height: 30px; font-size: 15px; }
  .nav-item .lb { font-size: 10px; letter-spacing: 0.05em; }
  .nav-item.on { border-left: 0; border-top-color: var(--gold); }
  .page { padding: 14px 12px 30px; }
  .brand { font-size: 32px; }
  .login-card { padding: 34px 22px 26px; }
  .root-list { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .root-card { padding: 8px 2px; }
  .root-card .rc { width: 28px; height: 28px; line-height: 26px; font-size: 15px; }
  .root-card .rn { font-size: 10px; }
  .cult-ring { width: 210px; height: 210px; }
  .monster-grid { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .mkt-head, .mkt-row { grid-template-columns: 38px minmax(0, 1fr) 64px 64px 60px; }
  .mkt-head .last, .mkt-row .last { display: none; }
  .battle-arena { grid-template-columns: 1fr 40px 1fr; padding: 18px 10px 12px; }
  .battle-log { height: 110px; }
  .rail { top: 62px; bottom: 58px; }
  .rail-toggle { bottom: 72px; }
}


/* ---------------- 账号 ---------------- */

.auth-tabs {
  display: flex; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.auth-tabs button {
  flex: 1; padding: 9px; background: transparent; border: 0;
  color: var(--muted); letter-spacing: 0.24em; font-size: 13px;
}
.auth-tabs button.on { background: rgba(127, 209, 185, 0.1); color: var(--jade); }

/* ---------------- 传音频道 ---------------- */

.chat-tabs { display: flex; gap: 4px; padding: 6px 8px 0; }
.chat-tabs button {
  flex: 1; padding: 4px; background: none; border: 1px solid transparent;
  border-radius: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.1em;
}
.chat-tabs button.on {
  color: var(--gold); border-color: rgba(216, 176, 106, 0.3);
  background: rgba(216, 176, 106, 0.06);
}

/* ---------------- 宗门 ---------------- */

.guild-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.guild-card { padding: 18px; }
.guild-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.14em; color: var(--gold-soft); }
.guild-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.guild-notice {
  margin-top: 12px; padding: 10px 12px; min-height: 44px;
  background: rgba(0, 0, 0, 0.22); border-left: 2px solid var(--gold);
  color: var(--text-dim); font-size: 12px; line-height: 1.7; white-space: pre-wrap;
}
.member-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; border-top: 1px dashed rgba(255, 255, 255, 0.045);
  font-size: 12.5px;
}
.member-row .rn { flex: 1 1 130px; }
.member-row .rmeta { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.rank-badge {
  padding: 1px 7px; border-radius: 3px; font-size: 10px; letter-spacing: 0.1em;
  border: 1px solid var(--line); color: var(--muted);
}
.rank-badge.leader { color: var(--gold); border-color: rgba(216, 176, 106, 0.45); }
.rank-badge.elder { color: var(--jade); border-color: rgba(127, 209, 185, 0.4); }
.guild-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.guild-create { display: flex; flex-direction: column; gap: 10px; }
.guild-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-top: 1px dashed rgba(255, 255, 255, 0.045);
}
.guild-list-row .gn { flex: 1; }
.guild-list-row .gm { color: var(--muted); font-size: 11px; }

/* ---------------- 队伍与副本 ---------------- */

.party-panel { padding: 14px 16px; margin-bottom: 16px; }
.party-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.party-members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.party-slot {
  padding: 10px; border: 1px dashed var(--line); border-radius: 8px;
  text-align: center; min-height: 78px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.party-slot.filled { border-style: solid; border-color: rgba(127, 209, 185, 0.28); }
.party-slot .pn { font-size: 12.5px; color: var(--text); }
.party-slot .pr { font-size: 10.5px; color: var(--muted); }
.party-slot .hp-mini { height: 4px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); overflow: hidden; margin-top: 4px; }
.party-slot .hp-mini i { display: block; height: 100%; background: linear-gradient(90deg, #2f6f60, var(--jade)); }
.party-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.dungeon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.dungeon-card {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(20, 32, 36, 0.85), rgba(9, 16, 19, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.dungeon-card.locked { opacity: 0.6; }
.dg-top { display: flex; align-items: center; gap: 12px; }
.dg-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center; border-radius: 8px;
  border: 1px solid rgba(216, 176, 106, 0.3);
  background: radial-gradient(circle at 50% 30%, rgba(216, 176, 106, 0.16), rgba(0, 0, 0, 0.25));
  font-family: var(--serif); font-size: 22px; color: var(--gold);
}
.dg-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em; }
.dg-sub { color: var(--muted); font-size: 11px; }
.dg-desc { color: var(--muted); font-size: 11.5px; line-height: 1.7; min-height: 38px; }
.dg-stats { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); }
.dg-stats b { color: var(--text); }

/* 副本战斗层 */
.dg-box {
  width: min(840px, 96vw);
  background: linear-gradient(180deg, rgba(24, 34, 36, 0.97), rgba(8, 14, 16, 0.99));
  border: 1px solid rgba(216, 176, 106, 0.3);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.dg-head { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; letter-spacing: 0.14em; }
.dg-boss { text-align: center; padding: 20px 20px 10px; }
.dg-boss-orb {
  width: 88px; height: 88px; margin: 0 auto 8px;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 36px; color: #e0a294;
  border: 1px solid rgba(208, 96, 74, 0.35);
  background: radial-gradient(circle at 50% 32%, rgba(208, 96, 74, 0.2), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 40px rgba(208, 96, 74, 0.15);
}
.dg-boss-name { font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; color: var(--gold-soft); }
.dg-boss-hp { max-width: 420px; margin: 10px auto 0; }
.dg-party { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 20px; }
.dg-member {
  width: 168px;
  padding: 10px; border-radius: 8px; text-align: center;
  border: 1px solid rgba(127, 209, 185, 0.22);
  background: rgba(0, 0, 0, 0.2);
}
.dg-member.down { opacity: 0.45; border-color: rgba(208, 96, 74, 0.3); }
.dg-member .dm-name { font-size: 12px; }
.dg-member .dm-hp { height: 5px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); overflow: hidden; margin-top: 6px; }
.dg-member .dm-hp i { display: block; height: 100%; background: linear-gradient(90deg, #2f6f60, var(--jade)); }
.dg-member.down .dm-hp i { background: #7a2c25; }
.dg-log {
  height: 112px; overflow-y: auto; padding: 8px 20px;
  border-top: 1px solid var(--line-soft); font-size: 11.5px; line-height: 1.7;
}
.dg-actions { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.dg-actions .btn { flex: 1; }

@media (max-width: 1100px) {
  .guild-grid { grid-template-columns: 1fr; }
  .party-members, .dg-party { grid-template-columns: repeat(2, 1fr); }
}
/* 导航项变多后的兜底 */
.sidenav { overflow-y: auto; scrollbar-width: none; }
.sidenav::-webkit-scrollbar { width: 0; height: 0; }
@media (max-height: 860px) {
  .nav-item { padding: 6px 0; }
  .nav-item .ic { width: 34px; height: 34px; font-size: 16px; }
  .nav-item .lb { font-size: 10px; }
}
/* ---------------- 宗门技能树 ---------------- */

.guild-skill-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; padding: 14px;
}
.skill-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}
.skill-top { display: flex; gap: 10px; align-items: flex-start; }
.skill-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 176, 106, 0.3); border-radius: 7px;
  font-family: var(--serif); font-size: 18px; color: var(--gold);
}
.skill-name { font-family: var(--serif); font-size: 15px; color: var(--gold-soft); letter-spacing: 0.06em; }
.skill-desc { margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.pips { display: flex; gap: 4px; align-items: center; }
.pip { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.pip.on { background: var(--jade); box-shadow: 0 0 6px rgba(127, 209, 185, 0.5); }
.skill-lv { margin-left: auto; font-size: 10px; color: var(--muted); }
.skill-effect { font-size: 11px; color: var(--text-dim); }
.guild-bonus-line { padding: 0 14px 14px; font-size: 11.5px; color: var(--jade); }

/* ---------------- 匹配大厅 ---------------- */

.match-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  border-color: rgba(216, 176, 106, 0.3);
  background: linear-gradient(90deg, rgba(216, 176, 106, 0.06), transparent 70%);
}
.match-banner #match-wait { color: var(--gold); font-variant-numeric: tabular-nums; }
.dg-actions-row { display: flex; gap: 8px; }
.dg-actions-row .btn { flex: 1; }
/* ---------------- 邮件入口 ---------------- */

.mail-btn {
  position: relative; width: 34px; height: 34px; margin-left: 4px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.02); color: var(--text-dim);
  font-family: var(--serif); font-size: 14px;
}
.mail-btn:hover { border-color: var(--gold); color: var(--gold); }
.mail-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: var(--cinnabar); color: #fff;
  font-family: var(--sans); font-size: 10px; line-height: 16px; text-align: center;
}

/* ---------------- 日常 ---------------- */

.daily-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.signin-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.signin-day {
  padding: 8px; min-height: 64px; text-align: center;
  border: 1px dashed var(--line); border-radius: 8px;
}
.signin-day .sd { font-size: 10px; color: var(--muted); }
.signin-day .sr { margin-top: 4px; font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.signin-day.current {
  border-style: solid; border-color: var(--gold);
  background: rgba(216, 176, 106, 0.08);
}
.signin-day.signed { opacity: 0.62; }
.signin-action { padding: 0 14px 14px; }
.signin-action .btn { width: 100%; }

.daily-list { padding: 6px 0; }
.daily-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-top: 1px dashed rgba(255, 255, 255, 0.04);
}
.daily-row .daily-main { flex: 1; min-width: 0; }
.daily-row .dn { font-size: 13px; }
.daily-row .daily-progress { width: 64px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.daily-row .daily-reward { width: 150px; text-align: right; font-size: 11px; color: var(--jade); }
.daily-row.done { opacity: 0.7; }

/* ---------------- 邮件列表 ---------------- */

.mail-list { padding: 8px 14px; }
.mail-item {
  margin-bottom: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.mail-item.unread { border-color: rgba(216, 176, 106, 0.35); }
.mail-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mail-subject { font-family: var(--serif); font-size: 14px; color: var(--gold-soft); }
.mail-meta { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.mail-body { margin-top: 6px; font-size: 12px; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }
.mail-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mail-attach { flex: 1; font-size: 11.5px; color: var(--jade); }

/* ---------------- 淬炼 ---------------- */

.equip-body { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.equip-slot .btn { width: 100%; margin-top: 8px; padding: 5px 4px; font-size: 10.5px; }
.enh-plus { color: var(--gold); font-size: 10px; }

@media (max-width: 1100px) {
  .daily-grid { grid-template-columns: 1fr; }
}
/* 移动端导航横向滚动（11 个入口） */
@media (max-width: 700px) {
  .sidenav { justify-content: flex-start; overflow-x: auto; padding: 0 6px; }
  .nav-item { flex: 0 0 58px; min-width: 58px; }
}
/* ---------------- 行囊弹窗 / 套装 ---------------- */

.bag-modal-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.bag-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0, 0, 0, 0.12); cursor: pointer;
}
.bag-cell:hover { border-color: var(--jade); background: rgba(127, 209, 185, 0.05); }
.bag-cell .tile { width: 44px; }
.bname { font-size: 10.5px; color: var(--text-dim); text-align: center; line-height: 1.3; }
.bqty { font-size: 10px; color: var(--muted); }

.set-row { padding: 10px 14px; border-top: 1px dashed rgba(255, 255, 255, 0.045); }
.set-row:first-of-type { border-top: 0; }
.set-top { display: flex; justify-content: space-between; font-size: 12px; }
.set-name { color: var(--gold-soft); }
.set-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.set-bonuses { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.set-bonus { font-size: 10.5px; color: var(--muted); }
.set-bonus.active { color: var(--jade); }

.tip-set {
  margin-top: 5px; padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px; color: var(--gold); line-height: 1.5;
}

@media (max-width: 700px) {
  .bag-modal-grid { grid-template-columns: repeat(4, 1fr); }
}
/* 坊市 / 配方分页 */
.mkt-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 12px;
}
/* ---------------- 境界图标 / 突破演出 ---------------- */

.who-realm { display: flex; align-items: center; gap: 6px; }
.t-realm-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.t-realm-icon .realm-sigil { width: 20px; height: 20px; }

.char-avatar { width: 120px; height: 120px; }
.realm-avatar { font-size: 0; overflow: hidden; }
.realm-title { margin-top: 4px; letter-spacing: 0.14em; font-size: 11px; }

.realm-step .dot {
  width: 16px; height: 16px; border-radius: 0; background: none; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.realm-step .dot .realm-sigil { width: 16px; height: 16px; opacity: 0.55; }
.realm-step.done .dot, .realm-step.now .dot { background: none; box-shadow: none; }
.realm-step.done .dot .realm-sigil, .realm-step.now .dot .realm-sigil { opacity: 1; }

.realmup {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(8, 14, 18, 0.72), rgba(4, 7, 9, 0.95));
  backdrop-filter: blur(4px);
}
.realmup.hidden { display: none; }
.realmup-card { text-align: center; animation: ruCard 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.realmup-kicker {
  margin-bottom: 18px; text-indent: 0.6em;
  font-size: 12px; letter-spacing: 0.6em; color: var(--gold);
}
.realmup-flow { display: flex; align-items: center; justify-content: center; gap: 26px; }
.ru-old { opacity: 0.4; filter: grayscale(0.2); }
.ru-new { filter: drop-shadow(0 0 28px rgba(216, 176, 106, 0.35)); animation: ruPulse 1.6s ease-in-out infinite; }
.ru-arrow { font-size: 20px; color: var(--muted); }
.realmup-name {
  margin-top: 14px; font-family: var(--serif); font-size: 34px;
  letter-spacing: 0.18em; color: var(--gold-soft);
  text-shadow: 0 0 30px rgba(216, 176, 106, 0.3);
}
.realmup-title { margin-top: 6px; font-size: 12px; letter-spacing: 0.25em; color: var(--muted); }

@keyframes ruCard {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes ruPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (max-width: 700px) {
  .realmup-flow { gap: 10px; }
  .ru-new .realm-sigil { width: 130px; height: 130px; }
  .realmup-name { font-size: 26px; }
}
/* ---------------- 全服公屏 ---------------- */

.chat-btn {
  position: relative; width: 34px; height: 34px; margin-left: 4px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.02); color: var(--text-dim);
  font-family: var(--serif); font-size: 14px;
}
.chat-btn:hover { border-color: var(--jade); color: var(--jade); }
.chat-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: var(--cinnabar); color: #fff;
  font-family: var(--sans); font-size: 10px; line-height: 16px; text-align: center;
}
.chat-modal-body { display: flex; flex-direction: column; min-height: 0; }
.chat-input .btn { flex: 0 0 auto; white-space: nowrap; min-width: 64px; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.modal-tabs button {
  padding: 5px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 12px;
}
.modal-tabs button.on { border-color: var(--jade); color: var(--jade); background: rgba(127, 209, 185, 0.08); }
.chat-modal-log {
  flex: 0 0 auto; height: min(44vh, 360px); max-height: 44vh; overflow-y: auto;
  padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}
.chat-line {
  display: flex; gap: 8px; align-items: baseline;
  padding: 5px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.035);
  font-size: 12.5px; line-height: 1.65;
}
.chat-line:last-child { border-bottom: 0; }
.chat-line .ct { flex: 0 0 40px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-line .cname { flex: 0 0 auto; color: var(--jade); }
.chat-line .crealm { flex: 0 0 auto; font-size: 10px; color: var(--muted); }
.chat-line .ctext { color: var(--text-dim); word-break: break-all; }
.chat-line.sys .cname { color: var(--gold); }
.chat-line.sys .ctext { color: var(--gold-soft); }
.chat-line.sys.join .ctext, .chat-line.sys.leave .ctext { color: var(--muted); }

/* ---------------- 坊市：收藏 / 涨跌 / 持仓 ---------------- */

.mkt-toolbar { flex-wrap: wrap; }
.mkt-tile { position: relative; }
.mkt-fav {
  position: absolute; top: -7px; left: -7px;
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.22);
  font-size: 11px; line-height: 18px; text-align: center; cursor: pointer;
}
.mkt-fav.on { color: var(--gold); text-shadow: 0 0 6px rgba(216, 176, 106, 0.6); }
.mkt-row .name .have { color: var(--jade); }
.mkt-row .last small { display: block; font-size: 9.5px; }
.mkt-row .last small.up { color: #e08f80; }
.mkt-row .last small.down { color: var(--jade); }
.mk-hold {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 8px 12px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  font-size: 12px; color: var(--muted);
}
.mk-hold b { color: var(--gold-soft); font-family: var(--serif); font-size: 15px; }
.mk-hold .btn { margin-left: auto; }
/* ---------------- 战斗动作 / 结束演出 ---------------- */

.fighter .fight-orb { transition: transform 0.16s ease, filter 0.2s ease; }
.fighter.lunge-r .fight-orb { animation: lungeR 0.42s cubic-bezier(0.2, 0.8, 0.3, 1); }
.fighter.lunge-l .fight-orb { animation: lungeL 0.42s cubic-bezier(0.2, 0.8, 0.3, 1); }
.fighter.hit .fight-orb { animation: hitFlash 0.46s ease; }
.fighter.hit .fight-name { animation: nameShake 0.36s ease; }

.hit-spark {
  position: absolute; left: 50%; top: 30%; z-index: 3;
  transform: translate(-50%, -50%);
  font-size: 30px; color: #ffd9a8; pointer-events: none;
  text-shadow: 0 0 14px rgba(255, 180, 120, 0.9), 0 0 30px rgba(255, 120, 90, 0.6);
  animation: sparkPop 0.62s ease-out forwards;
}
.hit-spark.crit { font-size: 46px; color: #ffb27a; }

#b-round2.bump { animation: roundBump 0.4s ease; }

@keyframes lungeR {
  0% { transform: translateX(0) scale(1); }
  35% { transform: translateX(30px) scale(1.08); }
  100% { transform: translateX(0) scale(1); }
}
@keyframes lungeL {
  0% { transform: translateX(0) scale(1); }
  35% { transform: translateX(-30px) scale(1.08); }
  100% { transform: translateX(0) scale(1); }
}
@keyframes hitFlash {
  0%, 100% { filter: none; box-shadow: 0 0 30px rgba(127, 209, 185, 0.12); }
  25% { filter: brightness(2.1) saturate(0.4); box-shadow: 0 0 46px rgba(255, 150, 120, 0.8); }
  55% { filter: brightness(1.35); }
}
@keyframes nameShake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes sparkPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-20deg); }
  25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15) rotate(6deg); }
  100% { opacity: 0; transform: translate(-50%, -110%) scale(0.9) rotate(18deg); }
}
@keyframes roundBump {
  0%, 100% { transform: none; color: rgba(216, 176, 106, 0.5); }
  40% { transform: scale(1.25); color: var(--gold); }
}

.battle-end {
  position: fixed; inset: 0; z-index: 78;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(8, 14, 18, 0.55), rgba(3, 6, 8, 0.9));
  backdrop-filter: blur(3px);
}
.battle-end.hidden { display: none; }
.battle-end-card {
  width: min(380px, 90vw); padding: 28px 26px 22px;
  text-align: center;
  border: 1px solid rgba(216, 176, 106, 0.35); border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 38, 40, 0.98), rgba(8, 15, 18, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(216, 176, 106, 0.08);
}
.battle-end.lose .battle-end-card {
  border-color: rgba(208, 96, 74, 0.45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 60px rgba(208, 96, 74, 0.1);
}
.battle-end-card.play { animation: beIn 0.55s cubic-bezier(0.2, 0.9, 0.2, 1); }
.be-kicker { font-size: 11px; letter-spacing: 0.55em; text-indent: 0.55em; color: var(--gold); }
.battle-end.lose .be-kicker { color: #e08f80; }
.be-orb {
  width: 92px; height: 92px; margin: 18px auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--serif); font-size: 40px; color: var(--gold-soft);
  border: 1px solid rgba(216, 176, 106, 0.4);
  background: radial-gradient(circle at 50% 32%, rgba(216, 176, 106, 0.18), rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 40px rgba(216, 176, 106, 0.18);
  animation: beOrb 1.4s ease-in-out infinite;
}
.battle-end.lose .be-orb {
  color: #e0a294; border-color: rgba(208, 96, 74, 0.45);
  background: radial-gradient(circle at 50% 32%, rgba(208, 96, 74, 0.2), rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 40px rgba(208, 96, 74, 0.16);
}
.be-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.12em; color: var(--text); }
.be-reward { margin-top: 8px; font-size: 12px; color: var(--jade); line-height: 1.7; }
.battle-end.lose .be-reward { color: var(--muted); }
.be-actions { display: flex; gap: 10px; margin-top: 22px; }
.be-actions .btn { flex: 1; }

@keyframes beIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}
@keyframes beOrb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* 移动端坊市卡片 */
@media (max-width: 760px) {
  .mkt-head { display: none; }
  .mkt-toolbar { position: sticky; top: 0; z-index: 4; background: rgba(8, 15, 18, 0.96); padding: 8px 0; }
  .mkt-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 2px 12px;
    padding: 10px 12px;
  }
  .mkt-tile { grid-row: 1 / span 4; align-self: center; }
  .mkt-row .name { grid-column: 2; font-size: 13px; }
  .mkt-row .num {
    grid-column: 2; display: flex; justify-content: space-between;
    font-size: 11.5px; color: var(--text-dim);
  }
  .mkt-row .num::before { content: attr(data-label); color: var(--muted); font-size: 10px; }
  .mkt-row .last small { display: inline; margin-left: 6px; }
  .mkt-row .act { grid-column: 2; margin-top: 4px; }
  .mkt-row .act .btn { width: 100%; }
}
/* 副本周常 / 宗门战 */
.dg-week { margin-top: 4px; font-size: 11px; color: var(--jade); }
.guild-war-line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; font-size: 12px; color: var(--text-dim);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.guild-war-line b { color: var(--gold-soft); font-family: var(--serif); font-size: 15px; }
.guild-war-rank { padding: 6px 14px 12px; }
/* 装备词条 */
.affixes { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.affix { font-size: 10px; color: var(--gold-soft); line-height: 1.4; }
.equip-slot .stats { text-align: center; }
/* 物品来历 */
.tip-lore {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 10.5px; line-height: 1.7; color: var(--text-dim);
}
.tip-lore b { color: var(--gold); margin-right: 4px; font-weight: 500; }
.lore-block {
  margin-top: 8px; padding: 8px 10px;
  border-left: 2px solid rgba(216, 176, 106, 0.45);
  background: rgba(216, 176, 106, 0.04);
  font-size: 11.5px; line-height: 1.8; color: var(--text-dim);
}
.lore-block b { color: var(--gold-soft); margin-right: 6px; font-weight: 500; }
.lore-block p { margin: 2px 0 0; }
/* 交游 / 好友 / 私信 / 论剑 */
.social-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.social-tab { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: var(--text-dim); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.social-tab.on { color: var(--gold); border-color: rgba(216,176,106,.5); background: rgba(216,176,106,.08); }
.social-tab i, .pm-th i { font-style: normal; background: var(--red); color: #fff; border-radius: 999px; padding: 0 5px; font-size: 10px; margin-left: 3px; }
.social-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); gap: 14px; }
.social-add { display: flex; gap: 8px; padding: 10px 14px 4px; }
.social-add .input { flex: 1; }
.friend-list { padding: 4px 8px 10px; }
.friend-row { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.friend-row .dot, .pm-th .dot { width: 7px; height: 7px; border-radius: 50%; background: #4a5a56; display: inline-block; }
.friend-row .dot.on, .pm-th .dot.on { background: var(--jade); box-shadow: 0 0 6px rgba(80,220,170,.7); }
.friend-row .fname { color: var(--text); min-width: 72px; }
.friend-row .fr { color: var(--muted); font-size: 11px; }
.friend-row .frating { margin-left: auto; color: var(--muted); font-size: 11px; }
.friend-row .facts { display: flex; gap: 4px; }
.friend-row.req { background: rgba(216,176,106,.04); }
.pm-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; min-height: 420px; }
.pm-threads { padding: 6px; max-height: 500px; overflow: auto; }
.pm-thread { padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.pm-thread:hover, .pm-thread.on { background: rgba(216,176,106,.08); }
.pm-th { color: var(--text); font-size: 12px; }
.pm-last { color: var(--muted); font-size: 11px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-main { display: flex; flex-direction: column; }
.pm-messages { flex: 1; overflow: auto; padding: 12px 16px; max-height: 470px; }
.pm-msg { margin: 0 0 12px; max-width: 80%; }
.pm-msg.me { margin-left: auto; text-align: right; }
.pm-meta { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.pm-text { display: inline-block; padding: 7px 11px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--text); font-size: 12px; line-height: 1.6; white-space: pre-wrap; text-align: left; }
.pm-msg.me .pm-text { background: rgba(80,200,160,.12); }
.pm-compose { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06); }
.pm-compose .input { flex: 1; }
.pvp-cards { display: flex; gap: 10px; padding: 12px 14px 0; }
.pvp-cards > div { flex: 1; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 10px; text-align: center; }
.pvp-cards span { display: block; font-size: 11px; color: var(--muted); }
.pvp-cards b { font-size: 20px; color: var(--gold); }
.pvp-history { padding: 6px 14px 12px; max-height: 220px; overflow: auto; }
.pvp-h { font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-dim); }
.pvp-h b { margin-right: 4px; }
.pvp-h.win b { color: var(--jade); }
.pvp-h.lose b { color: var(--red); }
tr.me td { background: rgba(216,176,106,.06); }
.empty-line { padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 900px) {
  .social-grid, .pm-layout { grid-template-columns: 1fr; }
  .pm-threads { max-height: 180px; }
}
/* 物品 SVG 图标 */
.tile .item-svg {
  width: 84%; height: 84%; display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.tile.lg .item-svg { width: 88%; height: 88%; }
.tile:hover .item-svg { filter: drop-shadow(0 0 5px var(--tc, #9fb0aa)); }
/* 炼丹 / 炼器进度 */
.craft-active {
  padding: 14px 16px; margin-bottom: 14px;
  border-color: rgba(216, 176, 106, 0.32);
  background: linear-gradient(180deg, rgba(216, 176, 106, 0.05), rgba(0, 0, 0, 0.04));
}
.craft-active-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 13px; color: var(--text);
}
.craft-active-head b { color: var(--gold-soft); font-weight: 500; }
.craft-bar { height: 10px; margin: 10px 0 7px; }
.craft-bar > i {
  background: linear-gradient(90deg, #7a5a24, #d8b06a 55%, #ffe6ad);
  box-shadow: 0 0 12px rgba(216, 176, 106, 0.55);
}
.recipe.active {
  border-color: rgba(216, 176, 106, 0.5);
  box-shadow: 0 0 0 1px rgba(216, 176, 106, 0.12), 0 0 18px rgba(216, 176, 106, 0.08);
}
/* 拍卖行 */
.auc-form { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; padding: 10px 14px; }
.auc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.auc-form .btn { grid-column: 1 / -1; }
.auc-list { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.auc-card { display: flex; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.02); }
.auc-card.mine { background: rgba(216,176,106,.03); }
.auc-tile { width: 48px; flex: 0 0 48px; }
.auc-main { flex: 1; min-width: 0; }
.auc-name { font-size: 13px; color: var(--text); }
.auc-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.auc-prices { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); margin-top: 5px; }
.auc-prices b { color: var(--gold-soft); }
.auc-actions { display: flex; gap: 6px; margin-top: 7px; align-items: center; }
.auc-bid { width: 90px; height: 28px; }
@media (max-width: 700px) { .auc-form { grid-template-columns: 1fr; } }
/* 功法页 */
.skill-slots { display: grid; grid-template-columns: repeat(6, minmax(80px, 1fr)); gap: 8px; padding: 12px 14px; }
.skill-slot {
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  background: rgba(255,255,255,.025); padding: 8px; min-height: 74px;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.skill-slot.filled { border-color: rgba(216,176,106,.35); }
.skill-slot-no { font-size: 10px; color: var(--muted); }
.skill-slot-name { font-size: 12px; color: var(--fc, var(--gold-soft)); font-family: var(--serif); }
.skill-slot-sub { font-size: 10px; color: var(--muted); }
.skill-slot-empty { color: var(--muted); font-size: 11px; margin: auto; }
.skill-library, .skill-books { padding: 8px 12px; max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.skill-card { border-left: 2px solid var(--fc, var(--gold)); background: rgba(255,255,255,.025); border-radius: 6px; padding: 8px 10px; }
.skill-card-name { color: var(--text); font-size: 13px; }
.skill-card-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.skill-card-actions { display: flex; gap: 6px; margin-top: 6px; }
.skill-slot-select { width: 54px; height: 26px; }
.skill-book { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.05); padding: 8px 4px; }
.skill-book-name { font-size: 12px; color: var(--text-dim); }
.skill-study { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.06); }

/* 论剑演出 */
#pvp-layer { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; background: rgba(2,8,10,.82); backdrop-filter: blur(3px); }
.pvp-arena { width: min(760px, 94vw); border: 1px solid rgba(216,176,106,.25); border-radius: 12px; background: linear-gradient(180deg, #0d1a1d, #071012); padding: 16px 18px; position: relative; overflow: hidden; }
.pvp-title { text-align: center; color: var(--gold-soft); font-family: var(--serif); letter-spacing: .08em; }
.pvp-sides { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pvp-side { flex: 1; }
.pvp-side.right { text-align: right; }
.pvp-name { font-size: 12px; color: var(--text-dim); margin-bottom: 5px; }
.pvp-hp > i { background: linear-gradient(90deg, #8a2f28, #d0604a 70%, #e8a08a); }
.pvp-vs { color: var(--muted); font-size: 11px; }
.pvp-stage { position: relative; height: 150px; display: grid; place-items: center; }
.pvp-skill { position: relative; z-index: 2; color: var(--text); font-size: 14px; text-shadow: 0 0 14px rgba(0,0,0,.9); }
.pvp-fx { position: absolute; width: 130px; height: 130px; border-radius: 50%; opacity: 0; border: 2px solid hsl(var(--fx-h, 200) 80% 60%); box-shadow: 0 0 30px hsl(var(--fx-h, 200) 80% 55% / .7), inset 0 0 24px hsl(var(--fx-h, 200) 80% 60% / .35); }
.pvp-fx.cast { animation: pvpCast .46s ease-out; }
@keyframes pvpCast { 0% { opacity: 0; transform: scale(.35) rotate(calc(-25deg + var(--fx-rot, 0deg))); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35) rotate(calc(15deg + var(--fx-rot, 0deg))); } }
.fx-p0 { border-radius: 4px; transform: rotate(45deg); }
.fx-p1 { border-radius: 40% 60% 55% 45%; }
.fx-p2 { width: 170px; height: 12px; border-radius: 99px; }
.fx-p3 { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fx-p4 { width: 10px; height: 190px; border-radius: 99px; }
.fx-p5 { border-style: double; border-width: 6px; }
.fx-p6 { border-radius: 12px; transform: rotate(32deg); width: 90px; height: 170px; }
.fx-p7 { border-radius: 50% 0 50% 0; }
.fx-p8 { border-style: dashed; border-width: 3px; }
.fx-p9 { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border-radius: 0; }
.pvp-dmg { text-align: center; height: 26px; font-size: 18px; color: var(--red); font-weight: 600; }
.pvp-dmg.win { color: var(--jade); }
.pvp-dmg.lose { color: var(--red); }
.pvp-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }

/* 手机竖屏 */
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .sidenav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 4px 6px 6px; background: rgba(6,14,16,.96);
    border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
  }
  .sidenav .nav-item {
    flex: 0 0 auto; min-width: 56px; border-left: 0; border-bottom: 2px solid transparent;
    padding: 5px 6px; gap: 3px;
  }
  .sidenav .nav-item .ic { width: 32px; height: 32px; font-size: 16px; }
  .sidenav .nav-item .lb { font-size: 10px; letter-spacing: .08em; }
  .sidenav .nav-item.on { border-left-color: transparent; border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(216,176,106,.12), transparent); }
  .page { padding-bottom: 78px; }
  .skill-slots { grid-template-columns: repeat(3, 1fr); }
  .social-grid, .pm-layout, .auc-form { grid-template-columns: 1fr; }
  .pm-layout { min-height: 0; }
  .pm-threads { max-height: 180px; }
  .pvp-arena { padding: 12px; }
  .pvp-fx { width: 100px; height: 100px; }
  .fx-p2 { width: 130px; height: 10px; }
  .fx-p4 { height: 140px; }
}
/* 手机竖屏：顶栏改为两行，资源自动换行 */
@media (max-width: 760px) {
  .topbar {
    display: flex; flex-wrap: wrap; align-items: center;
    height: auto; min-height: 0; padding: 8px 10px; gap: 6px 10px;
  }
  .game { grid-template-rows: auto minmax(0, 1fr) 58px; }
  .res { display: flex; }
  .who { order: 1; flex: 1 1 auto; gap: 8px; }
  .who-name { font-size: 15px; gap: 5px; }
  .who-realm { font-size: 10px; padding: 1px 5px; letter-spacing: .06em; }
  .res { order: 2; flex: 1 1 auto; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
  .res-item { text-align: center; }
  .res-item .k { display: none; }
  .res-item .v { font-size: 12px; }
  .chat-btn, .mail-btn { width: 28px; height: 28px; }
  .exp-wrap { order: 3; flex: 1 1 100%; }
  .exp-top { margin-bottom: 3px; font-size: 10px; }
}
/* 论剑独立页 / 前三名 */
.pvp-hero { padding: 16px; margin-bottom: 14px; background: radial-gradient(circle at 50% 0, rgba(216,176,106,.08), transparent 60%), rgba(255,255,255,.015); }
.pvp-my { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.pvp-my > div { display: flex; align-items: baseline; gap: 6px; }
.pvp-my span { color: var(--muted); font-size: 11px; }
.pvp-my b { color: var(--gold-soft); font-size: 20px; }
.pvp-my-note { margin-left: auto; color: var(--muted); font-size: 11px; }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 10px; max-width: 720px; margin: 0 auto; }
.podium-card { position: relative; text-align: center; border-radius: 10px; padding: 12px 8px 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); overflow: hidden; }
.podium-card.rank1 { order: 2; border-color: rgba(255,214,120,.65); background: linear-gradient(180deg, rgba(216,176,106,.22), rgba(90,65,20,.12)); box-shadow: 0 0 30px rgba(216,176,106,.22), inset 0 0 22px rgba(216,176,106,.08); animation: podiumGold 3.2s ease-in-out infinite; }
.podium-card.rank2 { order: 1; border-color: rgba(205,215,225,.5); background: linear-gradient(180deg, rgba(190,205,220,.15), rgba(30,40,46,.12)); }
.podium-card.rank3 { order: 3; border-color: rgba(214,150,96,.5); background: linear-gradient(180deg, rgba(190,110,60,.15), rgba(40,25,18,.12)); }
.podium-card.empty { opacity: .45; }
.podium-crown { font-size: 24px; line-height: 1; color: var(--gold); text-shadow: 0 0 14px rgba(216,176,106,.8); animation: crownFloat 2.4s ease-in-out infinite; }
.rank2 .podium-crown { color: #cfd8e2; text-shadow: 0 0 12px rgba(200,215,230,.6); }
.rank3 .podium-crown { color: #d69660; text-shadow: 0 0 12px rgba(214,150,96,.6); }
.podium-no { font-size: 10px; color: var(--muted); margin-top: 2px; }
.podium-name { font-family: var(--serif); font-size: 16px; color: var(--text); margin-top: 3px; }
.rank1 .podium-name { font-size: 19px; color: #ffe8b0; }
.podium-realm { font-size: 10px; color: var(--muted); margin-top: 2px; }
.podium-rate { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); margin-top: 4px; }
.podium-record { font-size: 10px; color: var(--muted); margin-top: 2px; }
@keyframes podiumGold { 0%,100% { box-shadow: 0 0 24px rgba(216,176,106,.18), inset 0 0 18px rgba(216,176,106,.06); } 50% { box-shadow: 0 0 42px rgba(216,176,106,.38), inset 0 0 26px rgba(216,176,106,.14); } }
@keyframes crownFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pvp-table .pvp-rank { font-family: var(--serif); font-size: 15px; }
.pvp-table tr.rank-1 td { color: #ffe8b0; background: rgba(216,176,106,.09); }
.pvp-table tr.rank-2 td { color: #dbe4ec; background: rgba(200,215,230,.05); }
.pvp-table tr.rank-3 td { color: #e0b08a; background: rgba(214,150,96,.05); }
.pvp-online { padding: 4px 12px; max-height: 260px; overflow: auto; }
.pvp-online-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.pvp-online-row .hint { margin-left: auto; font-size: 10px; }
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .podium-name { font-size: 13px; }
  .rank1 .podium-name { font-size: 15px; }
  .podium-rate { font-size: 17px; }
  .pvp-my { gap: 12px; }
  .pvp-my-note { margin-left: 0; width: 100%; }
}
/* 大境界突破任务 */
.major-panel { border-color: rgba(216,176,106,.4); background: linear-gradient(180deg, rgba(216,176,106,.05), rgba(0,0,0,.04)); }
.major-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.major-step { background: rgba(255,255,255,.025); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: var(--text-dim); }
.major-step b { display: block; color: var(--gold-soft); font-weight: 500; font-size: 11px; margin-bottom: 4px; }
.major-step .mats { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.major-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.major-actions .hint { flex: 1; }
@media (max-width: 760px) { .major-steps { grid-template-columns: 1fr; } }
/* 雷劫 */
#trib-layer { position: fixed; inset: 0; z-index: 230; background: #04080a; overflow: hidden; }
#trib-layer.shake { animation: tribShake .32s linear; }
.trib-sky { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 10%, rgba(70,90,110,.35), rgba(2,5,8,.98) 65%); }
.trib-cloud { position: absolute; inset: -10% -20%; background: radial-gradient(ellipse at 30% 30%, rgba(90,110,130,.35), transparent 45%), radial-gradient(ellipse at 70% 20%, rgba(70,90,120,.3), transparent 40%); filter: blur(12px); animation: cloudRoll 9s linear infinite; }
.trib-rain { position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(180,210,230,.06) 18px 19px); animation: rainFall .5s linear infinite; }
.trib-arena { position: relative; z-index: 2; width: min(620px, 92vw); margin: 12vh auto 0; text-align: center; color: var(--text); }
.trib-title { font-family: var(--serif); font-size: 28px; letter-spacing: .18em; color: #cfe4ef; text-shadow: 0 0 26px rgba(140,190,230,.55); }
.trib-sub { color: #8298a2; font-size: 12px; margin-top: 6px; letter-spacing: .12em; }
.trib-hp { margin: 26px auto 0; max-width: 420px; }
.trib-hp .bar { height: 10px; }
.trib-hp span { display: block; margin-top: 6px; color: #b9cbd3; font-size: 11px; font-variant-numeric: tabular-nums; }
.trib-stage { position: relative; height: 200px; display: grid; place-items: center; }
.trib-bolt { width: 8px; height: 0; background: linear-gradient(180deg, #eaf7ff, #78b8e8 55%, transparent); filter: drop-shadow(0 0 18px #8fd0ff); opacity: 0; clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 38% 100%, 55% 55%, 0 55%); }
.trib-bolt.strike { height: 190px; opacity: 1; animation: boltStrike .5s ease-out; }
.trib-count { color: #cfe4ef; font-size: 14px; letter-spacing: .1em; }
.trib-count.win { color: var(--gold); font-size: 20px; }
.trib-count.lose { color: #e08a7a; font-size: 20px; }
.trib-dmg { height: 34px; color: #ff8a70; font-size: 24px; font-weight: 600; text-shadow: 0 0 18px rgba(255,80,40,.5); }
.trib-dmg.win { color: var(--jade); font-size: 16px; }
.trib-dmg.lose { color: #e08a7a; font-size: 14px; }
#trib-layer .btn { margin-top: 10px; }
@keyframes boltStrike { 0% { opacity: 0; transform: scaleY(.1); } 18% { opacity: 1; transform: scaleY(1); } 55% { opacity: .9; } 100% { opacity: 0; transform: scaleY(1); } }
@keyframes tribShake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-5px,3px); } 50% { transform: translate(4px,-3px); } 75% { transform: translate(-3px,-2px); } }
@keyframes cloudRoll { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes rainFall { from { background-position: 0 0; } to { background-position: -40px 80px; } }
@media (max-width: 760px) { .trib-title { font-size: 22px; } .trib-arena { margin-top: 16vh; } }
/* 被动功法 */
.manual-intro { padding: 12px 16px; margin-bottom: 14px; color: var(--text-dim); font-size: 12px; line-height: 1.8; }
.manual-intro p { margin: 0; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.manual-card { border: 1px solid rgba(127,209,185,.22); border-radius: 8px; background: rgba(255,255,255,.025); padding: 10px 12px; }
.manual-card.locked { opacity: .6; border-color: rgba(255,255,255,.08); }
.manual-card.far { opacity: .35; }
.manual-card.maxed { border-color: rgba(216,176,106,.55); background: linear-gradient(180deg, rgba(216,176,106,.08), rgba(255,255,255,.02)); }
.manual-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.manual-name { font-family: var(--serif); font-size: 14px; color: var(--gold-soft); }
.manual-sub { color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.6; }
.manual-sp { color: var(--jade); font-size: 11px; white-space: nowrap; }
.manual-lock { margin-top: 8px; font-size: 11px; color: var(--muted); }
.manual-nodes { display: flex; align-items: center; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.manual-node { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--muted); cursor: pointer; }
.manual-node.on { color: var(--gold); border-color: rgba(216,176,106,.6); background: rgba(216,176,106,.12); }
.manual-node:disabled { cursor: default; opacity: .45; }
.manual-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.manual-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); }
@media (max-width: 760px) { .manual-grid { grid-template-columns: 1fr; } }
/* 宗门藏经阁 */
.guild-library { margin-top: 14px; }
.lib-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 12px 12px; }
.lib-offer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid rgba(127,209,185,.16); border-radius: 6px; padding: 8px 10px; background: rgba(255,255,255,.02); }
.lib-name { font-size: 12px; color: var(--text-dim); }
.lib-offer .hint { font-size: 10px; }
@media (max-width: 760px) { .lib-offers { grid-template-columns: 1fr; } }
/* 副本手动选招 */
.dg-turn { border-top: 1px solid rgba(255,255,255,.07); padding: 10px 0 4px; }
.dg-turn-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.dg-turn-head b { color: var(--gold-soft); font-weight: 500; }
.dg-skillbar { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-skill { display: inline-flex; align-items: center; gap: 6px; }
.dg-skill span { font-size: 9px; color: var(--muted); }
.dg-skill.basic { border-color: rgba(255,255,255,.12); }
@media (max-width: 760px) { .dg-skillbar { gap: 5px; } .dg-skill { font-size: 11px; padding: 6px 8px; } }
/* 论剑手动选招 */
#pvp-duel-layer.pvp-duel { position: fixed; inset: 0; z-index: 215; display: grid; place-items: center; background: rgba(2,8,10,.72); backdrop-filter: blur(3px); }
.pvp-duel-box { width: min(620px, 94vw); border: 1px solid rgba(216,176,106,.3); border-radius: 12px; background: #0b1619; padding: 16px 18px; }
.pvp-duel-title { text-align: center; color: var(--gold-soft); font-family: var(--serif); letter-spacing: .12em; margin-bottom: 12px; }
.pvp-duel-sides { display: flex; align-items: flex-start; gap: 12px; }
.pvp-duel-sides > div:not(.pvp-vs) { flex: 1; }
.pvp-duel-sides .right { text-align: right; }
.pvp-duel-sides .hint { font-size: 10px; margin-top: 3px; }
.pvp-duel-msg { min-height: 24px; margin: 12px 0 8px; text-align: center; color: var(--text-dim); font-size: 12px; }
.pvp-duel-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pvp-duel-actions .btn { display: inline-flex; align-items: center; gap: 5px; }
.pvp-duel-actions .btn span { font-size: 9px; color: var(--muted); }
.pvp-duel-box > .hint { text-align: center; margin-top: 9px; }