/* ============================================================
 * 大厅视觉层「心动脉冲 Pulse」— 带教大厅 / 游戏大厅 共用
 * 只作用于 teaching.html；在 portal.css 之后加载，覆盖基础样式。
 * 主题变量优先取主题引擎 --cd-*（日/夜/护眼自适应），缺省回退暗夜色板。
 * ============================================================ */

:root {
  --hl-text: var(--cd-text, #f1f3f9);
  --hl-text-2: var(--cd-text-2, #9aa7c7);
  --hl-text-3: var(--cd-text-3, #8b96af);
  --hl-surface: var(--cd-surface, #1a2236);
  --hl-surface-2: var(--cd-surface-2, #1f2940);
  --hl-brand: var(--cd-brand, #2dd4bf);
  --hl-brand-2: var(--cd-brand-2, #38bdf8);
  --hl-purple: var(--cd-accent-purple, #a78bfa);
  --hl-gold: var(--cd-accent-gold, #f5b544);
  --hl-line: rgba(255, 255, 255, 0.08);
}

/* ---------- 极光背景（三团漂移光斑） ---------- */
.hall-aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hall-aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: hall-drift 26s ease-in-out infinite alternate;
}
.hall-aurora i:nth-child(1) {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  left: -12%; top: -16%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 65%);
}
.hall-aurora i:nth-child(2) {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  right: -10%; top: 38%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 65%);
  animation-delay: -8s; animation-duration: 32s;
}
.hall-aurora i:nth-child(3) {
  width: 30vw; height: 30vw; min-width: 240px; min-height: 240px;
  left: 28%; bottom: -18%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.26), transparent 65%);
  animation-delay: -16s; animation-duration: 38s;
}
@keyframes hall-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vh) scale(1.12); }
}

/* ---------- Hero 横幅 ---------- */
.hall-hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 22px 22px 20px; margin-bottom: 18px;
  background:
    radial-gradient(560px 220px at 12% -50%, rgba(45, 212, 191, 0.22), transparent 62%),
    radial-gradient(520px 240px at 92% 130%, rgba(56, 189, 248, 0.16), transparent 62%),
    linear-gradient(160deg, var(--hl-surface), var(--hl-surface-2));
  border: 1px solid var(--hl-line);
  box-shadow: 0 10px 30px rgba(2, 8, 20, 0.35);
}
.hall-hero-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.hall-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* 脉动徽标 */
.hall-logo {
  position: relative; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--hl-brand), var(--hl-brand-2));
  color: #06251f; font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.4);
}
.hall-logo::after {
  content: ""; position: absolute; inset: -6px; border-radius: 20px;
  border: 2px solid rgba(45, 212, 191, 0.55);
  animation: hall-pulse-ring 2.4s ease-out infinite;
}
@keyframes hall-pulse-ring {
  0%   { transform: scale(0.86); opacity: 0.85; }
  70%  { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

.hall-title {
  font-size: 20px; font-weight: 900; letter-spacing: 0.5px; color: var(--hl-text);
  background: linear-gradient(90deg, var(--hl-text), var(--hl-brand) 130%);
  -webkit-background-clip: text; background-clip: text;
}
.hall-greet { font-size: 13px; color: var(--hl-text-2); margin-top: 2px; }
.hall-stats {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; font-weight: 700; color: var(--hl-brand);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px; padding: 3px 12px;
}

/* Hero 内用户区微调（结构/id 不变） */
.hall-hero .user-area { position: relative; z-index: 1; }
.hall-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hl-line);
  backdrop-filter: blur(6px);
}
.hall-hero .btn-secondary:hover { border-color: var(--hl-brand); filter: none; }
.hall-hero .nick { font-weight: 800; }

/* ---------- 试玩横幅 ---------- */
.trial-banner {
  background: linear-gradient(90deg, rgba(245, 181, 68, 0.14), rgba(245, 181, 68, 0.05));
  border: 1px solid rgba(245, 181, 68, 0.4);
  border-radius: 16px;
}
/* 日间/护眼主题下琥珀文字需加深保证可读 */
html[data-theme="day"] .trial-banner,
html[data-theme="eye"] .trial-banner { color: #8a5a00; }

/* ---------- 顶部 Tab：胶囊分段控件 + 滑动墨水条（≥768px） ---------- */
.hall-tabs { display: none; }
@media (min-width: 768px) {
  .hall-tabs { display: flex; justify-content: center; margin: 4px 0 20px; }
}
.hall-tabs-pill {
  position: relative; display: flex; gap: 4px; padding: 5px;
  border-radius: 999px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-line);
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.3);
}
.hall-tabs .tab-btn {
  position: relative; z-index: 1; flex: none;
  min-width: 168px; min-height: 46px; padding: 10px 28px;
  border: none; border-radius: 999px; background: transparent;
  color: var(--hl-text-2); font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: color 0.22s, transform 0.12s;
}
.hall-tabs .tab-btn:active { transform: scale(0.96); }
.hall-tabs .tab-btn.active { color: #06251f; background: transparent; }
.hall-tab-ink {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0;
  border-radius: 999px; z-index: 0;
  background: linear-gradient(135deg, var(--hl-brand), var(--hl-brand-2));
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.5);
  transition: left 0.3s cubic-bezier(0.55, 0.1, 0.2, 1.25), width 0.3s cubic-bezier(0.55, 0.1, 0.2, 1.25);
}

/* ---------- 面板切换动画 ---------- */
.tab-pane.active { animation: hall-pane-in 0.35s ease both; }
@keyframes hall-pane-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 分组标题 ---------- */
.group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 900; letter-spacing: 2px;
  color: var(--hl-text-2); margin: 22px 4px 12px;
}
.group-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--hl-brand), var(--hl-brand-2));
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.6);
}
.group-title:first-child { margin-top: 0; }

/* ---------- 入场动画（卡片按 inline delay 交错上浮） ---------- */
@keyframes hall-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 带教大厅：中心大卡 ---------- */
.teach-card {
  --acc: var(--hl-brand);
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 18px 20px; min-height: 92px;
  background: linear-gradient(180deg, var(--hl-surface), var(--hl-surface-2));
  border: 1px solid var(--hl-line);
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.28);
  animation: hall-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 左侧渐变能量条 */
.teach-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--acc), transparent 140%);
}
/* 右上角色彩光晕 */
.teach-card::after {
  content: ""; position: absolute; top: -46px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--acc), transparent 68%);
  opacity: 0.14; pointer-events: none;
  transition: opacity 0.25s;
}
.teach-card:hover {
  transform: translateY(-4px);
  border-color: var(--acc);
  box-shadow: 0 14px 34px rgba(2, 8, 20, 0.42), 0 0 26px -8px var(--acc);
}
.teach-card:hover::after { opacity: 0.26; }
.teach-card:active { transform: translateY(-1px) scale(0.99); }

/* 图标徽章 */
.tc-ico {
  width: 54px; height: 54px; flex: none; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, transparent), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: 0 6px 16px -6px var(--acc);
  transition: transform 0.2s ease;
}
.teach-card:hover .tc-ico { transform: scale(1.08) rotate(-3deg); }
.tc-icon { font-size: 28px; line-height: 1; }

.teach-card .tc-title { font-size: 16px; font-weight: 800; }
.teach-card .tc-sub {
  font-size: 11px; font-weight: 700; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 38%, transparent);
  border-radius: 999px; padding: 1px 9px;
}
.teach-card .tc-arrow {
  font-size: 24px; font-weight: 700; color: var(--hl-text-3);
  transition: transform 0.2s ease, color 0.2s ease;
}
.teach-card:hover .tc-arrow { transform: translateX(5px); color: var(--acc); }

/* 光泽扫过 */
.tc-shine {
  position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left 0.6s ease;
}
.teach-card:hover .tc-shine { left: 130%; }

/* ---------- 游戏大厅：迷你游戏卡 ---------- */
.game-card-mini {
  --acc: var(--hl-brand-2);
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 18px 16px; min-height: 108px;
  background: linear-gradient(180deg, var(--hl-surface), var(--hl-surface-2));
  border: 1px solid var(--hl-line);
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.28);
  animation: hall-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.game-card-mini::after {
  content: ""; position: absolute; top: -40px; left: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--acc), transparent 68%);
  opacity: 0.12; pointer-events: none; transition: opacity 0.25s;
}
.game-card-mini:hover {
  transform: translateY(-4px);
  border-color: var(--acc);
  box-shadow: 0 14px 30px rgba(2, 8, 20, 0.4), 0 0 22px -8px var(--acc);
  text-decoration: none;
}
.game-card-mini:hover::after { opacity: 0.24; }
.game-card-mini:active { transform: translateY(-1px) scale(0.98); }
.game-card-mini .gm-icon {
  font-size: 32px; line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}
.game-card-mini:hover .gm-icon { transform: scale(1.14) rotate(4deg); }
.game-card-mini .gm-title { font-size: 15px; font-weight: 800; color: var(--hl-text); }
.game-card-mini .game-type-badge {
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
}
/* 光泽扫过（复用 tc-shine） */
.game-card-mini:hover .tc-shine { left: 130%; }

/* 即将上线卡：保留虚线但统一圆角/动效豁免 */
.soon-card { border-radius: 18px; animation: hall-in 0.5s ease both; }
.soon-card:hover { transform: none; }

/* ---------- 骨架屏（加载中） ---------- */
.hall-skel-card {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 18px 20px; min-height: 92px;
  background: linear-gradient(180deg, var(--hl-surface), var(--hl-surface-2));
  border: 1px solid var(--hl-line);
}
.hall-skel {
  border-radius: 10px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: hall-shimmer 1.3s linear infinite;
}
@keyframes hall-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- 底部浮动导航（仅手机 <768px） ---------- */
@media (max-width: 767px) {
  .bottom-nav {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 430px; margin: 0 auto; height: 60px;
    padding: 6px; border-radius: 20px;
    background: color-mix(in srgb, var(--hl-surface) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hl-line);
    box-shadow: 0 12px 32px rgba(2, 8, 20, 0.5);
  }
  .bottom-nav .bn-btn { border-radius: 14px; transition: background 0.2s, color 0.2s; }
  .bottom-nav .bn-btn.active {
    background: linear-gradient(135deg, var(--hl-brand), var(--hl-brand-2));
    color: #06251f; font-weight: 800;
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.45);
  }
  .bottom-nav .bn-btn.active .bn-ico { transform: scale(1.15); }
}

/* ---------- 移动端 Hero 适配 ---------- */
@media (max-width: 639px) {
  .hall-hero { padding: 18px 16px 22px; border-radius: 18px; }
  .hall-title { font-size: 18px; }
  .hall-logo { width: 46px; height: 46px; font-size: 23px; }
  .teach-card { padding: 16px; }
  .tc-ico { width: 48px; height: 48px; font-size: 25px; }
}

/* ============================================================
 * 认证页（登录 / 注册）：同一套心动脉冲视觉
 * ============================================================ */
.auth-wrap { position: relative; }
.auth-logo {
  width: 62px; height: 62px; border-radius: 18px; font-size: 30px;
  margin: 0 auto 14px;
}
.auth-card .brand h1 {
  font-weight: 800;
  background: linear-gradient(90deg, var(--hl-text), var(--hl-brand) 150%);
  -webkit-background-clip: text; background-clip: text;
}
.auth-card .card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 12px 36px rgba(2, 8, 20, 0.4), 0 0 34px -12px var(--hl-brand);
}
/* 卡顶渐变能量线 */
.auth-card .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--hl-brand), var(--hl-brand-2), transparent);
}
/* 提交按钮与品牌同色发光 */
.auth-card .btn:not(.btn-secondary):not(.btn-danger):not(.btn-amber) {
  background: linear-gradient(135deg, var(--hl-brand), var(--hl-brand-2));
  box-shadow: 0 6px 18px -6px var(--hl-brand);
  transition: transform 0.12s, filter 0.15s, box-shadow 0.2s;
}
.auth-card .btn:not(.btn-secondary):not(.btn-danger):not(.btn-amber):hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px -6px var(--hl-brand);
}
html[data-theme="day"] .auth-card .card,
html[data-theme="eye"] .auth-card .card {
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 14px 36px rgba(30, 50, 90, 0.14), 0 0 30px -14px var(--hl-brand);
}

/* ============================================================
 * 玩家中心（lobby）：Hero 化顶栏 + 状态徽章彩色化
 * ============================================================ */
.lobby-hero { margin-bottom: 16px; }
.lobby-hero .ph-top { margin-bottom: 0; }
/* 区块卡片与大厅同语言：能量条 + 悬浮 */
.lobby-page .sec { position: relative; overflow: hidden; }
.lobby-page .sec::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--hl-brand), transparent 140%);
  opacity: 0.7;
}
html[data-theme="day"] .lobby-page .sec,
html[data-theme="eye"] .lobby-page .sec {
  box-shadow: 0 8px 22px rgba(30, 50, 90, 0.1);
  border-color: rgba(29, 39, 66, 0.1);
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hall-aurora i, .hall-logo::after,
  .teach-card, .game-card-mini, .soon-card, .hall-skel,
  .tab-pane.active { animation: none !important; }
  .tc-shine { display: none; }
}

/* ============================================================
 * 日间 / 护眼主题精修：解决亮底色下的"洗白"问题
 * ============================================================ */
html[data-theme="day"], html[data-theme="eye"] {
  /* 亮底上白色描边不可见，换深色描边 */
  --hl-line: rgba(29, 39, 66, 0.1);
}

/* 极光光斑：亮底下提高存在感 */
html[data-theme="day"] .hall-aurora i,
html[data-theme="eye"] .hall-aurora i { opacity: 0.85; filter: blur(70px); }
html[data-theme="day"] .hall-aurora i:nth-child(1),
html[data-theme="eye"] .hall-aurora i:nth-child(1) {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.4), transparent 62%);
}
html[data-theme="day"] .hall-aurora i:nth-child(2),
html[data-theme="eye"] .hall-aurora i:nth-child(2) {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36), transparent 62%);
}
html[data-theme="day"] .hall-aurora i:nth-child(3),
html[data-theme="eye"] .hall-aurora i:nth-child(3) {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.32), transparent 62%);
}
/* 药典温读（eye）：暖米纸面上再漂青蓝紫光斑会"串味"，换成赭石 / 琥珀 / 苔绿。
 * 后置覆盖上面的 day/eye 合并规则（同为 html[data-theme="eye"] 选择器，靠顺序取胜）。 */
html[data-theme="eye"] .hall-aurora i:nth-child(1) {
  background: radial-gradient(circle, rgba(181, 133, 74, 0.34), transparent 62%);
}
html[data-theme="eye"] .hall-aurora i:nth-child(2) {
  background: radial-gradient(circle, rgba(196, 158, 84, 0.30), transparent 62%);
}
html[data-theme="eye"] .hall-aurora i:nth-child(3) {
  background: radial-gradient(circle, rgba(140, 146, 94, 0.26), transparent 62%);
}
/* 药典温读：徽标/激活态的底变成赭石后，原来的深青字（#06251f）读起来发脏，换暖褐 */
html[data-theme="eye"] .hall-logo,
html[data-theme="eye"] .auth-logo,
html[data-theme="eye"] .brand .logo,
html[data-theme="eye"] .hall-tabs .tab-btn.active { color: #2b1d08; }

/* Hero：亮底下色彩光晕加强 */
html[data-theme="day"] .hall-hero,
html[data-theme="eye"] .hall-hero {
  background:
    radial-gradient(560px 220px at 12% -50%, rgba(45, 212, 191, 0.3), transparent 62%),
    radial-gradient(520px 240px at 92% 130%, rgba(56, 189, 248, 0.24), transparent 62%),
    linear-gradient(160deg, var(--hl-surface), var(--hl-surface-2));
  box-shadow: 0 10px 30px rgba(30, 50, 90, 0.12);
}

/* Hero 内幽灵按钮：亮底下白叠白不可见，换实底 */
html[data-theme="day"] .hall-hero .btn-secondary,
html[data-theme="eye"] .hall-hero .btn-secondary {
  background: var(--hl-surface-2);
  border: 1px solid var(--hl-line);
}

/* 卡片：亮底下投影带色、边框可见 */
html[data-theme="day"] .teach-card,
html[data-theme="day"] .game-card-mini,
html[data-theme="eye"] .teach-card,
html[data-theme="eye"] .game-card-mini {
  box-shadow: 0 6px 18px rgba(30, 50, 90, 0.1);
}
html[data-theme="day"] .teach-card:hover,
html[data-theme="day"] .game-card-mini:hover,
html[data-theme="eye"] .teach-card:hover,
html[data-theme="eye"] .game-card-mini:hover {
  box-shadow: 0 14px 32px rgba(30, 50, 90, 0.16), 0 0 26px -6px var(--acc);
}
/* 亮底下色彩光晕与图标徽章更饱和 */
html[data-theme="day"] .teach-card::after,
html[data-theme="day"] .game-card-mini::after,
html[data-theme="eye"] .teach-card::after,
html[data-theme="eye"] .game-card-mini::after { opacity: 0.2; }
html[data-theme="day"] .teach-card:hover::after,
html[data-theme="day"] .game-card-mini:hover::after,
html[data-theme="eye"] .teach-card:hover::after,
html[data-theme="eye"] .game-card-mini:hover::after { opacity: 0.34; }

/* Tab 胶囊与墨水条：亮底下层次 */
html[data-theme="day"] .hall-tabs-pill,
html[data-theme="eye"] .hall-tabs-pill {
  box-shadow: 0 6px 18px rgba(30, 50, 90, 0.1);
}

/* 骨架屏：白色微光在亮底不可见，换深灰微光 */
html[data-theme="day"] .hall-skel,
html[data-theme="eye"] .hall-skel {
  background: linear-gradient(90deg,
    rgba(29, 39, 66, 0.06) 25%,
    rgba(29, 39, 66, 0.14) 50%,
    rgba(29, 39, 66, 0.06) 75%);
  background-size: 200% 100%;
}

/* 移动端浮动底栏：亮底下毛玻璃用浅底 */
@media (max-width: 767px) {
  html[data-theme="day"] .bottom-nav,
  html[data-theme="eye"] .bottom-nav {
    background: color-mix(in srgb, var(--hl-surface) 92%, transparent);
    box-shadow: 0 12px 32px rgba(30, 50, 90, 0.18);
  }
}

/* ============================================================
 * 「继续上次」条 + 卡片进度角标（大厅续玩）
 * 数据由 teaching.html 注入：.resume-card 用 --acc 取游戏品牌色
 * ============================================================ */
.resume-wrap { margin-bottom: 14px; }
.resume-wrap:empty { display: none; }
.resume-card {
  --acc: var(--hl-brand);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(180deg, var(--hl-surface), var(--hl-surface-2));
  border: 1px solid var(--hl-line);
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.28);
  animation: hall-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.resume-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--acc), transparent 140%);
}
.resume-card:hover {
  transform: translateY(-3px); border-color: var(--acc);
  box-shadow: 0 14px 30px rgba(2, 8, 20, 0.4), 0 0 22px -8px var(--acc);
}
.resume-card:active { transform: translateY(-1px) scale(0.995); }
.rs-ico {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, transparent), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: 0 6px 16px -6px var(--acc);
}
.rs-body { flex: 1; min-width: 0; }
.rs-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--hl-brand); }
.rs-title {
  font-size: 15.5px; font-weight: 800; color: var(--hl-text); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rs-meta {
  flex: none; font-size: 12px; font-weight: 700; color: var(--hl-text-2);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
  border-radius: 999px; padding: 3px 10px;
}
.rs-go { flex: none; font-size: 13px; font-weight: 800; color: var(--acc); white-space: nowrap; }

/* 进度角标：文字一律用主题文字色，颜色只出现在底 / 边
 * （亮底主题下若直接把家族色当小字色，对比度会掉到 1.x:1 —— 见平台铁律） */
.tc-prog {
  display: inline-flex; align-items: center; margin-top: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--hl-text-2);
  background: color-mix(in srgb, var(--acc, var(--hl-brand)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc, var(--hl-brand)) 34%, transparent);
  border-radius: 999px; padding: 2px 9px;
}
.game-card-mini .tc-prog { margin-top: 6px; margin-left: 6px; }

@media (max-width: 639px) {
  .rs-ico { width: 40px; height: 40px; font-size: 21px; }
  .rs-meta { display: none; }
}
html[data-theme="day"] .resume-card,
html[data-theme="eye"] .resume-card { box-shadow: 0 6px 18px rgba(30, 50, 90, 0.1); }
html[data-theme="day"] .resume-card:hover,
html[data-theme="eye"] .resume-card:hover {
  box-shadow: 0 14px 32px rgba(30, 50, 90, 0.16), 0 0 26px -6px var(--acc);
}
@media (prefers-reduced-motion: reduce) {
  .resume-card { animation: none !important; }
}

/* ============================================================
 * 全屏氛围底图在场时（<html data-bg-art="1">）：收敛极光层
 * ------------------------------------------------------------
 * 底图与三团漂移光斑是两种"氛围"，叠满会把内容糊进色彩里。
 * 引擎只在底图**确实加载成功**时才置 data-bg-art，因此：
 *   图缺失 / 加载失败 → 该属性不存在 → 极光保持原样，观感与改造前一致。
 * 亮色主题下底图更浅，极光需略高于暗色主题才看得见。
 * ============================================================ */
html[data-bg-art] .hall-aurora i { opacity: 0.22; filter: blur(100px); }
html[data-bg-art][data-theme="day"] .hall-aurora i,
html[data-bg-art][data-theme="eye"] .hall-aurora i { opacity: 0.34; filter: blur(80px); }
