.hub {
  max-width: 960px;
  padding: .72rem 1.25rem .55rem;
}

/* 鈥斺€?鍔熻兘鍗＄墖鍚庢柟闈欐€侀€忔槑姘旂悆锛堜笉娴姩锛?鈥斺€?*/
.hub-card-balloon {
  --balloon-size: 3.35rem;
  position: absolute;
  right: 2.85rem;
  top: 50%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--balloon-size);
  margin-top: calc(var(--balloon-size) * -0.72);
  pointer-events: none;
  opacity: 0.92;
}

.hub-card-index,
.hub-card-body,
.hub-card-arrow {
  position: relative;
  z-index: 1;
}

.hub-card-body {
  padding-right: 3.4rem;
}

.hub-balloon-orb {
  position: relative;
  width: var(--balloon-size);
  height: calc(var(--balloon-size) * 1.12);
  border-radius: 50% 50% 48% 48% / 56% 56% 42% 42%;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    radial-gradient(ellipse 42% 30% at 32% 24%, rgba(255, 255, 255, 0.72), transparent 62%),
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 248, 236, 0.38), rgba(var(--accent-rgb), 0.16) 70%, rgba(var(--accent-rgb), 0.08));
  box-shadow:
    inset 0 -8px 14px rgba(var(--accent-rgb), 0.08),
    0 8px 16px rgba(var(--accent-rgb), 0.08);
}

.hub-balloon-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.18rem;
  width: 0.48rem;
  height: 0.34rem;
  margin-left: -0.24rem;
  background: rgba(var(--accent-rgb), 0.22);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.hub-balloon-label {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  font-family: "KaiTi", "STKaiti", "FangSong", "Songti SC", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(174, 103, 23, 0.82);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hub-balloon-string {
  display: block;
  width: 1px;
  height: 1.1rem;
  margin-top: 0.02rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.04));
}

.hub-balloon--ming {
  --accent-rgb: 230, 126, 34;
}

.hub-balloon--ming .hub-balloon-orb {
  background:
    radial-gradient(ellipse 42% 30% at 32% 24%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 250, 240, 0.42), rgba(230, 126, 34, 0.2) 68%, rgba(230, 126, 34, 0.1));
}

.hub-balloon--ze {
  --accent-rgb: 199, 154, 74;
}

.hub-balloon--ze .hub-balloon-orb {
  background:
    radial-gradient(ellipse 42% 30% at 32% 24%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 252, 244, 0.4), rgba(199, 154, 74, 0.2) 68%, rgba(199, 154, 74, 0.1));
}

.hub-balloon--ze .hub-balloon-label {
  color: rgba(135, 93, 39, 0.88);
}

.hub-balloon--feng {
  --accent-rgb: 209, 139, 50;
}

.hub-balloon--feng .hub-balloon-orb {
  background:
    radial-gradient(ellipse 42% 30% at 32% 24%, rgba(255, 255, 255, 0.72), transparent 62%),
    radial-gradient(ellipse 70% 80% at 50% 45%, rgba(255, 248, 236, 0.36), rgba(209, 139, 50, 0.22) 68%, rgba(152, 89, 31, 0.1));
}

.hub-balloon--feng .hub-balloon-label {
  color: rgba(152, 89, 31, 0.88);
}

@media (max-width: 720px) {
  .hub-card-balloon {
    --balloon-size: 2.85rem;
    right: 2.35rem;
  }

  .hub-card-body {
    padding-right: 2.8rem;
  }

  .hub-balloon-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

.bgm-lyrics {
  margin-bottom: .82rem;
}

.top-bar {
  min-height: 4.7rem;
  padding: .72rem 4.8rem;
  /* 涓庨〉鑴?.site-footer 杈圭嚎涓€鑷达紝鍘绘帀褰╄壊闃村奖閬垮厤寰俊閲屾樉鑹?*/
  border-bottom: 1px solid rgba(240, 220, 192, 0.85);
  box-shadow: none;
  background:
    linear-gradient(90deg, var(--theme-top-end), var(--theme-top-start) 48%, var(--theme-top-end));
}

.top-bar::after,
.top-bar::before {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  height: 0 !important;
  border: 0 !important;
}

.secret-link {
  left: 1rem;
  padding: .34rem .7rem;
  border-color: rgba(var(--accent-rgb), .35);
  box-shadow: none;
}

.bgm-toggle {
  position: absolute;
  right: 1.15rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(var(--accent-rgb), .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

.bgm-toggle:hover {
  border-color: rgba(var(--accent-rgb), .48);
  background: var(--panel-alt);
}

/* ---- 右上角个人中心入口（白球） ---- */
.user-ball {
  position: absolute;
  right: 3.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(var(--accent-rgb), .30);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all .2s;
  padding: 0;
  z-index: 5;
}
.user-ball:hover {
  border-color: rgba(var(--accent-rgb), .55);
  background: var(--panel-alt);
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.16);
}
.user-ball svg {
  width: 16px;
  height: 16px;
  fill: var(--title);
  display: block;
}

/* ---- 个人中心浮层（金色主题，与主页一致） ---- */
.uc-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 288px;
  max-width: calc(100vw - 2rem);
  background: #fffdf9;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(160, 120, 60, 0.12), 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #f6f1e6;
  padding: 0 0 16px;
  z-index: 40;
  animation: uc-pop .22s ease-out;
}
@keyframes uc-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.uc-panel.hidden { display: none; }
.uc-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #b3a284;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: all .2s;
}
.uc-close:hover {
  background: #fbf8f0;
  color: #9a8a68;
  transform: rotate(90deg);
}
.uc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fefbf3, #fffdf9);
  border-bottom: 1px solid #f6f1e6;
  border-radius: 17px 17px 0 0;
}
.uc-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  position: relative;
}
.uc-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.uc-avatar-editable:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22); }
.uc-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #86704a;
  color: #fff;
  display: grid;
  place-items: center;
  border: 1.5px solid #fefcf6;
}
.uc-avatar-badge svg { display: block; }

/* ---- 头像裁剪弹窗 ---- */
.uc-crop { position: fixed; inset: 0; z-index: 60; }
.uc-crop.hidden { display: none; }
.uc-crop-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.uc-crop-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 272px;
  max-width: calc(100vw - 2rem);
  background: #fffdf9;
  border: 1px solid #f6f1e6;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(160, 120, 60, 0.16), 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 14px 16px 16px;
  animation: uc-pop .2s ease-out;
}
.uc-crop-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: #a38e66;
  text-align: center;
}
.uc-crop-stage {
  width: 240px;
  height: 240px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #26221a;
  touch-action: none;
  cursor: grab;
}
.uc-crop-stage:active { cursor: grabbing; }
.uc-crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}
.uc-crop-zoom {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 12px auto 0;
  accent-color: #a98d55;
}
.uc-crop-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.uc-crop-btn {
  flex: 1;
  padding: 9px;
  border: 1px solid #f0e9d8;
  border-radius: 10px;
  background: #fefbf3;
  color: #9a8560;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.uc-crop-btn--ok { background: #86704a; border-color: #86704a; color: #fff; }
.uc-crop-btn--ok:hover { background: #6d5a38; }
.uc-crop-btn:hover { border-color: #ddd0ae; }
.uc-meta { min-width: 0; }
.uc-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #333);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-level {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fcf9f1;
  color: #a38e66;
  font-weight: 600;
}
.uc-level.is-vip { background: #f9f3e3; color: #93794a; }
.uc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  font-size: 13px;
}
.uc-row + .uc-row { padding-top: 8px; }
.uc-row .uc-key { color: var(--muted); }
.uc-row .uc-val { color: var(--text); font-weight: 600; word-break: break-all; }
.uc-logout {
  width: calc(100% - 36px);
  margin: 14px 18px 0;
  padding: 10px;
  border: 1px solid #f0e9d8;
  border-radius: 12px;
  background: #fefbf3;
  color: #9a8560;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
}
.uc-logout:hover {
  background: #fbf8f0;
  border-color: #e8dfc9;
  color: #7d6a45;
}
.uc-logout:active { transform: scale(.98); }
.uc-mask { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.35); }

@media (max-width: 480px) {
  .user-ball { right: 3.1rem; width: 1.7rem; height: 1.7rem; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.logo::before,
.logo::after {
  content: "";
  width: 1.55rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, .65));
}

.logo::after {
  transform: scaleX(-1);
}

.logo-glow {
  overflow: visible;
  color: #ae6717;
  font-family: "KaiTi", "STKaiti", "FangSong", serif;
  font-size: 1.5rem;
  letter-spacing: .14em;
  text-shadow: none;
}

.logo-glow::after {
  display: none;
}

.hub-list {
  --aura-one: rgba(0, 0, 0, .04);
  --aura-two: rgba(0, 0, 0, .03);
  --aura-three: rgba(230, 126, 34, .05);
  --card-highlight: rgba(255, 255, 255, .2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  perspective: 1100px;
}

.hub-list.effect-gold,
.hub-list.effect-ivory,
.hub-list.effect-amber {
  --aura-one: rgba(0, 0, 0, .04);
  --aura-two: rgba(0, 0, 0, .03);
  --aura-three: rgba(230, 126, 34, .05);
  --card-highlight: rgba(255, 255, 255, .2);
}

.hub-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 6.7rem;
  gap: .7rem;
  padding: 1rem 1.1rem;
  border-color: rgba(var(--accent-rgb), 0.22);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 10px 22px rgba(0, 0, 0, .05);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-position .2s ease;
  will-change: transform;
}

.hub-card[hidden] {
  display: none !important;
}

.hub-card::before,
.hub-card.hub-card-bazi::before,
.hub-card.hub-card-yanhai::before {
  content: "";
  position: absolute;
  inset: -65% -45%;
  z-index: 0;
  display: block;
  border-radius: 45%;
  background: conic-gradient(from 210deg, transparent, var(--aura-one), var(--aura-two), var(--aura-three), transparent);
  filter: blur(24px);
  opacity: .34;
  animation: hub-card-aura 11s linear infinite;
  pointer-events: none;
}

.hub-card:nth-child(3n + 2)::before { animation-delay: -2.3s; }
.hub-card:nth-child(3n)::before { animation-delay: -4.7s; }

.hub-card-index,
.hub-card-body,
.hub-card-arrow,
.hub-card-ziwei-star,
.hub-card-yanhai-aura {
  position: relative;
  z-index: 1;
}

.hub-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .05), 0 16px 28px rgba(0, 0, 0, .08);
  transform: translateY(-5px);
}

.hub-card.is-tilting {
  background-image: radial-gradient(180px circle at var(--card-glow-x) var(--card-glow-y), var(--card-highlight), transparent 66%);
  transform: translateY(-7px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  box-shadow: 0 8px 0 rgba(var(--accent-rgb), .18), 0 22px 38px rgba(var(--accent-rgb), .18);
}

@keyframes hub-card-aura {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.18); }
  to { transform: rotate(360deg) scale(1); }
}

.hub-card-index {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--panel-alt);
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .04em;
  transform: translateZ(18px);
}

.hub-card-body h2 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  transform: translateZ(22px);
}

.hub-card-type {
  margin: .28rem 0 0;
  color: #a58c74;
  font-size: .72rem;
  letter-spacing: .08em;
}

.hub-card-arrow {
  color: var(--accent-dark);
  font-size: 1.15rem;
  transform: translateZ(16px);
}

.hub-card-bazi,
.hub-card-yanhai {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.hub-card-bazi::before,
.hub-card-yanhai::before {
  display: none;
}

.hub-card-bazi .hub-card-body h2,
.hub-card-yanhai .hub-card-body h2 {
  color: #5a4031;
}

.hub-card-bazi .hub-card-index,
.hub-card-yanhai .hub-card-index {
  color: #9f6f25;
}

@media (max-width: 640px) {
  .top-bar {
    min-height: 4rem;
    padding: .62rem 3.1rem .62rem 5.4rem;
  }

  .secret-link {
    left: .55rem;
    padding: .28rem .5rem;
    font-size: .74rem;
  }

  .bgm-toggle {
    right: .6rem;
    width: 1.7rem;
    height: 1.7rem;
  }

  .logo { gap: .4rem; }
  .logo::before, .logo::after { width: .8rem; }
  .logo-glow { font-size: 1.22rem; letter-spacing: .1em; }

  .hub {
    padding: .58rem 1rem .45rem;
  }

  .bgm-lyrics {
    margin-bottom: .6rem;
  }

  .hub-list {
    grid-template-columns: 1fr;
    gap: .65rem;
    perspective: none;
  }

  .hub-card {
    min-height: 5.3rem;
    padding: .82rem .9rem;
    border-color: rgba(var(--accent-rgb), .42);
    background: linear-gradient(145deg, var(--panel) 0%, var(--panel-alt) 100%);
    box-shadow: 0 5px 0 rgba(var(--accent-rgb), .27), 0 16px 28px rgba(var(--accent-rgb), .18), inset 0 1px 0 rgba(255, 255, 255, .88);
    transform: perspective(780px) rotateX(.6deg);
    will-change: auto;
  }

  .hub-card:active {
    box-shadow: 0 1px 0 rgba(var(--accent-rgb), .18), 0 5px 10px rgba(var(--accent-rgb), .1);
    transform: translateY(3px) perspective(780px) rotateX(.2deg);
  }

  .hub-card::before,
  .hub-card.hub-card-bazi::before,
  .hub-card.hub-card-yanhai::before {
    opacity: .48;
    filter: blur(19px);
    animation-duration: 8.5s;
  }

  .hub-card-index {
    box-shadow: 0 2px 0 rgba(var(--accent-rgb), .16);
  }

}

/* 鍏瓧涓撲笟瑙ｈ鍚庡彴浠诲姟灏忕獥锛堜笌鍏瓧椤靛叡鐢?localStorage锛?*/
.interpret-mini-dock {
  position: fixed;
  right: max(0.8rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 10060;
  width: auto;
  min-width: 10.4rem;
  max-width: 12.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.65rem 0.75rem 0.68rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf9, #fff4e8);
  box-shadow: 0 10px 26px rgba(80, 50, 20, 0.2);
  color: var(--title);
  text-align: left;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  animation: hub-interpret-mini-in 0.28s ease;
}

.interpret-mini-close {
  position: absolute;
  top: -0.42rem;
  right: -0.42rem;
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 1px solid rgba(80, 50, 20, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #8a8176;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(80, 50, 20, 0.16);
  touch-action: manipulation;
}
.interpret-mini-close:hover,
.interpret-mini-close:focus {
  color: #fff;
  background: #c45c4a;
  border-color: #c45c4a;
  outline: none;
}

.interpret-mini-dock.is-dragging {
  cursor: grabbing;
  box-shadow: 0 14px 30px rgba(80, 50, 20, 0.28);
}

.interpret-mini-dock.hidden {
  display: none;
}

.interpret-mini-dock.is-ready {
  border-color: rgba(46, 139, 87, 0.35);
  background: linear-gradient(180deg, #f7fff9, #eaf8ef);
  animation: hub-interpret-mini-pulse 1.6s ease-in-out infinite;
}

.interpret-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
}

.interpret-mini-head strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.interpret-mini-pct {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.interpret-mini-bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  overflow: hidden;
}

.interpret-mini-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--title));
  transition: width 0.12s linear;
}

.interpret-mini-foot {
  color: #8a8176;
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: nowrap;
}

.interpret-mini-dock.is-ready .interpret-mini-foot {
  color: #2e8b57;
  font-weight: 600;
}

@keyframes hub-interpret-mini-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hub-interpret-mini-pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(46, 139, 87, 0.18); }
  50% { box-shadow: 0 14px 36px rgba(46, 139, 87, 0.32); }
}

@media (prefers-reduced-motion: reduce) {
  .interpret-mini-dock,
  .interpret-mini-dock.is-ready {
    animation: none;
  }
}

/* 玄空飞星入口 */
.hub-card-xuan-kong { position: relative; background: linear-gradient(135deg, rgba(115,52,30,.22), rgba(44,25,20,.18)); }
.hub-card-xuan-kong::after { content: "*"; position: absolute; right: 22px; top: 12px; color: #d9a35f; opacity: .8; }
.hub-card-tip { margin: 5px 0 0; font-size: 12px; color: rgba(245,220,176,.72); }

