/* ============================================================
   汉堡菜单 — 仙侠风黑金主题（重新设计）
   ============================================================ */

/* ── 遮罩层 ── */
.hamburger-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.78);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  backdrop-filter: blur(3px);
}
.hamburger-overlay.open { opacity: 1; pointer-events: auto; }

/* ── 面板主体：深黑渐变 #06060a → #0a0a14 ── */
.hamburger-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(92vw, 380px);
  z-index: 151;
  background:
    /* 稀疏金粒星点 */
    radial-gradient(1px 1px at 10% 8%, rgba(240,192,96,.28) 50%, transparent),
    radial-gradient(1px 1px at 25% 5%, rgba(212,168,67,.22) 50%, transparent),
    radial-gradient(1px 1px at 40% 12%, rgba(240,192,96,.25) 50%, transparent),
    radial-gradient(1px 1px at 55% 6%, rgba(212,168,67,.2) 50%, transparent),
    radial-gradient(1px 1px at 70% 10%, rgba(240,192,96,.24) 50%, transparent),
    radial-gradient(1px 1px at 85% 7%, rgba(212,168,67,.18) 50%, transparent),
    radial-gradient(1px 1px at 18% 22%, rgba(240,192,96,.14) 50%, transparent),
    radial-gradient(1px 1px at 50% 20%, rgba(212,168,67,.16) 50%, transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(240,192,96,.1) 50%, transparent),
    /* 黑金深空渐变 */
    linear-gradient(180deg, #06060a 0%, #080812 30%, #0a0a14 60%, #0b0b16 100%);
  /* 左右金色描边光晕 */
  border-right: 1.5px solid rgba(212,168,67,.18);
  transform: translateX(-105%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  box-shadow:
    6px 0 80px rgba(0,0,0,.85),
    0 0 60px rgba(212,168,67,.05),
    inset 2px 0 35px rgba(212,168,67,.025),
    inset -2px 0 35px rgba(212,168,67,.025);
}
.hamburger-menu.open { transform: translateX(0); }

/* ── 顶部：金色祥云纹（纯 CSS 伪元素）── */
.hamburger-menu::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 50px;
  z-index: 2;
  pointer-events: none;
  background:
    /* 云簇 1 — 左 */
    radial-gradient(circle 9px at 22px 20px, rgba(212,168,67,.2) 0%, transparent 70%),
    radial-gradient(circle 12px at 38px 13px, rgba(212,168,67,.16) 0%, transparent 70%),
    radial-gradient(circle 7px at 52px 21px, rgba(212,168,67,.12) 0%, transparent 70%),
    /* 云簇 2 — 中左 */
    radial-gradient(circle 11px at 115px 17px, rgba(212,168,67,.18) 0%, transparent 70%),
    radial-gradient(circle 14px at 135px 11px, rgba(212,168,67,.14) 0%, transparent 70%),
    radial-gradient(circle 8px at 153px 19px, rgba(212,168,67,.1) 0%, transparent 70%),
    /* 云簇 3 — 中右 */
    radial-gradient(circle 10px at 215px 18px, rgba(212,168,67,.17) 0%, transparent 70%),
    radial-gradient(circle 13px at 233px 12px, rgba(212,168,67,.15) 0%, transparent 70%),
    radial-gradient(circle 7px at 250px 20px, rgba(212,168,67,.11) 0%, transparent 70%),
    /* 云簇 4 — 右 */
    radial-gradient(circle 10px at 318px 16px, rgba(212,168,67,.16) 0%, transparent 70%),
    radial-gradient(circle 12px at 334px 11px, rgba(212,168,67,.13) 0%, transparent 70%);
  opacity: .72;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

/* ── 底部：渐变金色分割线 ── */
.hamburger-menu::after {
  content: '';
  position: absolute;
  bottom: 0; left: 6%; right: 6%;
  height: 1.5px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(240,192,96,.1) 15%,
    rgba(240,192,96,.4) 50%,
    rgba(240,192,96,.1) 85%,
    transparent
  );
}

/* ── 仙鹤容器 ── */
#craneContainer {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.crane-fly {
  position: absolute; pointer-events: none; will-change: transform;
}
.crane-mover {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.crane-svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 3px rgba(200,220,240,.18));
}

/* 振翅 — 小巧精致 */
.crane-wing {
  transform-origin: 60px 6px;
  animation: wingFlap .5s ease-in-out infinite alternate;
}

@keyframes wingFlap {
  0%   { transform: rotate(3deg) scaleY(1.02); }
  25%  { transform: rotate(-30deg) scaleY(.2); }
  50%  { transform: rotate(-10deg) scaleY(.4); }
  75%  { transform: rotate(-18deg) scaleY(.25); }
  100% { transform: rotate(3deg) scaleY(1.02); }
}

/* 飞行范围严格限定面板内 */
@keyframes craneFlyR {
  0%   { left: 2%;  top: 38%; }
  12%  { left: 10%; top: 33%; }
  28%  { left: 26%; top: 40%; }
  48%  { left: 46%; top: 36%; }
  68%  { left: 64%; top: 42%; }
  84%  { left: 76%; top: 38%; }
  100% { left: 88%; top: 44%; }
}

@keyframes craneFlyL {
  0%   { left: 88%; top: 42%; }
  12%  { left: 76%; top: 36%; }
  28%  { left: 60%; top: 40%; }
  48%  { left: 42%; top: 35%; }
  68%  { left: 26%; top: 41%; }
  84%  { left: 12%; top: 37%; }
  100% { left: 2%;  top: 43%; }
}


/* ============================================================
   头部用户区
   ============================================================ */
.hm-header {
  position: relative; z-index: 1;
  padding: min(16px, 2.5vh) min(14px, 2vh) min(8px, 1.2vh);
  display: flex; align-items: center;
  gap: min(10px, 1.5vh);
  background: linear-gradient(180deg, rgba(30,20,10,.28) 0%, transparent 100%);
}

/* 头像：彩虹渐变（保持）+ 白金光晕 */
.hm-user-avatar {
  width: min(44px, 7vh); height: min(44px, 7vh);
  border-radius: 50%;
  border: 2px solid rgba(240,220,200,.45);
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(240,220,200,.22), 0 0 30px rgba(220,200,160,.08);
  transition: box-shadow .3s;
}
.hm-user-avatar:hover {
  box-shadow: 0 0 24px rgba(240,220,200,.38), 0 0 40px rgba(220,200,160,.12);
}

.hm-user-info { flex: 1; min-width: 0; }

/* 用户名：金色发光 #F0D040，字号加大 */
.hm-user-name {
  font-size: min(15px, 2.4vh);
  font-weight: 700;
  color: #F0D040;
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 0 14px rgba(240,192,96,.5), 0 0 28px rgba(240,192,96,.12);
}
.hm-user-desc {
  font-size: min(11px, 1.6vh);
  color: #B8A060;
}

/* 悟道按钮（头部签到入口）*/
.hm-signin-top {
  flex-shrink: 0;
  background: linear-gradient(135deg, #5a3e0a, #C5A028, #5a3e0a);
  color: #0a0800;
  border: 1px solid rgba(240,192,96,.25);
  border-radius: min(16px, 2.5vh);
  padding: min(6px, .9vh) min(14px, 2vh);
  font-size: min(12px, 1.8vh);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(200,160,40,.35), 0 0 20px rgba(200,160,40,.1);
  transition: all .2s;
  text-shadow: 0 1px 0 rgba(255,220,100,.3);
}
.hm-signin-top:active { transform: scale(.95); opacity: .9; }
.hm-signin-top.signed {
  background: rgba(255,255,255,.05);
  color: rgba(180,160,140,.4);
  box-shadow: none;
}

/* 入仙门按钮 */
.hm-login-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #4a2a0a, #8B6914);
  color: #F0D040;
  border: 1px solid rgba(200,160,40,.3);
  border-radius: min(16px, 2.5vh);
  padding: min(7px, 1vh) min(18px, 2.5vh);
  font-size: min(13px, 1.9vh);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(160,120,20,.25);
}

/* 退出按钮 */
.hm-logout-btn {
  flex-shrink: 0;
  background: transparent;
  color: rgba(200,170,120,.55);
  border: 1px solid rgba(200,160,40,.18);
  border-radius: min(14px, 2vh);
  padding: min(5px, .7vh) min(12px, 1.8vh);
  font-size: min(11px, 1.6vh);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.hm-logout-btn:hover {
  color: rgba(220,80,60,.8);
  border-color: rgba(220,80,60,.35);
}


/* ============================================================
   签到等级徽章：金色描边 + 黑底 + 发光，居中突出
   ============================================================ */
.hm-level-row {
  position: relative; z-index: 1;
  padding: 0 min(14px, 2vh) min(6px, 1vh);
  text-align: center;
}
.hm-level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: min(5px, .8vh) min(20px, 3vh);
  border-radius: min(16px, 2.5vh);
  font-size: min(13px, 2vh);
  font-weight: 800; letter-spacing: 1px;
  border: 1.5px solid rgba(212,168,67,.4);
  background: rgba(6,4,12,.7);
  box-shadow: 0 0 12px rgba(212,168,67,.22);
  text-shadow: 0 0 8px currentColor;
}

/* 各级别保留色彩区分，但统一金边 + 黑底 */
.hm-level-badge.lv1 { color: #A0A0B8; border-color: rgba(180,180,200,.35); box-shadow: 0 0 8px rgba(180,180,200,.15); }
.hm-level-badge.lv2 {
  color: #64B48C; border-color: rgba(100,180,140,.4);
  box-shadow: 0 0 10px rgba(100,180,140,.18);
}
.hm-level-badge.lv3 {
  color: #50A0DC; border-color: rgba(80,160,220,.4);
  box-shadow: 0 0 10px rgba(80,160,220,.2);
}
.hm-level-badge.lv4 {
  color: #E8C547; border-color: rgba(212,168,67,.5);
  box-shadow: 0 0 14px rgba(200,160,40,.3);
  animation: goldGlow 2s ease-in-out infinite;
}
.hm-level-badge.lv5 {
  color: #B050E0; border-color: rgba(160,80,200,.4);
  box-shadow: 0 0 14px rgba(160,80,200,.25);
  animation: purpleBreathe 2s ease-in-out infinite;
}
.hm-level-badge.lv6 {
  color: #E06060; border-color: rgba(220,80,80,.4);
  box-shadow: 0 0 12px rgba(220,80,80,.25);
  animation: redPulse 1.5s ease-in-out infinite;
}
.hm-level-badge.lv7 {
  color: #28C8D8; border-color: rgba(40,180,200,.4);
  box-shadow: 0 0 14px rgba(40,180,200,.3);
  animation: cyanFlow 2s linear infinite;
}
.hm-level-badge.lv8 {
  color: #E850B0; border-color: rgba(220,80,160,.4);
  box-shadow: 0 0 14px rgba(220,80,160,.3);
  animation: pinkGradient 2s linear infinite;
}
.hm-level-badge.lv9 {
  color: #fff; border-color: rgba(255,255,255,.25);
  box-shadow: 0 0 12px rgba(200,200,255,.25);
  animation: rainbowFlow 2s linear infinite;
}
.hm-level-badge.lv10 {
  color: #F0D040; border-color: rgba(240,200,60,.5);
  box-shadow: 0 0 22px rgba(240,200,60,.45), 0 0 40px rgba(240,200,60,.12);
  animation: lightningFlash .6s ease-in-out infinite;
}
.hm-level-badge .lv-icon { font-size: min(14px, 2vh); }

@keyframes goldGlow {
  0%   { box-shadow: 0 0 10px rgba(200,160,40,.2); }
  50%  { box-shadow: 0 0 20px rgba(200,160,40,.45); }
  100% { box-shadow: 0 0 10px rgba(200,160,40,.2); }
}
@keyframes purpleBreathe {
  0%   { box-shadow: 0 0 10px rgba(160,80,200,.2); }
  50%  { box-shadow: 0 0 24px rgba(160,80,200,.4); }
  100% { box-shadow: 0 0 10px rgba(160,80,200,.2); }
}
@keyframes redPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes cyanFlow {
  0%   { box-shadow: 0 0 10px rgba(40,180,200,.22); }
  50%  { box-shadow: 0 0 22px rgba(40,180,200,.5); }
  100% { box-shadow: 0 0 10px rgba(40,180,200,.22); }
}
@keyframes pinkGradient {
  0%   { box-shadow: 0 0 10px rgba(220,80,160,.22); }
  50%  { box-shadow: 0 0 22px rgba(220,80,160,.5); }
  100% { box-shadow: 0 0 10px rgba(220,80,160,.22); }
}
@keyframes rainbowFlow {
  0% {
    background: conic-gradient(#f00, #f80, #ff0, #0f0, #08f, #80f, #f00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  25% {
    background: conic-gradient(#f80, #ff0, #0f0, #08f, #80f, #f00, #f80);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  50% {
    background: conic-gradient(#ff0, #0f0, #08f, #80f, #f00, #f80, #ff0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  75% {
    background: conic-gradient(#0f0, #08f, #80f, #f00, #f80, #ff0, #0f0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  100% {
    background: conic-gradient(#f00, #f80, #ff0, #0f0, #08f, #80f, #f00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
}
@keyframes lightningFlash {
  0%   { opacity: 1; text-shadow: 0 0 10px rgba(240,200,60,.5); }
  25%  { opacity: .5; text-shadow: 0 0 28px rgba(240,200,60,.9); }
  50%  { opacity: 1; text-shadow: 0 0 10px rgba(240,200,60,.4); }
  75%  { opacity: .3; text-shadow: 0 0 36px rgba(240,200,60,1); }
  100% { opacity: 1; text-shadow: 0 0 10px rgba(240,200,60,.5); }
}


/* ============================================================
   修为统计行：数字金色粗体，标签淡金
   ============================================================ */
.hm-stats {
  position: relative; z-index: 1;
  display: flex; justify-content: space-around;
  padding: min(8px, 1.2vh) min(6px, 1vh) min(6px, .8vh);
}
.hm-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: min(3px, .4vh);
  flex: 1; position: relative;
}
.hm-stat::after {
  content: '';
  position: absolute; right: 0; top: 15%; height: 70%; width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(240,192,96,.2), transparent);
}
.hm-stat:last-child::after { display: none; }
.hm-stat-num {
  font-size: min(16px, 2.5vh);
  font-weight: 800;
  color: #F0D040;
  text-shadow: 0 0 10px rgba(240,192,96,.5);
}
.hm-stat-label {
  font-size: min(9px, 1.3vh);
  color: #B8A060;
  letter-spacing: 1.5px; font-weight: 500;
}

/* ── 灵脉分隔 ── */
.hm-divider {
  position: relative; z-index: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(240,192,96,.3), transparent);
  margin: min(4px, .6vh) min(14px, 2vh);
  flex-shrink: 0;
}


/* ============================================================
   仙术图标网格：半透明黑底卡片 + 金色边框 hover
   ============================================================ */
.hm-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: min(2px, .3vh) min(2px, .3vh);
  padding: min(2px, .3vh) min(6px, 1vh) min(8px, 1.2vh);
  margin-top: 10px; flex-shrink: 0;
}

.hm-grid-item {
  display: flex; flex-direction: column; align-items: center;
  gap: min(3px, .5vh);
  padding: min(7px, 1.1vh) min(2px, .3vh);
  color: #C5A028;
  text-decoration: none;
  border-radius: min(10px, 1.5vh);
  /* 半透明黑底卡片 */
  background: rgba(8,6,16,.45);
  border: 1px solid rgba(212,168,67,.06);
  /* 每项之间微妙金色分割 */
  border-bottom-color: rgba(212,168,67,.08);
  transition: all .25s;
  cursor: pointer; position: relative;
}

.hm-grid-item:hover,
.hm-grid-item:active {
  background: rgba(14,11,26,.7);
  border-color: rgba(240,192,96,.32);
  color: #F0D040;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 16px rgba(240,192,96,.08);
}

.hm-grid-item:hover .hm-grid-icon {
  box-shadow: 0 0 22px rgba(240,192,96,.35);
}

.hm-grid-icon {
  width: min(30px, 4.5vh); height: min(30px, 4.5vh);
  border-radius: min(8px, 1.2vh);
  display: flex; align-items: center; justify-content: center;
  font-size: min(14px, 2.1vh);
  flex-shrink: 0;
  transition: box-shadow .25s;
}

.hm-grid-label {
  font-size: min(9px, 1.3vh);
  font-weight: 600; text-align: center; line-height: 1.1;
  color: #B8A060;
  transition: color .25s;
  text-shadow: 0 0 6px rgba(200,160,40,.15);
}
.hm-grid-item:hover .hm-grid-label {
  color: #F0D040;
  text-shadow: 0 0 12px rgba(240,192,96,.45);
}

/* 角标 — 签到入口灵光标记 */
.hm-grid-badge {
  position: absolute;
  top: min(2px, .3vh); right: min(-2px, -.3vh);
  background: linear-gradient(135deg, #6B5010, #D4A843);
  color: #0a0800;
  font-size: min(9px, 1.3vh);
  min-width: min(16px, 2.3vh); height: min(16px, 2.3vh);
  line-height: min(16px, 2.3vh);
  text-align: center;
  border-radius: min(9px, 1.3vh);
  padding: 0 min(5px, .7vh);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212,168,67,.5), 0 0 20px rgba(200,160,40,.18);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(212,168,67,.4); }
  50%      { box-shadow: 0 0 16px rgba(240,192,96,.55), 0 0 28px rgba(200,160,40,.25); }
}

/* 骨架屏 */
.hm-skel {
  display: inline-block;
  background: rgba(160,140,200,.1);
  border-radius: 4px; height: 14px;
  animation: hmSkelPulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}
.hm-skel-wide { width: 80px; }
.hm-skel-narrow { width: 50px; }
@keyframes hmSkelPulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: .7; }
}

/* 底部 */
.hm-footer {
  position: relative; z-index: 1;
  margin-top: 10px;
  padding: min(6px, 1vh) min(16px, 2.5vh);
  text-align: center;
  font-size: min(10px, 1.5vh);
  color: rgba(212,168,67,.2);
  flex-shrink: 0; letter-spacing: 2px;
}


/* ============================================================
   签到面板弹窗：黑金渐变背景
   ============================================================ */
.signin-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.signin-overlay.show { display: flex; }

.signin-panel {
  background: linear-gradient(180deg, #0a0816 0%, #06040e 50%, #0a0816 100%);
  border-radius: 16px;
  padding: 28px 24px;
  width: 300px; max-width: 90vw;
  text-align: center;
  border: 1.5px solid rgba(200,160,60,.3);
  box-shadow:
    0 0 50px rgba(200,160,40,.12),
    0 0 90px rgba(20,10,5,.25),
    inset 0 0 30px rgba(200,160,40,.02);
}

.signin-panel .signin-icon {
  font-size: 48px; margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(200,160,40,.35));
  display: flex; align-items: center; justify-content: center;
}
.signin-panel .signin-icon .hm-icon { width: 48px; height: 48px; }
.signin-panel .signin-icon .hm-icon--signin::before { font-size: 44px; }

/* 标题金色发光 */
.signin-panel h3 {
  color: #F0D040;
  font-size: 19px;
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(240,192,96,.45), 0 0 30px rgba(240,192,96,.15);
}

.signin-panel .signin-streak {
  color: #B8A060; font-size: 13px; margin-bottom: 14px; font-weight: 500;
}

/* 签到按钮：黑金渐变（无紫色）*/
.signin-panel .signin-btn {
  background: linear-gradient(135deg, #1a1204, #6B5010, #C5A028, #6B5010, #1a1204);
  color: #0a0800;
  border: 1px solid rgba(240,192,96,.25);
  border-radius: 24px;
  padding: 12px 40px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  width: 100%;
  box-shadow: 0 2px 16px rgba(200,160,40,.3), 0 0 28px rgba(200,160,40,.08);
  text-shadow: 0 1px 0 rgba(255,220,100,.3);
}
.signin-panel .signin-btn:active { opacity: .8; transform: scale(.97); }
.signin-panel .signin-btn:disabled {
  background: #222;
  color: #555;
  cursor: default;
  box-shadow: none;
  border-color: transparent;
}

.signin-panel .signin-result {
  margin-top: 14px; font-size: 14px; color: #F0D040;
  font-weight: 600; min-height: 20px;
  text-shadow: 0 0 10px rgba(240,192,96,.35);
}
.signin-panel .signin-close {
  background: none; border: none; color: #B8A060;
  margin-top: 16px; cursor: pointer; font-size: 13px;
}


/* ============================================================
   灵力飘字
   ============================================================ */
.xp-float {
  position: fixed; z-index: 999;
  font-size: 22px; font-weight: 800;
  color: #E8C547;
  text-shadow: 0 0 16px rgba(200,160,40,.8), 0 2px 8px rgba(0,0,0,.5);
  pointer-events: none;
  animation: xpRise 2s ease-out forwards;
  white-space: nowrap;
}
@keyframes xpRise {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  20%  { opacity: 1; transform: translateY(-30px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}


/* ============================================================
   响应式：窄屏微调
   ============================================================ */
@media (max-width: 360px) {
  .hm-header { padding: 12px 10px 8px; gap: 8px; }
  .hm-user-avatar { width: 40px; height: 40px; }
  .hm-user-avatar .avatar-letter { font-size: 16px !important; }
  .hm-user-name { font-size: 14px; }
  .hm-signin-top { padding: 6px 14px; font-size: 12px; border-radius: 16px; }
  .hm-logout-btn { padding: 5px 12px; font-size: 11px; border-radius: 14px; }
  .hm-grid-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
  .hm-grid-label { font-size: 8px; }
  .hm-stat-num { font-size: 14px; }
}


/* ============================================================
   仙术网格图标色彩
   ============================================================ */
.hm-grid-icon--red      { background: rgba(254,44,85,.12) !important; }
.hm-grid-icon--blue     { background: rgba(100,160,220,.12) !important; }
.hm-grid-icon--gold     { background: rgba(200,160,40,.12) !important; }
.hm-grid-icon--gold2    { background: rgba(200,160,40,.16) !important; }
.hm-grid-icon--gold3    { background: rgba(200,160,40,.12) !important; }
.hm-grid-icon--green    { background: rgba(6,214,160,.12) !important; }
.hm-grid-icon--purple   { background: rgba(160,80,200,.12) !important; }
.hm-grid-icon--coral    { background: rgba(255,107,107,.12) !important; }
.hm-grid-icon--lavender { background: rgba(160,140,200,.12) !important; }
.hm-grid-icon--relative { position: relative !important; }
.hm-grid-label--gold    { color: #E8C547 !important; }

/* 通用隐藏 */
.hidden { display: none; }


/* ============================================================
   仙术网格图标 — CSS 手绘 + 仙侠特效（黑色为主，金色点缀）
   ============================================================ */
.hm-icon {
  display: inline-block;
  width: 22px; height: 22px;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── 通用仙气光晕动画 ── */
@keyframes spiritBreath {
  0%, 100% { box-shadow: 0 0 4px rgba(200,160,40,.15); }
  50%      { box-shadow: 0 0 12px rgba(200,160,40,.35); }
}
@keyframes goldShimmer {
  0%   { opacity: .3; transform: scale(.9); }
  50%  { opacity: .8; transform: scale(1.1); }
  100% { opacity: .3; transform: scale(.9); }
}
@keyframes runeFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: .5; }
  50%  { transform: translateY(-3px) rotate(180deg); opacity: 1; }
  100% { transform: translateY(0) rotate(360deg); opacity: .5; }
}

/* ── 每个图标 hover 激活灵气粒子 ── */
.hm-grid-item:hover .hm-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,160,40,.2) 0%, transparent 70%);
  animation: goldShimmer 1.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* ===== 1. 洞府 — 仙塔/山门（三层叠加）===== */
.hm-icon--home::before {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 5px;
  background: #1a1a2e;
  border: 1.5px solid #2a2a3e;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(200,160,40,.2);
}
.hm-icon--home::after {
  content: '';
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 10px solid #1a1a2e;
  filter: drop-shadow(0 -1px 0 #2a2a3e) drop-shadow(0 0 5px rgba(200,160,40,.2));
  animation: none;
}
.hm-grid-item:hover .hm-icon--home::after {
  filter: drop-shadow(0 -1px 0 #2a2a3e) drop-shadow(0 0 8px rgba(200,160,40,.5));
}

/* ===== 2. 探索 — 灵晶球（双圆+高光）===== */
.hm-icon--search {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a3a5a, #12121e 70%);
  border: 1.5px solid #2a2a4a;
  box-shadow: inset 0 0 6px rgba(100,160,255,.15), 0 0 8px rgba(200,160,40,.15);
  animation: spiritBreath 3s ease-in-out infinite;
}
.hm-icon--search::before {
  content: '';
  position: absolute;
  top: 4px; left: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.5), transparent);
}

/* ===== 3. 仙闻 — 卷轴（长条+两端卷曲）===== */
.hm-icon--topic {
  width: 28px; height: 24px;
  background: linear-gradient(180deg, #1a1a2e 0%, #151528 100%);
  border: 1.5px solid #2a2a3e;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(200,160,40,.15);
}
.hm-icon--topic::before,
.hm-icon--topic::after {
  content: '';
  position: absolute;
  top: 2px; bottom: 2px;
  width: 5px;
  background: linear-gradient(180deg, #2a2a3e, #1a1a2e, #2a2a3e);
  border-radius: 3px;
  box-shadow: inset 0 0 3px rgba(200,160,40,.1);
}
.hm-icon--topic::before { left: -2px; }
.hm-icon--topic::after  { right: -2px; }

/* ===== 4. 传音 — 灵鹤/信函（菱形信封）===== */
.hm-icon--message {
  width: 26px; height: 20px;
  background: #1a1a2e;
  border: 1.5px solid #2a2a3e;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 50%, 0 75%);
  box-shadow: 0 0 6px rgba(200,160,40,.2);
}
.hm-icon--message::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,160,40,.3), transparent);
}

/* ===== 5. 道号 — 阴阳鱼（S曲线+双圆）===== */
.hm-icon--user {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid #2a2a3e;
  background: #12121e;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(200,160,40,.15);
}
.hm-icon--user::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 50%;
  border-radius: 0 50% 50% 0;
  background: #1a1a2e;
}
.hm-icon--user::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C5A028;
  box-shadow: 0 0 4px rgba(200,160,40,.4);
  animation: runeFloat 3s ease-in-out infinite;
}

/* ===== 6. 开坛 — 雷劫闪电（Z形折线）===== */
.hm-icon--publish {
  width: 16px; height: 28px;
  background: transparent;
}
.hm-icon--publish::before {
  content: '';
  position: absolute;
  top: 0; left: 4px;
  width: 8px; height: 28px;
  background: linear-gradient(135deg,
    transparent 0%, transparent 15%,
    #C5A028 15%, #C5A028 18%, transparent 18%, transparent 35%,
    #C5A028 35%, #C5A028 38%, transparent 38%, transparent 48%,
    #C5A028 48%, #C5A028 51%, transparent 51%, transparent 65%,
    #C5A028 65%, #C5A028 68%, transparent 68%, transparent 80%,
    #C5A028 80%, #C5A028 83%, transparent 83%
  );
  box-shadow: 0 0 8px rgba(200,160,40,.3);
  animation: goldShimmer 2s ease-in-out infinite;
  transform-origin: center center;
}

/* ===== 7. 岁月 — 残月（弧线裁剪）===== */
.hm-icon--history {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #1a1a2e;
  border: 1.5px solid #2a2a3e;
  position: relative;
  box-shadow: 0 0 8px rgba(200,160,40,.2);
}
.hm-icon--history::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #0b081d;
  box-shadow: 0 0 6px rgba(200,160,40,.1);
}

/* ===== 8. 悟道 — 灵星（四芒星）===== */
.hm-icon--signin {
  width: 26px; height: 26px;
  background: transparent;
  position: relative;
}
.hm-icon--signin::before {
  content: '\2726';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #C5A028;
  text-shadow: 0 0 10px rgba(200,160,40,.6), 0 0 20px rgba(200,160,40,.3);
  animation: goldShimmer 2s ease-in-out infinite;
  transform-origin: center center;
}

/* ===== 9. 珍藏 — 灵晶（菱形切割）===== */
.hm-icon--favorites {
  width: 24px; height: 24px;
  background: #1a1a2e;
  border: 1.5px solid #2a2a3e;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(200,160,40,.2), inset 0 0 8px rgba(200,160,40,.08);
}
.hm-icon--favorites::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid rgba(200,160,40,.25);
}
.hm-icon--favorites::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #C5A028;
  box-shadow: 0 0 6px rgba(200,160,40,.5);
  animation: goldShimmer 1.8s ease-in-out infinite;
}

/* ===== 10. 阵法 — 太极旋（涡旋线条）===== */
.hm-icon--setting {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
  border-top-color: #C5A028;
  border-right-color: rgba(200,160,40,.3);
  box-shadow: 0 0 10px rgba(200,160,40,.2);
  animation: baguaSpin 4s linear infinite;
  transform-origin: center center;
}
.hm-icon--setting::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(200,160,40,.4);
  border-left-color: rgba(200,160,40,.15);
  animation: baguaSpin 3s linear infinite reverse;
}

/* ===== 11. 签到等级 — 仙山（三峰）===== */
.hm-icon--checkin {
  width: 28px; height: 22px;
  background: transparent;
}
.hm-icon--checkin::before {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 20px solid #1a1a2e;
  filter: drop-shadow(1px 0 0 #2a2a3e) drop-shadow(0 0 6px rgba(200,160,40,.2));
}
.hm-icon--checkin::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 6px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid #12121e;
  filter: drop-shadow(1px 0 0 #2a2a3e);
}

/* ── 网格图标 hover 强化光效 ── */
.hm-grid-item:hover .hm-icon--home::before,
.hm-grid-item:hover .hm-icon--topic,
.hm-grid-item:hover .hm-icon--message,
.hm-grid-item:hover .hm-icon--user,
.hm-grid-item:hover .hm-icon--history,
.hm-grid-item:hover .hm-icon--checkin::before {
  border-color: rgba(240,192,96,.5);
  box-shadow: 0 0 18px rgba(240,192,96,.4), 0 0 30px rgba(212,168,67,.15);
  transition: all .3s ease;
}
.hm-grid-item:hover .hm-icon--favorites {
  border-color: rgba(240,192,96,.5);
  box-shadow: 0 0 18px rgba(240,192,96,.4), 0 0 30px rgba(212,168,67,.15), inset 0 0 12px rgba(240,192,96,.15);
}

@keyframes baguaSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
