/* 造化仙府 · 清新浅色修仙挂机 H5 */
:root {
  --primary: #3D7EFF;
  --primary-light: #6FA5FF;
  --primary-deep: #2457C9;
  --primary-soft: #E9F1FF;
  --teal: #23B8A6;
  --teal-soft: #E3F8F4;
  --gold: #D8A94B;
  --gold-soft: #FBF2DE;
  --violet: #8B7BF0;
  --violet-soft: #F0EDFF;
  --ink: #182B4A;
  --ink-2: #40536F;
  --muted: #7E8CA3;
  --faint: #A6B3C6;
  --line: #E3ECF9;
  --line-strong: #D5E3F6;
  --card: #FFFFFF;
  --bg: #F2F7FE;
  --shadow-sm: 0 4px 14px rgba(45, 86, 160, 0.06);
  --shadow: 0 10px 28px rgba(45, 86, 160, 0.09);
  --shadow-lg: 0 18px 42px rgba(45, 86, 160, 0.14);
  --radius: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -8%, #DCEBFF 0%, rgba(220, 235, 255, 0) 62%),
    radial-gradient(760px 520px at -12% 8%, #E8F5FF 0%, rgba(232, 245, 255, 0) 58%),
    #EDF4FD;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(61, 126, 255, 0.55);
  outline-offset: 2px;
}

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(96px + var(--safe-bottom));
  background:
    radial-gradient(560px 340px at 50% -6%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F4F9FF 0%, #F2F7FE 46%, #F6FAFF 100%);
  box-shadow: 0 0 0 1px rgba(190, 210, 238, 0.35), 0 30px 90px rgba(52, 94, 160, 0.14);
}

.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(260px 200px at 82% 18%, rgba(122, 171, 255, 0.16), transparent 70%),
    radial-gradient(240px 220px at 12% 62%, rgba(92, 211, 191, 0.12), transparent 70%);
}

/* ---------- 顶部状态栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.97) 0%, rgba(245, 250, 255, 0.86) 74%, rgba(245, 250, 255, 0) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hud-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #6FA5FF 0%, #3D7EFF 58%, #2A61D6 100%);
  box-shadow: 0 6px 16px rgba(61, 126, 255, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 0 0 1px rgba(216, 169, 75, 0.42);
}
.avatar-glyph {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(15, 40, 90, 0.28);
}

.hud-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hud-txt b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}
.hud-txt em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.hud-txt em::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 184, 166, 0.14);
}

.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.offline-pill .mp-icon { width: 14px; height: 14px; color: var(--primary); }
.offline-pill:active { transform: scale(0.96); }

.res-row {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.res-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 14px;
  border: 1px solid rgba(214, 228, 247, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 14px rgba(45, 86, 160, 0.05);
}

.res-ico {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: linear-gradient(140deg, #EAF2FF, #DCEAFF);
}
.res-ico.teal { color: var(--teal); background: linear-gradient(140deg, #E4FAF6, #D5F4EE); }
.res-ico .mp-icon { width: 17px; height: 17px; }

.res-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.res-meta em { font-style: normal; font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; }
.res-meta b {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-rate {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 视图 ---------- */
.views { position: relative; z-index: 1; }
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.3s ease both; }

/* ---------- 主殿场景 ---------- */
.scene {
  position: relative;
  margin: 4px 16px 0;
  min-height: 428px;
  border-radius: 26px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(180deg, #D5E8FF 0%, #EAF4FF 48%, #F9FDFF 100%);
  box-shadow: 0 18px 44px rgba(48, 94, 170, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  isolation: isolate;
}

.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cloud {
  position: absolute;
  z-index: 1;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42));
  filter: blur(5px);
  pointer-events: none;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 60%; height: 34px; left: 12%; top: -18px; }
.cloud::after { width: 44%; height: 28px; right: 8%; top: -12px; }
.cloud-a { width: 168px; left: -26px; top: 150px; opacity: 0.78; animation: drift 19s ease-in-out infinite alternate; }
.cloud-b { width: 132px; right: -20px; top: 218px; opacity: 0.62; animation: drift 24s ease-in-out infinite alternate-reverse; }
.cloud-c { width: 104px; left: 34%; top: 104px; opacity: 0.42; animation: drift 28s ease-in-out infinite alternate; }

.dao {
  position: absolute;
  z-index: 2;
  top: 38%;
  left: 50%;
  width: 118px;
  height: 118px;
  margin: -59px 0 0 -59px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0%, #EDF6FF 46%, #D8E9FF 100%);
  box-shadow:
    0 20px 50px rgba(61, 126, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 42px rgba(122, 171, 255, 0.55);
  animation: breathe 5.2s ease-in-out infinite;
}
.dao::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(61, 126, 255, 0.34);
  animation: spin 34s linear infinite;
}
.dao::after {
  content: "";
  position: absolute;
  inset: -29px;
  border-radius: 50%;
  border: 1px solid rgba(61, 126, 255, 0.12);
}
.dao-ring {
  position: absolute;
  inset: -21px;
  border-radius: 50%;
  border-top: 2px solid rgba(216, 169, 75, 0.82);
  border-right: 2px solid rgba(216, 169, 75, 0);
  animation: spin 11s linear infinite;
}
.dao-core {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  color: #2C5DBB;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(61, 126, 255, 0.28);
}

.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9), 0 0 18px 4px rgba(122, 171, 255, 0.45);
  animation: floatUp 7s ease-in-out infinite;
}
.motes i:nth-child(1) { left: 16%; top: 58%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 27%; top: 30%; animation-delay: 1.4s; width: 4px; height: 4px; }
.motes i:nth-child(3) { left: 71%; top: 46%; animation-delay: 2.2s; }
.motes i:nth-child(4) { left: 84%; top: 66%; animation-delay: 3.1s; width: 4px; height: 4px; }
.motes i:nth-child(5) { left: 44%; top: 18%; animation-delay: 4.4s; width: 3px; height: 3px; }
.motes i:nth-child(6) { left: 60%; top: 74%; animation-delay: 5.2s; width: 4px; height: 4px; }

.scene-head {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(197, 157, 85, 0.46);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #35506F;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  box-shadow: 0 4px 14px rgba(58, 100, 160, 0.08);
}
.seal::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}
.scene-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #6C86A8;
  text-indent: 0.22em;
}
.scene-stamp {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 17px;
  width: 29px;
  padding: 4px 0 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 1.5px solid rgba(181, 71, 59, 0.7);
  border-radius: 4px;
  background: rgba(255, 250, 245, 0.34);
  color: #B5473B;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  transform: rotate(4deg);
  box-shadow: 0 4px 12px rgba(150, 70, 60, 0.08);
}
.scene-stamp i { font-style: normal; }

.hero-card {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(35, 80, 150, 0.15);
}

.hero-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.realm-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(140deg, #EAF2FF, #DCEAFF);
  color: var(--primary-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-sub {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  line-height: 1;
}
.hero-num b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-num span { font-size: 10.5px; color: var(--muted); }
.hero-num span i { font-style: normal; font-weight: 700; color: var(--ink-2); }
.hero-num em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.bar {
  position: relative;
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background: #E6EEFA;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6FA5FF 0%, #3D7EFF 62%, #2E66E0 100%);
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}
.bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}
.bar.big { height: 10px; margin-top: 10px; background: #E4EDFB; }
.bar.thin { height: 5px; margin-top: 9px; flex: 0 0 100%; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hero-meta .mp-icon { width: 14px; height: 14px; color: var(--primary); }
.hero-meta span:last-child .mp-icon { color: var(--teal); }
.hero-meta b { color: var(--ink); font-weight: 800; }

.tap-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #4E8CFF 0%, #3D7EFF 46%, #2C63DE 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(61, 126, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tap-btn > .mp-icon { width: 23px; height: 23px; flex: 0 0 23px; opacity: 0.95; }
.tap-btn > span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.tap-btn b { font-size: 14.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.tap-btn em {
  font-style: normal;
  font-size: 9.5px;
  opacity: 0.82;
  letter-spacing: 0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.tap-btn:active:not(:disabled) { transform: scale(0.98); box-shadow: 0 6px 14px rgba(61, 126, 255, 0.28); }
.tap-btn.buff {
  background: linear-gradient(135deg, #3FCDB7 0%, #23B8A6 52%, #159A8C 100%);
  box-shadow: 0 12px 24px rgba(35, 184, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.tap-btn.cool,
.tap-btn:disabled {
  background: linear-gradient(135deg, #E9EFF8, #DFE8F4);
  color: #8B9AB0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.tap-btn.cool .mp-icon,
.tap-btn:disabled .mp-icon { opacity: 0.6; }
.tap-btn.big { margin: 14px 16px 0; width: calc(100% - 32px); min-height: 60px; border-radius: 18px; }
.tap-btn.full { margin: 14px 0 0; min-height: 58px; width: 100%; }

/* ---------- 离线条 ---------- */
.offline-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, #FFFFFF 0%, #EEF6FF 100%);
  box-shadow: var(--shadow-sm);
}
.offline-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--primary);
  background: #E6F0FF;
}
.offline-ico .mp-icon { width: 18px; height: 18px; }
.offline-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offline-body b { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.offline-body em { font-style: normal; font-size: 10px; color: var(--muted); line-height: 1.3; }

/* ---------- 今日修行入口 ---------- */
.daily-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 16px 0;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid #F0E1C2;
  background: linear-gradient(120deg, #FFFDF7 0%, #FFF6E6 100%);
  box-shadow: 0 6px 18px rgba(176, 137, 66, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease;
}
.daily-banner:active { transform: scale(0.99); }
.daily-banner-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #B8862F;
  background: linear-gradient(140deg, #FCF0D7, #F7E4B9);
}
.daily-banner-ico .mp-icon { width: 18px; height: 18px; }
.daily-banner-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.daily-banner-txt b {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.2;
}
.daily-banner-txt em { font-style: normal; font-size: 9.5px; color: #9A8A6D; line-height: 1.25; }
.daily-claim {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #F0DFC0;
  background: #FBF1DC;
  color: #9A7B3E;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.daily-claim.hot {
  color: #0F8F7E;
  background: #E4F8F3;
  border-color: #BFEDE3;
}
.daily-claim.done {
  color: #7C8BA3;
  background: #F0F4FA;
  border-color: #E4EAF3;
}
.daily-banner .chev { margin-left: 3px; }

/* ---------- 区块 ---------- */
.section { margin: 19px 16px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.sec-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  vertical-align: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}
.sec-head span { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 11px 10px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFFFF 0%, #FBFDFF 100%);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.entry:active { transform: scale(0.975); box-shadow: 0 3px 8px rgba(45, 86, 160, 0.05); }

.entry-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-soft);
}
.entry-ico .mp-icon { width: 21px; height: 21px; }
.entry-ico.green { color: #1FAE8F; background: linear-gradient(140deg, #E3F8F2, #D5F3EA); }
.entry-ico.gold { color: var(--gold); background: linear-gradient(140deg, #FCF3DF, #F8EACB); }
.entry-ico.violet { color: var(--violet); background: linear-gradient(140deg, #F0EDFF, #E7E2FF); }
.entry-ico.storm { color: #FFD98A; background: rgba(255, 255, 255, 0.13); }

.entry-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry-txt b { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; line-height: 1.2; }
.entry-txt em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev { width: 16px; height: 16px; margin-left: auto; color: #C2CFE2; flex: 0 0 16px; }

.trib-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  margin-top: 9px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(118deg, #1D2B4F 0%, #31477F 58%, #3E63A6 100%);
  box-shadow: 0 14px 28px rgba(29, 43, 79, 0.24);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.trib-card:active { transform: scale(0.985); }
.trib-glow {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -30px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.38) 0%, rgba(255, 217, 138, 0) 68%);
}
.trib-card .entry-txt b { color: #fff; }
.trib-card .entry-txt em { color: #B9CAE8; }
.trib-card .chev { color: rgba(255, 255, 255, 0.45); }
.trib-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 138, 0.34);
  background: rgba(255, 217, 138, 0.14);
  color: #FFD98A;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.trib-badge.ready {
  border-color: rgba(126, 245, 205, 0.42);
  background: rgba(126, 245, 205, 0.16);
  color: #8DF5D0;
}
.trib-badge.max { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.12); color: #E4ECFB; }
.trib-card .chev { margin-left: 0; }

.overview { display: flex; padding: 15px 6px; }
.ov-item { flex: 1 1 0; min-width: 0; text-align: center; position: relative; }
.ov-item + .ov-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.ov-item em { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); letter-spacing: 0.03em; }
.ov-item b {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.next-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 12px 13px;
  text-decoration: none;
  color: inherit;
}
.next-card:active { transform: scale(0.99); }
.next-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(140deg, #FCF3DF, #F8EACB);
}
.next-ico .mp-icon { width: 20px; height: 20px; }
.next-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-body b { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.next-body em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 子页页头 ---------- */
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 16px 12px;
}
.back {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.back .mp-icon { width: 19px; height: 19px; }
.back:active { transform: scale(0.94); }
.page-title { min-width: 0; }
.page-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.2;
}
.page-title p { margin: 2px 0 0; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.head-chip {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.head-chip.storm { background: #232F4D; color: #FFD98A; }

/* ---------- 修炼 ---------- */
.meditate {
  position: relative;
  margin: 0 16px;
  height: 238px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, #EAF4FF 0%, #FBFDFF 66%, #FFFFFF 100%);
}
.med-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 126, 255, 0.18) 0%, rgba(61, 126, 255, 0) 68%);
  animation: breathe 4.6s ease-in-out infinite;
}
.med-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(61, 126, 255, 0.16);
}
.med-ring.r1 { width: 164px; height: 164px; margin: -82px 0 0 -82px; border-style: dashed; animation: spin 40s linear infinite; }
.med-ring.r2 { width: 196px; height: 196px; margin: -98px 0 0 -98px; border-color: rgba(216, 169, 75, 0.2); border-top-color: rgba(216, 169, 75, 0.55); animation: spin 16s linear infinite reverse; }
.med-ring.r3 { width: 228px; height: 228px; margin: -114px 0 0 -114px; border-color: rgba(61, 126, 255, 0.08); }
.med-core {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0%, #EBF5FF 52%, #D6E8FF 100%);
  box-shadow: 0 18px 40px rgba(61, 126, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 40px rgba(122, 171, 255, 0.4);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  color: #2C5DBB;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}
.med-orbs { position: absolute; inset: 0; pointer-events: none; }
.med-orbs i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7FB2FF;
  box-shadow: 0 0 12px 3px rgba(61, 126, 255, 0.4);
  animation: floatUp 6.4s ease-in-out infinite;
}
.med-orbs i:nth-child(1) { left: 24%; top: 62%; animation-delay: 0s; }
.med-orbs i:nth-child(2) { left: 32%; top: 30%; animation-delay: 1.3s; }
.med-orbs i:nth-child(3) { left: 72%; top: 54%; animation-delay: 2.4s; }
.med-orbs i:nth-child(4) { left: 65%; top: 28%; animation-delay: 3.6s; }
.med-status {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.med-status .mp-icon { width: 13px; height: 13px; color: var(--primary); }
.med-rate {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.med-rate em { font-style: normal; font-size: 10px; color: var(--muted); }
.med-rate b { font-size: 21px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.med-rate em:last-child { color: var(--faint); }

.cult-card { margin: 12px 16px 0; padding: 16px; }
.cult-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cult-top h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; }
.cult-top span { font-size: 11px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.cult-line { display: flex; align-items: baseline; gap: 5px; margin-top: 7px; }
.cult-line b { font-size: 23px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.cult-line span { font-size: 10.5px; color: var(--muted); }
.cult-line span i { font-style: normal; font-weight: 700; color: var(--ink-2); }

.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.rate-grid > div { padding: 10px 12px; border-radius: 13px; background: linear-gradient(150deg, #F5F9FF, #EDF5FF); border: 1px solid #E7F0FC; }
.rate-grid em { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); }
.rate-grid b { display: block; margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.cd-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cd-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.cd-label .mp-icon { width: 14px; height: 14px; color: var(--primary); }
.cd-val { font-size: 11.5px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cd-val.ready { color: var(--teal); }
.cd-val.buff { color: var(--primary); }

.fine {
  margin: 12px 20px 0;
  font-size: 10px;
  line-height: 1.68;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- 洞府 ---------- */
.cave-sum { display: flex; margin: 0 16px; padding: 15px 4px; }
.cave-sum > div { flex: 1 1 0; min-width: 0; text-align: center; position: relative; }
.cave-sum > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--line);
}
.cave-sum em { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); }
.cave-sum b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cave-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 11px 18px 9px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.cave-tip .mp-icon { width: 13px; height: 13px; color: var(--primary); flex: 0 0 13px; }

.cave-list { margin: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.cave-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFFFF 0%, #FCFDFF 100%);
  box-shadow: var(--shadow-sm);
}
.cave-card.locked { background: #F7FAFF; border-color: #E9F0FA; box-shadow: none; }
.cave-ico {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}
.cave-ico .mp-icon,
.fortune-ico .mp-icon,
.item-ico .mp-icon { width: 23px; height: 23px; }
.cave-card.locked .cave-ico { color: #AAB9CD; background: #EDF3FB; }
.cave-main { flex: 1 1 auto; min-width: 0; }
.cave-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cave-title b { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; line-height: 1.2; }
.lv {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F0F6FF;
  color: var(--primary-deep);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.lv.lock-lv { background: #EDF2FA; color: #93A1B5; }
.cave-desc { margin: 3px 0 0; font-size: 10px; color: var(--muted); line-height: 1.4; }
.cave-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; font-size: 9.5px; color: var(--muted); }
.cave-stats b { color: var(--ink-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.cave-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.cost { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.cost em { font-style: normal; font-size: 9px; color: var(--faint); }
.cost b { font-size: 12.5px; font-weight: 800; color: var(--primary-deep); font-variant-numeric: tabular-nums; }
.cost b.short { color: #E0603F; }
.mini-btn {
  min-width: 78px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #4E8CFF, #2F6BE8);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(61, 126, 255, 0.24);
  transition: transform 0.12s ease;
}
.mini-btn:active:not(:disabled) { transform: scale(0.96); }
.mini-btn:disabled {
  background: #E7EEF8;
  color: #97A5B9;
  box-shadow: none;
  cursor: not-allowed;
}
.cave-lock { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 9.5px; color: #93A1B5; }
.cave-lock .mp-icon { width: 12px; height: 12px; }

/* ---------- 造化 ---------- */
.fortune-hero {
  position: relative;
  margin: 0 16px;
  min-height: 122px;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(118deg, #213763 0%, #2E4E8C 56%, #4A78C9 100%);
  box-shadow: 0 16px 34px rgba(33, 55, 99, 0.26);
  color: #fff;
}
.fh-orb {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -34px;
  top: -52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.42) 0%, rgba(255, 217, 138, 0) 68%);
}
.fh-orb.small {
  width: 90px;
  height: 90px;
  right: auto;
  left: -28px;
  top: auto;
  bottom: -36px;
  background: radial-gradient(circle, rgba(122, 171, 255, 0.42) 0%, rgba(122, 171, 255, 0) 68%);
}
.fh-txt { position: relative; display: flex; flex-direction: column; }
.fh-txt > span { font-size: 10px; letter-spacing: 0.28em; color: #A9C2EB; text-indent: 0.28em; }
.fh-txt b {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}
.fh-txt em { margin-top: 7px; font-style: normal; font-size: 10px; color: #B9CAE8; letter-spacing: 0.04em; }

.fortune-list { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 9px; }
.fortune-card,
.item-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFFFF 0%, #FCFDFF 100%);
  box-shadow: var(--shadow-sm);
}
.fortune-ico,
.item-ico {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}
.fortune-main, .item-main { flex: 1 1 auto; min-width: 0; }
.fortune-effect {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--muted);
}
.fortune-effect .mp-icon { width: 12px; height: 12px; color: var(--gold); }
.fortune-effect b { color: var(--primary-deep); font-weight: 800; font-variant-numeric: tabular-nums; }

/* 通用颜色修饰 */
.tint-blue { color: var(--primary); background: linear-gradient(140deg, #EAF2FF, #DCEAFF); }
.tint-green { color: #1FAE8F; background: linear-gradient(140deg, #E3F8F2, #D5F3EA); }
.tint-teal { color: var(--teal); background: linear-gradient(140deg, #E4FAF6, #D5F4EE); }
.tint-gold { color: var(--gold); background: linear-gradient(140deg, #FCF3DF, #F8EACB); }
.tint-violet { color: var(--violet); background: linear-gradient(140deg, #F0EDFF, #E7E2FF); }

/* ---------- 背包 ---------- */
.bag-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px; }
.bres {
  padding: 12px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFFFF, #F4F9FF);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.bres .mp-icon { width: 19px; height: 19px; color: var(--primary); }
.bres:nth-child(2) .mp-icon { color: var(--teal); }
.bres:nth-child(3) .mp-icon { color: var(--gold); }
.bres em { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; color: var(--muted); }
.bres b { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bag-head { margin: 17px 16px 9px; }
.item-list { margin: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.item-card.dim { opacity: 0.66; box-shadow: none; background: #F8FBFF; }

/* ---------- 每日任务 ---------- */
.daily-hero {
  position: relative;
  margin: 0 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(220px 160px at 88% 0%, rgba(255, 231, 183, 0.42), transparent 70%),
    linear-gradient(125deg, #FFFFFF 0%, #EDF5FF 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  isolation: isolate;
}
.daily-hero::after {
  content: "修";
  position: absolute;
  z-index: 0;
  right: 12px;
  bottom: -22px;
  font-family: var(--serif);
  font-size: 104px;
  line-height: 1;
  color: rgba(61, 126, 255, 0.055);
  pointer-events: none;
}
.daily-ring {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E4EDFB;
  box-shadow: 0 10px 24px rgba(61, 126, 255, 0.18);
}
.daily-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #EAF1FB;
}
.daily-ring span {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.daily-hero-txt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.daily-kicker {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-indent: 0.24em;
}
.daily-hero-txt b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}
.daily-hero-txt em { font-style: normal; font-size: 10px; line-height: 1.45; color: var(--muted); }

.daily-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 16px 10px;
}
.daily-refresh { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--faint); }
.daily-refresh .mp-icon { width: 13px; height: 13px; color: var(--primary); }
.claim-all { min-width: 106px; }

.task-list { margin: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.task-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFFFF 0%, #FCFDFF 100%);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.task-card.done {
  border-color: #EFDDB8;
  background: linear-gradient(160deg, #FFFDF7 0%, #FFF8EA 100%);
  box-shadow: 0 8px 20px rgba(190, 150, 70, 0.1);
}
.task-card.claimed { opacity: 0.66; background: #F8FBFF; box-shadow: none; }
.task-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}
.task-ico .mp-icon { width: 22px; height: 22px; }
.task-main { flex: 1 1 auto; min-width: 0; }
.task-reward {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 9.5px;
  line-height: 1.4;
  color: #9A7B3E;
  font-variant-numeric: tabular-nums;
}
.task-reward .mp-icon { width: 12px; height: 12px; flex: 0 0 12px; color: var(--gold); }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.task-state { font-size: 9.5px; font-weight: 700; color: var(--faint); }
.task-state.ready { color: var(--teal); }

/* ---------- 渡劫 ---------- */
.trib-hero {
  position: relative;
  margin: 0 16px;
  height: 194px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(140% 120% at 50% 112%, #3E66AB 0%, #22345A 52%, #16223D 100%);
  box-shadow: 0 18px 38px rgba(22, 34, 61, 0.3);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.trib-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 74% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 48% 34%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 42%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.8;
}
.trib-halo {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 150px;
  height: 150px;
  margin-left: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.34) 0%, rgba(255, 217, 138, 0) 66%);
  animation: breathe 4.4s ease-in-out infinite;
}
.bolt {
  position: absolute;
  top: 0;
  width: 54px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 244, 205, 0.95), rgba(158, 196, 255, 0.1));
  clip-path: polygon(58% 0, 100% 0, 62% 42%, 88% 42%, 24% 100%, 42% 55%, 12% 55%);
  opacity: 0;
  animation: boltFlash 6.5s ease-in-out infinite;
}
.bolt.b1 { left: 14%; animation-delay: 0.8s; }
.bolt.b2 { right: 12%; height: 96px; transform: scaleX(0.8); animation-delay: 3.4s; }
.trib-hero.ready .trib-halo { background: radial-gradient(circle, rgba(126, 245, 205, 0.34) 0%, rgba(126, 245, 205, 0) 66%); }

.trib-path {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tp-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-item em { font-style: normal; font-size: 9px; letter-spacing: 0.08em; color: #98AED4; }
.tp-item b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.tp-item.next b { color: #FFD98A; }
.tp-arrow { color: rgba(255, 255, 255, 0.42); display: inline-flex; }
.tp-arrow .mp-icon { width: 20px; height: 20px; }

.trib-info { margin: 12px 16px 0; padding: 16px; }
.reward-list { list-style: none; margin: 13px 0 0; padding: 0; }
.reward-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.reward-list li .mp-icon { width: 15px; height: 15px; color: var(--primary); flex: 0 0 15px; }
.reward-list li:nth-child(2) .mp-icon { color: #1FAE8F; }
.reward-list li:nth-child(3) .mp-icon { color: var(--gold); }
.reward-list b { color: var(--ink); font-weight: 800; }

.trib-quote { display: flex; align-items: flex-start; gap: 9px; margin: 12px 16px 0; padding: 14px; }
.trib-quote .mp-icon { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; margin-top: 1px; }
.trib-quote p { margin: 0; font-size: 10px; line-height: 1.68; color: var(--muted); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  max-width: 480px;
  display: flex;
  padding: 5px 8px calc(5px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #E4EDF9;
  box-shadow: 0 -10px 26px rgba(40, 80, 150, 0.07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tabbar a {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 5px;
  border-radius: 12px;
  color: #93A2B7;
  text-decoration: none;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.tabbar a .mp-icon { width: 23px; height: 23px; transition: transform 0.2s ease; }
.tabbar a.active { color: var(--primary); font-weight: 700; }
.tabbar a.active .mp-icon { transform: translateY(-1px); }
.tabbar a.active::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.tabbar a:active { background: rgba(61, 126, 255, 0.06); }
.tab-dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 8px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E0603F;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(224, 96, 63, 0.4);
}

/* ---------- 提示与雷光 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 90;
  max-width: 330px;
  width: max-content;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(24, 43, 74, 0.94);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  box-shadow: 0 12px 30px rgba(20, 36, 62, 0.28);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.flash {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 40%, #FFFBE8 0%, rgba(160, 196, 255, 0.9) 42%, rgba(61, 126, 255, 0.25) 70%, transparent 100%);
}
.flash.on { animation: flashBurst 0.8s ease-out both; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(26px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.035); opacity: 1; }
}
@keyframes floatUp {
  0% { transform: translateY(6px); opacity: 0; }
  26% { opacity: 0.9; }
  70% { opacity: 0.65; }
  100% { transform: translateY(-46px); opacity: 0; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@keyframes boltFlash {
  0%, 84%, 100% { opacity: 0; }
  85% { opacity: 0.9; }
  87% { opacity: 0.2; }
  89% { opacity: 0.75; }
  93% { opacity: 0; }
}
@keyframes flashBurst {
  0% { opacity: 0; }
  16% { opacity: 1; }
  46% { opacity: 0.5; }
  100% { opacity: 0; }
}

@media (max-width: 360px) {
  .scene { min-height: 412px; }
  .hero-num b { font-size: 26px; }
  .entry { padding: 10px 8px; gap: 7px; }
  .entry-ico { width: 34px; height: 34px; flex-basis: 34px; }
  .entry-txt b { font-size: 12.5px; }
  .tabbar a { font-size: 9px; }
  .toast { max-width: 290px; font-size: 11px; }
}

@media (min-width: 600px) {
  body { padding: 22px 0; }
  .app { min-height: calc(100vh - 44px); border-radius: 30px; }
  .topbar { border-radius: 30px 30px 0 0; }
  .tabbar { bottom: 22px; border-radius: 0 0 28px 28px; }
  .toast { bottom: 114px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   仙府夜宴 · 高保真视觉主题
   以参考图的深蓝云海、金边玉阙为准；主色仍取 app.theme_color
   ============================================================ */
:root {
  --ink: #EAF2FF;
  --ink-2: #BFD0E9;
  --muted: #8CA2C2;
  --faint: #6E83A4;
  --line: rgba(148, 183, 235, 0.16);
  --line-strong: rgba(186, 213, 255, 0.22);
  --card: #122747;
  --primary-soft: rgba(61, 126, 255, 0.16);
  --teal-soft: rgba(35, 184, 166, 0.12);
  --gold-soft: rgba(216, 169, 75, 0.14);
  --violet-soft: rgba(139, 123, 240, 0.14);
  --shadow: 0 14px 34px rgba(2, 9, 24, 0.34);
  --shadow-sm: 0 6px 16px rgba(2, 9, 24, 0.28);
  --shadow-lg: 0 24px 54px rgba(2, 9, 24, 0.42);
}
body {
  color: var(--ink);
  background:
    radial-gradient(900px 540px at 82% -8%, rgba(28, 65, 120, 0.55) 0%, rgba(28, 65, 120, 0) 62%),
    radial-gradient(760px 520px at 8% 10%, rgba(18, 48, 92, 0.55) 0%, rgba(18, 48, 92, 0) 58%),
    #050C1A;
}
.app {
  padding-bottom: calc(64px + var(--safe-bottom));
  background:
    radial-gradient(620px 420px at 50% 0%, rgba(45, 92, 150, 0.28) 0%, rgba(45, 92, 150, 0) 72%),
    linear-gradient(180deg, #0A1830 0%, #081429 55%, #050C1A 100%);
  box-shadow: 0 0 0 1px rgba(160, 190, 235, 0.12), 0 30px 90px rgba(0, 0, 0, 0.5);
}
.bg-aura {
  background:
    radial-gradient(320px 240px at 78% 16%, rgba(61, 126, 255, 0.14), transparent 70%),
    radial-gradient(300px 260px at 12% 58%, rgba(216, 169, 75, 0.07), transparent 72%);
}

/* ---------- 顶栏 ---------- */
.topbar {
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: linear-gradient(180deg, rgba(5, 13, 28, 0.98) 0%, rgba(5, 13, 28, 0.88) 72%, rgba(5, 13, 28, 0.45) 100%);
  border-bottom: 1px solid rgba(216, 169, 75, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.hud { gap: 8px; }
.hud-id { gap: 9px; }
.avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 50%;
  border: 1px solid rgba(231, 195, 118, 0.55);
  background: #0C1B33;
  box-shadow: 0 0 0 2px rgba(6, 15, 30, 0.8), 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 18px rgba(61, 126, 255, 0.22);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hud-txt b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F4E3B7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hud-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hud-sub em {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(216, 169, 75, 0.3);
  background: rgba(216, 169, 75, 0.1);
  color: #E7C983;
  font-style: normal;
  font-size: 8.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.hud-sub em::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: #E7C983;
  box-shadow: 0 0 6px rgba(231, 201, 131, 0.8);
}
.hud-sub i {
  font-style: normal;
  font-size: 8.5px;
  color: #8FA8CA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offline-pill {
  min-height: 32px;
  padding: 0 9px;
  gap: 4px;
  border-color: rgba(148, 183, 235, 0.22);
  background: rgba(12, 27, 52, 0.72);
  color: #B8CCE8;
  font-size: 8.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.offline-pill .mp-icon { width: 13px; height: 13px; color: #8FC2FF; }

.res-row { gap: 8px; margin-top: 8px; }
.res-pill {
  padding: 6px 8px;
  gap: 6px;
  border-color: rgba(148, 183, 235, 0.14);
  background: linear-gradient(180deg, rgba(20, 41, 74, 0.8), rgba(9, 21, 42, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 5px 14px rgba(0, 0, 0, 0.22);
}
.res-ico {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 8px;
  color: #9FC6FF;
  background: radial-gradient(circle at 35% 28%, rgba(61, 126, 255, 0.34), rgba(12, 30, 58, 0.9));
  border: 1px solid rgba(120, 170, 255, 0.2);
}
.res-ico.teal {
  color: #86E8D8;
  background: radial-gradient(circle at 35% 28%, rgba(35, 184, 166, 0.3), rgba(12, 30, 58, 0.9));
  border-color: rgba(35, 184, 166, 0.2);
}
.res-ico .mp-icon { width: 15px; height: 15px; }
.res-meta em { font-size: 8px; color: #7E97BA; }
.res-meta b { font-size: 13.5px; color: #F0F6FF; }
.res-rate { font-size: 8px; color: #7BE3D2; }

.hud-level { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.hud-level-name { font-size: 8.5px; color: #8FA8CA; white-space: nowrap; }
.hud-level-name b { color: #E7C983; font-weight: 700; }
.hud-level .bar { flex: 1 1 auto; margin-top: 0; height: 5px; background: rgba(110, 150, 210, 0.16); }
.hud-level-num { font-size: 8px; color: #7E97BA; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-level-num b { color: #DCE9FF; font-weight: 700; }
.hud-level-num i { font-style: normal; color: #9DB4D4; }
.hud-level > em { font-style: normal; font-size: 8px; font-weight: 700; color: #9FC6FF; min-width: 26px; text-align: right; }
.bar {
  background: rgba(110, 150, 210, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.bar i { background: linear-gradient(90deg, #4C86E8 0%, #7FB6FF 58%, #E7C983 100%); }
.bar.big { background: rgba(110, 150, 210, 0.14); }
.bar.thin { background: rgba(110, 150, 210, 0.14); }

/* ---------- 主殿云海场景 ---------- */
.home-view { padding: 0; }
.home-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 198px);
  height: calc(100dvh - 198px - env(safe-area-inset-top, 0px));
  min-height: 360px;
  overflow: hidden;
  background: #071427;
  isolation: isolate;
}
.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.55) 0%, rgba(4, 10, 22, 0) 18%, rgba(4, 10, 22, 0) 68%, rgba(4, 10, 22, 0.86) 100%),
    radial-gradient(120% 80% at 50% 42%, rgba(4, 10, 22, 0) 40%, rgba(4, 10, 22, 0.35) 100%);
  pointer-events: none;
}
.stage-aura {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 30%;
  width: 92%;
  height: 56%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 224, 156, 0.16) 0%, rgba(97, 160, 255, 0.08) 38%, rgba(61, 126, 255, 0) 70%);
  pointer-events: none;
  filter: blur(8px);
}
.stage-mote {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFF3CE;
  box-shadow: 0 0 10px 3px rgba(255, 240, 200, 0.55);
  animation: moteFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.stage-mote.m1 { left: 14%; top: 34%; animation-delay: 0s; }
.stage-mote.m2 { left: 81%; top: 28%; animation-delay: 1.8s; }
.stage-mote.m3 { left: 28%; top: 52%; animation-delay: 3.2s; }
.stage-mote.m4 { left: 72%; top: 56%; animation-delay: 4.6s; }

.hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  animation: islandFloat 8s ease-in-out infinite;
}
.hotspot img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease, filter 0.18s ease;
}
.hotspot:active img { transform: scale(0.975); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)) brightness(1.06); }
.hotspot-palace { left: 17%; top: 1%; width: 66%; z-index: 5; animation-delay: 0.4s; }
.hotspot-lingtian { left: 0.5%; top: 38%; width: 32%; z-index: 4; animation-delay: 1.1s; }
.hotspot-danfang { right: 0.5%; top: 40%; width: 32%; z-index: 4; animation-delay: 2s; }
.hotspot-qige { left: 3%; top: 59.5%; width: 32%; z-index: 4; animation-delay: 0.8s; }
.hotspot-julingzhen { right: 3%; top: 61.5%; width: 32%; z-index: 4; animation-delay: 1.6s; }

.hotspot-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 31px;
  padding: 8px 5px 6px;
  border: 1px solid rgba(231, 195, 118, 0.48);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(10, 25, 50, 0.92), rgba(5, 14, 30, 0.88));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38), inset 0 0 14px rgba(61, 126, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hotspot-tag::before,
.hotspot-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(231, 195, 118, 0.7), transparent);
}
.hotspot-tag::before { top: 3px; }
.hotspot-tag::after { bottom: 3px; }
.hotspot-tag b {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: #F4E3B7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.hotspot-tag em {
  font-style: normal;
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: #93AACB;
  white-space: nowrap;
}
.tag-left { left: 0; top: 5%; }
.tag-right { right: 0; top: 5%; }
.hotspot-danfang .hotspot-badge,
.hotspot-julingzhen .hotspot-badge { left: 0; right: auto; }
.tag-palace { left: 4%; top: 28%; }
.tag-palace b { font-size: 16px; letter-spacing: 0.22em; }
.tag-palace em { display: none; }

.hotspot-badge {
  position: absolute;
  z-index: 5;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #FFE4C4;
  background: linear-gradient(180deg, #FF826A 0%, #D93A2B 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(217, 58, 43, 0.52);
  animation: badgePulse 2.6s ease-in-out infinite;
}
.palace-status {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(231, 195, 118, 0.28);
  background: rgba(6, 17, 36, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.palace-status b { font-size: 8.5px; color: #C6D9F2; font-weight: 600; }
.palace-status .trib-badge { margin-left: 0; padding: 2px 7px; font-size: 8px; }

.side-dock {
  position: absolute;
  z-index: 7;
  right: 8px;
  top: 2%;
  width: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-dock::before {
  content: "";
  position: absolute;
  inset: -5px -3px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 14, 30, 0.62), rgba(5, 14, 30, 0.18));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 2px;
  border-radius: 11px;
  border: 1px solid rgba(231, 195, 118, 0.38);
  background: linear-gradient(180deg, rgba(20, 42, 76, 0.88), rgba(6, 17, 36, 0.9));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #E6F0FF;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dock-btn:active { transform: scale(0.96); }
.dock-ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(231, 195, 118, 0.36);
  background: radial-gradient(circle at 35% 28%, #376197 0%, #132D52 68%, #0A1933 100%);
  box-shadow: inset 0 0 10px rgba(61, 126, 255, 0.2);
}
.dock-ico .mp-icon { width: 15px; height: 15px; color: #FFE1A0; }
.dock-btn b { font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: #F4E3B7; line-height: 1.2; }
.dock-btn em { font-style: normal; font-size: 7.5px; color: #8FA8CA; line-height: 1.2; }
.dock-btn.gold .dock-ico { background: radial-gradient(circle at 35% 28%, #8C6A33 0%, #3C2D18 68%, #1A130A 100%); border-color: rgba(255, 221, 148, 0.45); }
.dock-btn .daily-claim { display: none; }

.tap-btn {
  border: 1px solid rgba(231, 195, 118, 0.42);
  background: linear-gradient(135deg, #1E497F 0%, #12325D 52%, #0A1E3C 100%);
  color: #F6E7C3;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.tap-btn.buff {
  background: linear-gradient(135deg, #2A7E74 0%, #15554F 55%, #0A2C2A 100%);
  border-color: rgba(140, 245, 219, 0.44);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 22px rgba(35, 184, 166, 0.18);
}
.tap-btn.cool,
.tap-btn:disabled {
  background: linear-gradient(135deg, #2A3650 0%, #182338 100%);
  border-color: rgba(130, 155, 190, 0.22);
  color: #7F90A8;
  text-shadow: none;
}
.tap-btn.medallion {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 22%;
  width: 86px;
  height: 86px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(-50%);
  background: radial-gradient(circle at 38% 30%, #35679E 0%, #153A68 48%, #07172F 100%);
  border: 1px solid rgba(255, 230, 170, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), 0 0 0 5px rgba(216, 169, 75, 0.1), 0 0 26px rgba(61, 126, 255, 0.24);
}
.tap-btn.medallion::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(231, 195, 118, 0.45);
  animation: spin 26s linear infinite;
}
.tap-btn.medallion .mp-icon { width: 25px; height: 25px; color: #FFE0A0; }
.tap-btn.medallion > span { align-items: center; text-align: center; gap: 0; }
.tap-btn.medallion b { font-family: var(--serif); font-size: 13px; letter-spacing: 0.14em; color: #F7E7BE; }
.tap-btn.medallion em { font-size: 7.5px; color: #A9C0E0; opacity: 1; letter-spacing: 0.04em; }
.tap-btn.medallion:active:not(:disabled) { transform: translateX(-50%) scale(0.95); }
.tap-btn.medallion.buff { background: radial-gradient(circle at 38% 30%, #2F8E84 0%, #134B48 48%, #071F20 100%); border-color: rgba(140, 245, 219, 0.55); }
.tap-btn.medallion.cool,
.tap-btn.medallion:disabled { background: radial-gradient(circle at 38% 30%, #2A3448 0%, #151D2D 52%, #0A1220 100%); border-color: rgba(130, 155, 190, 0.24); }

.stage-bottom {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 9px;
  background: linear-gradient(180deg, rgba(4, 11, 24, 0) 0%, rgba(4, 11, 24, 0.68) 26%, rgba(4, 11, 24, 0.94) 100%);
}
.stage-bottom-row { display: flex; align-items: center; gap: 8px; }
.stage-bottom-main { flex: 1 1 auto; min-width: 0; }
.stage-bottom .stage-stats { justify-content: flex-start; gap: 8px; margin-bottom: 6px; }
.stage-bottom .stage-stats span { font-size: 7.5px; gap: 3px; }
.stage-bottom .stage-stats b { font-size: 8.5px; }
.stage-bottom .tap-btn.medallion {
  position: relative;
  left: auto;
  bottom: auto;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  min-height: 0;
  margin: 0;
  transform: none;
  padding: 0;
}
.stage-bottom .tap-btn.medallion:active:not(:disabled) { transform: scale(0.95); }
.stage-bottom .tap-btn.medallion .mp-icon { width: 20px; height: 20px; }
.stage-bottom .tap-btn.medallion b { font-size: 10px; letter-spacing: 0.04em; }
.stage-bottom .tap-btn.medallion em { font-size: 6.5px; }
.stage-stats { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 7px; }
.stage-stats span { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; color: #8FA8CA; white-space: nowrap; }
.stage-stats span .mp-icon { width: 12px; height: 12px; color: #7FB4FF; }
.stage-stats span:nth-child(2) .mp-icon { color: #E3C27A; }
.stage-stats span:nth-child(3) .mp-icon { color: #C6A4FF; }
.stage-stats em { font-style: normal; color: #7890B2; }
.stage-stats b { font-size: 9px; font-weight: 700; color: #DCE9FF; }
.offline-card {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(231, 195, 118, 0.22);
  background: linear-gradient(120deg, rgba(22, 45, 82, 0.84), rgba(8, 20, 40, 0.9));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #E6F0FF;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.offline-card:active { transform: scale(0.99); }
.offline-ico {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 9px;
  color: #8FC2FF;
  background: rgba(61, 126, 255, 0.16);
  border: 1px solid rgba(120, 170, 255, 0.2);
}
.offline-ico .mp-icon { width: 16px; height: 16px; }
.offline-body b { color: #E8F2FF; font-size: 10.5px; }
.offline-body em { color: #8FA8CA; font-size: 8.5px; }
.offline-card .chev { width: 14px; height: 14px; color: #8299B9; }

/* ---------- 子页暗夜金边组件 ---------- */
.page-title h1 { color: #F2E2B8; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.page-title p { color: #89A1C4; }
.back {
  background: linear-gradient(180deg, rgba(21, 43, 76, 0.9), rgba(8, 20, 40, 0.92));
  border-color: rgba(160, 190, 235, 0.2);
  color: #D8E6FF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}
.head-chip {
  background: rgba(61, 126, 255, 0.12);
  border: 1px solid rgba(61, 126, 255, 0.2);
  color: #9FC6FF;
}
.head-chip.storm { background: rgba(216, 169, 75, 0.12); border-color: rgba(216, 169, 75, 0.28); color: #E7C983; }
.card {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.92) 0%, rgba(10, 23, 44, 0.94) 100%);
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.fine { color: #6E83A4; }
.lv { background: rgba(61, 126, 255, 0.14); color: #9FC6FF; }
.lv.lock-lv { background: rgba(120, 145, 180, 0.12); color: #7F93AE; }
.cost b { color: #9CC2FF; }
.cost b.short { color: #FF8F74; }
.cost em { color: #6E83A4; }
.mini-btn {
  background: linear-gradient(135deg, #1F4B80 0%, #13325B 55%, #0B1E3B 100%);
  border: 1px solid rgba(231, 195, 118, 0.36);
  color: #F6E7C3;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}
.mini-btn:disabled {
  background: linear-gradient(135deg, #25324A 0%, #162033 100%);
  border-color: rgba(130, 155, 190, 0.18);
  color: #7F90A8;
  box-shadow: none;
}
.tint-blue { color: #8FC2FF; background: rgba(61, 126, 255, 0.14); }
.tint-green { color: #7BE3C9; background: rgba(35, 184, 166, 0.13); }
.tint-teal { color: #7BE3D2; background: rgba(35, 184, 166, 0.13); }
.tint-gold { color: #E7C983; background: rgba(216, 169, 75, 0.13); }
.tint-violet { color: #B7AAFF; background: rgba(139, 123, 240, 0.14); }

.meditate {
  background:
    radial-gradient(circle at 50% 48%, rgba(61, 126, 255, 0.2) 0%, rgba(15, 35, 65, 0.72) 48%, rgba(7, 17, 34, 0.96) 100%);
  border-color: rgba(160, 190, 235, 0.16);
}
.med-core {
  background: radial-gradient(circle at 36% 30%, #2E5D91 0%, #163B68 52%, #091A34 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(231, 195, 118, 0.3), 0 0 40px rgba(61, 126, 255, 0.2);
  color: #F4E3B7;
}
.med-glow { background: radial-gradient(circle, rgba(61, 126, 255, 0.22) 0%, rgba(61, 126, 255, 0) 68%); }
.med-ring { border-color: rgba(120, 170, 255, 0.18); }
.med-ring.r2 { border-color: rgba(216, 169, 75, 0.16); border-top-color: rgba(216, 169, 75, 0.5); }
.med-ring.r3 { border-color: rgba(120, 170, 255, 0.08); }
.med-status {
  background: rgba(10, 25, 50, 0.72);
  border-color: rgba(160, 190, 235, 0.18);
  color: #B8CCE8;
}
.med-status .mp-icon { color: #8FC2FF; }
.med-rate b { color: #EAF2FF; }
.med-orbs i { background: #8FC2FF; box-shadow: 0 0 12px 3px rgba(61, 126, 255, 0.4); }
.cult-card .rate-grid > div {
  background: linear-gradient(150deg, rgba(27, 55, 95, 0.8), rgba(10, 25, 48, 0.85));
  border-color: rgba(160, 190, 235, 0.14);
}
.cd-card {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.9), rgba(9, 21, 42, 0.92));
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}
.cd-label { color: #89A1C4; }
.cd-label .mp-icon { color: #8FC2FF; }
.cd-val { color: #BFD0E9; }

.realm-banner {
  position: relative;
  margin: 0 16px 10px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.realm-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.realm-banner-txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.realm-banner-txt em { font-style: normal; font-size: 8px; letter-spacing: 0.26em; color: #C9A968; text-indent: 0.26em; }
.realm-banner-txt b {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F4E3B7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 0 18px rgba(232, 197, 122, 0.16);
}

.cave-card {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.9) 0%, rgba(9, 22, 43, 0.92) 100%);
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}
.cave-card.locked { background: rgba(13, 29, 54, 0.72); border-color: rgba(130, 160, 200, 0.1); }
.cave-card.locked .cave-ico { color: #6D819D; background: rgba(120, 145, 180, 0.1); }
.cave-desc { color: #8CA2C2; }
.cave-stats b { color: #C6D9F2; }
.cave-tip { color: #8CA2C2; }
.cave-tip .mp-icon { color: #8FC2FF; }
.cave-lock { color: #7F93AE; }
.cave-sum { color: #EAF2FF; }

.fortune-hero {
  background:
    radial-gradient(260px 180px at 84% -10%, rgba(232, 197, 122, 0.24), transparent 70%),
    linear-gradient(118deg, #12294E 0%, #173B6B 56%, #265089 100%);
  border: 1px solid rgba(231, 195, 118, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}
.fortune-card,
.item-card {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.9) 0%, rgba(9, 22, 43, 0.92) 100%);
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}
.fortune-effect { color: #8CA2C2; }
.fortune-effect b { color: #9CC2FF; }
.fortune-effect .mp-icon { color: #E7C983; }
.cave-title b { color: #EAF2FF; }

.bag-res .bres {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.9), rgba(9, 22, 43, 0.92));
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.bres em { color: #8CA2C2; }
.bres b { color: #EAF2FF; }
.item-card.dim { background: rgba(13, 29, 54, 0.7); }

.daily-hero {
  background:
    radial-gradient(240px 170px at 88% 0%, rgba(232, 197, 122, 0.18), transparent 70%),
    linear-gradient(125deg, rgba(23, 48, 84, 0.95) 0%, rgba(9, 22, 43, 0.96) 100%);
  border-color: rgba(160, 190, 235, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
.daily-hero::after { color: rgba(143, 194, 255, 0.06); }
.daily-ring { background: #142642; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32); }
.daily-ring::before { background: #0C1C35; box-shadow: inset 0 0 0 1px rgba(160, 190, 235, 0.18); }
.daily-ring span { color: #F4E3B7; }
.daily-kicker { color: #E7C983; }
.daily-hero-txt b { color: #F2E2B8; }
.daily-refresh { color: #6E83A4; }
.daily-refresh .mp-icon { color: #8FC2FF; }
.task-card {
  background: linear-gradient(160deg, rgba(20, 41, 74, 0.9), rgba(9, 22, 43, 0.92));
  border-color: rgba(160, 190, 235, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.task-card.done {
  border-color: rgba(231, 195, 118, 0.38);
  background: linear-gradient(160deg, rgba(54, 46, 35, 0.78), rgba(24, 26, 36, 0.94));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}
.task-card.claimed { background: rgba(13, 29, 54, 0.65); }
.task-reward { color: #C9A968; }
.task-state { color: #6E83A4; }
.task-state.ready { color: #7BE3D2; }

.trib-hero {
  background: #0A1428;
  border: 1px solid rgba(231, 195, 118, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}
.trib-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.trib-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.08) 0%, rgba(4, 10, 22, 0) 45%, rgba(4, 10, 22, 0.68) 100%);
  pointer-events: none;
}
.trib-hero.ready { box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4), 0 0 32px rgba(232, 197, 122, 0.22); }
.trib-path { background: rgba(6, 17, 36, 0.7); border-color: rgba(231, 195, 118, 0.22); }
.tp-item em { color: #8FA8CA; }
.tp-item b { color: #F2E2B8; }
.tp-item.next b { color: #FFE1A0; }
.trib-info .cult-line b { color: #EAF2FF; }
.reward-list li { color: #BFD0E9; }
.reward-list b { color: #F0F6FF; }
.reward-list li .mp-icon { color: #8FC2FF; }
.trib-quote p { color: #8CA2C2; }

.tabbar {
  background: linear-gradient(180deg, rgba(8, 19, 39, 0.96) 0%, rgba(4, 11, 24, 0.99) 100%);
  border-top: 1px solid rgba(231, 195, 118, 0.16);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.38);
}
.tabbar a { color: #7489A7; }
.tabbar a.active { color: #F4D89B; }
.tabbar a.active::after { background: linear-gradient(90deg, #B8863B, #FFE7A8); box-shadow: 0 0 10px rgba(232, 197, 122, 0.55); }
.tabbar a:active { background: rgba(61, 126, 255, 0.1); }
.tabbar a .mp-icon { color: inherit; }
.tab-dot { border-color: #071226; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}
.modal.show { display: flex; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 18, 0.76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 350px;
  padding: 26px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(231, 195, 118, 0.36);
  background: #0B1D3A url("assets/modal-bg.svg") center / 100% 100% no-repeat;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: modalPop 0.28s ease both;
}
.modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 190, 235, 0.18);
  border-radius: 50%;
  background: rgba(8, 19, 39, 0.7);
  color: #AFC4E0;
  cursor: pointer;
}
.modal-close .mp-icon { width: 17px; height: 17px; }
.modal-kicker { display: block; font-size: 8.5px; letter-spacing: 0.28em; color: #C9A968; text-indent: 0.28em; }
.modal-panel h3 {
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F4E3B7;
}
.modal-panel p { margin: 0 auto; max-width: 270px; font-size: 11px; line-height: 1.72; color: #A9BDD8; }
.modal-stats { display: flex; gap: 7px; margin-top: 14px; }
.modal-stats > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(160, 190, 235, 0.14);
  background: rgba(8, 20, 40, 0.55);
}
.modal-stats em { display: block; font-style: normal; font-size: 8px; color: #7E97BA; }
.modal-stats b { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: #F4E3B7; font-variant-numeric: tabular-nums; }
.modal-ok { margin-top: 16px; min-height: 46px; }

@keyframes moteFloat {
  0%, 100% { transform: translateY(4px); opacity: 0.2; }
  50% { transform: translateY(-10px); opacity: 0.9; }
}
@keyframes islandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 360px) {
  .hud-txt b { font-size: 16px; }
  .hud-sub i { display: none; }
  .hotspot-tag b { font-size: 13px; }
  .tag-palace b { font-size: 14px; }
  .side-dock { width: 54px; right: 6px; }
  .dock-btn b { font-size: 10px; }
  .tap-btn.medallion { width: 78px; height: 78px; }
  .stage-stats { gap: 9px; }
  .stage-stats span { font-size: 7.5px; }
}

@media (max-height: 700px) {
  .hotspot-palace { top: 0; }
  .hotspot-lingtian { top: 35%; }
  .hotspot-danfang { top: 37%; }
  .hotspot-qige { top: 55%; }
  .hotspot-julingzhen { top: 57%; }
  .tap-btn.medallion { bottom: 26%; width: 76px; height: 76px; }
  .side-dock { top: 2%; }
}

@media (min-width: 600px) {
  .home-stage { height: calc(100vh - 242px); height: calc(100dvh - 242px); }
  .topbar { border-radius: 30px 30px 0 0; }
  .tabbar { background: linear-gradient(180deg, rgba(8, 19, 39, 0.98), rgba(4, 11, 24, 1)); }
}

/* ---------- 参考图主视觉层（本地 attachments 加载，失败自动回退 SVG） ---------- */
.ref-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  z-index: 1;
  display: none;
  pointer-events: none;
  overflow: hidden;
}
.ref-bg {
  display: block;
  width: 100%;
  height: auto;
}
.ref-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}
.ref-fade-top {
  top: 0;
  height: 13%;
  background: linear-gradient(180deg, #050C1A 0%, rgba(5, 12, 26, 0.9) 45%, rgba(5, 12, 26, 0) 100%);
}
.ref-fade-bottom {
  bottom: 0;
  height: 22%;
  background: linear-gradient(0deg, #050C1A 0%, rgba(5, 12, 26, 0.95) 55%, rgba(5, 12, 26, 0) 100%);
}
.ref-hot {
  position: absolute;
  z-index: 2;
  display: block;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ref-hot:active { background: rgba(255, 230, 170, 0.06); }
.ref-palace { left: 18%; top: 7%; width: 64%; height: 39%; }
.ref-lingtian { left: 11%; top: 31%; width: 31%; height: 18%; }
.ref-danfang { left: 59%; top: 33%; width: 32%; height: 18%; }
.ref-qige { left: 13%; top: 48%; width: 33%; height: 21%; }
.ref-julingzhen { left: 59%; top: 54%; width: 32%; height: 19%; }
.ref-notice {
  position: absolute;
  z-index: 3;
  left: 3%;
  right: 3%;
  top: 71.5%;
  height: 8.2%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(231, 195, 118, 0.22);
  background: linear-gradient(90deg, rgba(8, 20, 40, 0.94), rgba(13, 31, 58, 0.88));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  color: #C6D9F2;
  text-decoration: none;
  overflow: hidden;
  pointer-events: auto;
}
.ref-notice .mp-icon { width: 13px; height: 13px; flex: 0 0 13px; color: #E7C983; }
.ref-notice span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; letter-spacing: 0.02em; }
.ref-notice:active { background: rgba(13, 31, 58, 0.98); }

.home-stage.has-ref {
  background: #071427;
}
.home-stage.has-ref .stage-vignette {
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.28) 0%, rgba(4, 10, 22, 0) 12%, rgba(4, 10, 22, 0) 80%, rgba(4, 10, 22, 0.35) 100%),
    radial-gradient(120% 80% at 50% 42%, rgba(4, 10, 22, 0) 48%, rgba(4, 10, 22, 0.22) 100%);
}
.home-stage.has-ref .ref-layer {
  display: block;
  animation: refFade 0.55s ease both;
}
.home-stage.has-ref .stage-bg,
.home-stage.has-ref .stage-aura,
.home-stage.has-ref .stage-mote,
.home-stage.has-ref .hotspot img,
.home-stage.has-ref .hotspot-tag,
.home-stage.has-ref .hotspot-badge {
  display: none;
}
.home-stage.has-ref .hotspot { animation: none; }
.home-stage.has-ref .hotspot-palace { height: 38%; }
.home-stage.has-ref .tap-btn.medallion { bottom: 36%; }
@keyframes refFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   参考图入口页 · 浅蓝云海仙府
   ============================================================ */
.app.on-landing {
  background: #eaf7ff;
  box-shadow: none;
}
.app.on-landing .topbar { display: none; }
.landing-view { padding: 0; background: #eaf7ff; }
.landing {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 44px;
  background:
    radial-gradient(ellipse 130% 60% at 50% 100%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(ellipse 90% 40% at 12% 78%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #5b9fe2 0%, #8fc8ef 26%, #cfeaff 54%, #f2fbff 78%, #fbfeff 100%);
  overflow: visible;
}
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 16% at 8% 70%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 50% 18% at 92% 82%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 70% 22% at 50% 96%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
}
.landing-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.landing-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lotus {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f4fdff;
  background: radial-gradient(circle at 40% 30%, #f4fdff 0%, #a4d7ff 30%, #4b95de 68%, #1d5a9c 100%);
  border: 2px solid #ffe7a6;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 225, 150, 0.65), 0 4px 12px rgba(30, 90, 150, 0.25);
}
.lotus .mp-icon { width: 27px; height: 27px; filter: drop-shadow(0 1px 3px rgba(20, 60, 120, 0.45)); }
.landing-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.landing-title b {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0.07em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(22, 68, 128, 0.55);
  white-space: nowrap;
}
.landing-title em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: #eaf8ff;
  text-shadow: 0 1px 5px rgba(22, 68, 128, 0.55);
  white-space: nowrap;
}
.landing-title em i { font-style: normal; font-weight: 700; color: #ffe7a6; }
.landing-res { display: flex; flex-direction: row; align-items: center; gap: 4px; padding-top: 4px; }
.lres {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(23, 78, 139, 0.32);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 10px rgba(30, 90, 150, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lres .mp-icon { width: 14px; height: 14px; color: #a9dcff; }
.lres.gold .mp-icon { color: #ffe3a0; }
.lres b { font-weight: 700; font-variant-numeric: tabular-nums; max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lplus {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe9b0, #e3b96b);
  color: #7a4a18;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.landing-quick {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 8px;
  padding: 0 2px;
}
.lquick {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.lquick-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #2f6fb6;
  background: linear-gradient(150deg, rgba(240, 251, 255, 0.97) 0%, rgba(164, 214, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 14px rgba(43, 104, 170, 0.22), inset 0 1px 0 #fff;
  transition: transform 0.12s ease;
}
.lquick-ico .mp-icon { width: 23px; height: 23px; }
.lquick:nth-child(1) .lquick-ico { color: #3f7fc5; }
.lquick:nth-child(2) .lquick-ico { color: #c79a4b; }
.lquick:nth-child(3) .lquick-ico { color: #c79a4b; }
.lquick:nth-child(4) .lquick-ico { color: #a98a4e; }
.lquick em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(25, 70, 130, 0.65);
  white-space: nowrap;
}
.lquick:active .lquick-ico { transform: scale(0.94); }

.landing-palace {
  position: relative;
  z-index: 1;
  margin: 4px -16px 0;
  height: 320px;
  height: min(82vw, 400px);
  min-height: 240px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(240, 252, 255, 0.9) 0%, rgba(194, 228, 255, 0.6) 40%, rgba(143, 200, 240, 0.2) 70%, rgba(143, 200, 240, 0) 100%),
    linear-gradient(180deg, #8fc8ef 0%, #dff2ff 100%);
}
.palace-img {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: auto;
  display: block;
  transform: translateY(-22.8%);
  -webkit-user-drag: none;
}
.palace-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}
.palace-fallback .mp-icon { width: 120px; height: 120px; opacity: 0.5; filter: drop-shadow(0 8px 18px rgba(50, 110, 170, 0.3)); }
.landing-palace::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(143, 200, 239, 0.95) 0%, rgba(143, 200, 239, 0) 12%, rgba(255, 255, 255, 0) 78%, rgba(240, 250, 255, 0.95) 100%);
}
.enter-btn {
  position: relative;
  z-index: 3;
  margin: 5px auto 8px;
  width: min(78%, 310px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #ffe8a8;
  background: linear-gradient(180deg, #fff5ce 0%, #f7dc93 42%, #ddaa52 100%);
  color: #5b3a12;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 22px rgba(180, 120, 40, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 0 0 4px rgba(255, 240, 180, 0.22);
  transition: transform 0.12s ease;
}
.enter-btn::before,
.enter-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(243, 211, 142, 0), #f3d38e);
}
.enter-btn::before { right: 100%; margin-right: 7px; }
.enter-btn::after { left: 100%; margin-left: 7px; transform: scaleX(-1); }
.enter-btn:active { transform: scale(0.97); }
.landing-entries {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  margin-top: auto;
  padding: 2px 0 6px;
}
.lentry {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.lentry-ico {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2f6fb6;
  background: linear-gradient(180deg, rgba(243, 253, 255, 0.97) 0%, rgba(164, 216, 255, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(50, 110, 170, 0.22), 0 0 0 3px rgba(255, 255, 255, 0.18), inset 0 1px 0 #fff;
  transition: transform 0.12s ease;
}
.lentry-ico .mp-icon { width: 27px; height: 27px; }
.lentry:nth-child(1) .lentry-ico { color: #a07535; }
.lentry:nth-child(2) .lentry-ico { color: #2f8fd0; }
.lentry:nth-child(3) .lentry-ico { color: #b07a3a; }
.lentry:nth-child(4) .lentry-ico { color: #dd7fa9; }
.lentry em {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(25, 70, 130, 0.75);
}
.lentry:active .lentry-ico { transform: scale(0.94); }

/* 浅色导航（仅入口页） */
.tabbar.light {
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.94) 0%, rgba(205, 235, 255, 0.97) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 -8px 24px rgba(70, 130, 200, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tabbar.light a { color: #7fa6d8; }
.tabbar.light a.active { color: #2f6fc4; }
.tabbar.light a.active::after {
  background: linear-gradient(90deg, #e8c57a, #fff0c4);
  box-shadow: 0 0 10px rgba(232, 197, 122, 0.55);
}
.tabbar.light a .mp-icon { color: inherit; }
.tabbar.light a:active { background: rgba(90, 160, 230, 0.1); }

/* 入口页弹窗内的排行 / 仙友 / 设置 */
.modal-body {
  margin: 0 auto;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.72;
  color: #a9bdd8;
  text-align: left;
}
.rank-list { display: flex; flex-direction: column; gap: 5px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(160, 190, 235, 0.12);
  background: rgba(8, 20, 40, 0.45);
}
.rank-row .rk { width: 15px; text-align: center; font-size: 10px; font-weight: 700; color: #e7c983; }
.rank-row b { font-size: 10.5px; font-weight: 600; color: #dce9ff; }
.rank-row em { margin-left: auto; font-style: normal; font-size: 9px; color: #8fa8ca; }
.rank-row.me { border-color: rgba(231, 195, 118, 0.36); background: rgba(216, 169, 75, 0.12); }
.rank-row.me b { color: #f4e3b7; }
.friend-list { display: flex; flex-direction: column; gap: 5px; }
.friend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(160, 190, 235, 0.12);
  background: rgba(8, 20, 40, 0.45);
}
.friend-avatar {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #8fc2ff;
  background: rgba(61, 126, 255, 0.18);
}
.friend-avatar .mp-icon { width: 14px; height: 14px; }
.friend-row b { font-size: 10.5px; font-weight: 600; color: #dce9ff; }
.friend-row em { margin-left: auto; font-style: normal; font-size: 8.5px; color: #8fa8ca; }
.friend-tip { margin: 9px 0 0 !important; max-width: none !important; font-size: 9px; line-height: 1.6; color: #7e97ba; text-align: center; }
.settings-list { display: flex; flex-direction: column; gap: 1px; }
.settings-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(160, 190, 235, 0.1);
}
.settings-list em { font-style: normal; font-size: 10px; color: #8fa8ca; }
.settings-list b { font-size: 10px; font-weight: 600; color: #dce9ff; }

@media (max-width: 360px) {
  .landing-title b { font-size: 20px; }
  .lotus { width: 46px; height: 46px; flex-basis: 46px; }
  .landing-title em { font-size: 8.5px; }
  .lquick-ico { width: 42px; height: 42px; }
  .lentry-ico { width: 50px; height: 50px; }
  .lentry em { font-size: 8.5px; }
  .enter-btn { font-size: 19px; height: 48px; }
  .lres { font-size: 9px; }
  .lres b { max-width: 38px; }
}

/* ---------- 音乐 / 音效控制 ---------- */
.hud-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.audio-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 183, 235, 0.22);
  background: rgba(12, 27, 52, 0.72);
  color: #FFE1A0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.audio-btn .mp-icon { width: 16px; height: 16px; }
.audio-off-icon { display: none; }
.audio-btn.off { color: #8FA8CA; }
.audio-btn.off .audio-on-icon { display: none; }
.audio-btn.off .audio-off-icon { display: inline-block; }
.audio-btn:active { transform: scale(0.94); }
.audio-settings { margin-top: 10px; border-top: 1px solid rgba(160, 190, 235, 0.1); padding-top: 2px; }
.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(160, 190, 235, 0.1);
}
.audio-row em { font-style: normal; font-size: 10px; color: #8FA8CA; }
.audio-row .mini-btn { min-width: 64px; min-height: 30px; padding: 0 10px; font-size: 10px; }
.audio-toggle.on {
  background: linear-gradient(135deg, #8A6A32 0%, #B98D45 100%);
  border-color: rgba(255, 225, 160, 0.45);
  color: #FFF3D0;
}





/* ---------- 仙府主殿入口 ---------- */
.landing { position: relative; padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.landing-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lotus { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(140deg, var(--primary-light), var(--primary)); box-shadow: 0 8px 18px rgba(61, 126, 255, 0.3); }
.lotus .mp-icon { width: 24px; height: 24px; }
.landing-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.landing-title b { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.landing-title em { font-style: normal; font-size: 12px; color: var(--muted); }
.landing-title em i { font-style: normal; font-weight: 700; color: var(--primary); }
.landing-res { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.lres { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 4px 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); font-size: 13px; }
.lres .mp-icon { width: 16px; height: 16px; color: var(--primary); }
.lres.gold .mp-icon { color: var(--gold); }
.lres b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 28px; }
.lplus { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1; }
.landing-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lquick, .lentry { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow-sm); color: var(--ink-2); text-decoration: none; cursor: pointer; min-height: 72px; font-size: 12px; }
.lquick em, .lentry em { font-style: normal; font-weight: 600; }
.lquick-ico, .lentry-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); }
.lquick-ico .mp-icon, .lentry-ico .mp-icon { width: 20px; height: 20px; }
.lquick:active, .lentry:active, .enter-btn:active { transform: scale(0.97); }
.landing-palace { position: relative; height: 260px; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #D5E8FF 0%, #EEF6FF 60%, #FFFFFF 100%); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.palace-fallback { color: var(--primary); opacity: 0.5; }
.palace-fallback .mp-icon { width: 96px; height: 96px; }
.palace-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.enter-btn { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-deep)); color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: 0.3em; text-indent: 0.3em; box-shadow: 0 12px 26px rgba(61, 126, 255, 0.35); }
.landing-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lentry { flex-direction: row; justify-content: flex-start; padding: 12px; gap: 10px; min-height: 60px; font-size: 14px; }
.lentry:nth-child(2) .lentry-ico { color: var(--teal); background: var(--teal-soft); }
.lentry:nth-child(3) .lentry-ico { color: var(--violet); background: var(--violet-soft); }
.lentry:nth-child(4) .lentry-ico { color: var(--gold); background: var(--gold-soft); }

.lquick:disabled { opacity: 0.45; }
.landing-quick .lquick em { font-size: 12px; }

/* 主屏兜底：深蓝空底时仍能看见底栏与可点入口 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  min-height: 64px;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #07101f;
  border-top: 1px solid rgba(120, 160, 210, 0.18);
}
.tabbar a {
  flex: 1 1 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8ea0b8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}
.tabbar a.on { color: #e8f1ff; }
.tabbar .mp-icon { width: 22px; height: 22px; }
.view.active { display: block; }
.landing-view.active { min-height: 70vh; }

.landing-view { display: block; }
.view.active { display: block; }
