/* ============================================================
   menu.css —— 主菜单
   ============================================================ */

#menu {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(10,10,20,0.4) 0%, rgba(2,2,4,0.7) 75%);
  z-index: 950;
  padding: 2rem;
  overflow-y: auto;
}
#menu.open { display: flex; }

.menu-title {
  font-size: clamp(3rem, 15vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: #e8dcbf;
  text-shadow: 0 0 30px rgba(184,155,94,0.5);
  animation: flicker 6s infinite;
  margin-bottom: 0.6rem;
}

.menu-sub {
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  color: #6a6a76;
  letter-spacing: 0.34em;
  margin-bottom: 3.4rem;
}

.menu-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(320px, 82vw);
}

.menu-btn {
  position: relative;
  padding: 1rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: #cfcfd6;
  background: rgba(18,18,26,0.7);
  border: 1px solid rgba(120,120,140,0.28);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.menu-btn:hover,
.menu-btn:active {
  color: #fff;
  border-color: rgba(184,155,94,0.75);
  background: rgba(184,155,94,0.14);
  box-shadow: 0 0 22px rgba(184,155,94,0.28);
}

.menu-btn-primary {
  color: #e8dcbf;
  border-color: rgba(184,155,94,0.55);
  background: rgba(184,155,94,0.1);
}

.menu-btn-primary:hover,
.menu-btn-primary:active {
  box-shadow: 0 0 30px rgba(184,155,94,0.5);
}

.menu-btn-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #8f8f9a;
}

.menu-btn-locked {
  color: #55555f;
  border-color: rgba(80,80,90,0.3);
  cursor: default;
}
.menu-btn-locked:hover,
.menu-btn-locked:active {
  color: #55555f;
  border-color: rgba(80,80,90,0.3);
  background: rgba(18,18,26,0.7);
  box-shadow: none;
}

.menu-btn-back {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #6a6a76;
  flex-shrink: 0;
}

.menu-flash {
  color: #b89b5e !important;
  border-color: rgba(184,155,94,0.6) !important;
}

.menu-tip {
  margin-top: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #4a4a52;
  text-align: center;
}

/* 章节选择浮层 */
.menu-select {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(2,2,4,0.96);
  z-index: 960;
  padding: calc(2rem + env(safe-area-inset-top, 0px)) 2rem calc(2rem + env(safe-area-inset-bottom, 0px)) 2rem;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: menu-select-in 0.3s ease both;
}
/* 旧的 auto-margin 居中改为 justify-content:center */
.menu-select::before, .menu-select::after { display: none; }
@keyframes menu-select-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu-select-title {
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  color: #b89b5e;
  margin-bottom: 1.6rem;
}

.menu-select .menu-btn {
  width: min(280px, 78vw);
}

/* 菜单打开时, 游戏层保留在背后（只隐藏弹层） */
body.menu-open #ending,
body.menu-open #memory {
  display: none !important;
}

/* 测试用：清除所有数据 */
.menu-clear {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.55rem 1.2rem;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #7a3a3a;
  background: rgba(20, 8, 8, 0.7);
  border: 1px solid rgba(120, 40, 40, 0.5);
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s ease;
  z-index: 970;
}
.menu-clear:hover, .menu-clear:active {
  color: #e07070;
  border-color: rgba(200, 60, 60, 0.8);
  background: rgba(60, 12, 12, 0.8);
}

/* ============================================================
   章节转场
   ============================================================ */
.trans-layer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
}
.trans-layer.active { display: flex; }
.trans-layer.fade-in {
  animation: transIn 1.4s ease forwards;
  pointer-events: auto;
}
.trans-layer.fade-out {
  animation: transOut 0.9s ease forwards;
}
@keyframes transIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes transOut { from { opacity: 1; } to { opacity: 0; } }

.trans-inner {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.trans-layer.show-text .trans-inner {
  opacity: 1;
  transform: translateY(0);
}

.trans-label {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: #5c5c66;
  margin-bottom: 1.4rem;
}

.trans-name {
  font-size: clamp(2rem, 9vw, 3.4rem);
  letter-spacing: 0.44em;
  color: #e8dcbf;
  text-shadow: 0 0 34px rgba(184,155,94,0.55);
  margin-bottom: 1rem;
}

.trans-sub {
  font-size: clamp(0.8rem, 3.6vw, 1rem);
  letter-spacing: 0.3em;
  color: #8a8a92;
}

/* ============================================================
   记忆闪烁
   ============================================================ */
#mem-flash {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1450;
  pointer-events: none;
  overflow: hidden;
}
#mem-flash.active { display: block; }

.mf-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,245,220,0.9), rgba(184,155,94,0.4) 40%, transparent 75%);
  opacity: 0;
}
#mem-flash.go .mf-glow {
  animation: mfGlow 0.9s steps(1) infinite;
}
#mem-flash.mf-soft .mf-glow { animation-duration: 1.1s; opacity: 0.5; }
@keyframes mfGlow {
  0%   { opacity: 0.9; }
  15%  { opacity: 0.1; }
  30%  { opacity: 0.8; }
  45%  { opacity: 0; }
  60%  { opacity: 0.7; }
  75%  { opacity: 0.15; }
  100% { opacity: 0.6; }
}

.mf-shake { position: absolute; inset: -8%; }
#mem-flash.mf-hard .mf-shake {
  animation: mfShake 0.22s linear infinite;
}
@keyframes mfShake {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-5px, 4px); }
  50%  { transform: translate(4px, -5px); }
  75%  { transform: translate(-4px, -3px); }
  100% { transform: translate(3px, 5px); }
}

.mf-word {
  position: absolute;
  color: #e8dcbf;
  letter-spacing: 0.1em;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,245,220,0.8);
  animation-name: mfWord;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
@keyframes mfWord {
  0%   { opacity: 0;   transform: translateY(14px) scale(0.9); filter: blur(4px); }
  25%  { opacity: 0.9; filter: blur(0); }
  60%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translateY(-16px) scale(1.08); filter: blur(3px); }
}

/* ============================================================
   磨砂玻璃（菜单按钮, 强制覆盖）
   ============================================================ */
.menu-btn {
  background: rgba(20, 20, 30, 0.5) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.7) !important;
  backdrop-filter: blur(18px) saturate(1.7) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
.menu-btn:hover, .menu-btn:active {
  background: rgba(184, 155, 94, 0.26) !important;
}
.menu-btn-primary {
  background: rgba(184, 155, 94, 0.14) !important;
}
.menu-btn-locked {
  background: rgba(20, 20, 28, 0.35) !important;
}
.menu-clear {
  background: rgba(30, 10, 10, 0.5) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

/* ============================================================
   主菜单动态字符背景
   ============================================================ */
.menu-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 菜单内容浮在背景之上 */
#menu .menu-title,
#menu .menu-sub,
#menu .menu-box,
#menu .menu-tip {
  position: relative;
  z-index: 2;
}

/* 菜单背景改深色底, 让字符浮现更清晰 */
#menu {
  background: radial-gradient(ellipse at 50% 40%, rgba(10,10,20,0.45) 0%, rgba(2,2,4,0.68) 78%) !important;
}

/* 菜单按钮: 更通透 */
.menu-btn {
  background: rgba(20, 20, 30, 0.28) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.9) !important;
  backdrop-filter: blur(22px) saturate(1.9) !important;
}
.menu-btn-primary {
  background: rgba(184, 155, 94, 0.1) !important;
}
.menu-btn-locked {
  background: rgba(20, 20, 28, 0.2) !important;
}
.menu-clear {
  background: rgba(30, 10, 10, 0.3) !important;
}

/* 游戏内背景画布 */
body .game-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.game-bg-on #game,
body.game-bg-on #chapter1 {
  position: relative;
  z-index: 2;
}

/* ============================================================
   主菜单层级高于暗角 + 背景加深(不再被暗角压制)
   ============================================================ */
#menu {
  z-index: 940 !important;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(10,10,20,0.88) 0%, rgba(2,2,4,0.98) 78%) !important;
}
/* 菜单浮层(章节选择等)在菜单之上 */
.menu-select { z-index: 960 !important; }

/* 菜单背景半透明 —— 让字符背景透出来
   (暗角在菜单模式下已隐藏, 不会压菜单) */
#menu {
  background: radial-gradient(ellipse at 50% 40%,
    rgba(10,10,20,0.42) 0%, rgba(2,2,4,0.72) 78%) !important;
}

/* ---------- 设置面板 ---------- */
.settings-panel {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  background: rgba(2,2,4,0.97);
  z-index: 970;
  padding: 3rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.settings-panel .set-title {
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  color: #b89b5e;
  margin-bottom: 1rem;
}
.settings-panel .set-row {
  width: min(340px, 82vw);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.settings-panel .set-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.settings-panel .set-label {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #c6c6cf;
}
.settings-panel .set-val {
  font-size: 0.82rem;
  color: #7d7d88;
}
.settings-panel .set-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(184,155,94,0.25);
  border-radius: 2px;
  outline: none;
}
.settings-panel .set-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b89b5e;
  box-shadow: 0 0 10px rgba(184,155,94,0.6);
  cursor: pointer;
}
.settings-panel .set-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b89b5e;
  border: none;
  cursor: pointer;
}
.settings-panel .set-row:has(.set-toggle) {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.settings-panel .set-toggle {
  display: flex;
  gap: 0.6rem;
}
.settings-panel .set-opt {
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  padding: 0.5rem 1rem;
  color: #9a9aa6;
  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(184,155,94,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.settings-panel .set-opt.on {
  color: #f2e6bf;
  background: rgba(184,155,94,0.18);
  border-color: rgba(184,155,94,0.7);
  box-shadow: 0 0 14px rgba(184,155,94,0.25);
}
.settings-panel .menu-btn-back {
  margin-top: 1.6rem;
}

/* ---------- 存档位列表 ---------- */
.save-slot {
  width: min(340px, 84vw);
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.save-slot-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  text-align: left;
  padding: 0.9rem 1.1rem;
  color: #c6c6cf;
  background: rgba(20,20,30,0.5);
  border: 1px solid rgba(184,155,94,0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.save-slot-info:hover, .save-slot-info:active {
  border-color: rgba(184,155,94,0.7);
  background: rgba(30,26,18,0.6);
}
.save-slot.current .save-slot-info {
  border-color: rgba(184,155,94,0.85);
  box-shadow: 0 0 16px rgba(184,155,94,0.2);
}
.save-slot-no {
  font-size: 1.3rem;
  color: #b89b5e;
  min-width: 1.4rem;
  text-align: center;
}
.save-slot-desc {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #9a9aa6;
  line-height: 1.6;
}
.save-slot-del {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0 0.9rem;
  color: #a06060;
  background: rgba(30,18,18,0.5);
  border: 1px solid rgba(160,80,80,0.3);
  border-radius: 8px;
  cursor: pointer;
}
.save-slot-del:hover, .save-slot-del:active {
  color: #e08080;
  border-color: rgba(200,90,90,0.7);
}

/* ---------- 存档码文本框 ---------- */
.save-code {
  width: min(340px, 84vw);
  height: 7rem;
  font-family: monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #c6c6cf;
  background: rgba(12,12,18,0.9);
  border: 1px solid rgba(184,155,94,0.3);
  border-radius: 8px;
  padding: 0.8rem;
  resize: none;
  word-break: break-all;
  outline: none;
}
.save-code:focus {
  border-color: rgba(184,155,94,0.7);
}

/* ---------- 已通关标签 ---------- */
.menu-title {
  position: relative;
}
.menu-cleared-badge {
  position: absolute;
  right: -0.4em;
  bottom: 0.1em;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: #e8c46a;
  text-shadow: 0 0 12px rgba(232,196,106,0.8);
  animation: badge-glow 2.2s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
}
@keyframes badge-glow {
  0%, 100% { opacity: 0.35; text-shadow: 0 0 6px rgba(232,196,106,0.4); }
  50%      { opacity: 1;    text-shadow: 0 0 18px rgba(232,196,106,1); }
}

/* ---------- 章节展开关卡 ---------- */
.chapter-group {
  width: min(340px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.chapter-levels {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.2rem 0 0.4rem;
  justify-content: center;
  max-width: 100%;
}
.chapter-group.open .chapter-levels { display: flex; }
/* 小关按钮：自适应（一行放不下自动换行） */
.level-btn {
  flex: 0 0 auto;
  min-width: 44px;
}
.chapter-group.open .chapter-levels {
  display: flex;
}
.level-btn {
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  width: 44px;
  height: 44px;
  color: #cfcfd6;
  background: rgba(20,20,30,0.55);
  border: 1px solid rgba(184,155,94,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.level-btn:hover, .level-btn:active {
  color: #f2e6bf;
  border-color: rgba(184,155,94,0.85);
  box-shadow: 0 0 12px rgba(184,155,94,0.3);
}


/* ---------- 顺滑动效 ---------- */
.menu-btn {
  transition: transform 0.18s cubic-bezier(.2,.8,.3,1),
              color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, box-shadow 0.25s ease;
}
.menu-btn:active { transform: scale(0.955); }
.menu-btn-primary:active { transform: scale(0.955); }

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes menuFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-out-up {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-38px); }
}

#menu.open { animation: menuFadeIn 1.4s ease both; }

.menu-select {
  animation: slide-in-up 0.4s cubic-bezier(.2,.8,.3,1) both;
}
.menu-select.closing { animation: slide-out-up 0.3s ease both; }


/* ---------- 面板出场动画 ---------- */
.settings-panel.closing { animation: slide-out-up 0.28s ease both; }
#placeholder.closing .ph-inner { animation: slide-out-up 0.28s ease both; }


/* ---------- 暂停面板 ---------- */
#pause-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(2,2,4,0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#pause-panel.open { display: flex; animation: slide-in-up 0.35s cubic-bezier(.2,.8,.3,1) both; }
.pause-title {
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  color: #b89b5e;
  margin-bottom: 1.4rem;
  text-shadow: 0 0 20px rgba(184,155,94,0.5);
}
#pause-panel .menu-btn { width: min(260px, 70vw); }


/* ---------- 主菜单 Logo（标题背后） ---------- */
#menu::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66vw, 300px);
  height: min(66vw, 300px);
  transform: translate(-54%, -164%);
  background: url('../img/logo.svg') no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: logo-breathe 7s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%, 100% { opacity: 0.36; transform: translate(-54%, -164%) scale(1); }
  50%      { opacity: 0.6;  transform: translate(-54%, -164%) scale(1.035); }
}


/* ---------- 云端存档输入框 ---------- */
.set-input {
  width: 100%;
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #e8dcbf;
  background: rgba(12,12,18,0.9);
  border: 1px solid rgba(184,155,94,0.35);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  outline: none;
}
.set-input:focus { border-color: rgba(184,155,94,0.85); }

/* ---------- 广播横幅（不参与触摸） ---------- */
#broadcast-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  padding: 0.8rem 1rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: #f2e6bf;
  background: rgba(18,18,26,0.96);
  border-bottom: 1px solid rgba(184,155,94,0.5);
  transform: translateY(-130%);
  transition: transform 0.4s cubic-bezier(.2,.8,.3,1);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#broadcast-bar.on { transform: translateY(0); }
#broadcast-bar::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 3px;
  width: 34px; height: 3px;
  margin-left: -17px;
  border-radius: 2px;
  background: rgba(184,155,94,0.4);
}


.rank-body { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.rank-loading { font-size: 0.9rem; letter-spacing: 0.2em; color: #8a8a96; padding: 1.2rem 0; }


/* ---------- 成就列表 ---------- */
.ach-slot .save-slot-info {
  opacity: 0.45;
}
.ach-slot.got .save-slot-info {
  opacity: 1;
  border-color: rgba(184,155,94,0.6);
}
.ach-slot.got .save-slot-no {
  color: #e8c46a;
  text-shadow: 0 0 10px rgba(232,196,106,0.6);
}
.ach-slot .save-slot-no {
  color: #55555f;
}


/* ============================================================
   设置 · 项目指导人卡片
   ============================================================ */
.set-advisor {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0 1.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(20,18,12,0.7);
  border: 1px solid rgba(184,155,94,0.5);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(184,155,94,0.18) inset, 0 0 18px rgba(184,155,94,0.12);
}

.set-adv-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  /* 金色镶边 */
  border: 2px solid #d4b871;
  padding: 2px;
  background: linear-gradient(135deg, #f2e0a8 0%, #c9a961 40%, #8a6f3a 70%, #f2e0a8 100%);
  box-shadow:
    0 0 0 1px rgba(80,60,30,0.9),
    0 0 14px rgba(212,184,113,0.8),
    0 0 28px rgba(184,155,94,0.4);
  overflow: hidden;
  animation: advGlow 3.2s ease-in-out infinite;
}
@keyframes advGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(80,60,30,0.9), 0 0 14px rgba(212,184,113,0.8), 0 0 28px rgba(184,155,94,0.4); }
  50%     { box-shadow: 0 0 0 1px rgba(80,60,30,0.9), 0 0 22px rgba(212,184,113,1),   0 0 40px rgba(184,155,94,0.7); }
}
.set-adv-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.set-adv-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.set-adv-role {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: #d4b871;
  text-shadow: 0 0 10px rgba(212,184,113,0.6);
}
.set-adv-name {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #e8dcbf;
  text-shadow: 0 0 14px rgba(184,155,94,0.5);
}


/* 指导人卡片：hint */
.set-adv-hint {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #8a7a52;
  margin-top: 0.15rem;
}
.set-advisor { cursor: pointer; }
.set-advisor:active { transform: scale(0.98); }

/* ===== 项目贡献页 ===== */
.adv-page {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,2,4,0.94);
  padding: 1.6rem;
  box-sizing: border-box;
  overflow-y: auto;
  animation: advPageIn 0.4s ease;
}
@keyframes advPageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes advPageOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes advCardOut {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.86) translateY(18px); }
}
.adv-page.closing {
  animation: advPageOut 0.45s ease forwards !important;
}
.adv-page.closing .adv-page-inner {
  animation: advCardOut 0.42s cubic-bezier(.4,0,.2,1) forwards !important;
}
@keyframes advCardIn {
  0%   { opacity: 0; transform: scale(0.82) translateY(24px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.adv-page-inner {
  width: min(440px, 92vw);
  padding: 2rem 1.6rem 1.6rem;
  background: rgba(18,16,12,0.96);
  border: 1px solid rgba(184,155,94,0.4);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(184,155,94,0.15), 0 0 30px rgba(0,0,0,0.7);
  text-align: center;
  animation: advCardIn 0.55s cubic-bezier(.2,.8,.3,1.15);
}
.adv-page-head { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem; }
.adv-page-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid #d4b871; padding: 2px;
  background: linear-gradient(135deg, #f2e0a8 0%, #c9a961 40%, #8a6f3a 70%, #f2e0a8 100%);
  box-shadow: 0 0 0 1px rgba(80,60,30,0.9), 0 0 18px rgba(212,184,113,0.8);
  overflow: hidden;
}
.adv-page-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.adv-page-name { font-size: 1.5rem; letter-spacing: 0.15em; color: #e8dcbf; text-shadow: 0 0 18px rgba(184,155,94,0.6); }
.adv-page-role { font-size: 0.78rem; letter-spacing: 0.34em; color: #d4b871; }
.adv-page-title {
  font-size: 0.95rem; letter-spacing: 0.4em; color: #d4b871;
  margin: 1rem 0 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(184,155,94,0.3);
}
.adv-page-list {
  text-align: left; margin: 0 0 1.4rem; padding: 0 0.4rem 0 1.4rem;
  font-size: 0.88rem; line-height: 2; color: #cfcfd6; letter-spacing: 0.06em;
}
.adv-page-list li::marker { color: #b89b5e; }
.adv-page-close { width: 100%; }


/* 突出贡献者 */
.set-contrib {
  margin: 0.3rem 0 1.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(18,18,26,0.55);
  border: 1px dashed rgba(184,155,94,0.3);
  border-radius: 10px;
  text-align: center;
}
.set-contrib-empty {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: #6a6a76;
}
