/* =========================================================
   异界冒险 · 全局样式
   设计：竖屏移动端优先，宣纸底色，水墨点缀，楷体题字
   ========================================================= */
:root {
  --bg: #f8f8f5;
  --bg-panel: #f4f4ef;
  --card: #fcfcf9;
  --line: rgba(42, 42, 38, 0.13);
  --line-gold: rgba(122, 95, 46, 0.18);
  --text: #2f2f2b;
  --sub: #56564f;
  --weak: #79786f;
  --green: #2e7464;
  --green-soft: #e6efe9;
  --gold: #7a5f2e;
  --gold-soft: #f0ead9;
  --brown: #6b5738;
  --brown-soft: #ece5d6;
  --red: #a84842;
  --red-soft: #f3e6e4;
  --purple: #6f6a80;
  --orange: #a06a35;
  --blue: #54707e;
  --q0: #8a8578;
  --q1: #2e7464;
  --q2: #4f7fa8;
  --q3: #84719e;
  --q4: #b9792a;
  --q5: #ad4a43;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(42, 42, 38, 0.06);
  --shadow-lg: 0 8px 24px rgba(42, 42, 38, 0.14);
  --font-display: KaiTi, 楷体, STKaiti, BiauKai, "Noto Serif SC", "Source Han Serif SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 50% -10%, #fffdf6 0%, rgba(247, 244, 234, 0) 62%),
    radial-gradient(900px 520px at 12% 112%, rgba(122, 95, 46, 0.05), rgba(0, 0, 0, 0) 60%),
    radial-gradient(760px 420px at 96% 8%, rgba(46, 116, 100, 0.045), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #f7f5ec 0%, #eeece0 100%);
}

/* 细滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(122, 95, 46, 0.28); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(122, 95, 46, 0.45); }

.screen { position: fixed; inset: 0; z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#screen-main { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: none; border-radius: 9px; padding: 10px 14px; font-size: 14px;
  font-weight: 600; color: #fff; cursor: pointer; user-select: none;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  letter-spacing: 1px;
  box-shadow: 0 1px 3px rgba(42, 42, 38, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn:active { transform: scale(0.95); box-shadow: 0 1px 2px rgba(42, 42, 38, 0.12); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-green { background: linear-gradient(180deg, #467a64 0%, #2f6050 100%); }
.btn-green:hover { filter: brightness(1.08); }
.btn-brown { background: linear-gradient(180deg, #776138 0%, #5b4a2a 100%); }
.btn-purple { background: linear-gradient(180deg, #8374a0 0%, #685a86 100%); }
.btn-purple:hover { filter: brightness(1.06); }
.btn-red { background: linear-gradient(180deg, #b6534d 0%, #8f3f3a 100%); }
.btn-gray { background: linear-gradient(180deg, #a49e93 0%, #8a8479 100%); }
.btn-gray:hover { filter: brightness(1.06); }
.btn-gold { background: linear-gradient(180deg, #e0a93f 0%, #c08a1e 100%); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-xs { padding: 3px 10px; font-size: 11px; border-radius: 6px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-md { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.btn-blue { background: linear-gradient(180deg, #5c7f99 0%, #456179 100%); }
.btn-blue:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line-gold); color: var(--gold); box-shadow: none; }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(180deg, #fefefc 0%, #faf8f2 100%); border-radius: 12px;
  box-shadow: 0 1px 4px rgba(42, 42, 38, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 16px;
  border: 1px solid rgba(122, 95, 46, 0.14);
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 90;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }

/* 角色面板：左侧滑入 */
.panel-left {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); z-index: 100;
  background: linear-gradient(180deg, #faf9f4 0%, #f0ede3 100%); box-shadow: var(--shadow-lg);
  border-radius: 0 16px 16px 0;
  transform: translateX(-105%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-left.open { transform: translateX(0); }

/* 功能菜单：底部滑入 */
.panel-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 78vh;
  background: linear-gradient(180deg, #faf9f4 0%, #efece1 100%);
  border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-bottom.open { transform: translateY(0); }
.panel-bottom .panel-scroll { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* 全屏二级页面：底部滑入 */
.panel-full {
  position: fixed; inset: 0; z-index: 100; background: linear-gradient(180deg, #faf9f4 0%, #efece1 100%);
  transform: translateY(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-full.open { transform: translateY(0); }

.panel-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(180deg, #fdfcf7 0%, #f5f0e4 100%);
  border-bottom: 1px solid var(--line-gold);
  position: relative;
}
.panel-head::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, rgba(122, 95, 46, 0.55), rgba(122, 95, 46, 0.06));
  border-radius: 2px;
}
.panel-head h2 { font-size: 16px; font-weight: 700; flex: 1; letter-spacing: 1px; }
.forge-mats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px 0; font-size: 11px; color: var(--sub);
}
.forge-mats .fm-label {
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  border: 1px solid #6f5530; border-radius: 7px; padding: 3px 11px; margin-right: 4px;
  box-shadow: 0 1px 3px rgba(42, 42, 38, 0.18);
  letter-spacing: 2px;
}
.forge-mats .fm {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 8px;
  padding: 4px 10px 4px 5px; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(90, 70, 30, 0.08);
}
.forge-mats .fm-ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--brown);
}
.forge-mats .fm-meta { display: inline-flex; align-items: baseline; gap: 5px; }
.forge-mats .fm-name { color: var(--text); font-weight: 600; }
.forge-mats .fm-qty { color: var(--brown); font-weight: 800; }
.forge-mats .fm-none { background: transparent; border-color: var(--line); color: var(--weak); }
.panel-head .close-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: #f1ede6;
  color: var(--sub); font-size: 16px; cursor: pointer; position: relative;
  transition: background 0.2s;
}
.panel-head .close-btn:active { background: #e3dccb; }
.panel-head .close-btn::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
}
.panel-body { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }

/* ---------- 骨架屏加载 ---------- */
.sk-skeleton { padding: 8px 2px; }
.sk-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.sk-row:last-child { border-bottom: none; }
.sk-bar {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(255, 255, 255, 0.35) 50%, rgba(0, 0, 0, 0.06) 75%);
  background-size: 200% 100%; animation: sk-shimmer 1.4s ease-in-out infinite;
}
.sk-bar.sk-tall { height: 20px; }
.sk-bar.sk-ico { width: 40px !important; height: 40px; border-radius: 10px; }
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.panel-error { padding: 36px 20px; text-align: center; }
.panel-error .pe-msg { color: var(--red); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* =========================================================
   异界冒险开场
   ========================================================= */
#screen-gaokao {
  position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(201, 168, 106, 0.14), rgba(0, 0, 0, 0) 60%),
    linear-gradient(168deg, #1a2228 0%, #2c3640 55%, #151b20 100%);
  display: flex; flex-direction: column; align-items: center; padding: 24px 20px;
  transition: background 1.2s ease;
}
/* 场景氛围：四幕不同光色（考场冷白 → 扭曲紫红 → 转生金白 → 新世界青绿） */
#screen-gaokao[data-step="1"] { background: radial-gradient(900px 420px at 50% -10%, rgba(190, 205, 220, 0.16), rgba(0,0,0,0) 60%), linear-gradient(168deg, #1a2228 0%, #2c3640 55%, #151b20 100%); }
#screen-gaokao[data-step="2"] { background: radial-gradient(900px 460px at 50% -10%, rgba(176, 90, 124, 0.20), rgba(0,0,0,0) 62%), linear-gradient(168deg, #241d2a 0%, #3a2433 55%, #170f1c 100%); }
#screen-gaokao[data-step="3"] { background: radial-gradient(900px 460px at 50% -10%, rgba(240, 214, 160, 0.22), rgba(0,0,0,0) 62%), linear-gradient(168deg, #262221 0%, #40342c 55%, #17100f 100%); }
#screen-gaokao[data-step="4"] { background: radial-gradient(900px 460px at 50% -10%, rgba(110, 200, 160, 0.18), rgba(0,0,0,0) 62%), linear-gradient(168deg, #18241f 0%, #27403a 55%, #0f1a15 100%); }

/* 星尘粒子容器 */
.gaokao-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gstar {
  position: absolute; border-radius: 50%; background: #fff;
  opacity: 0.5; animation-name: gkTwinkle; animation-iteration-count: infinite;
}
.gdust {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, #e9cf9a, rgba(201, 168, 106, 0)); opacity: 0;
  animation-name: gkDrift; animation-iteration-count: infinite; animation-timing-function: linear;
}
@keyframes gkTwinkle { 0%, 100% { opacity: 0.12; transform: scale(0.8); } 50% { opacity: 0.85; transform: scale(1.15); } }
@keyframes gkDrift { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: 0.75; } 88% { opacity: 0.35; } 100% { transform: translateY(-130px) translateX(18px); opacity: 0; } }

.gaokao-wrap { width: 100%; max-width: 440px; margin-top: 8px; position: relative; z-index: 1; }
.gaokao-head { text-align: center; margin-bottom: 16px; }
.gaokao-head .emblem {
  position: relative; width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #c9a86a, #8a7447); color: #2a2320; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(201, 168, 106, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.gaokao-head .emblem .emblem-core { position: relative; z-index: 2; text-shadow: 0 1px 1px rgba(0,0,0,0.25); }
.gaokao-head .emblem .emblem-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.5); border-top-color: rgba(255, 224, 160, 0.9);
  animation: gkSpin 9s linear infinite;
}
.gaokao-head .emblem::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(201, 168, 106, 0.22);
  animation: gkSpin 22s linear infinite reverse;
}
@keyframes gkSpin { to { transform: rotate(360deg); } }
.gaokao-head h1 { font-size: 19px; color: #e8e0cc; letter-spacing: 4px; text-shadow: 0 0 18px rgba(201, 168, 106, 0.35); }
.gaokao-head .sub { font-size: 12px; color: #9aa3a8; margin-top: 6px; letter-spacing: 3px; }
.gaokao-progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); margin-bottom: 14px; overflow: hidden; }
.gaokao-progress .bar {
  height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, #8a7447, #e8cf9a, #c9a86a, #e8cf9a, #8a7447);
  background-size: 240% 100%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(232, 207, 154, 0.7);
  animation: gkFlow 3.2s linear infinite;
}
@keyframes gkFlow { to { background-position: 240% 0; } }
.gaokao-card {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 14px; padding: 22px 20px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.gaokao-card.fade-out { opacity: 0; transform: translateY(6px); }
/* 卡片边缘扫光 */
.gaokao-card::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255, 236, 200, 0.10) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg); animation: gkScan 6.5s ease-in-out infinite; pointer-events: none;
}
@keyframes gkScan { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.gaokao-q-no { font-size: 12px; color: #a8b0b5; margin-bottom: 10px; letter-spacing: 2px; }
.gaokao-q-title {
  font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; color: #f0ead9;
  text-shadow: 0 0 16px rgba(232, 207, 154, 0.3);
}
.gaokao-air {
  font-size: 11px; color: #8b93a0; letter-spacing: 2px; margin-bottom: 10px;
  border-left: 2px solid rgba(201, 168, 106, 0.4); padding-left: 8px;
}
.gaokao-q-text {
  font-size: 14px; line-height: 1.95; color: #cdd3d0; letter-spacing: 0.5px;
  min-height: 96px; margin-bottom: 14px; white-space: pre-wrap; word-break: break-all;
}
.gaokao-q-text::after { content: '▎'; color: #e8cf9a; margin-left: 2px; animation: gkBlink 0.9s steps(2) infinite; }
@keyframes gkBlink { 50% { opacity: 0; } }
.gaokao-opt {
  display: block; width: 100%; text-align: center;
  background: rgba(201, 168, 106, 0.10); border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: #f0ead9; cursor: pointer; letter-spacing: 3px;
  transition: all 0.2s; opacity: 0; transform: translateY(6px);
}
.gaokao-opt.on { opacity: 1; transform: none; animation: gkBtnIn 0.3s ease; }
@keyframes gkBtnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gaokao-opt:hover { border-color: #e8cf9a; background: rgba(201, 168, 106, 0.2); box-shadow: 0 0 16px rgba(232, 207, 154, 0.35); }
.gaokao-opt:active { transform: scale(0.98); }
.gaokao-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; background: #faf8f4; margin-bottom: 12px; outline: none;
}
.gaokao-input:focus { border-color: var(--green); background: #fff; }
.gaokao-foot { text-align: center; font-size: 12px; color: #7f8a90; margin-top: 18px; letter-spacing: 3px; }

/* 字幕淡入 */
.fade-up { animation: gkFadeUp 0.6s ease both; }
@keyframes gkFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 黑屏晕厥转场（光晕增强） */
#blackout {
  position: fixed; inset: 0; z-index: 999; overflow: hidden;
  background: radial-gradient(140% 90% at 50% 50%, #0c0e12 0%, #000 68%);
  opacity: 0; pointer-events: none; transition: opacity 0.6s ease;
  display: flex; align-items: center; justify-content: center;
}
#blackout::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 340px; height: 340px;
  margin: -170px 0 0 -170px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(240, 214, 160, 0.22), rgba(201, 168, 106, 0.05) 45%, rgba(0,0,0,0) 70%);
  transition: opacity 1.4s ease 0.5s; pointer-events: none;
}
#blackout.on { opacity: 1; pointer-events: auto; }
#blackout.bo-show::before { opacity: 1; animation: gkHalo 5s ease-in-out infinite; }
@keyframes gkHalo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
#blackout .bo-text {
  color: #ddd; font-size: 15px; text-align: center; line-height: 2; letter-spacing: 2px;
  opacity: 0; transition: opacity 0.8s; position: relative; z-index: 1;
  text-shadow: 0 0 22px rgba(240, 214, 160, 0.25);
}
#blackout.bo-show .bo-text { opacity: 1; }

/* =========================================================
   登录 / 角色选择
   ========================================================= */
#screen-login, #screen-select {
  background:
    radial-gradient(900px 480px at 50% -12%, #fdfcf6 0%, rgba(247, 244, 234, 0) 60%),
    radial-gradient(700px 400px at 15% 108%, rgba(122, 95, 46, 0.05), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #f7f5ec 0%, #eeece0 100%);
  display: flex; flex-direction: column; align-items: center; padding: 0 24px;
  position: relative; overflow: hidden;
}
.login-aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 300px at 82% 18%, rgba(46, 116, 100, 0.08), rgba(0,0,0,0) 60%),
    radial-gradient(420px 260px at 10% 78%, rgba(122, 95, 46, 0.09), rgba(0,0,0,0) 62%),
    radial-gradient(300px 200px at 60% 88%, rgba(140, 122, 90, 0.05), rgba(0,0,0,0) 65%);
  animation: auroraDrift 14s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-14px); }
}
.login-card { width: 100%; max-width: 400px; margin-top: 10vh; position: relative; z-index: 1; }
.login-logo {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(135deg, #8a6a35, #5f4b28); color: #f5ecd8; font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(122, 95, 46, 0.32);
  position: relative;
}
.login-logo::after {
  content: ''; position: absolute; inset: -3px; border-radius: 22px;
  border: 1px solid rgba(245, 236, 216, 0.4); opacity: 0.6;
}
.login-title { text-align: center; font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; font-family: var(--font-display); letter-spacing: 4px; }
.login-sub { text-align: center; font-size: 13px; color: var(--weak); margin-bottom: 26px; letter-spacing: 1px; }

/* 登录 / 注册 Tab */
.login-tabs { display: flex; background: rgba(122, 95, 46, 0.08); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.ltab {
  flex: 1; height: 42px; border: none; background: transparent; border-radius: 9px;
  font-size: 15px; font-weight: 700; color: var(--sub); cursor: pointer;
  transition: all 0.25s ease; font-family: var(--font-display); letter-spacing: 3px;
}
.ltab.active {
  background: linear-gradient(180deg, #8a6a35, #6f5530); color: #f5ecd8;
  box-shadow: 0 4px 12px rgba(122, 95, 46, 0.28);
}
.ltab:active { transform: scale(0.96); }

.login-form { padding: 22px 20px; border: 1px solid var(--line-gold); box-shadow: var(--shadow-lg); animation: formIn 0.3s ease; }
@keyframes formIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 7px; font-weight: 600; letter-spacing: 1px; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--gold); opacity: 0.7; font-weight: 700;
}
.form-input {
  width: 100%; height: 48px; border: 1px solid rgba(122, 95, 46, 0.18); border-radius: 11px;
  padding: 0 42px; font-size: 15px; background: #fff; outline: none; transition: border 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 2px rgba(42, 42, 38, 0.04);
}
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 116, 100, 0.12); }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 16px; cursor: pointer; opacity: 0.45; padding: 6px; user-select: none; transition: opacity 0.2s;
}
.pw-toggle:hover { opacity: 0.8; }
.field-hint { font-size: 11px; color: var(--weak); margin-top: 6px; padding-left: 2px; }

.btn-block { width: 100%; height: 48px; font-size: 16px; margin-top: 6px; letter-spacing: 4px; }
.btn-block:disabled { opacity: 0.6; }
.btn-block .btn-text { transition: opacity 0.2s; }
.login-tip { min-height: 20px; text-align: center; font-size: 12px; margin-top: 10px; color: var(--red); }
.login-tip:empty { display: none; }

.login-footer { margin-top: auto; padding: 20px 0 24px; text-align: center; font-size: 12px; color: var(--weak); position: relative; z-index: 1; letter-spacing: 1px; }

/* 角色选择 */
.select-head { margin-top: 9vh; text-align: center; }
.select-head h1 { font-size: 20px; font-weight: 800; }
.select-head p { font-size: 12px; color: var(--weak); margin-top: 6px; }
.class-list { width: 100%; max-width: 420px; margin-top: 20px; }
.class-card {
  display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); cursor: pointer;
  transition: all 0.15s;
}
.class-card.selected { border-color: var(--green); background: var(--green-soft); border-left-color: var(--green); }
.class-card .cls-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--green); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.class-card:nth-child(2) .cls-icon { background: var(--purple); }
.class-card:nth-child(3) .cls-icon { background: var(--brown); }
.class-card:nth-child(4) .cls-icon { background: var(--blue); }
.class-card:nth-child(5) .cls-icon { background: var(--red); }
.class-card .cls-name { font-size: 15px; font-weight: 700; }
.class-card .cls-desc { font-size: 12px; color: var(--sub); margin-top: 2px; line-height: 1.4; }
.class-card .cls-growth { font-size: 11px; color: var(--weak); margin-top: 4px; }
.select-form { width: 100%; max-width: 420px; margin-top: 4px; }
.select-btn { width: 100%; height: 48px; font-size: 16px; margin-top: 12px; }

/* 职业选择器 */
.class-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.class-opt {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 12px; padding: 12px;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.15s; text-align: center;
}
.class-opt.on { border-color: var(--green); background: var(--green-soft); }
.class-opt .co-ico {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 10px; flex-shrink: 0;
  background: var(--green); color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.class-opt:nth-child(2) .co-ico { background: var(--purple); }
.class-opt:nth-child(3) .co-ico { background: var(--brown); }
.class-opt:nth-child(4) .co-ico { background: var(--blue); }
.class-opt:nth-child(5) .co-ico { background: var(--red); }
.class-opt .co-name { font-size: 14px; font-weight: 700; margin-top: 6px; }
.class-opt .co-desc { font-size: 11px; color: var(--sub); margin-top: 2px; line-height: 1.4; }

/* =========================================================
   主界面
   ========================================================= */
#screen-main { display: flex; flex-direction: column; background: var(--bg); }

.main-head {
  background: linear-gradient(180deg, #fdfcf7 0%, #faf7ee 100%);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 2px 10px rgba(122, 95, 46, 0.05);
  padding: 9px 12px;
}
.head-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 顶栏：左 logo 组 */
.head-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.header-logo-mark {
  width: 4px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--gold), rgba(122, 95, 46, 0.35));
  box-shadow: 0 0 0 1px rgba(122, 95, 46, 0.18);
}
.header-logo {
  font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1;
  color: var(--gold); letter-spacing: 3px; white-space: nowrap; flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(122, 95, 46, 0.22);
}
.header-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.header-realm {
  display: inline-flex; align-items: center; height: 24px; font-size: 12px; font-weight: 600;
  color: var(--green); padding: 0 10px; background: rgba(46, 116, 100, 0.10);
  border: 1px solid rgba(46, 116, 100, 0.22); border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.header-gametime {
  display: inline-flex; align-items: center; height: 24px; font-size: 12px; font-weight: 600;
  color: var(--gold); padding: 0 10px; background: rgba(122, 95, 46, 0.10);
  border: 1px solid rgba(122, 95, 46, 0.20); border-radius: 999px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 顶栏：右导航组 */
.head-right { display: flex; align-items: center; gap: 8px; flex: 1 1 0%; min-width: 0; justify-content: flex-end; }
.header-role-name {
  display: inline-flex; align-items: center; gap: 5px; height: 24px;
  font-size: 12px; font-weight: 600; color: #6b4f22; padding: 0 10px;
  background: rgba(122, 95, 46, 0.10); border: 1px solid rgba(122, 95, 46, 0.20);
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); transition: all 0.15s;
}
.header-role-name::before { content: '✦'; font-size: 10px; color: var(--gold); }
.header-role-name:hover { background: rgba(122, 95, 46, 0.18); border-color: rgba(122, 95, 46, 0.36); }
.header-map {
  display: inline-flex; align-items: center; gap: 5px; height: 24px;
  font-size: 12px; font-weight: 600; color: var(--green); padding: 0 10px;
  background: rgba(46, 116, 100, 0.10); border: 1px solid rgba(46, 116, 100, 0.22);
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); cursor: pointer;
  transition: all 0.15s;
}
.header-map:hover { background: rgba(46, 116, 100, 0.20); border-color: rgba(46, 116, 100, 0.40); }
.header-map .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.header-map .map-name { color: var(--green); font-weight: 600; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.header-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.header-btn-group {
  display: flex; align-items: stretch; gap: 2px; padding: 2px; height: 32px;
  background: rgba(252, 252, 249, 0.85); border: 1px solid var(--line-gold); border-radius: 9px; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hbg-primary { background: rgba(122, 95, 46, 0.05); border-color: rgba(122, 95, 46, 0.18); }
.hbg-systems { background: rgba(122, 95, 46, 0.05); border-color: rgba(122, 95, 46, 0.18); }
.header-nav .nav-item--h {
  display: inline-flex; flex-direction: row; flex: 0 0 auto; align-items: center; padding: 0 12px;
  background: transparent; border: none; color: var(--sub); font-family: inherit; font-size: 13px;
  cursor: pointer; border-radius: 7px; transition: all 0.2s; white-space: nowrap;
}
.header-nav .nav-item--h:hover { color: var(--gold); background: rgba(122, 95, 46, 0.06); }
.header-nav .nav-item--h.active { background: rgba(122, 95, 46, 0.12); color: var(--gold); box-shadow: 0 0 8px rgba(122, 95, 46, 0.10); }

/* 属性条 */
.stat-bar {
  background: linear-gradient(180deg, #f6f3e9 0%, #f0ece0 100%);
  border: 1px solid var(--line-gold); border-radius: 10px; padding: 7px 12px; margin-top: 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--sub);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  box-sizing: border-box; width: 100%;
}
.stat-item { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.stat-item b { font-weight: 800; }
.c-hp { color: var(--green); }
.c-sta { color: var(--blue); }
.c-att { color: var(--red); }
.c-def { color: #7a7265; }
.c-kno { color: var(--purple); }
.c-energy { color: var(--gold); }
.stat-sep { color: var(--line); }

/* 标签栏 */
.tabs { display: flex; margin: 12px 12px 0; border-bottom: 1px solid var(--line-gold); gap: 0; }
.tab { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--weak); padding-bottom: 10px; position: relative; cursor: pointer; transition: color 0.2s; }
.tab + .tab::before {
  content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); font-weight: 700; }
.tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px;
  width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(122, 95, 46, 0.3), var(--gold), rgba(122, 95, 46, 0.3));
  box-shadow: 0 0 6px rgba(122, 95, 46, 0.35);
}

/* 日志区 */
.log-area { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 18px; font-size: 13px; line-height: 1.85; -webkit-overflow-scrolling: touch; }
#log-area {
  background:
    radial-gradient(720px 300px at 50% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(0deg, rgba(122, 95, 46, 0.03) 0 2px, rgba(255, 255, 255, 0) 2px 4px),
    linear-gradient(180deg, #fdfaf1 0%, #f2ecdd 100%);
  border-radius: 12px; margin: 10px 12px 0; border: 1px solid var(--line-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 10px rgba(122, 95, 46, 0.07);
  position: relative;
}
#log-area::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(122, 95, 46, 0.45) 18%, rgba(193, 158, 86, 0.65) 50%, rgba(122, 95, 46, 0.45) 82%, transparent);
  border-radius: 3px 3px 0 0;
}
#log-area::after {
  content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.9) 80%, transparent);
}
#chat-area {
  display: flex; flex-direction: column; padding: 0;
  margin: 10px 12px 0; border-radius: 14px; border: 1px solid var(--line-gold);
  box-shadow: 0 4px 16px rgba(122, 95, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6); overflow: hidden;
}
.log-line { display: flex; gap: 8px; word-break: break-all; align-items: baseline; padding: 3.5px 8px; border-radius: 8px; transition: background-color 0.18s ease; }
.log-line:nth-child(odd) { background: rgba(122, 95, 46, 0.045); }
.log-line:hover { background: rgba(122, 95, 46, 0.09); }
.log-line.log-in { animation: logIn 0.3s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.log-time { color: #b3a585; font-size: 10px; flex-shrink: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.4px; }
.log-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
  font-weight: 700; line-height: 1.6; align-self: center;
}
.log-text { flex: 1; color: #2c2c2c; }
.log-line .c-text { color: #2c2c2c; }
.log-line .c-sub { color: #6f5f45; }
.log-line .c-gain { color: #397c62; }
.log-line .c-cost { color: #b84a46; }
.log-line .c-buff { color: #4b7aa6; }
.log-line .c-sys { color: #8a7a5a; }
.log-line .c-q0 { color: var(--q0); }
.log-line .c-q1 { color: var(--q1); }
.log-line .c-q2 { color: var(--q2); }
.log-line .c-q3 { color: var(--q3); }
.log-line .c-q4 { color: var(--q4); }
.log-line .c-q5 { color: var(--q5); }

/* 事件首行：分类色条 + 浅色渐变背景 */
.log-ev-battle   { background: linear-gradient(90deg, rgba(184, 74, 70, 0.14), rgba(184, 74, 70, 0.03)); border-left: 3px solid #b84a46; }
.log-ev-treasure { background: linear-gradient(90deg, rgba(185, 121, 42, 0.15), rgba(185, 121, 42, 0.03)); border-left: 3px solid #b9792a; }
.log-ev-gather   { background: linear-gradient(90deg, rgba(46, 116, 100, 0.13), rgba(46, 116, 100, 0.03)); border-left: 3px solid #2e7464; }
.log-ev-adventure{ background: linear-gradient(90deg, rgba(132, 113, 158, 0.13), rgba(132, 113, 158, 0.03)); border-left: 3px solid #84719e; }
.log-line .ev-title { font-weight: 700; }

/* 探索章节标题："第 N 次探索" / "—— ×N 汇总 ——" 居中成章节分隔 */
.log-line.log-explore-title {
  justify-content: center; margin: 7px 0 3px; background: transparent !important;
}
.log-line.log-explore-title .log-time,
.log-line.log-explore-title .log-tag { display: none; }
.log-line.log-explore-title .log-text {
  flex: none; display: inline-block; text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 4px; color: #8a6d3b; padding: 2px 22px;
  background: linear-gradient(180deg, rgba(193, 158, 86, 0.16), rgba(122, 95, 46, 0.1));
  border: 1px solid rgba(163, 132, 72, 0.42);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.log-line.log-explore-title .log-text .c-text,
.log-line.log-explore-title .log-text .c-sys { color: inherit; }
.log-line.log-explore-title:hover { background: transparent !important; }

/* 日志区滚动条 */
#log-area::-webkit-scrollbar { width: 8px; }
#log-area::-webkit-scrollbar-track { background: transparent; }
#log-area::-webkit-scrollbar-thumb {
  background: rgba(122, 95, 46, 0.22); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
#log-area::-webkit-scrollbar-thumb:hover { background: rgba(122, 95, 46, 0.38); background-clip: padding-box; }

/* 怪物名着色 */
.c-mon { font-weight: 800; text-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
/* 怪物类型胶囊：普通（灰）/ 精英（橙红）/ 首领（紫） */
.c-mon-badge {
  display: inline-block; color: #fff; font-size: 9px; font-weight: 700; line-height: 1;
  border-radius: 999px; padding: 2px 8px; margin-right: 5px; vertical-align: 1px;
  letter-spacing: 1px;
}
.c-mon-badge.normal { background: linear-gradient(135deg, #5cb87a, #2e8f63); box-shadow: 0 1px 3px rgba(46, 143, 99, 0.4); }
.c-mon-badge.elite  { background: linear-gradient(135deg, #b9792a, #ad4a43); box-shadow: 0 1px 3px rgba(184, 74, 70, 0.4); }
.c-mon-badge.boss   { background: linear-gradient(135deg, #84719e, #6f6a80); box-shadow: 0 1px 3px rgba(111, 106, 128, 0.4); }

/* 精英怪词缀胶囊 */
.c-mon-affix {
  display: inline-block; color: #fff; font-size: 9px; font-weight: 700; line-height: 1;
  border-radius: 4px; padding: 2px 6px; margin-right: 4px; vertical-align: 1px;
}
.c-mon-affix.aff-rage   { background: linear-gradient(135deg, #e5484d, #b03336); }
.c-mon-affix.aff-leech  { background: linear-gradient(135deg, #b05a7c, #8a3d5f); }
.c-mon-affix.aff-thorns { background: linear-gradient(135deg, #5cb87a, #2e8f63); }
.c-mon-affix.aff-shield { background: linear-gradient(135deg, #4f7fa8, #33607f); }
.c-mon-affix.aff-venom  { background: linear-gradient(135deg, #84719e, #5f4f7d); }
.c-mon-affix.aff-hasted { background: linear-gradient(135deg, #2e9d8f, #1d6f66); }
.c-mon-affix.aff-regen  { background: linear-gradient(135deg, #58b368, #2f8a45); }
.c-mon-affix.aff-cursed { background: linear-gradient(135deg, #6b5ba3, #3f3370); }

/* 战斗过程行关键词高亮 */
.log-line .hl-dmg { color: #ad4a43; font-weight: 700; }
.log-line .hl-heal { color: #2e7464; font-weight: 700; }
.log-line .hl-shield { color: #4b7aa6; font-weight: 700; }
.log-line .hl-crit { color: #b9792a; font-weight: 800; }
.log-line .hl-evade { color: #4b7aa6; font-weight: 700; }

/* 奖励行关键词高亮：经验绿 / 金币金 / 技能点蓝 / 钻石青 / 魔石紫 / 强化石橙 / 声望玫红 / 阅历青绿 / 数量红 */
.log-line .hl-exp { color: #2e8b57; font-weight: 700; }
.log-line .hl-gold { color: #b8860b; font-weight: 700; }
.log-line .hl-sk { color: #4b7aa6; font-weight: 700; }
.log-line .hl-diamond { color: #2f9ea8; font-weight: 700; }
.log-line .hl-mystic { color: #84719e; font-weight: 700; }
.log-line .hl-stone { color: #b9792a; font-weight: 700; }
.log-line .hl-rep { color: #b05a7c; font-weight: 700; }
.log-line .hl-know { color: #5a9e8f; font-weight: 700; }
.log-line .hl-qty { color: #c0392b; font-weight: 700; }
.c-tag-drop   { background: #fdf1e3; color: #c07a1f; border: 1px solid #ecd3ab; }
.c-tag-money  { background: #e7f3ec; color: #2e7464; border: 1px solid #c2ddd2; }
.c-tag-luck   { background: #e9effb; color: #4b7aa6; border: 1px solid #c5d3ee; }
.c-tag-buff   { background: #e8f7f3; color: #0d9488; border: 1px solid #bfe8e0; }
.c-tag-battle { background: #fbeaea; color: #b84a46; border: 1px solid #ecc5c5; }
.c-tag-treasure { background: #fdf3e0; color: #b9792a; border: 1px solid #f0ddb5; }
.c-tag-gather { background: #e6f0e6; color: #3f7d45; border: 1px solid #c5dec7; }
.c-tag-rest   { background: #e8f1f5; color: #4a6f80; border: 1px solid #c9dce8; }
.c-tag-quality { background: transparent; }
.c-tag-event  { background: #f5efe2; color: #7a5f2e; border: 1px solid #e0d3b5; }
.log-tag.t-announce { background: #fdeaea; color: #b84a46; }
.log-tag.t-rumor { background: #fdf0e0; color: #e68a28; }
.log-tag.t-fortune { background: #e8f0fb; color: #4b7aa6; }
.log-tag.t-guild { background: #e6efe9; color: #397c62; }
.log-tag.t-event { background: #e7f0fe; color: #4b7aa6; }
.log-tag.t-personal { background: #f0ead9; color: #7a5f2e; }
.log-tag.t-drop { background: #fdf1e3; color: #c07a1f; }
.log-tag.t-forge { background: #fdeee2; color: #b9792a; }
.log-tag.t-craft { background: #f1e8fb; color: #84719e; }
.log-tag.t-dungeon { background: #e8f0fb; color: #4b7aa6; }
.log-tag.t-rebirth { background: #fbeaea; color: #ad4a43; }
.log-tag.t-trade { background: #e6efe9; color: #397c62; }
.log-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px; background: var(--card); border-top: 1px solid var(--line); }
.log-filter button {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 11px;
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.log-filter button.on { background: var(--green); border-color: var(--green); color: #fff; }

/* 操作按钮区 */
.ops {
  background: linear-gradient(180deg, #fdfcf7 0%, #f8f5ec 100%);
  border-top: 1px solid var(--line-gold); padding: 12px 12px; box-shadow: 0 -2px 10px rgba(122, 95, 46, 0.04);
}
.ops-row1 { display: flex; gap: 10px; margin-bottom: 10px; }
.ops-row1 .btn { flex: 1; height: 46px; font-size: 15px; }
.refresh-btn {
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #fff 0%, #f3efe4 100%); color: var(--gold); font-size: 18px;
  cursor: pointer; flex-shrink: 0; transition: transform 0.3s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.refresh-btn:hover { filter: brightness(0.97); }
.refresh-btn.spin { animation: spin 0.6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.ops-row2 { display: flex; align-items: center; gap: 10px; }
.batch-btn {
  flex: 1; height: 38px; border-radius: 9px; border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, #e9e0c8 100%); color: var(--gold);
  font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.batch-btn:active { transform: scale(0.96); }

/* 修整中模块 */
.rest-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  background:
    radial-gradient(150px 80px at 0% 0%, rgba(46, 116, 100, 0.08), transparent 62%),
    radial-gradient(120px 70px at 105% 110%, rgba(46, 116, 100, 0.06), transparent 60%),
    linear-gradient(180deg, #fdfcf7 0%, #f0f4e9 100%);
  border: 1px solid rgba(46, 116, 100, 0.28);
  border-radius: 12px; padding: 12px;
  box-shadow: 0 2px 8px rgba(46, 116, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative; overflow: hidden;
}
.rest-bar::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, rgba(87, 179, 154, 0.1), rgba(87, 179, 154, 0.75), rgba(87, 179, 154, 0.1));
  pointer-events: none;
}
.rest-bar::after {
  content: ''; position: absolute; right: -18px; top: -18px;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 116, 100, 0.10), transparent 70%);
  pointer-events: none;
}
.rest-circle {
  position: relative; width: 46px; height: 46px; flex-shrink: 0;
}
.rest-circle svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.rest-circle .bg { fill: none; stroke: rgba(46, 116, 100, 0.16); stroke-width: 4; }
.rest-circle .fg { fill: none; stroke: url(#rest-grad); stroke: #2e7464; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.rest-circle .rest-ico {
  position: absolute; left: 3px; top: 3px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #57b39a 0%, #2e7464 100%); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
  box-shadow: 0 3px 8px rgba(46, 116, 100, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: restPulse 2s ease-in-out infinite;
}
@keyframes restPulse {
  0%, 100% { box-shadow: 0 3px 8px rgba(46, 116, 100, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 3px 16px rgba(46, 116, 100, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
.rest-info { flex: 1; min-width: 0; }
.rest-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
.rest-title .rest-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #2e7464; flex-shrink: 0;
  animation: restDot 1.6s ease-in-out infinite;
}
@keyframes restDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 116, 100, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(46, 116, 100, 0); opacity: 0.6; }
}
.rest-title #rest-elapsed { font-size: 11px; color: var(--sub); font-weight: 500; font-variant-numeric: tabular-nums; }
.rest-row { display: flex; gap: 12px; margin-top: 10px; }
.rest-item { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.rest-label {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.rest-label.hp { background: linear-gradient(135deg, #e0796f, #c94f46); }
.rest-label.sta { background: linear-gradient(135deg, #5a8ba0, #4a6f80); }
.rest-mini { flex: 1; height: 9px; border-radius: 999px; background: linear-gradient(180deg, #eceee8, #f5f5f1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.rest-mini .rest-mini-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; position: relative; }
.rest-mini .rest-mini-fill::after {
  content: ''; position: absolute; left: 2px; right: 2px; top: 1px; height: 3px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}
#rest-hp-fill { background: linear-gradient(90deg, #e0796f, #c94f46); }
#rest-sta-fill { background: linear-gradient(90deg, #5a8ba0, #4a6f80); }
.rest-val { font-size: 11px; font-weight: 700; min-width: 34px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rest-val.hp { color: var(--red); }
.rest-val.sta { color: var(--blue); }

.switch-group { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); }
.switch {
  position: relative; width: 40px; height: 22px; border-radius: 999px; background: #ddd; cursor: pointer;
  transition: background 0.25s; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: left 0.25s;
}
.switch.on { background: linear-gradient(180deg, #3a8a76, #2e7464); }
.switch.on::after { left: 20px; }
.gear-btn { width: 34px; height: 34px; border: none; background: none; font-size: 18px; color: var(--sub); cursor: pointer; }

/* 底部挂机条 */
.idle-bar {
  background:
    radial-gradient(140px 70px at 0% 0%, rgba(46, 116, 100, 0.07), transparent 62%),
    radial-gradient(110px 60px at 105% 110%, rgba(46, 116, 100, 0.05), transparent 60%),
    linear-gradient(180deg, #fdfcf7 0%, #f2f5ec 100%);
  border: 1px solid rgba(46, 116, 100, 0.22); border-radius: 12px; margin: 10px 12px 0;
  padding: 10px 12px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(46, 116, 100, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative; overflow: hidden;
}
.idle-bar::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, rgba(87, 179, 154, 0.1), rgba(87, 179, 154, 0.7), rgba(87, 179, 154, 0.1));
  pointer-events: none;
}
.idle-circle { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.idle-circle svg { width: 42px; height: 42px; transform: rotate(-90deg); }
.idle-circle .bg { fill: none; stroke: rgba(46, 116, 100, 0.16); stroke-width: 5; }
.idle-circle .fg { fill: none; stroke: url(#idle-grad); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.4s; }
.idle-circle .ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--green); }
.idle-info { flex: 1; min-width: 0; }
.idle-title { font-size: 13px; font-weight: 700; color: var(--text); }
.idle-gain { font-size: 11px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idle-rest { height: 34px; padding: 0 16px; font-size: 13px; }

/* 底部导航 */
.bottom-nav {
  display: flex; background: linear-gradient(180deg, #fdfcf7 0%, #f7f3e8 100%);
  border-top: 1px solid var(--line-gold); padding: 6px 2px 8px; box-shadow: 0 -2px 10px rgba(122, 95, 46, 0.04);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: transform 0.12s ease; position: relative; padding: 4px 0; }
.nav-item:active { transform: scale(0.92); }
.nav-item .ni-ico {
  width: 36px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--sub); transition: all 0.2s ease;
}
.nav-item .ni-ico svg { width: 20px; height: 20px; }
.nav-item.active .ni-ico { background: linear-gradient(180deg, rgba(122, 95, 46, 0.14) 0%, rgba(122, 95, 46, 0.07) 100%); color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.nav-item .ni-txt { font-size: 10px; color: var(--weak); }
.nav-item.active .ni-txt { color: var(--gold); font-weight: 700; }

/* =========================================================
   弹窗内容通用
   ========================================================= */
.panel-scroll { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }

/* 角色面板 */
.ch-hero {
  --ch-accent: #c9a86a;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #2a2420 0%, #3a3228 55%, #201a15 100%);
  color: #f5ecd8; padding: 16px 14px; border-radius: 14px; margin: 10px;
  border: 1px solid color-mix(in srgb, var(--ch-accent) 45%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(30, 20, 10, 0.45);
  display: flex; align-items: center; gap: 12px;
}
.ch-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ch-accent), transparent);
}
.ch-hero .chh-aura {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(280px 120px at 8% 50%, color-mix(in srgb, var(--ch-accent) 24%, transparent), transparent 70%),
    radial-gradient(200px 100px at 92% 0%, color-mix(in srgb, var(--ch-accent) 15%, transparent), transparent 70%);
  animation: rkScan 6s ease-in-out infinite;
}
.ch-hero .chh-emblem { position: relative; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ch-hero .chh-core {
  width: 50px; height: 50px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0%, var(--ch-accent) 45%, color-mix(in srgb, var(--ch-accent) 55%, #000) 100%);
  color: #2a2018; font-size: 24px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px color-mix(in srgb, var(--ch-accent) 60%, transparent), inset 0 1px 2px rgba(255, 255, 255, 0.55);
}
.ch-hero .chh-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ch-accent) 55%, transparent);
  border-top-color: var(--ch-accent);
  animation: gkSpin 10s linear infinite;
}
.ch-hero .chh-body { flex: 1; min-width: 0; }
.ch-hero .chh-title { font-size: 17px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 0 16px color-mix(in srgb, var(--ch-accent) 35%, transparent); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-hero .chh-badge {
  font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: 1px;
  color: #2a2018; background: linear-gradient(180deg, var(--ch-accent), color-mix(in srgb, var(--ch-accent) 60%, #000));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.ch-hero .chh-desc { font-size: 11px; color: rgba(235, 226, 205, 0.75); margin-top: 3px; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hero .chh-desc.empty { color: rgba(235, 226, 205, 0.38); font-style: italic; }
.ch-hero .chh-sub { font-size: 11px; color: rgba(235, 226, 205, 0.6); margin-top: 3px; }
.ch-hero .chh-exp { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.ch-hero .chh-ebar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ch-hero .chh-efill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--ch-accent), #fff);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ch-accent) 70%, transparent);
  transition: width 0.5s ease;
}
.ch-hero .chh-etxt { font-size: 10px; color: rgba(235, 226, 205, 0.8); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ch-hero .chh-side { flex-shrink: 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 12px; }
.ch-hero .chh-pts {
  font-size: 26px; font-weight: 900; line-height: 1.05; color: var(--ch-accent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--ch-accent) 55%, transparent);
  font-variant-numeric: tabular-nums;
}
.ch-hero .chh-label { font-size: 10px; color: rgba(235, 226, 205, 0.65); margin-top: 2px; }
.ch-hero .char-close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(245, 236, 216, 0.35); background: rgba(0, 0, 0, 0.25);
  color: #f5ecd8; font-size: 13px; cursor: pointer;
}
.ch-theme-warrior { --ch-accent: #e0a353; }
.ch-theme-mage { --ch-accent: #b491e8; }
.ch-theme-archer { --ch-accent: #8fd18a; }
.ch-theme-assassin { --ch-accent: #d0a9d6; }
.ch-theme-priest { --ch-accent: #8fc8e8; }
.ch-theme-craft { --ch-accent: #e8b78f; }

.attr-list { padding: 14px 16px; }
.attr-group { margin-bottom: 14px; }
.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-head h3 { margin-bottom: 0; }
.ag-ops { display: flex; gap: 6px; flex-shrink: 0; }
.ag-ops .btn { padding: 3px 9px; font-size: 11px; }
.attr-group h3 {
  display: inline-block; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 1px;
  margin-bottom: 6px; padding: 2px 10px 2px 0; border-bottom: 2px solid rgba(122, 95, 46, 0.55); line-height: 1.2;
  position: relative;
}
.attr-group h3::before { content: ""; display: inline-block; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), rgba(122, 95, 46, 0.3)); margin-right: 6px; vertical-align: -1px; }
.attr-group .attr-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 4px 14px 8px; box-shadow: var(--shadow);
}
.attr-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.attr-row .k { color: var(--weak); display: flex; align-items: center; gap: 4px; }
.attr-row .v { font-weight: 600; }
.attr-row .v-green { color: var(--green); }
.attr-row .v-red { color: var(--red); }

/* 方案穿搭卡片 */
.preset-card {
  border: 1px solid var(--line-gold); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
  background: linear-gradient(180deg, #fefefc 0%, #faf8f2 100%); box-shadow: var(--shadow);
}
.preset-card:last-of-type { margin-bottom: 4px; }
.preset-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preset-name { font-weight: 800; color: var(--gold); font-size: 13px; }
.preset-count { font-size: 11px; color: var(--weak); }
.preset-slots { font-size: 11px; color: var(--sub); line-height: 1.8; margin: 7px 0 9px; }
.preset-slots .ps-empty { color: var(--weak); }
.preset-ops { display: flex; gap: 8px; }
.preset-ops .btn { padding: 4px 12px; font-size: 12px; }
.preset-tip { text-align: center; color: var(--weak); font-size: 11px; padding: 6px 0 2px; }
.attr-row .v-gold { color: var(--gold); }
.attr-row .v-orange { color: var(--orange); }
.attr-row .v-blue { color: var(--blue); }
.attr-row .v-purple { color: var(--purple); }
.attr-row .v-sub { color: var(--sub); }
.attr-row .v { border-bottom: 1px dotted rgba(42, 42, 38, 0.35); cursor: pointer; }

/* 装备穿戴槽位（复用背包卡片视觉） */
#c-equips { display: flex; flex-direction: column; gap: 8px; }
/* 分配自由点 */
.alloc-box { padding: 2px; }
.conv-box { padding: 2px; }
.conv-head { font-size: 12px; color: var(--sub); line-height: 1.6; margin-bottom: 10px; }
.conv-head b { color: var(--gold); }
.conv-row { display: flex; align-items: center; gap: 8px; }
.conv-input { flex: 1; min-width: 0; }
.conv-unit { font-size: 12px; color: var(--weak); white-space: nowrap; }
.conv-preview { font-size: 12px; color: var(--green); margin: 10px 0 6px; }
.conv-preview b { font-size: 14px; }
.conv-quick { display: flex; gap: 8px; }
.conv-quick .cq { height: 26px; font-size: 11px; padding: 0 12px; }
.alloc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 107, 60, 0.10), rgba(139, 107, 60, 0.03));
  border: 1px solid var(--line-gold);
}
.alloc-head .ah-label { font-size: 12px; font-weight: 600; color: var(--sub); }
.alloc-head .ah-r { display: flex; align-items: baseline; gap: 4px; }
.alloc-head .ah-num { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.alloc-head .ah-unit { font-size: 11px; color: var(--weak); }
.alloc-bar { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }
.alloc-bar .ab-track { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.alloc-bar .ab-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #d4a952); transition: width 0.2s; }
.alloc-bar .ab-txt { font-size: 11px; color: var(--weak); white-space: nowrap; }
.alloc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px; border-bottom: 1px solid var(--line);
}
.alloc-row:last-of-type { border-bottom: none; }
.alloc-row .ar-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.alloc-row .ar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alloc-row .ar-name span { font-size: 13px; font-weight: 700; color: var(--text); }
.alloc-row .ar-cur { font-style: normal; font-size: 11px; color: var(--weak); }
.alloc-row .ar-ctl { display: flex; align-items: center; gap: 6px; }
.alloc-row .ar-minus, .alloc-row .ar-plus {
  width: 28px; height: 28px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 16px; line-height: 1; font-weight: 700;
}
.alloc-row .ar-minus { background: rgba(0, 0, 0, 0.06); color: var(--sub); }
.alloc-row .ar-plus { background: linear-gradient(180deg, #3a7a5f, #2f6050); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.alloc-row .ar-minus:active, .alloc-row .ar-plus:active { transform: scale(0.9); }
.alloc-row .ar-val {
  min-width: 40px; text-align: center; font-family: ui-monospace, monospace;
  font-size: 16px; font-weight: 700; color: var(--weak); transition: color 0.15s;
}
.alloc-row .ar-val.on { color: var(--gold); }

/* 功能菜单 */
.menu-cats { padding: 12px 16px 20px; }
.menu-cat { margin-bottom: 16px; }
.menu-cat h3 { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 10px; padding-left: 8px; border-left: 3px solid var(--line-gold); line-height: 1.3; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.menu-items { display: grid; grid-template-columns: 1fr; gap: 8px; }
.menu-items .menu-item { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; }
.menu-items .menu-item .mi-txt { font-size: 12.5px; }
.menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold);
  border-radius: 12px; padding: 14px 4px 10px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.menu-item:hover { transform: translateY(-2px); border-color: rgba(201, 168, 106, 0.5); box-shadow: 0 4px 10px rgba(42, 42, 38, 0.1); }
.menu-item:active { transform: scale(0.95); box-shadow: 0 1px 2px rgba(42, 42, 38, 0.05); }
.menu-item .mi-ico {
  width: 36px; height: 36px; border-radius: 10px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.menu-item .mi-txt { font-size: 11px; color: var(--sub); }
.menu-item .mi-lock {
  position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, #8a8f86, #6b7066); color: #fff; font-size: 9px; font-style: normal;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); z-index: 2;
}
.menu-item.locked { filter: saturate(0.5); }
.menu-item.locked .mi-ico { filter: grayscale(0.6); }
.menu-item.locked .mi-txt { color: #a8a89e; }
.menu-item .mi-lock.hidden { display: none; }
.menu-item .mi-lock:not(.hidden) { display: flex; }

/* 菜单分类色系 */
.cat-adv .mi-ico { background: linear-gradient(180deg, #e8f0fb 0%, #d3e2f5 100%); color: #2f5f9c; border: 1px solid rgba(47, 95, 156, 0.18); }
.cat-biz .mi-ico { background: linear-gradient(180deg, #f0d488 0%, #e0bc6a 100%); color: #5c4a12; border: 1px solid rgba(122, 95, 46, 0.28); }
.cat-wel .mi-ico { background: linear-gradient(180deg, #e2f3e8 0%, #cbe8d6 100%); color: #2e7464; border: 1px solid rgba(46, 116, 100, 0.18); }
.cat-soc .mi-ico { background: linear-gradient(180deg, #f0e8fb 0%, #e0d0f5 100%); color: #6f4fc0; border: 1px solid rgba(111, 79, 192, 0.18); }
.cat-aux .mi-ico { background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); color: var(--brown); border: 1px solid rgba(122, 95, 46, 0.18); }
.cat-casual .mi-ico { background: linear-gradient(180deg, #e8f7e2 0%, #cdeec0 100%); color: #3f8f2e; border: 1px solid rgba(63, 143, 46, 0.18); }
.cat-chal .mi-ico { background: linear-gradient(180deg, #fdece8 0%, #f6d4ca 100%); color: #c0392b; border: 1px solid rgba(192, 57, 43, 0.18); }
.cat-grow .mi-ico { background: linear-gradient(180deg, #e8f5f1 0%, #d0ece3 100%); color: #1f7a63; border: 1px solid rgba(31, 122, 99, 0.18); }
.menu-logout { margin: 4px 16px 20px; }

/* 背包 */
.bag-tabs { display: flex; gap: 8px; padding: 8px 16px 0; }
.bag-tabs button {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12px;
  padding: 7px 0; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.bag-tabs button.on {
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  border-color: #6f5530; color: #fff; font-weight: 700;
  box-shadow: 0 1px 3px rgba(42, 42, 38, 0.18);
}
.bag-slot-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 0;
}
.bag-slot-tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.bag-slot-tabs button.on {
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  border-color: #6f5530; color: #fff; font-weight: 700;
}
.bag-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px 0; font-size: 12px; color: var(--sub);
}
.bag-money { display: flex; gap: 14px; }
.bag-money .gold { color: var(--orange); font-weight: 800; }
.bag-money .silver,
.bag-money .copper { display: none; }
.bag-money .diamond { color: var(--blue); font-weight: 800; }
.bag-capacity { font-size: 11px; color: var(--weak); }
.bag-batch-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 0; font-size: 12px;
}
.bag-batch-bar #bag-batch-count { color: var(--brown); font-weight: 700; }
.bag-item.batch-selectable { cursor: pointer; position: relative; }
.bag-item.batch-selected {
  border: 2px solid var(--gold) !important;
  background: linear-gradient(180deg, #fdf6e3 0%, #f4e7c4 100%);
}
.bag-item .bi-check {
  position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800;
  z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bag-slot-grid { display: grid; grid-template-columns: 1fr; gap: 10px; overflow-x: hidden; }
.bag-slot-group { display: flex; flex-direction: column; gap: 6px; }
.bag-slot-empty {
  font-size: 11px; color: var(--weak); text-align: center; padding: 8px 0;
  border: 1px dashed var(--line); border-radius: 8px; background: #fafaf6;
}
.bag-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 12px; overflow-x: hidden; }
.bag-group { display: flex; flex-direction: column; gap: 6px; }
.bag-group-title {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--sub);
  padding: 0 2px; margin-bottom: 1px;
}
.bag-group-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.bgt-ico { font-size: 13px; }
.bgt-count { font-size: 11px; color: var(--weak); font-weight: 500; margin-left: 2px; }

/* ---- 背包物品卡片（品质宝石图标 + 品质感边框） ---- */
.bag-item {
  --qi: #8a8578;
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 440px; margin-inline: auto; min-width: 0;
  background:
    radial-gradient(120% 180% at -10% -30%, color-mix(in srgb, var(--qi) 13%, transparent), transparent 60%),
    linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid color-mix(in srgb, var(--qi) 38%, var(--line-gold)); border-left: 3px solid var(--qi);
  border-radius: 10px; padding: 7px 11px;
  cursor: pointer; box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.14s, border-color 0.14s;
}
.bag-item:active { transform: scale(0.99); }
.bag-item[data-q="0"] { --qi: var(--q0); }
.bag-item[data-q="1"] { --qi: var(--q1); }
.bag-item[data-q="2"] { --qi: var(--q2); }
.bag-item[data-q="3"] { --qi: var(--q3); }
.bag-item[data-q="4"] { --qi: var(--q4); }
.bag-item[data-q="5"] { --qi: var(--q5); }
.bag-item:hover { transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in srgb, var(--qi) 26%, rgba(0,0,0,0.12)); }

/* 高品质（传说/神话）：呼吸光晕 + 流光描边 */
.bag-item.bi-equip[data-q="4"],
.bag-item.bi-equip[data-q="5"] {
  border: 1px solid color-mix(in srgb, var(--qi) 55%, transparent);
}
.bag-item .bi-glow {
  position: absolute; inset: -1px; border-radius: 10px; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 20%, color-mix(in srgb, var(--qi) 28%, transparent) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: biSheen 2.8s ease-in-out infinite;
  z-index: 1;
}
@keyframes biSheen {
  0% { background-position: -80% 0; }
  60%, 100% { background-position: 180% 0; }
}

/* 品质宝石图标 */
.bag-item .bi-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: var(--qi);
  background: linear-gradient(160deg, color-mix(in srgb, var(--qi) 24%, #fff) 0%, color-mix(in srgb, var(--qi) 8%, #f1ecdd) 100%);
  border: 1px solid color-mix(in srgb, var(--qi) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px color-mix(in srgb, var(--qi) 22%, rgba(0,0,0,0.08));
}
.bag-item .bi-ico b { position: relative; z-index: 2; }
.bag-item .bi-ico-ring {
  position: absolute; inset: -2px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--qi) 45%, transparent);
  pointer-events: none;
}
.bag-item.bi-equip[data-q="4"] .bi-ico-ring,
.bag-item.bi-equip[data-q="5"] .bi-ico-ring {
  border-color: color-mix(in srgb, var(--qi) 75%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--qi) 45%, transparent);
}

/* 装备卡信息区 */
.bag-item .bi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bag-item .bi-head { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.bag-item .bi-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.bag-item .bi-name[data-q="0"] { color: var(--q0); }
.bag-item .bi-name[data-q="1"] { color: var(--q1); }
.bag-item .bi-name[data-q="2"] { color: var(--q2); }
.bag-item .bi-name[data-q="3"] { color: var(--q3); }
.bag-item .bi-name[data-q="4"] { color: var(--q4); }
.bag-item .bi-name[data-q="5"] { color: var(--q5); }
.bag-item .bi-qname {
  font-size: 9px; font-weight: 800; padding: 1px 7px; border-radius: 999px; letter-spacing: 1px;
  color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--qi) 75%, #fff), var(--qi));
  box-shadow: 0 1px 3px color-mix(in srgb, var(--qi) 40%, rgba(0,0,0,0.2));
}
.bag-item .bi-enh {
  font-size: 10px; font-weight: 800; color: #5c4a12; padding: 1px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #f5d98b 0%, #e0b866 100%);
  border: 1px solid rgba(150, 110, 40, 0.3); box-shadow: 0 1px 3px rgba(120, 85, 20, 0.2);
}
.bag-item .bi-subrow { display: flex; align-items: center; gap: 7px; margin-top: 3px; min-width: 0; flex-wrap: wrap; }
.bag-item .bi-meta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--sub); white-space: nowrap; }
.bag-item .bi-set {
  font-size: 9px; font-weight: 800; color: #fff; padding: 0 6px; border-radius: 4px;
  background: linear-gradient(180deg, #d29a3e, #a86f1f);
}
.bag-item .bi-tier { font-size: 10px; color: var(--gold); font-weight: 600; }
.bag-item .bi-stats { flex-shrink: 0; display: inline-flex; gap: 5px; }
.bag-item .bi-stats .bs { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.bag-item .bi-stats .bs-atk { color: #c0392b; background: rgba(192, 57, 43, 0.1); }
.bag-item .bi-stats .bs-def { color: #2471a3; background: rgba(36, 113, 163, 0.1); }
.bag-item .bi-stats .bs-hp { color: #1e8449; background: rgba(30, 132, 73, 0.12); }
.bag-item .bi-affix { flex: 1 1 auto; min-width: 90px; font-size: 10px; color: var(--orange); white-space: normal; word-break: break-word; line-height: 1.5; }
.bag-item .bi-dur { font-size: 10px; color: var(--weak); font-variant-numeric: tabular-nums; }
.bag-item .bi-sub { font-size: 11px; color: var(--weak); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-item .bi-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.bag-item .bi-eq { font-size: 10px; color: var(--green); font-weight: 700; }
.bag-item .bi-qty { font-size: 11px; color: var(--sub); font-weight: 700; }
.bag-empty { text-align: center; color: var(--weak); padding: 40px 0; }

/* ---- 背包 hero（行囊主题） ---- */
.bkh-hero {
  --bk: #c9a86a;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 160% at 8% 120%, rgba(201, 168, 106, 0.16), transparent 60%),
    linear-gradient(135deg, #2c2018 0%, #41301d 52%, #191209 100%);
  color: #f5ecd8; padding: 16px 14px; border-radius: 14px; margin-bottom: 10px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(24, 16, 9, 0.45);
  display: flex; align-items: center; gap: 12px;
}
.bkh-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #ffd98a, transparent);
}
.bkh-hero .bkh-aura {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90px 90px at 12% 18%, rgba(224, 163, 83, 0.28), transparent 70%),
    radial-gradient(70px 70px at 30% 88%, rgba(64, 168, 120, 0.18), transparent 70%),
    radial-gradient(80px 80px at 88% 20%, rgba(194, 90, 70, 0.16), transparent 70%);
  animation: rkScan 7s ease-in-out infinite;
}
.bkh-hero .bkh-emblem { position: relative; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bkh-hero .bkh-core {
  width: 50px; height: 50px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #c9a86a 45%, #6f4f1d 100%);
  color: #241705; font-size: 24px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(201, 168, 106, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.55);
}
.bkh-hero .bkh-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.55); border-top-color: #ffd98a;
  animation: gkSpin 10s linear infinite;
}
.bkh-hero .bkh-body { flex: 1; min-width: 0; }
.bkh-hero .bkh-title { font-size: 18px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 0 16px rgba(201, 168, 106, 0.35); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bkh-hero .bkh-badge {
  font-size: 10px; font-weight: 800; color: #5c3a12;
  background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 999px; padding: 2px 9px;
}
.bkh-hero .bkh-desc { font-size: 11px; color: rgba(235, 226, 205, 0.75); margin-top: 3px; letter-spacing: 0.5px; }
.bkh-hero .bkh-stats { display: flex; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.bkh-hero .bkh-stats span { font-size: 11px; color: rgba(235, 226, 205, 0.85); display: flex; align-items: center; gap: 4px; }
.bkh-hero .bkh-stats i {
  font-style: normal; font-size: 10px; font-weight: 800; color: #5c3a12;
  background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 4px; padding: 1px 5px;
}
.bkh-hero .bkh-side { flex-shrink: 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 12px; }
.bkh-hero .bkh-side .v { font-size: 28px; font-weight: 900; line-height: 1.05; color: #c9a86a; text-shadow: 0 0 18px rgba(201, 168, 106, 0.55); font-variant-numeric: tabular-nums; }
.bkh-hero .bkh-side .k { font-size: 10px; color: rgba(235, 226, 205, 0.65); margin-top: 2px; }

/* 物品操作弹层 */
.item-opts { display: flex; gap: 10px; }
.item-opts .btn { flex: 1; }

/* 装备替换 */
.swap-cur { background: linear-gradient(180deg, #fdf3df 0%, #f8ead0 100%); border: 1px solid var(--line-gold); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.7; }
.swap-cur b { color: var(--gold); font-size: 14px; }
.swap-stat { color: var(--sub); }
.swap-affix { color: var(--orange); font-size: 12px; }
.swap-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.swap-item {
  display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow);
}
.swap-item:active { transform: scale(0.98); border-color: var(--green); }
.swap-item .si-icon {
  width: 34px; height: 34px; border-radius: 8px; background: #e9e7e1; display: flex;
  align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #8a857a; flex-shrink: 0;
  border: 1px solid #d5d2c8;
}
.swap-item .si-icon[data-q="1"] { background: #e6efe9; color: #2e7464; border-color: #c2ddd2; }
.swap-item .si-icon[data-q="2"] { background: #eaf1f5; color: #4f7fa8; border-color: #c5d3ee; }
.swap-item .si-icon[data-q="3"] { background: #efe9f8; color: #84719e; border-color: #d5c2ee; }
.swap-item .si-icon[data-q="4"] { background: #f6edda; color: var(--q4); border-color: #e3d3ae; }
.swap-item .si-icon[data-q="5"] { background: #f3e2e0; color: var(--q5); border-color: #e0c3c0; }
.swap-item .si-info { flex: 1; min-width: 0; }
.swap-item .si-name { font-size: 13px; font-weight: 700; display: block; color: #8a857a; }
.swap-item .si-name[data-q="1"] { color: #2e7464; }
.swap-item .si-name[data-q="2"] { color: #4f7fa8; }
.swap-item .si-name[data-q="3"] { color: #84719e; }
.swap-item .si-name[data-q="4"] { color: var(--q4); }
.swap-item .si-name[data-q="5"] { color: var(--q5); }
.swap-item .si-sub { font-size: 11px; color: var(--weak); display: block; margin-top: 1px; }
.swap-item .si-btn { height: 30px; padding: 0 12px; font-size: 12px; flex-shrink: 0; }

/* 锻造 */
.forge-tabs { display: flex; gap: 8px; padding: 10px 16px 0; }
.forge-tabs button {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12px;
  padding: 7px 0; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.forge-tabs button.on {
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  border-color: #6f5530; color: #fff; font-weight: 700;
  box-shadow: 0 1px 3px rgba(42, 42, 38, 0.18);
}
.forge-cats {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; flex-wrap: wrap;
}
.forge-cats button {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 11px;
  padding: 4px 12px; border-radius: 6px; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.forge-cats button .fc-arr { font-size: 9px; transition: transform 0.15s; }
.forge-cats button.on {
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  border-color: #6f5530; color: #fff; font-weight: 700;
}
.forge-cats button.off { opacity: 0.55; }
.forge-cats button.off .fc-arr { transform: rotate(-90deg); }
.forge-cats button .fc-count { font-weight: 800; margin-left: 2px; }
.forge-list { padding: 12px 16px; }
.forge-row {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 10px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.forge-row .f-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); }
.forge-row .f-name span[data-q="0"] { color: var(--q0); }
.forge-row .f-name span[data-q="1"] { color: var(--q1); }
.forge-row .f-name span[data-q="2"] { color: var(--q2); }
.forge-row .f-name span[data-q="3"] { color: var(--q3); }
.forge-row .f-name span[data-q="4"] { color: var(--q4); }
.forge-row .f-name span[data-q="5"] { color: var(--q5); }
.forge-row .f-desc { font-size: 11px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.forge-row .btn { padding: 8px 12px; font-size: 12px; }

/* 锻炉 hero（铁匠铺主题） */
.fw-hero {
  --sk-accent: #e0a353;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2c2116 0%, #3e2f1e 55%, #1c140d 100%);
  color: #f5ecd8; padding: 16px 14px; border-radius: 14px; margin-bottom: 10px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(30, 20, 10, 0.45);
  display: flex; align-items: center; gap: 12px;
}
.fw-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #ffd98a, transparent);
}
.fw-hero .fwh-flame {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(280px 120px at 10% 55%, rgba(224, 163, 83, 0.22), transparent 70%),
    radial-gradient(200px 100px at 90% 0%, rgba(255, 120, 60, 0.14), transparent 70%);
  animation: rkScan 6s ease-in-out infinite;
}
.fw-hero .fwh-emblem { position: relative; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fw-hero .fwh-core {
  width: 50px; height: 50px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #e0a353 45%, #8a5a1e 100%);
  color: #2a1c0d; font-size: 24px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(224, 163, 83, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.55);
}
.fw-hero .fwh-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(224, 163, 83, 0.55); border-top-color: #ffd98a;
  animation: gkSpin 10s linear infinite;
}
.fw-hero .fwh-body { flex: 1; min-width: 0; }
.fw-hero .fwh-title { font-size: 18px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 0 16px rgba(224, 163, 83, 0.35); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fw-hero .fwh-badge {
  font-size: 10px; font-weight: 800; color: #5c3a12;
  background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 999px; padding: 2px 9px;
}
.fw-hero .fwh-desc { font-size: 11px; color: rgba(235, 226, 205, 0.75); margin-top: 3px; letter-spacing: 0.5px; }
.fw-hero .fwh-stats { display: flex; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.fw-hero .fwh-stats span { font-size: 11px; color: rgba(235, 226, 205, 0.85); display: flex; align-items: center; gap: 4px; }
.fw-hero .fwh-stats i {
  font-style: normal; font-size: 10px; font-weight: 800; color: #5c3a12;
  background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 4px; padding: 1px 5px;
}
.fw-hero .fwh-side { flex-shrink: 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 12px; }
.fw-hero .fwh-side .v { font-size: 28px; font-weight: 900; line-height: 1.05; color: #e0a353; text-shadow: 0 0 18px rgba(224, 163, 83, 0.55); font-variant-numeric: tabular-nums; }
.fw-hero .fwh-side .k { font-size: 10px; color: rgba(235, 226, 205, 0.65); margin-top: 2px; }

/* 强化工作台 */
.enhance-panel { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.enhance-select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  background: #fff; font-size: 13px; color: var(--text);
}
.enh-toolbar { display: flex; flex-direction: column; gap: 8px; }
.enh-toolbar .et-label { font-size: 12px; font-weight: 800; color: var(--brown); display: flex; align-items: center; gap: 7px; letter-spacing: 1px; }
.enh-toolbar .et-label::before { content: ""; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }
.enh-pick {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.enh-pick .ep-item {
  flex: 0 0 auto; width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 2px solid var(--line-gold); border-radius: 10px; padding: 8px 6px 6px; cursor: pointer;
  transition: all 0.15s; position: relative;
}
.enh-pick .ep-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(90, 70, 30, 0.18); }
.enh-pick .ep-item.on {
  border-color: #e0a353; background: linear-gradient(180deg, #fff8ec 0%, #fbeed6 100%);
  box-shadow: 0 0 0 1px #e0a353, 0 4px 14px rgba(224, 163, 83, 0.35);
}
.enh-pick .ep-item .ep-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
}
.enh-pick .ep-item[data-q="0"] .ep-ico { color: var(--q0); }
.enh-pick .ep-item[data-q="1"] .ep-ico { color: var(--q1); background: var(--green-soft); }
.enh-pick .ep-item[data-q="2"] .ep-ico { color: var(--q2); background: rgba(79, 127, 168, 0.14); }
.enh-pick .ep-item[data-q="3"] .ep-ico { color: var(--q3); background: rgba(132, 113, 158, 0.16); }
.enh-pick .ep-item[data-q="4"] .ep-ico { color: var(--q4); background: rgba(185, 121, 42, 0.16); }
.enh-pick .ep-item[data-q="5"] .ep-ico { color: var(--q5); background: rgba(173, 74, 67, 0.14); }
.enh-pick .ep-item .ep-name { font-size: 10px; color: var(--text); font-weight: 700; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enh-pick .ep-item .ep-enh {
  font-size: 10px; font-weight: 800; color: #7a5a12;
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); border-radius: 999px; padding: 1px 8px;
}
.enh-pick .ep-item.on .ep-enh { color: #fff; background: linear-gradient(180deg, #e0a353, #b9792a); }

.enh-work {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%);
  border: 1px solid var(--line-gold); border-top: 3px solid #c9a86a; border-radius: 12px; padding: 16px 14px;
  box-shadow: var(--shadow); color: var(--text);
}
.enh-work .ew-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 140px at 50% 0%, rgba(224, 163, 83, 0.12), transparent 70%);
}
.enh-work .ew-anvil { display: flex; align-items: center; gap: 12px; position: relative; }
.enh-work .ew-ico {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px;
  background: linear-gradient(160deg, #f3efe4, #e9e2d0);
  border: 1px solid rgba(122, 95, 46, 0.2);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.enh-work .ew-ico[data-q="0"] { color: var(--q0); }
.enh-work .ew-ico[data-q="1"] { color: var(--q1); }
.enh-work .ew-ico[data-q="2"] { color: var(--q2); }
.enh-work .ew-ico[data-q="3"] { color: var(--q3); }
.enh-work .ew-ico[data-q="4"] { color: var(--q4); }
.enh-work .ew-ico[data-q="5"] { color: var(--q5); }
.enh-work .ew-info { flex: 1; min-width: 0; }
.enh-work .ew-name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.enh-work .ew-lv {
  font-size: 11px; font-weight: 800; color: #5c3a12;
  background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 999px; padding: 2px 9px;
}
.enh-work .ew-q { font-size: 11px; color: var(--sub); margin-top: 3px; }
.enh-work .ew-rate { flex-shrink: 0; text-align: center; }
.enh-work .ew-rate-num { font-size: 24px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.enh-work .ew-rate-num.hi { color: #3a9d5c; text-shadow: 0 0 12px rgba(58, 157, 92, 0.35); }
.enh-work .ew-rate-num.mid { color: #c07f1d; text-shadow: 0 0 12px rgba(192, 127, 29, 0.35); }
.enh-work .ew-rate-num.lo { color: #d64545; text-shadow: 0 0 12px rgba(214, 69, 69, 0.35); }
.enh-work .ew-rate-k { font-size: 10px; color: var(--sub); margin-top: 2px; }
.enh-work .ew-track { height: 6px; border-radius: 3px; background: rgba(122, 95, 46, 0.14); overflow: hidden; margin: 12px 0; position: relative; }
.enh-work .ew-track-fill {
  height: 100%; border-radius: 3px; transition: width 0.5s ease;
  background: linear-gradient(90deg, #b9792a, #ffd98a);
  box-shadow: 0 0 10px rgba(224, 163, 83, 0.6);
}
.enh-work .ew-track-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #7a5a12; }
.enh-work .ew-props { display: flex; flex-direction: column; gap: 6px; }
.enh-work .ew-prop {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--sub);
  padding: 7px 12px; background: #fff; border-radius: 8px;
  border: 1px solid var(--line);
}
.enh-work .ew-prop b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.enh-work .ew-prop b i.arr { font-style: normal; color: #b9792a; font-weight: 800; margin: 0 6px; }
.enh-work .ew-prop b i { font-style: normal; }
.enh-work .ew-prop .nxt { color: #3a9d5c; font-weight: 800; }
.enh-work .ew-affix { margin-top: 10px; font-size: 11px; color: var(--sub); line-height: 1.7; background: var(--gold-soft); border-radius: 8px; padding: 7px 12px; border: 1px solid var(--line-gold); }
.enh-work .ew-mats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.enh-work .em-cost, .enh-work .em-mat {
  padding: 5px 10px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line-gold); color: var(--sub);
}
.enh-work .em-cost b, .enh-work .em-mat b { color: #b9792a; font-weight: 800; }
.enh-work .em-cost.lack b, .enh-work .em-mat.lack b { color: var(--red); }
.enh-work .em-tip { font-size: 10px; color: var(--weak); flex: 1; text-align: right; }
.enh-work .enh-protect { margin-top: 10px; }
.enh-work .enh-protect-switch { color: var(--text); }
.enh-work .enh-protect-switch.no-protect { color: var(--weak); }
.enh-work .enh-protect-qty { color: #b9792a; }
.enh-work .enh-protect-tip { color: var(--sub); }
.enh-work .ew-btn { width: 100%; height: 42px; margin-top: 14px; font-size: 15px; letter-spacing: 2px; }

.enh-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-top: 3px solid #c9a86a; border-radius: 12px; padding: 16px;
  box-shadow: var(--shadow);
}
.enh-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.enh-card-name { font-size: 16px; font-weight: 800; }
.enh-card-name em { font-style: normal; }
.enh-card-q { font-size: 11px; font-weight: 700; }
.enh-props { display: flex; flex-direction: column; gap: 7px; }
.enh-prop {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--sub); padding: 6px 12px; background: #fff; border-radius: 8px;
  border: 1px solid var(--line);
}
.enh-prop b { color: var(--text); font-weight: 700; }
.enh-prop i { color: var(--green); font-style: normal; font-weight: 800; margin-left: 4px; }
.enh-affix { margin-top: 12px; font-size: 12px; color: var(--sub); line-height: 1.8; background: var(--gold-soft); border-radius: 8px; padding: 8px 12px; border: 1px solid var(--line-gold); }
.enh-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--sub); }
.enh-meta b { color: var(--brown); }
.enhance-rate { color: var(--brown); font-weight: 800; }
.enh-mats {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  font-size: 12px; color: var(--sub); background: #fff; border-radius: 8px; padding: 8px 12px;
  border: 1px solid var(--line);
}
.enh-mats b { color: var(--text); }
.enh-mats .lack b { color: var(--red); }
.enh-mat-tip { font-size: 11px; color: var(--weak); flex: 1; text-align: right; }
.enh-protect {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(122, 95, 47, 0.08), rgba(122, 95, 47, 0.03));
  border: 1px solid rgba(122, 95, 47, 0.25);
}
.enh-protect-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brown); cursor: pointer; }
.enh-protect-switch input { accent-color: #c99a3f; width: 16px; height: 16px; cursor: pointer; }
.enh-protect-switch.no-protect { color: var(--weak); cursor: not-allowed; }
.enh-protect-qty { font-size: 12px; font-weight: 700; color: #c99a3f; }
.enh-protect-tip { font-size: 11px; color: var(--weak); text-align: right; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
#enh-btn { width: 100%; height: 42px; margin-top: 14px; font-size: 15px; }

/* 技能 */
.skill-list { padding: 12px 16px; }
.skill-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding: 14px 16px;
  background: linear-gradient(180deg, #f6f3e9 0%, #efeadd 100%);
  border: 1px solid var(--line-gold); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.skill-summary .ss-class { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text); }
.skill-summary .ss-icon {
  width: 34px; height: 34px; border-radius: 9px; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15); color: var(--brown);
}
.skill-summary .ss-warrior .ss-icon { background: linear-gradient(180deg, #f7e3de 0%, #efcec4 100%); color: var(--red); border-color: rgba(176, 66, 38, 0.18); }
.skill-summary .ss-mage .ss-icon { background: linear-gradient(180deg, #e8def3 0%, #d9c8ec 100%); color: var(--purple); border-color: rgba(117, 62, 166, 0.18); }
.skill-summary .ss-archer .ss-icon { background: linear-gradient(180deg, #e2f0e0 0%, #cfe5cb 100%); color: var(--green); border-color: rgba(52, 122, 52, 0.18); }
.skill-summary .ss-assassin .ss-icon { background: linear-gradient(180deg, #f0e9dc 0%, #e4d7c0 100%); color: var(--brown); border-color: rgba(122, 95, 46, 0.18); }
.skill-summary .ss-priest .ss-icon { background: linear-gradient(180deg, #e6eef2 0%, #d3e3eb 100%); color: var(--blue); border-color: rgba(44, 106, 143, 0.18); }
.skill-summary .ss-pts { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.skill-summary .ss-pts-label { font-size: 11px; color: var(--weak); }
.skill-summary .ss-pts-num { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1.1; }

/* 技能 · 备战主题（主题色按职业） */
.sk-hero {
  --sk-accent: #c9a86a;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2a2420 0%, #3a3228 55%, #201a15 100%);
  color: #f5ecd8; padding: 16px 14px; border-radius: 14px; margin-bottom: 10px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(30, 20, 10, 0.45);
  display: flex; align-items: center; gap: 12px;
}
.sk-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sk-accent), transparent);
}
.sk-hero .skh-aura {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(280px 120px at 8% 50%, color-mix(in srgb, var(--sk-accent) 22%, transparent), transparent 70%),
    radial-gradient(200px 100px at 92% 0%, color-mix(in srgb, var(--sk-accent) 14%, transparent), transparent 70%);
  animation: rkScan 6s ease-in-out infinite;
}
.sk-hero .skh-emblem { position: relative; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sk-hero .skh-core {
  width: 50px; height: 50px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0%, var(--sk-accent) 45%, color-mix(in srgb, var(--sk-accent) 55%, #000) 100%);
  color: #2a2018; font-size: 24px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px color-mix(in srgb, var(--sk-accent) 60%, transparent), inset 0 1px 2px rgba(255, 255, 255, 0.55);
}
.sk-hero .skh-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sk-accent) 55%, transparent);
  border-top-color: var(--sk-accent);
  animation: gkSpin 10s linear infinite;
}
.sk-hero .skh-body { flex: 1; min-width: 0; }
.sk-hero .skh-title { font-size: 18px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 0 16px color-mix(in srgb, var(--sk-accent) 35%, transparent); }
.sk-hero .skh-desc { font-size: 11px; color: rgba(235, 226, 205, 0.75); margin-top: 3px; letter-spacing: 0.5px; }
.sk-hero .skh-energy { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.sk-hero .skh-eico {
  font-style: normal; font-size: 10px; font-weight: 800; color: #2a2018;
  background: linear-gradient(180deg, var(--sk-accent), color-mix(in srgb, var(--sk-accent) 60%, #000));
  border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.sk-hero .skh-ebar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sk-hero .skh-efill { height: 100%; background: linear-gradient(90deg, var(--sk-accent), #fff); border-radius: 3px; transition: width 0.5s ease; box-shadow: 0 0 8px color-mix(in srgb, var(--sk-accent) 70%, transparent); }
.sk-hero .skh-etxt { font-size: 10px; color: rgba(235, 226, 205, 0.8); flex-shrink: 0; }
.sk-hero .skh-side { flex-shrink: 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 12px; }
.sk-hero .skh-pts {
  font-size: 28px; font-weight: 900; line-height: 1.05; color: var(--sk-accent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--sk-accent) 55%, transparent);
  font-variant-numeric: tabular-nums;
}
.sk-hero .skh-label { font-size: 10px; color: rgba(235, 226, 205, 0.65); margin-top: 2px; }

.sk-theme-warrior { --sk-accent: #e0a353; }
.sk-theme-mage { --sk-accent: #b491e8; }
.sk-theme-archer { --sk-accent: #8fd18a; }
.sk-theme-assassin { --sk-accent: #d0a9d6; }
.sk-theme-priest { --sk-accent: #8fc8e8; }
.sk-theme-craft { --sk-accent: #e8b78f; }

/* 修炼进度条 */
.sk-mastery { margin-bottom: 12px; padding: 10px 12px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 10px; box-shadow: var(--shadow); }
.sk-mastery .skm-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.sk-mastery .skm-count { font-size: 10.5px; font-weight: 600; color: var(--weak); }
.sk-mastery .skm-bar { height: 6px; border-radius: 3px; background: rgba(201, 168, 106, 0.18); overflow: hidden; }
.sk-mastery .skm-fill { height: 100%; background: linear-gradient(90deg, #c9a86a, #ffe9a8); border-radius: 3px; transition: width 0.5s ease; box-shadow: 0 0 8px rgba(232, 207, 154, 0.6); }
.sk-combo-tip { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px; background: linear-gradient(180deg, #fdf6e3, #f6ecd4); border: 1px solid #e3c98f; border-radius: 10px; font-size: 11.5px; color: #7a5c2e; line-height: 1.5; }
.sk-combo-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #4f7fa8, #2e7464); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* 技能卡 */
.sk-card {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sk-card:hover { transform: translateX(3px); }
.sk-card.locked { opacity: 0.68; filter: saturate(0.65); }
.sk-card .sk-ico {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sk-accent, #c9a86a) 42%, #fff), color-mix(in srgb, var(--sk-accent, #c9a86a) 30%, #e9e2d0));
  border: 1px solid color-mix(in srgb, var(--sk-accent, #c9a86a) 40%, transparent);
  color: #4a3a20; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.sk-card .sk-main { flex: 1; min-width: 0; }
.sk-card .sk-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; }
.sk-card .sk-name { font-size: 14px; font-weight: 800; color: var(--text); }
.sk-card .sk-lv {
  font-size: 10px; font-weight: 800; color: #5c4a12;
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); border-radius: 999px; padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}
.sk-card.locked .sk-lv { color: var(--weak); background: rgba(42, 42, 38, 0.08); }
.sk-card .sk-cd {
  font-size: 9.5px; font-weight: 700; color: #7a6030;
  background: rgba(201, 168, 106, 0.16); border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 999px; padding: 2px 8px; letter-spacing: 0.3px;
}
.sk-card .sk-state { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 9px; color: var(--weak); background: rgba(42, 42, 38, 0.08); }
.sk-card .sk-state.on { color: #0d3b2e; background: linear-gradient(180deg, #a9d8c8, #57a88f); }
.sk-card .sk-progress { height: 4px; border-radius: 2px; background: rgba(201, 168, 106, 0.16); overflow: hidden; margin-bottom: 6px; }
.sk-card .sk-progress-fill { height: 100%; background: linear-gradient(90deg, #c9a86a, #ffe9a8); border-radius: 2px; transition: width 0.4s ease; }
.sk-card .sk-desc { font-size: 12px; color: var(--sub); line-height: 1.6; }
.sk-card .sk-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sk-card .sk-mp, .sk-card .sk-pwr {
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px;
  background: rgba(42, 42, 38, 0.06); color: var(--weak); display: inline-flex; align-items: center; gap: 4px;
}
.sk-card .sk-mp-ico {
  font-style: normal; font-weight: 800; font-size: 9px; color: #5c4a12;
  background: linear-gradient(180deg, #f0d488, #c9a94f); border-radius: 3px; padding: 0 3px; line-height: 1.4;
}
.sk-card .sk-pwr { color: #3f6fb5; background: rgba(79, 127, 168, 0.12); }
.sk-card .sk-ops { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; align-self: center; }
.sk-card .sk-btn { height: 30px; font-size: 11.5px; padding: 0 12px; white-space: nowrap; }
.sk-card .sk-maxed {
  font-size: 10.5px; font-weight: 800; color: #7a5a12; letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); border-radius: 999px; padding: 3px 12px;
  box-shadow: 0 0 10px rgba(232, 207, 154, 0.5);
}
.sk-card .sk-lock { font-size: 10.5px; font-weight: 700; color: var(--weak); }

.skill-sec {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0 8px; font-size: 13px; font-weight: 800; color: var(--brown);
  letter-spacing: 1px;
}
.skill-sec::before { content: ""; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }
.skill-sec .sec-tag { font-size: 11px; font-weight: 600; color: var(--weak); letter-spacing: 0; }

/* 冒险团 */
.team-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2a2112 0%, #4a3a1e 50%, #1e160c 100%);
  color: #f5ecd8; padding: 16px 14px; border-radius: 14px; margin-bottom: 12px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(42, 30, 10, 0.45);
  display: flex; align-items: center; gap: 12px;
}
.team-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #ffe9a8, transparent);
}
.team-hero::after {
  content: ""; position: absolute; top: 0; left: -50%; width: 40%; height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 235, 190, 0.10) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); animation: rkScan 6s ease-in-out infinite; pointer-events: none;
}
.team-hero .th-emblem {
  position: relative; width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #c9a86a, #8a7447);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(232, 207, 154, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.team-hero .th-emblem .th-core { font-size: 24px; font-weight: 800; color: #2a2320; position: relative; z-index: 2; }
.team-hero .th-emblem .th-emblem-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(232, 207, 154, 0.55); border-top-color: rgba(255, 224, 160, 0.95);
  animation: gkSpin 10s linear infinite;
}
.team-hero .th-body { flex: 1; min-width: 0; }
.team-hero .th-name {
  font-size: 18px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
  text-shadow: 0 0 16px rgba(232, 207, 154, 0.35);
}
.team-hero .th-lv {
  font-size: 11px; color: #5c4a12; font-weight: 800;
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); border-radius: 999px; padding: 2px 9px;
}
.team-hero .th-desc { font-size: 11px; color: rgba(235, 226, 205, 0.75); margin-top: 3px; letter-spacing: 0.5px; }
.team-hero .th-stats { display: flex; gap: 12px; margin-top: 7px; flex-wrap: wrap; }
.team-hero .th-stats span { font-size: 11px; color: rgba(235, 226, 205, 0.85); display: flex; align-items: center; gap: 4px; }
.team-hero .th-stats i {
  font-style: normal; font-size: 10px; font-weight: 800; color: #5c4a12;
  background: linear-gradient(180deg, #f0d488, #c9a94f); border-radius: 4px; padding: 1px 5px;
}
.team-hero .th-pos {
  flex-shrink: 0; text-align: center; font-size: 10px; color: #e8cf9a; font-weight: 700;
  border: 1px solid rgba(232, 207, 154, 0.4); border-radius: 8px; padding: 6px 8px; background: rgba(201, 168, 106, 0.12);
}
.team-hero .th-pos b { display: block; font-size: 15px; line-height: 1.2; }
.team-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; padding: 4px;
  background: linear-gradient(180deg, #f3efe4, #e9e2d0); border: 1px solid var(--line-gold); border-radius: 10px;
}
.team-tabs button {
  flex: 1; border: none; background: transparent; color: var(--sub);
  font-size: 12px; padding: 7px 0; border-radius: 7px; cursor: pointer; transition: all 0.18s;
}
.team-tabs button.on {
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(111, 85, 48, 0.35);
}
.team-member {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.team-member:hover { transform: translateX(3px); }
.team-member .m-avatar-wrap { position: relative; flex-shrink: 0; align-self: center; }
.team-member .m-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--brown); font-size: 15px;
}
.team-member .m-avatar.pos-leader {
  background: linear-gradient(180deg, #ffe9a8 0%, #d4a63c 100%); color: #5c4a12;
  border-color: rgba(122, 95, 46, 0.35); box-shadow: 0 0 12px rgba(255, 215, 130, 0.5);
}
.team-member .m-avatar.pos-vice { background: linear-gradient(180deg, #f7f7f7 0%, #b6b6b6 100%); color: #4a4a4a; border-color: rgba(90, 90, 90, 0.3); }
.team-member .m-avatar.pos-elite { background: linear-gradient(180deg, #f2c48f 0%, #c98a4f 100%); color: #5c3412; border-color: rgba(122, 80, 40, 0.3); }
.team-member .m-info { flex: 1; min-width: 0; }
.team-member .m-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.team-member .m-sub { font-size: 11px; color: var(--weak); margin-top: 2px; line-height: 1.6; }
.team-member .m-pos-tag {
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; letter-spacing: 0.5px;
  background: #eee8da; color: #8a8578;
}
.team-member .m-pos-tag.pos-leader { background: linear-gradient(180deg, #ffe9a8, #d4a63c); color: #5c4a12; }
.team-member .m-pos-tag.pos-vice { background: linear-gradient(180deg, #f7f7f7, #b6b6b6); color: #4a4a4a; }
.team-member .m-pos-tag.pos-elite { background: linear-gradient(180deg, #f2c48f, #c98a4f); color: #5c3412; }
.team-member .m-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.team-member .m-online { font-size: 10px; font-weight: 700; color: #b6b6ad; display: flex; align-items: center; gap: 4px; }
.team-member .m-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c8c8bf; }
.team-member .m-online.on { color: var(--green); }
.team-member .m-online.on::before { background: var(--green); box-shadow: 0 0 6px rgba(46, 116, 100, 0.6); }
.team-member .m-contrib { font-size: 11px; color: var(--gold); font-weight: 700; }
.team-member .m-ops { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex-shrink: 0; }
.team-member .m-ops .btn { height: 26px; font-size: 11px; padding: 0 9px; }
.team-member .chat-badge.gpos-leader { background: linear-gradient(180deg, #ffe9a8, #d4a63c); }
.team-member .chat-badge.gpos-vice { background: linear-gradient(180deg, #f7f7f7, #b6b6b6); color: #4a4a4a; }
.team-member .chat-badge.gpos-elite { background: linear-gradient(180deg, #f2c48f, #c98a4f); color: #5c3412; }
.team-member .chat-badge.rk-medal-0 { background: linear-gradient(180deg, #ffe9a8, #d4a63c); color: #5c4a12; }
.team-member .chat-badge.rk-medal-1 { background: linear-gradient(180deg, #f7f7f7, #b6b6b6); color: #4a4a4a; }
.team-member .chat-badge.rk-medal-2 { background: linear-gradient(180deg, #f2c48f, #c98a4f); color: #5c3412; }

/* 团列表（未加入） */
.team-guild-list { margin-top: 4px; }
.team-guild-list .tg-card { border-left-color: #c9a86a; }
.team-guild-list .tg-join { flex-shrink: 0; }

/* 团技能/驻地卡片 */
.team-upgrade {
  display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.team-upgrade .tu-ico {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(160deg, #f0d488, #c9a94f); color: #5c4a12;
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.team-upgrade .tu-main { flex: 1; min-width: 0; }
.team-upgrade .u-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 4px; }
.team-upgrade .u-head b { font-size: 13px; }
.team-upgrade .u-lv {
  font-size: 10px; font-weight: 800; color: var(--brown);
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15); border-radius: 999px; padding: 2px 9px;
}
.team-upgrade .u-desc { font-size: 11px; color: var(--weak); margin-top: 4px; }
.team-upgrade .tu-bar {
  height: 4px; border-radius: 2px; margin-top: 6px; overflow: hidden;
  background: rgba(201, 168, 106, 0.15);
}
.team-upgrade .tu-bar-fill { height: 100%; background: linear-gradient(90deg, #c9a86a, #ffe9a8); border-radius: 2px; transition: width 0.4s ease; }
.team-upgrade .tu-bar-brown { background: rgba(150, 110, 60, 0.15); }
.team-upgrade .tu-bar-brown .tu-bar-fill { background: linear-gradient(90deg, #b98a4a, #e8c08a); }
.team-upgrade .tu-btn { margin-top: 2px; flex-shrink: 0; height: 30px; font-size: 11.5px; padding: 0 12px; }

/* 团页章节头 / 通用金色按钮 */
.team-sec-head {
  font-size: 11px; color: var(--sub); margin: 4px 0 10px; line-height: 1.8;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px;
}
.team-sec-head b { color: var(--gold); }
.team-sec-head i {
  font-style: normal; font-size: 10px; font-weight: 800; color: #5c4a12;
  background: linear-gradient(180deg, #f0d488, #c9a94f); border-radius: 4px; padding: 1px 5px;
}
.btn-gold {
  background: linear-gradient(180deg, #e0a93f 0%, #c08a1e 100%); color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.btn-gold:hover { filter: brightness(1.08); }

/* 委托奖励标签 */
.tg-quest .m-ops { flex-direction: column; }
.m-rewards { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.rw-tag {
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; letter-spacing: 0.3px;
}
.rw-gold { background: rgba(201, 168, 106, 0.16); color: #9a7b2f; border: 1px solid rgba(201, 168, 106, 0.4); }
.rw-green { background: rgba(46, 116, 100, 0.12); color: var(--green); border: 1px solid rgba(46, 116, 100, 0.35); }
.rw-item { background: rgba(79, 127, 168, 0.12); color: #3f6fb5; border: 1px solid rgba(79, 127, 168, 0.35); }
.btn-wide { width: 100%; margin-top: 10px; }
.btn-leave-guild { width: 100%; margin-top: 12px; }

/* 空状态（未加入冒险团） */
.team-empty { text-align: center; padding: 40px 0 30px; color: var(--weak); }
.team-empty .team-empty-ico {
  position: relative; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 18px;
  background: linear-gradient(160deg, #f0d488, #c9a94f); color: #5c4a12;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; box-shadow: 0 4px 18px rgba(122, 95, 46, 0.4);
}
.team-empty .team-empty-ico .te-ring {
  position: absolute; inset: -7px; border-radius: 22px;
  border: 1px dashed rgba(201, 168, 106, 0.5);
  animation: gkSpin 14s linear infinite;
}
.team-empty .te-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.team-empty .te-sub { font-size: 12px; color: var(--weak); margin-bottom: 14px; line-height: 1.7; }
.team-empty .btn { margin-top: 4px; }
.badge-status {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #f5c08a 0%, #e08a3c 100%); color: #5c2d0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  vertical-align: 2px; margin-left: 2px; white-space: nowrap;
}
.badge-status.done { background: linear-gradient(180deg, #a9d8c8 0%, #57a88f 100%); color: #0d3b2e; }

/* 转生面板升级 */
.reb-note { font-size: 12px; color: var(--weak); margin: 8px 0 10px; line-height: 1.7; padding: 0 2px; }
.reb-card { border: 1px solid var(--line-gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%); box-shadow: var(--shadow); }
.reb-card.ready { border-color: rgba(46, 116, 100, 0.5); }
.reb-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.reb-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: linear-gradient(160deg, #f0d488, #c9a94f); color: #5c4a12; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.reb-card-title { font-size: 13px; font-weight: 800; flex: 1; }
.reb-ready { font-size: 11px; color: #fff; background: var(--green); border-radius: 4px; padding: 2px 8px; font-weight: 700; }
.reb-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--sub); line-height: 1.8; }
.reb-ops { display: flex; gap: 8px; margin-bottom: 10px; }
.reb-btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.reb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.reb-chip { font-size: 11px; color: var(--sub); background: #fff; border: 1px solid var(--line-gold); border-radius: 999px; padding: 3px 10px; }

/* 神话专精（转生 ≥ 20 世） */
.reb-myth-lock { font-size: 12px; color: var(--weak); background: linear-gradient(180deg, #faf8f2 0%, #f1ecdf 100%); border: 1px dashed var(--line-gold); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; line-height: 1.7; }
.reb-myth-lock b { color: var(--gold); }
.myth-section { margin-bottom: 12px; }
.myth-desc { font-size: 11.5px; color: var(--weak); line-height: 1.7; margin-bottom: 8px; }
.myth-list { display: flex; flex-direction: column; gap: 8px; }
.myth-branch { margin-bottom: 10px; }
.myth-branch-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--brown); margin-bottom: 6px; }
.reb-milestones { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.reb-ms { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); font-size: 11.5px; }
.reb-ms.reached { border-color: var(--green); background: rgba(80, 150, 90, 0.08); }
.reb-ms.next { border-color: var(--gold); background: rgba(185, 138, 58, 0.08); }
.reb-ms-name { font-weight: 800; color: var(--brown); white-space: nowrap; }
.reb-ms-req { color: var(--weak); white-space: nowrap; }
.reb-ms-bonus { flex: 1; color: var(--gold); text-align: right; }
.myth-spec { background: linear-gradient(180deg, #fffdf6 0%, #f4eedd 100%); border: 1px solid var(--line-gold); border-radius: 11px; padding: 10px 12px; box-shadow: var(--shadow); }
.myth-spec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.myth-spec-name { font-size: 13px; font-weight: 800; color: var(--brown); }
.myth-spec-desc { flex: 1; font-size: 11px; color: var(--weak); }
.myth-spec-lv { font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(122, 95, 46, 0.10); border: 1px solid rgba(122, 95, 46, 0.20); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.myth-spec-bar { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; margin-bottom: 7px; }
.myth-spec-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b98a3a, #e2bc6e); transition: width 0.3s; }
.myth-spec-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.myth-spec-effect { font-size: 11.5px; color: var(--green); font-weight: 600; }
.myth-btn { padding: 4px 12px; font-size: 12px; }
.myth-btn em { font-style: normal; font-size: 11px; opacity: 0.85; margin-left: 3px; }
.myth-btn:disabled { opacity: 0.45; }
.myth-maxed { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.soul-card { background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.soul-head { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.soul-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; background: linear-gradient(160deg, #cfd8ee, #9db1dc); color: #33456b; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.soul-info { flex: 1; min-width: 0; }
.soul-name { font-size: 13px; font-weight: 800; color: var(--text); }
.soul-desc { font-size: 11px; color: var(--weak); margin-top: 1px; }
.soul-btn { padding: 7px 14px; font-size: 12px; flex-shrink: 0; }

/* 剧情 · 章节列表 */
.story-chapters { padding: 4px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.story-ch {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #fffdf6 0%, #f7f3e6 100%);
  border: 1px solid rgba(197,168,106,0.35); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); overflow: hidden; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}
.story-ch:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.story-ch .sc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sc); }
.story-ch .sc-no {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--sc) 22%, #fff);
  color: var(--sc); font-weight: 900; font-size: 15px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--sc) 25%, transparent);
}
.story-ch.st-done .sc-no { background: rgba(76,175,80,0.12); color: var(--green); border-color: rgba(76,175,80,0.35); }
.story-ch.st-current .sc-no { background: rgba(218,181,80,0.15); color: var(--brown); border-color: rgba(218,181,80,0.45); box-shadow: 0 2px 10px rgba(218,181,80,0.3); }
.story-ch.locked { opacity: 0.5; cursor: default; }
.story-ch.locked .sc-bar { background: #b0a8a0; }
.story-ch.locked .sc-no { background: #f0ece2; color: var(--weak); border-color: #d8d2c2; box-shadow: none; }
.story-ch .sc-info { flex: 1; min-width: 0; }
.story-ch .sc-title { font-size: 14px; font-weight: 800; color: var(--text); }
.story-ch .sc-sub { font-size: 11px; color: var(--weak); margin-top: 3px; }
.sc-endtag { font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.sc-endtag.home { color: #7a5a1e; background: rgba(242,201,110,0.25); }
.sc-endtag.god { color: #4a2e86; background: rgba(185,140,238,0.25); }
.story-ch .sc-state { font-size: 11px; font-weight: 800; flex-shrink: 0; }
.sc-state.st-done { color: var(--green); }
.sc-state.st-current { color: var(--brown); }
.sc-state.st-open { color: var(--blue); }
.sc-state.st-lock { color: var(--weak); }
.story-ending-banner {
  margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(218,181,80,0.5); border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,224,130,0.18), rgba(255,224,130,0.05));
  text-align: center;
}
.story-ending-banner .seb-title { font-size: 12px; font-weight: 900; color: #8a6a1e; letter-spacing: 2px; }
.story-ending-banner .seb-tags { margin-top: 8px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.seb-tag { font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 99px; }
.seb-tag.home { color: #8a6a1e; background: rgba(242,201,110,0.3); border: 1px solid rgba(218,181,80,0.5); }
.seb-tag.god { color: #5a3a9e; background: rgba(185,140,238,0.25); border: 1px solid rgba(160,120,220,0.5); }
.story-ending-banner .seb-sub { font-size: 11px; color: var(--weak); margin-top: 8px; }

/* 剧情 · 沉浸式阅读 */
.story-scene {
  position: relative; min-height: 100%; border-radius: 16px; overflow: hidden;
  padding: 24px 18px 44px; box-sizing: border-box; margin: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.story-scene-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,0.10), transparent 60%);
}
.story-scene-glow {
  position: absolute; left: 50%; top: 6%; width: 240px; height: 240px; transform: translateX(-50%);
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  filter: blur(2px); animation: story-glow-breathe 4s ease-in-out infinite;
}
.story-scene-mood {
  position: absolute; top: 12px; left: 0; right: 0; text-align: center;
  font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.4); pointer-events: none;
}
.story-reader {
  position: relative; max-width: 560px; margin: 0 auto; z-index: 1;
  background: rgba(12, 14, 24, 0.6); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 26px 24px 24px; backdrop-filter: blur(6px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.4);
  animation: story-rise 0.4s ease both;
}
.story-reader-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.story-chapter-tag {
  font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.55); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.story-chapter-tag .sct-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.story-node-title {
  margin-top: 14px; font-size: 20px; font-weight: 900; letter-spacing: 3px; text-align: center;
  color: #fff; text-shadow: 0 0 18px rgba(180,150,255,0.7);
  padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,0.16);
}
.story-node-text {
  margin-top: 20px; font-size: 15px; line-height: 2.1; color: #f0ecff; text-align: justify;
  min-height: 96px; cursor: pointer; word-break: break-word; text-indent: 2em;
}
.story-node-text.typed::after {
  content: "▍"; color: rgba(255,255,255,0.35); margin-left: 2px; animation: story-caret 1s steps(2) infinite;
}
.story-node-reward {
  margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; animation: story-rise 0.3s ease both;
}
.sr-i { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; display: inline-block; margin: 1px 2px; }
.sr-i.exp { color: #1e7a4f; background: rgba(80,180,120,0.16); }
.sr-i.gold { color: #8a5a00; background: rgba(230,190,80,0.18); }
.sr-i.kno { color: #6a3ab8; background: rgba(140,110,220,0.16); }
.sr-i.diamond { color: #1e6ab8; background: rgba(90,150,220,0.16); }
.sr-i.mystic { color: #8a2ab8; background: rgba(160,100,220,0.16); }
.sr-i.item { color: #6a5a3a; background: rgba(180,150,110,0.18); }
/* 剧情深色场景内用亮色调 */
.story-scene .sr-i.exp { color: #9fe0b4; background: rgba(80,180,120,0.22); }
.story-scene .sr-i.gold { color: #ffe9a8; background: rgba(230,190,80,0.2); }
.story-scene .sr-i.kno { color: #c8b8ff; background: rgba(140,110,220,0.25); }
.story-scene .sr-i.diamond { color: #a8d4ff; background: rgba(90,150,220,0.22); }
.story-scene .sr-i.mystic { color: #e0b8ff; background: rgba(160,100,220,0.25); }
.story-scene .sr-i.item { color: #d8c4a8; background: rgba(180,150,110,0.2); }
.story-choices { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.story-choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
  border-left: 3px solid rgba(190,160,255,0.7);
  border-radius: 12px; padding: 13px 15px; font-size: 14px; font-weight: 700; color: #f0ecff;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.story-choice:hover { background: rgba(255,255,255,0.11); border-color: rgba(200,170,255,0.6); border-left-color: rgba(200,170,255,0.95); transform: translateX(3px); box-shadow: 0 3px 12px rgba(0,0,0,0.25); }
.story-choice:active { transform: scale(0.98); }
.story-choice.primary {
  text-align: center; letter-spacing: 3px; font-size: 15px;
  background: linear-gradient(160deg, #b98cee, #7a4ac0);
  border: none; color: #fff; box-shadow: 0 4px 14px rgba(122,74,192,0.4);
  padding: 13px 15px;
}
.story-choice.primary:hover { background: linear-gradient(160deg, #c6a0f5, #8a5cd0); transform: translateY(-1px); }
.story-choice.chosen { border-color: var(--green); background: rgba(80,180,120,0.15); pointer-events: none; border-left-color: var(--green); }
.story-gain {
  display: block; margin-top: 8px; font-size: 12px; font-weight: 900; color: #9fe0b4;
  animation: story-rise 0.3s ease both;
}
.story-prev {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.6);
  padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,0.25);
  cursor: pointer; transition: background 0.15s, color 0.15s; border: 1px solid rgba(255,255,255,0.12);
}
.story-prev:hover { background: rgba(0,0,0,0.45); color: #fff; }
.story-end-card {
  position: relative; max-width: 380px; margin: 40px auto; text-align: center; z-index: 1;
  background: rgba(12,14,24,0.65); border: 1px solid rgba(255,255,255,0.16); border-radius: 18px;
  padding: 34px 26px; backdrop-filter: blur(6px); animation: story-rise 0.4s ease both;
}
.story-end-ico {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 4px;
  color: #9fe0b4; padding: 4px 16px; border-radius: 99px;
  border: 1px solid rgba(120,220,160,0.4); background: rgba(120,220,160,0.1);
  text-shadow: 0 0 20px rgba(120,220,160,0.7);
}
.story-end-title { margin-top: 12px; font-size: 19px; font-weight: 900; letter-spacing: 3px; color: #fff; }
.story-end-sub { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.6); }
.story-end-card .btn { margin-top: 20px; }
.story-ending-card { text-align: center; padding: 8px 4px; }
.story-ending-kicker {
  font-size: 13px; font-weight: 900; letter-spacing: 6px; color: rgba(255,255,255,0.6);
}
.story-ending-card.home .story-ending-kicker { color: #ffe9a8; text-shadow: 0 0 16px rgba(255,220,120,0.6); }
.story-ending-card.god .story-ending-kicker { color: #c8b8ff; text-shadow: 0 0 16px rgba(180,150,255,0.7); }
.story-ending-title { margin-top: 14px; font-size: 26px; font-weight: 900; letter-spacing: 4px; color: #fff; }
.story-ending-bg { margin-top: 14px; font-size: 14px; line-height: 1.9; color: #ece7ff; text-align: justify; }
.story-ending-title-tag {
  margin-top: 16px; display: inline-block; padding: 6px 18px; border-radius: 99px;
  font-size: 12px; font-weight: 900; letter-spacing: 2px;
  border: 1px solid rgba(230,190,80,0.5); color: #ffe9a8; background: rgba(230,190,80,0.12);
}
@keyframes story-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes story-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes story-glow-breathe { 0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.12); } }

/* 副本 */
.dungeon-list { padding: 12px 16px; }
.dungeon-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.dungeon-card .d-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dungeon-card .d-name { font-size: 14px; font-weight: 700; flex: 1; }
.dungeon-card .d-tier { flex: none; font-size: 11px; font-weight: 800; color: #8a6a2a; background: linear-gradient(180deg, #f6e8c8, #ecd9ae); border: 1px solid #dcc189; border-radius: 999px; padding: 3px 10px; }
.dungeon-card .d-desc { font-size: 12px; color: var(--sub); margin-bottom: 8px; }
.dungeon-card .d-cost { font-size: 11px; color: var(--weak); margin-bottom: 8px; }

/* 地图 */
.map-list { padding: 12px 16px; }
.map-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 12px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.map-card .m-no { width: 34px; height: 34px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.map-card .m-info { flex: 1; }
.map-card .m-name { font-size: 14px; font-weight: 700; }
.map-card .m-desc { font-size: 11px; color: var(--weak); margin-top: 2px; }
.map-card .m-cost { font-size: 11px; color: var(--brown); margin-top: 2px; }
.map-card .m-rw-sum { font-size: 11px; color: var(--gold); margin-top: 4px; line-height: 1.5; }
.map-card .m-rw-sum .sr-i { margin-top: 2px; }
.map-card.locked { opacity: 0.55; }

/* 商店（NPC） */
.shop-list { padding: 12px 16px; }
.shop-list .s-banner, .shop-list .s-note, .shop-list .s-card-ex { grid-column: 1 / -1; }
.s-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow);
}
.s-banner-t {
  font-size: 13px; font-weight: 900; color: #7a5f2e; letter-spacing: 1px;
  background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%);
  color: #fff; border-radius: 6px; padding: 3px 10px; white-space: nowrap;
}
.s-banner-w { display: flex; gap: 12px; font-size: 11px; color: var(--weak); white-space: nowrap; }
.s-banner-w b { font-size: 12px; }
.s-banner-w .s-w-gold b { color: var(--orange); }
.s-banner-w .s-w-dia b { color: var(--blue); }
.s-banner-w .s-w-stone b { color: #2f8f78; }
.s-banner-d { font-size: 11px; color: var(--weak); margin-left: auto; }
.shop-row { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.shop-row .s-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--brown-soft); color: var(--brown); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.shop-row .s-info { flex: 1; }
.shop-row .s-name { font-size: 13px; font-weight: 700; }
.shop-row .s-price { font-size: 11px; color: var(--orange); font-weight: 700; margin-top: 2px; }
.shop-row .btn { padding: 8px 12px; font-size: 12px; }

/* 商店货架式：招牌 + 类型分组商品卡 */
.shop-list { display: block; }
@media (min-width: 640px) { .shop-list { padding: 14px 18px; } }
#shop-body { padding: 10px 12px; }

/* 类型分组 */
.sh-group { margin-bottom: 16px; }
.sh-group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #7a5f2e; margin: 2px 2px 8px; padding-left: 8px; border-left: 3px solid #c9a86a; }
.sh-group-title em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--weak); background: var(--brown-soft); border-radius: 999px; padding: 1px 7px; }
.sh-group-ico { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(160deg, #f0d488, #c9a94f); color: #5c4a12; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.sh-group-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .sh-group-list { grid-template-columns: repeat(2, 1fr); } }

/* 道具卡（横向信息卡） */
.sh-item { background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; display: flex; align-items: center; gap: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; min-width: 0; }
.sh-item:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.sh-item.sold-out { opacity: 0.55; }
.sh-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1); }
.sh-info { flex: 1; min-width: 0; }
.sh-name { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.sh-tag { flex-shrink: 0; font-size: 9px; font-weight: 700; color: #8a7440; background: #f3ecd9; border: 1px solid #e4d7b2; border-radius: 999px; padding: 1px 7px; letter-spacing: 0.5px; }
.sh-desc { font-size: 11px; color: var(--weak); margin-top: 3px; line-height: 1.45; }
.sh-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; flex-wrap: wrap; }
.sh-price { font-size: 12px; font-weight: 800; white-space: nowrap; }
.sh-price-gold { color: var(--orange); }
.sh-price-stone { color: #2f8f78; }
.sh-price-dia { color: #b08d2e; }
.sh-limit { font-size: 10px; color: var(--brown); background: #f6efdc; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.sh-limit i { font-style: normal; color: #c0392b; font-weight: 700; margin-left: 3px; }
.sh-stock { font-size: 10px; color: var(--weak); white-space: nowrap; }
.sh-btns { display: flex; gap: 6px; flex-shrink: 0; }
.sh-btn { padding: 4px 12px; font-size: 11px; line-height: 1.4; }
.sh-soldout-tag { font-size: 11px; font-weight: 800; color: #b0a693; padding: 4px 10px; border: 1px dashed #d8cdb8; border-radius: 8px; white-space: nowrap; }

/* 招牌横幅 */
.sh-sign { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #7d4f16 0%, #a97a28 48%, #d3a63f 100%); color: #fff8e7;
  box-shadow: 0 3px 12px rgba(138, 90, 30, 0.35); position: relative; overflow: hidden; }
.sh-sign::before { content: ''; position: absolute; right: -26px; top: -26px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); }
.sh-sign::after { content: ''; position: absolute; left: 40%; top: -12px; width: 200px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.6), transparent); }
.sh-sign-orn { font-size: 18px; color: #ffe9a8; text-shadow: 0 0 8px rgba(255, 233, 168, 0.85); flex-shrink: 0; position: relative; z-index: 1; }
.sh-sign-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; position: relative; z-index: 1; }
.sh-sign-sub { font-size: 9px; opacity: 0.88; margin-top: 1px; position: relative; z-index: 1; }

/* 顶部提示条 */
.s-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--weak); padding: 2px 4px 2px; }
.s-note b { color: #2f8f78; font-size: 13px; }
.s-note-ico { color: var(--gold); font-size: 10px; }

/* 货币兑换卡（全宽） */
.s-card-ex {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2b2112 0%, #3d2f16 55%, #1e1508 100%);
  border: 1px solid rgba(224, 190, 120, 0.42); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(30, 20, 10, 0.45);
  padding: 0;
}
.s-card-ex::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #ffd98a, transparent);
}
.s-card-ex .sex-aura {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(320px 140px at 12% 30%, rgba(224, 190, 120, 0.2), transparent 70%),
    radial-gradient(220px 120px at 92% 90%, rgba(255, 180, 90, 0.12), transparent 70%);
  animation: rkScan 7s ease-in-out infinite;
}
.s-card-ex .sex-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 0; }
.s-card-ex .sex-emblem { position: relative; width: 66px; height: 66px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.s-card-ex .sex-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(224, 190, 120, 0.55); animation: gkSpin 12s linear infinite; }
.s-card-ex .sex-ring-2 { inset: 5px; border: 1px solid rgba(224, 190, 120, 0.4); border-top-color: #ffd98a; animation-direction: reverse; animation-duration: 8s; }
.s-card-ex .sex-core {
  width: 48px; height: 48px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #ffd98a 45%, #b8862b 100%);
  color: #4a3208; font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(255, 217, 138, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.s-card-ex .sex-body { flex: 1; min-width: 0; }
.s-card-ex .sex-title { font-size: 17px; font-weight: 800; letter-spacing: 1px; color: #f7eccf; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 16px rgba(224, 190, 120, 0.35); }
.s-card-ex .sex-badge { font-size: 10px; font-weight: 800; color: #5c3a12; background: linear-gradient(180deg, #ffd98a, #d4a63c); border-radius: 999px; padding: 2px 9px; }
.s-card-ex .sex-desc { font-size: 11px; color: rgba(235, 226, 205, 0.72); margin-top: 3px; letter-spacing: 0.5px; }
.s-card-ex .sex-rates { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.s-card-ex .sex-rate { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(235, 226, 205, 0.85); background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(224, 190, 120, 0.25); border-radius: 8px; padding: 4px 9px; }
.s-card-ex .sex-rate i { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.s-card-ex .sex-rate-buy i { background: rgba(255, 217, 138, 0.18); color: #ffd98a; }
.s-card-ex .sex-rate-sell i { background: rgba(122, 190, 255, 0.16); color: #8ec9ff; }
.s-card-ex .sex-rate b { color: #ffd98a; font-size: 12px; font-variant-numeric: tabular-nums; }
.s-card-ex .sex-side { flex-shrink: 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 14px; }
.s-card-ex .sex-side .sex-left { font-size: 26px; font-weight: 900; line-height: 1.05; color: #c9a86a; text-shadow: 0 0 18px rgba(201, 168, 106, 0.55); font-variant-numeric: tabular-nums; }
.s-card-ex .sex-side .sex-k { font-size: 10px; color: rgba(235, 226, 205, 0.65); margin-top: 3px; }
.s-card-ex .sex-row { position: relative; display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding-top: 12px; border-top: 1px dashed rgba(224, 190, 120, 0.3); flex-wrap: wrap; }
.s-card-ex .sex-inp { display: flex; align-items: center; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(224, 190, 120, 0.3); border-radius: 9px; padding: 0 10px; }
.s-card-ex .sex-inp input { width: 84px; background: transparent; border: none; color: #ffe9b3; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; outline: none; padding: 7px 0; }
.s-card-ex .sex-inp input::-webkit-outer-spin-button, .s-card-ex .sex-inp input::-webkit-inner-spin-button { -webkit-appearance: none; }
.s-card-ex .sex-unit { font-size: 11px; color: rgba(235, 226, 205, 0.6); padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.s-card-ex .sex-preview { flex: 1; min-width: 120px; font-size: 12px; color: #ffd98a; font-variant-numeric: tabular-nums; }
.s-card-ex .sex-btn { height: 32px; padding: 0 18px; font-size: 12px; flex-shrink: 0; border: 1px solid #b8862b; }
.s-card-ex .sex-btn-2 { background: linear-gradient(180deg, #5f8bb8 0%, #3f6791 100%); border-color: #3f6791; color: #fff; }
.s-card-ex .sex-quick { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 16px 14px; flex-wrap: wrap; }
.s-card-ex .sex-qk { font-size: 11px; color: rgba(235, 226, 205, 0.6); }
.s-card-ex .sex-qk-btn { height: 24px; font-size: 11px; padding: 0 10px; }
.s-card-ex .sex-today { margin-left: auto; font-size: 11px; color: rgba(235, 226, 205, 0.7); }
.s-card-ex .sex-today b { color: #ffd98a; }
.s-card-ex .sex-wallet { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; flex-wrap: wrap; }
.s-card-ex .sex-w { font-size: 11px; color: rgba(235, 226, 205, 0.8); background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(224, 190, 120, 0.22); border-radius: 8px; padding: 4px 10px; }
.s-card-ex .sex-w b { font-size: 13px; font-variant-numeric: tabular-nums; }
.s-card-ex .sex-w-gold b { color: #ffd98a; }
.s-card-ex .sex-w-dia b { color: #8ec9ff; }
.s-card-ex .sex-w-max { margin-left: auto; color: rgba(235, 226, 205, 0.6); }
.s-card-ex .sex-w-max b { color: #c9a86a; }
.s-card-ex .sex-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; flex-wrap: wrap; }
.s-card-ex .sex-bar-track { flex: 1; min-width: 140px; height: 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(224, 190, 120, 0.2); overflow: hidden; }
.s-card-ex .sex-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d4a63c, #ffd98a); box-shadow: 0 0 10px rgba(255, 217, 138, 0.5); transition: width 0.3s; }
.s-card-ex .sex-bar span { font-size: 11px; color: rgba(235, 226, 205, 0.7); }
.s-card-ex .sex-bar span b { color: #ffd98a; }
.s-card-ex .sex-bar-sell { padding-top: 2px; }
.s-card-ex .sex-bar-sell .sex-bar-fill-sell { background: linear-gradient(90deg, #7fa6c9, #9cc3e6); box-shadow: 0 0 10px rgba(140, 178, 216, 0.5); }
.s-card-ex .sex-bar-sell span em { color: #f0b75a; font-style: normal; }
.s-card-ex .sex-bar-sell span b { color: #9cc3e6; }
.s-card-ten { grid-column: 1 / -1; background: linear-gradient(180deg, #faf6fd 0%, #efe6f7 100%); border: 1px solid rgba(139, 115, 178, 0.45); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; }
.s-card-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #efeaf5; color: #6f4fc0; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.s-card-head { display: flex; align-items: center; gap: 10px; }
.s-cat-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--brown-soft); color: var(--brown); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.s-card-title { font-size: 14px; font-weight: 800; color: var(--text); }
.s-card-sub { font-size: 11px; color: var(--weak); margin-top: 2px; line-height: 1.5; }
.s-card-ex .s-card-sub { white-space: normal; }
.s-card-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-gold); flex-wrap: wrap; }

/* 锻造卡片式升级 */
.forge-card {
  background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.forge-card:hover { transform: translateX(3px); }
.forge-card-head { display: flex; align-items: center; gap: 12px; }
.fc-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--brown-soft); color: var(--brown); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.fc-ico[data-q="0"] { color: var(--q0); }
.fc-ico[data-q="1"] { color: var(--q1); background: var(--green-soft); }
.fc-ico[data-q="2"] { color: var(--q2); background: rgba(79, 127, 168, 0.14); }
.fc-ico[data-q="3"] { color: var(--q3); background: rgba(132, 113, 158, 0.16); }
.fc-ico[data-q="4"] { color: var(--q4); background: rgba(185, 121, 42, 0.16); }
.fc-ico[data-q="5"] { color: var(--q5); background: rgba(173, 74, 67, 0.14); }
.fc-info { flex: 1; min-width: 0; }
.fc-name { font-size: 14px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.fc-name span[data-q] { font-weight: 800; }
.fc-name span[data-q="0"] { color: var(--q0); }
.fc-name span[data-q="1"] { color: var(--q1); }
.fc-name span[data-q="2"] { color: var(--q2); }
.fc-name span[data-q="3"] { color: var(--q3); }
.fc-name span[data-q="4"] { color: var(--q4); }
.fc-name span[data-q="5"] { color: var(--q5); }
.fc-enh { font-size: 11px; color: var(--gold); font-weight: 800; }
.fc-formula { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; font-size: 11px; }
.fc-mat { color: var(--sub); background: #fff; border: 1px solid var(--line-gold); border-radius: 5px; padding: 1px 6px; }
.fc-plus { color: var(--weak); font-weight: 800; }
.fc-arrow { color: var(--gold); margin: 0 2px; }
.fc-out { color: var(--green); }
.fc-mat-tip { color: var(--weak); }
.fc-rate { color: var(--gold); font-weight: 800; }
.f-tag { font-size: 10px; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.f-tag-ok { color: var(--green); background: var(--green-soft); }
.f-tag-no { color: var(--red); background: var(--red-soft); }
.fc-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-gold); }
.fc-qty { font-size: 11px; color: var(--weak); font-weight: 700; }
.fc-btn { height: 32px; }
.fc-foot .btn { padding: 6px 14px; font-size: 12px; }

/* 定向打造 */
.dir-intro { padding: 0 2px; font-size: 12px; color: var(--weak); margin-bottom: 6px; line-height: 1.7; }
.dir-hint { font-size: 11px; color: var(--gold); font-weight: 700; padding: 0 2px; margin-bottom: 10px; }
.dir-hint-sub { color: var(--weak); font-weight: 400; }
.dir-sec { margin-bottom: 14px; }
.dir-sec-title {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  color: var(--brown); margin: 0 2px 8px;
}
.dir-sec-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #c9a86a, #a8873a); }
.dir-sec-tag { font-size: 10px; color: var(--weak); font-weight: 600; }
.dir-card {
  background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #8a9db8; border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dir-card:hover { transform: translateX(3px); }
.dir-card.locked { border-left-color: #c0bbb0; opacity: 0.72; }
.dir-card.locked .dir-craft { display: none; }
.dir-head { display: flex; align-items: center; gap: 12px; }
.dir-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7c9ba8, #54707e);
  box-shadow: 0 2px 6px rgba(84, 112, 126, 0.35);
}
.dir-ico.set { background: linear-gradient(135deg, #9c93b0, #6f6a80); box-shadow: 0 2px 6px rgba(111, 106, 128, 0.35); }
.dir-meta { flex: 1; min-width: 0; }
.dir-name { font-size: 14px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.dir-kind { font-size: 9px; font-weight: 700; flex-shrink: 0; border-radius: 4px; padding: 1px 6px; line-height: 1.6; }
.dir-kind.slot { color: #3f6fb5; background: rgba(79, 127, 168, 0.12); border: 1px solid #3f6fb5; }
.dir-kind.set { color: #8a6bc9; background: rgba(138, 107, 201, 0.12); border: 1px solid #8a6bc9; }
.dir-desc { font-size: 11px; color: var(--weak); margin-top: 3px; line-height: 1.6; }
.dir-count { flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--weak); }
.dir-count.on { color: var(--gold); background: rgba(201, 168, 106, 0.14); border-radius: 999px; padding: 3px 10px; }
.dir-locked-tip { font-size: 11px; color: var(--weak); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-gold); }
.dir-craft { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-gold); }
.dir-q-label { font-size: 11px; color: var(--sub); font-weight: 700; margin-bottom: 6px; }
.dir-q-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dir-q {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 5px 10px; cursor: pointer; transition: all 0.15s ease;
}
.dir-q i { font-style: normal; font-size: 9px; color: var(--weak); }
.dir-q:hover { border-color: var(--gold); }
.dir-q.on { border-color: #c9a86a; background: linear-gradient(180deg, #fdf6e3, #f4e7c4); box-shadow: 0 1px 4px rgba(201, 168, 106, 0.3); }
.dir-q.on { color: #7a5c2e; }
.dir-q.on i { color: #a8873a; }
.dir-q[data-q="4"].on { border-color: #b9792a; background: linear-gradient(180deg, #fdf3e0, #f6e2c4); }
.dir-q[data-q="4"].on i { color: #a8651d; }
.dir-q-fixed { font-style: normal; font-weight: 800; font-size: 12px; }
.dir-q-fixed.q5 { color: #c0552f; }
.dir-q-fixed.q4 { color: #b9792a; }
.dir-q-fixed.q3 { color: #7a9bd8; }
.dir-q-fixed.q2 { color: #6f8f4f; }
.dir-slot-row .dir-q { flex-direction: row; gap: 4px; padding: 6px 12px; }
.dir-slot { font-size: 12px; color: var(--brown); font-weight: 600; }
.dir-slot.on { border-color: #c9a86a; background: linear-gradient(180deg, #fdf6e3, #f4e7c4); box-shadow: 0 1px 4px rgba(201, 168, 106, 0.3); color: #7a5c2e; }
.dir-card-set { border-left-color: #b08bd0; }
.dir-card-set.locked { border-left-color: #c0bbb0; }
.dir-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.dir-cost { font-size: 11px; color: var(--weak); }
.dir-cost b { color: var(--brown); font-weight: 700; margin-left: 4px; }
.dir-btn { height: 32px; flex-shrink: 0; }
@media (max-width: 640px) {
  .dir-foot { flex-wrap: wrap; }
  .dir-btn { width: 100%; }
}

@media (max-width: 640px) {
  .s-card-head, .forge-card-head { flex-wrap: wrap; }
  .s-cat-price { width: 100%; text-align: left; }
  .fc-result { max-width: 100%; width: 100%; text-align: left; }
}

/* 排行 */
.rank-list { padding: 12px 16px; }
.rank-summary {
  display: flex; align-items: center; gap: 12px; position: relative; margin-bottom: 12px;
  background: linear-gradient(135deg, #5f4b28 0%, #453a1e 55%, #3d3520 100%);
  border: 1px solid rgba(197, 168, 106, 0.35); border-radius: 12px; padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(42, 42, 38, 0.18);
}
.rank-summary::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #c9a86a, rgba(201, 168, 106, 0));
}
.rank-summary .rs-ico {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%);
  border: 1px solid rgba(255, 226, 160, 0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #5c4a12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.rank-summary .rs-title { font-size: 15px; font-weight: 800; color: #f5ecd8; letter-spacing: 1px; }
.rank-summary .rs-sub { font-size: 12px; color: rgba(245, 236, 216, 0.8); margin-top: 2px; }
.rank-summary .rs-my { color: #f0d488; font-weight: 800; font-size: 14px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #d7d3c8;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.rank-row .r-no {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--weak);
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
}
.rank-row.top1 { border-left-color: #c9a86a; }
.rank-row.top2 { border-left-color: #b9b6ae; }
.rank-row.top3 { border-left-color: #c98d4f; }
.rank-row .r-no.top1 { background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%); border-color: rgba(122, 95, 46, 0.3); color: #5c4a12; }
.rank-row .r-no.top2 { background: linear-gradient(180deg, #efefef 0%, #cfcfc9 100%); border-color: rgba(90, 90, 90, 0.25); color: #5a5a5a; }
.rank-row .r-no.top3 { background: linear-gradient(180deg, #f0c08a 0%, #cf9452 100%); border-color: rgba(122, 80, 40, 0.3); color: #5c3412; }
.rank-row .r-main { flex: 1; min-width: 0; }
.rank-row .r-name { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.rank-row .r-me { font-size: 10px; color: #fff; background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.rank-row .r-info { font-size: 12px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .r-score { font-size: 12px; color: var(--brown); font-weight: 700; text-align: right; flex-shrink: 0; }
.rank-row .r-score b { font-size: 14px; color: var(--gold); }
.rank-row { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.rank-row:hover { transform: translateX(3px); box-shadow: 0 4px 12px rgba(122, 95, 46, 0.18); }
.empty-tip { text-align: center; color: var(--weak); padding: 40px 0; font-size: 12px; }

/* 排行榜：竞争差距 + 我的行高亮 */
.rk-gap {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #e8cf9a;
  background: rgba(201, 168, 106, 0.16); border: 1px solid rgba(232, 207, 154, 0.35);
  border-radius: 6px; padding: 2px 8px; letter-spacing: 0.5px;
}
.rank-row.mine {
  border-color: #c9a86a;
  background: linear-gradient(180deg, #fdf6e0 0%, #f6ecd0 100%);
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.5), 0 0 18px rgba(201, 168, 106, 0.3);
}
.rank-row .r-info .mine-gap { color: var(--gold); font-weight: 700; }

/* 排行榜：前三名荣誉领奖台 */
.rk-podium { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.rk-hero-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rk-hero-card:hover { transform: translateX(3px); }
.rk-hero-card.crown {
  background: linear-gradient(135deg, #3b2d15 0%, #5a431f 50%, #33250f 100%);
  border: 1px solid rgba(232, 207, 154, 0.5);
  box-shadow: 0 6px 22px rgba(90, 62, 20, 0.42), inset 0 1px 0 rgba(255, 235, 190, 0.16);
}
.rk-hero-card.vice {
  background: linear-gradient(135deg, #2e3136 0%, #484e56 50%, #26292e 100%);
  border: 1px solid rgba(200, 205, 214, 0.4);
  box-shadow: 0 5px 18px rgba(40, 45, 52, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rk-hero-card.third {
  background: linear-gradient(135deg, #3a2a18 0%, #5a3f22 50%, #2f2013 100%);
  border: 1px solid rgba(214, 150, 90, 0.45);
  box-shadow: 0 5px 18px rgba(90, 58, 30, 0.42), inset 0 1px 0 rgba(255, 220, 180, 0.14);
}
/* 领奖台流光扫过 */
.rk-hero-card::after {
  content: ''; position: absolute; top: 0; left: -50%; width: 40%; height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 235, 190, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); animation: rkScan 6s ease-in-out infinite; pointer-events: none;
}
@keyframes rkScan { 0%, 55% { left: -50%; } 90%, 100% { left: 130%; } }
.rk-hero-card .rk-hc-medal {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; border: 1px solid rgba(255, 255, 255, 0.25);
}
.rk-hero-card.crown .rk-hc-medal {
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); color: #5c4a12;
  box-shadow: 0 0 20px rgba(255, 215, 130, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.rk-hero-card.vice .rk-hc-medal {
  background: linear-gradient(180deg, #f7f7f7, #b6b6b6); color: #4a4a4a;
  box-shadow: 0 0 16px rgba(220, 225, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.rk-hero-card.third .rk-hc-medal {
  background: linear-gradient(180deg, #f2c48f, #c98a4f); color: #5c3412;
  box-shadow: 0 0 16px rgba(226, 150, 80, 0.5), inset 0 1px 0 rgba(255, 235, 210, 0.6);
}
.rk-hero-card .rk-hc-meta { flex: 1; min-width: 0; }
.rk-hero-card .rk-hc-title {
  font-size: 15px; font-weight: 800; color: #f5ecd8;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-hero-card.crown .rk-hc-title { text-shadow: 0 0 16px rgba(255, 224, 160, 0.45); }
.rk-hero-card .rk-hc-sub { font-size: 11px; color: rgba(235, 226, 205, 0.72); margin-top: 3px; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-hero-card .rk-hc-score { text-align: right; flex-shrink: 0; }
.rk-hero-card .rk-hc-score .v {
  font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffe9a8, #d4a63c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rk-hero-card.vice .rk-hc-score .v { background: linear-gradient(180deg, #f7f7f7, #a9a9a9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-hero-card.third .rk-hc-score .v { background: linear-gradient(180deg, #f2c48f, #c97a3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-hero-card .rk-hc-score .k { font-size: 10px; color: rgba(235, 226, 205, 0.6); letter-spacing: 1px; margin-top: 2px; }
.rk-hero-card.mine { box-shadow: 0 0 0 1px #e8cf9a, 0 0 26px rgba(232, 207, 154, 0.55); }

/* 邮件 */
.mail-list { padding: 12px 16px; }
.mail-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.mail-card.unread { border-color: var(--green); }
.mail-card .m-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mail-card .m-head { display: flex; align-items: center; gap: 8px; }
.mail-card .m-new { font-size: 10px; color: var(--red); }
.mail-card .m-claimed { font-size: 11px; color: var(--green); font-weight: 700; }
.mail-card .m-content { font-size: 12px; color: var(--sub); margin: 6px 0; }
.mail-card .m-item { font-size: 11px; color: var(--orange); }
.mail-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mail-item {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  background: #fff; border: 1px solid var(--line-gold); border-radius: 8px; font-size: 12px;
}
.mail-item .mi-ico {
  width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 5px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); color: var(--brown); font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.mail-item .mi-name { font-weight: 700; color: var(--text); }
.mail-item .mi-name[data-q="0"] { color: var(--q0); }
.mail-item .mi-name[data-q="1"] { color: var(--q1); }
.mail-item .mi-name[data-q="2"] { color: var(--q2); }
.mail-item .mi-name[data-q="3"] { color: var(--q3); }
.mail-item .mi-name[data-q="4"] { color: var(--q4); }
.mail-item .mi-name[data-q="5"] { color: var(--q5); }
.mail-item .mi-qty { font-size: 11px; color: var(--weak); }

/* 设置 */
.settings-list { padding: 12px 16px; }
.settings-group { margin-bottom: 16px; }
.settings-group:last-of-type { margin-bottom: 4px; }
.sg-title {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: 1px; margin: 0 2px 8px;
}
.sg-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), rgba(122, 95, 46, 0.3)); }
.setting-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.setting-row .k { font-size: 14px; font-weight: 600; }
.setting-row .btn { height: 32px; font-size: 12px; padding: 0 14px; }
.setting-tip { font-size: 11px; color: var(--weak); padding: 0 4px 10px; margin-top: -4px; line-height: 1.6; }
.pct-group { display: flex; gap: 6px; }
.pct-group button {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all 0.15s;
}
.pct-group button.on { background: linear-gradient(180deg, #8d7040, #6f5530); border-color: #6f5530; color: #fff; font-weight: 700; }

/* 个人资料编辑面板 */
.pe-avatar-row {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 12px;
  padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.pe-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(180deg, #8d7040, #6f5530);
  color: #fff; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.pe-avatar-ops { flex: 1; }

/* Toast */
#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 120px; z-index: 200;
  background: linear-gradient(180deg, rgba(48, 44, 36, 0.92) 0%, rgba(35, 32, 27, 0.94) 100%);
  color: #f5ecd8; font-size: 13px; line-height: 1.55; padding: 11px 16px; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  max-width: min(84vw, 420px); width: fit-content; text-align: center;
  white-space: pre-line; word-break: break-word;
  border: 1px solid rgba(201, 168, 106, 0.35);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
#toast.show { opacity: 1; }
#toast::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 3px 3px 0; background: rgba(201, 168, 106, 0.65);
}
#toast.t-ok { border-color: rgba(46, 116, 100, 0.55); }
#toast.t-ok::before { background: var(--green); }
#toast.t-err { border-color: rgba(168, 72, 66, 0.55); }
#toast.t-err::before { background: var(--red); }
#toast.t-warn { border-color: rgba(160, 106, 53, 0.55); }
#toast.t-warn::before { background: var(--orange); }

/* 底部操作弹层 */
#action-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--bg);
  border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); padding: 16px 16px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%); transition: transform 0.3s;
}
#action-sheet.open { transform: translateY(0); }
#action-sheet .as-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#action-sheet .as-title { font-size: 15px; font-weight: 800; text-align: center; flex: 1; }
#action-sheet .as-close {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(180deg, #f1ede6 0%, #e7e1d4 100%); color: var(--sub);
  font-size: 14px; line-height: 1; flex-shrink: 0;
}
#action-sheet .as-close:hover { filter: brightness(0.96); }
#action-sheet .as-info { font-size: 12px; color: var(--sub); line-height: 1.8; margin-bottom: 14px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 10px; padding: 10px; }
#action-sheet .confirm-msg { font-size: 13px; color: var(--text); line-height: 1.9; padding: 4px 2px; }
.p-lock { text-align: center; }
.p-lock-ico { width: 48px; height: 48px; margin: 4px auto 10px; border-radius: 14px; background: linear-gradient(180deg, #8a8f86, #6b7066); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.p-lock-desc { font-size: 12.5px; color: var(--sub); line-height: 1.7; margin-bottom: 8px; }
.p-lock-need { display: inline-block; margin: 4px auto; padding: 3px 12px; border-radius: 999px; background: #f7ecc8; color: #8a6d1f; font-size: 12px; font-weight: 700; }
.p-lock-now { margin-top: 8px; font-size: 11px; color: var(--weak); }
.recast-list { display: flex; flex-direction: column; gap: 2px; }
.recast-list.q-0 .recast-affix { color: #a8a8a2; }
.recast-list.q-1 .recast-affix { color: #2e7464; }
.recast-list.q-2 .recast-affix { color: #4f7fa8; }
.recast-list.q-3 .recast-affix { color: #84719e; }
.recast-list.q-4 .recast-affix { color: #b9792a; }
.recast-list.q-5 .recast-affix { color: #ad4a43; }
.recast-affix { font-weight: 600; }
.recast-affix input { accent-color: var(--green); }
#action-sheet .as-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ================= 手动逐回合战斗面板 ================= */
.mb-arena {
  position: relative; overflow: hidden;
  font-size: 12.5px; color: #f0e6d6; line-height: 1.5;
  background:
    radial-gradient(ellipse at 50% -6%, rgba(130, 180, 245, 0.2), transparent 50%),
    radial-gradient(ellipse at 50% 112%, rgba(160, 90, 220, 0.12), transparent 52%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.04), transparent 62%),
    linear-gradient(178deg, #232a38 0%, #171b25 55%, #10141b 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px; padding: 12px 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.42);
}
.mb-arena::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,199,94,0.6), transparent);
  opacity: 0.85; z-index: 1; pointer-events: none;
}
.mb-arena.finish-win { border-color: rgba(240, 199, 94, 0.55); box-shadow: inset 0 0 0 1px rgba(240, 199, 94, 0.25), 0 8px 24px rgba(0,0,0,0.42), 0 0 26px rgba(240, 199, 94, 0.18); }
.mb-arena.finish-lose { border-color: rgba(214, 84, 74, 0.6); box-shadow: inset 0 0 0 1px rgba(214, 84, 74, 0.3), 0 8px 24px rgba(0,0,0,0.42), 0 0 26px rgba(214, 84, 74, 0.2); }

/* 顶部回合横幅 */
.mb-banner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 10px; position: relative; z-index: 1; }
.mb-banner-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,199,94,0.45)); }
.mb-banner-line:last-of-type { background: linear-gradient(90deg, rgba(240,199,94,0.45), transparent); }
.mb-bw { font-weight: 800; color: #f0c75e; font-size: 12.5px; letter-spacing: 1px; text-shadow: 0 0 12px rgba(240,199,94,0.4); }
.mb-bw b { font-size: 16px; }
.mb-banner-gem { width: 6px; height: 6px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #ffe9a8, #c8902a); box-shadow: 0 0 8px rgba(240,199,94,0.8); }
.mb-br { font-size: 11px; font-weight: 700; color: #cdd6e2; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); border-radius: 999px; padding: 2px 10px; }
.mb-br b { color: #fff; font-size: 12px; }

/* 阵营：敌方上 / 我方下，居中纵向布局 */
.mb-cast { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.mb-cast-hero { margin-top: 2px; }

/* 头像 + 旋转光环 + 底部投影 */
.mb-avatar-wrap { position: relative; flex-shrink: 0; margin: 8px 0 4px; }
.mb-cast-hero .mb-avatar-wrap { margin: 10px 0 2px; }
.mb-avatar {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff; z-index: 2;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1), 0 4px 14px rgba(0,0,0,0.4);
}
.mb-cast-foe .mb-avatar { background: radial-gradient(circle at 34% 28%, #ef7a5a, #8f2418); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.mb-cast-hero .mb-avatar { background: radial-gradient(circle at 34% 28%, #6ab0ef, #24518f); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.mb-aura {
  position: absolute; inset: -7px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70deg, rgba(255,255,255,0.5) 90deg, transparent 110deg 190deg, rgba(255,255,255,0.35) 210deg, transparent 230deg 360deg);
  opacity: 0.5; filter: blur(1px); animation: mbAuraSpin 5s linear infinite;
}
.mb-cast-foe .mb-aura { background: conic-gradient(from 0deg, transparent 0 70deg, rgba(255,150,120,0.55) 90deg, transparent 110deg 190deg, rgba(255,150,120,0.4) 210deg, transparent 230deg 360deg); }
.mb-shadow { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); width: 74px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 65%); filter: blur(3px); z-index: 0; }
@keyframes mbAuraSpin { to { transform: rotate(360deg); } }
.mb-avatar-wrap.shielded .mb-avatar { box-shadow: 0 0 0 3px rgba(129,178,244,0.7), 0 0 22px rgba(129,178,244,0.5), 0 4px 14px rgba(0,0,0,0.4); }
.mb-avatar-wrap.shielded .mb-aura { opacity: 0.95; }

/* 名字 / 属性 / 词缀 */
.mb-fname, .mb-hname { font-size: 15px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92%; }
.mb-fname { color: #ffcfc0; text-shadow: 0 1px 3px rgba(160, 30, 20, 0.6); }
.mb-hname { color: #cfe4ff; text-shadow: 0 1px 3px rgba(30, 70, 140, 0.6); }
.mb-fstat, .mb-hstat { font-size: 11px; color: #cdd6e2; margin-top: 3px; letter-spacing: 0.3px; }
.mb-affix { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 5px 0 0; }
.mb-affix-pill { font-size: 9.5px; color: #ffd9a0; background: rgba(240, 199, 94, 0.12); border: 1px solid rgba(240, 199, 94, 0.4); border-radius: 999px; padding: 1px 8px; }

/* 血条 */
.mb-hpbar { position: relative; width: 200px; max-width: 88%; height: 16px; border-radius: 8px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.14); overflow: hidden; margin: 7px auto 0; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.mb-hpbar .mb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transition: width 0.35s ease; }
.mb-hpbar::before { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 3px; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,0.32), transparent); z-index: 2; }
.mb-hpbar > span { position: absolute; left: 0; right: 0; top: 0; bottom: 0; line-height: 16px; text-align: center; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.75); z-index: 3; }
.mb-hpbar.monster .mb-fill { background: linear-gradient(90deg, #9e2f22, #e05240); box-shadow: 0 0 9px rgba(224, 82, 64, 0.45); }
.mb-hpbar.pet .mb-fill { background: linear-gradient(90deg, #6a4fb0, #a08fe0); }
.mb-hpbar.player .mb-fill { background: linear-gradient(90deg, #1e8449, #2ecc71); box-shadow: 0 0 9px rgba(46, 204, 113, 0.4); }
.mb-hpbar.hp-mid .mb-fill { background: linear-gradient(90deg, #c47f10, #f0b040); box-shadow: 0 0 9px rgba(240, 176, 64, 0.4); }
.mb-hpbar.hp-low .mb-fill { background: linear-gradient(90deg, #a0271e, #e74c3c); box-shadow: 0 0 11px rgba(231, 76, 60, 0.55); animation: mbLowPulse 0.8s ease infinite; }
@keyframes mbLowPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.55); } }
.mb-pet { margin-top: 6px; font-size: 10.5px; color: #cbbdee; }
.mb-pet .mb-hpbar { width: 150px; }

/* 交锋分隔 */
.mb-clash { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; position: relative; z-index: 1; }
.mb-clash-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 199, 94, 0.45), transparent); }
.mb-clash-core {
  font-size: 11px; font-weight: 800; letter-spacing: 3px; color: #f0c75e;
  padding: 2px 12px; border: 1px solid rgba(240,199,94,0.35); border-radius: 999px;
  background: rgba(240,199,94,0.08); text-shadow: 0 0 10px rgba(240,199,94,0.5);
}

/* 资源 */
.mb-ener { display: flex; align-items: center; gap: 8px; margin: 11px 0 9px; position: relative; z-index: 1; }
.mb-ener-label { font-size: 11px; font-weight: 700; color: #cdd6e2; flex-shrink: 0; }
.mb-ll { width: 42px; font-size: 11px; color: #cdd6e2; flex-shrink: 0; }
.mb-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.12); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.mb-bar .mb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; transition: width 0.35s ease; }
.mb-bar::before { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 3px; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent); z-index: 2; }
.mb-bar.energy { flex: 1; }
.mb-bar.energy .mb-fill { background: linear-gradient(90deg, #2471a3, #5dade2); box-shadow: 0 0 8px rgba(93, 173, 226, 0.4); }
.mb-num { width: 52px; font-size: 11px; color: #e8ecf3; text-align: right; flex-shrink: 0; }
.mb-combo-dots { flex: 1; display: flex; gap: 8px; justify-content: center; }
.mb-combo-dots i { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); transition: all 0.25s ease; }
.mb-combo-dots i.on { background: radial-gradient(circle at 35% 30%, #ffe9a8, #e0a83a); border-color: #ffe9a8; box-shadow: 0 0 10px rgba(240, 199, 94, 0.6); }
.mb-combo-num { font-size: 11px; font-weight: 700; color: #e8ecf3; flex-shrink: 0; }

/* 战斗日志 */
.mb-log { max-height: 96px; overflow-y: auto; background: rgba(0,0,0,0.34); border: 1px solid rgba(255,255,255,0.07); border-radius: 9px; padding: 6px 9px; font-size: 11.5px; color: #dbe3ef; line-height: 1.7; scrollbar-width: thin; position: relative; z-index: 1; }
.mb-ln.crit { color: #ffe066; font-weight: 800; text-shadow: 0 0 8px rgba(255, 224, 102, 0.35); }
.mb-ln.hurt { color: #ff9b85; }
.mb-ln.heal { color: #7ce0a0; }
.mb-ln.miss { color: #8fd3ff; }
.mb-ln.shield { color: #a9c7f0; }
.mb-ln.pet { color: #c9b8f2; }
.mb-ln.info { color: #f0c75e; }
.mb-ln.dmg { color: #f2ead8; }

/* 技能按钮（圆形图标） */
.mb-skillbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
#action-sheet .as-btns .mb-skillbar { grid-column: 1 / -1; display: grid; }
.mb-skill { position: relative; border: none; background: transparent; padding: 2px 0 4px; text-align: center; cursor: pointer; border-radius: 10px; transition: transform 0.08s ease; }
.mb-skill:hover { transform: translateY(-2px); }
.mb-skill:active { transform: scale(0.93); }
.mb-sk-ring {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 50%;
  background: linear-gradient(150deg, #d6b26c, #9a7a3f);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.35), inset 0 -3px 5px rgba(0,0,0,0.25), 0 3px 8px rgba(0,0,0,0.35);
}
.mb-sk-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: linear-gradient(150deg, #f4e8c8, #d9c088); box-shadow: inset 0 1px 2px rgba(255,255,255,0.7); }
.mb-skill.attack .mb-sk-ring { background: linear-gradient(150deg, #4fae6f, #2e7d4a); }
.mb-skill.attack .mb-sk-ring::before { background: linear-gradient(150deg, #d5f0dc, #a8d8b6); }
.mb-skill.guard .mb-sk-ring { background: linear-gradient(150deg, #5a93c2, #31608f); }
.mb-skill.guard .mb-sk-ring::before { background: linear-gradient(150deg, #d5e7f4, #a6c4dd); }
.mb-skill.ready .mb-sk-ring { box-shadow: inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.25), 0 0 0 2px rgba(240, 199, 94, 0.55), 0 0 14px rgba(240, 199, 94, 0.45); animation: mbReadyPulse 1.4s ease infinite; }
@keyframes mbReadyPulse { 0%, 100% { box-shadow: inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.25), 0 0 0 2px rgba(240, 199, 94, 0.55), 0 0 14px rgba(240, 199, 94, 0.45); } 50% { box-shadow: inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.25), 0 0 0 2px rgba(240, 199, 94, 0.85), 0 0 20px rgba(240, 199, 94, 0.6); } }
.mb-sk-ico { position: relative; z-index: 1; font-size: 19px; font-weight: 800; color: #4d3a12; text-shadow: 0 1px 1px rgba(255,255,255,0.4); }
.mb-skill.attack .mb-sk-ico { color: #1e5c34; }
.mb-skill.guard .mb-sk-ico { color: #1f4a70; }
.mb-skill[disabled] { opacity: 0.45; cursor: not-allowed; animation: none; }
.mb-skill[disabled] .mb-sk-ring { filter: grayscale(0.85); }
.mb-skill[disabled]:hover { transform: none; }
.mb-sk-name { display: block; font-size: 11px; font-weight: 700; color: #e9e2d0; }
.mb-sk-cost { display: block; font-size: 10px; color: #d3dbe7; margin-top: 1px; }
.mb-sk-cd {
  position: absolute; inset: 3px; border-radius: 50%; z-index: 3;
  background: rgba(28, 32, 42, 0.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; backdrop-filter: blur(1px);
}
.mb-ctl { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.mb-ctl .btn { flex: 1; }

/* 战斗反馈动画 */
.mb-float { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-size: 15px; font-weight: 900; pointer-events: none; z-index: 9; animation: mbFloatUp 0.9s ease forwards; text-shadow: 0 2px 6px rgba(0,0,0,0.65); white-space: nowrap; }
.mb-float.dmg { color: #ffd9a0; }
.mb-float.crit { color: #ffe066; font-size: 19px; text-shadow: 0 0 12px rgba(255, 224, 102, 0.65); }
.mb-float.hurt { color: #ff9b85; }
.mb-float.heal { color: #7ce0a0; }
.mb-float.miss { color: #8fd3ff; }
.mb-float.shield { color: #a9c7f0; }
@keyframes mbFloatUp { 0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.7); } 20% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(1); } }

/* 受击抖动 */
.mb-arena.hit-foe .mb-cast-foe { animation: mbHit 0.3s ease; }
.mb-arena.hit-hero .mb-cast-hero { animation: mbHit 0.3s ease; }
.mb-arena.hit-foe .mb-cast-foe .mb-avatar, .mb-arena.hit-hero .mb-cast-hero .mb-avatar { animation: mbFlash 0.3s ease; }
@keyframes mbHit { 0% { transform: translateX(0); } 25% { transform: translateX(6px) rotate(0.4deg); } 50% { transform: translateX(-5px) rotate(-0.4deg); } 75% { transform: translateX(3px); } 100% { transform: translateX(0); } }
@keyframes mbFlash { 0% { filter: brightness(1); } 30% { filter: brightness(2.1) saturate(1.3); } 100% { filter: brightness(1); } }

/* 暴击闪屏 */
.mb-arena.crit-flash::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 224, 102, 0.4), transparent 60%);
  animation: mbCritFlash 0.55s ease forwards;
}
@keyframes mbCritFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }



/* 公告横幅（滚动播报） */
.notice-banner {
  margin: 8px 12px 0; background: linear-gradient(90deg, #f7f0dd, #f1e6c8); border: 1px solid var(--line-gold);
  color: var(--gold); border-radius: 10px; padding: 7px 12px; font-size: 12px; display: flex; gap: 8px; align-items: center;
  overflow: hidden; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.notice-banner .nb-tag {
  color: var(--orange); font-weight: 800; flex-shrink: 0;
  background: rgba(240, 164, 80, 0.14); border-radius: 4px; padding: 2px 6px;
}
.notice-banner .nb-track { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.notice-banner .nb-marquee { display: inline-block; white-space: nowrap; will-change: transform; }

/* 战斗结算浮层 */
 .battle-report { font-size: 12px; line-height: 1.8; max-height: 280px; overflow-y: auto; padding: 6px 10px 6px 4px; scrollbar-width: thin; }
 .battle-line { display: flex; gap: 8px; align-items: flex-start; padding: 3px 6px; margin: 1px 0; border-radius: 6px; animation: battleLineIn 0.25s ease; }
 .battle-line:hover { background: rgba(201, 168, 106, 0.06); }
 .battle-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px; box-shadow: 0 0 4px currentColor; }
 .battle-txt { flex: 1; min-width: 0; word-break: break-word; }
 .battle-line.event .battle-dot { background: #8a8779; }
 .battle-line.event .battle-txt { color: #4a443a; font-weight: 700; }
 .battle-line.battle .battle-dot { background: #5c7380; }
 .battle-line.battle .battle-txt { color: #54616b; }
 .battle-line.drop .battle-dot { background: #b9792a; }
 .battle-line.drop .battle-txt { color: #c07a1f; font-weight: 600; }
 .battle-line.skill .battle-dot { background: #84719e; }
 .battle-line.skill .battle-txt { color: #7c5bb8; font-weight: 600; }
 .battle-line.reward .battle-dot { background: #2e7464; }
 .battle-line.reward .battle-txt { color: #2e7464; font-weight: 600; }
 .battle-line.exp .battle-dot, .battle-line.gold .battle-dot { background: #2e7464; }
 .battle-line.exp .battle-txt, .battle-line.gold .battle-txt { color: #2e7464; font-weight: 600; }
 .battle-line.sub .battle-dot { background: #b8b6ae; }
 .battle-line.sub .battle-txt { color: #9a988e; }
 .battle-result { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-weight: 800; text-align: center; font-size: 13px; letter-spacing: 2px; animation: battleLineIn 0.3s ease; }
 .battle-result.win { background: var(--green-soft); color: var(--green); }
 .battle-result.lose { background: var(--red-soft); color: var(--red); }
 @keyframes battleLineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
 /* 战斗滚动播报关键词高亮（作用域覆盖 battle-report 与 td-battle-log） */
 .battle-report .hl-dmg, .td-battle-log .hl-dmg { color: #ad4a43; font-weight: 700; }
 .battle-report .hl-heal, .td-battle-log .hl-heal { color: #2e7464; font-weight: 700; }
 .battle-report .hl-shield, .td-battle-log .hl-shield { color: #4b7aa6; font-weight: 700; }
 .battle-report .hl-crit, .td-battle-log .hl-crit { color: #b9792a; font-weight: 800; }
 .battle-report .hl-evade, .td-battle-log .hl-evade { color: #4b7aa6; font-weight: 700; }
 .battle-report .hl-exp, .td-battle-log .hl-exp { color: #2e8b57; font-weight: 700; }
 .battle-report .hl-gold, .td-battle-log .hl-gold { color: #b8860b; font-weight: 700; }
 .battle-report .hl-qty, .td-battle-log .hl-qty { color: #e05a5a; font-weight: 800; }

/* 属性帮助提示 */
.help-tip { font-size: 12px; color: var(--sub); background: #faf8f4; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }

/* 好友 */
.friend-search { display: flex; gap: 8px; padding: 10px 16px; }.friend-search .form-input { flex: 1; height: 38px; }
.friend-search .btn { height: 38px; padding: 0 14px; font-size: 13px; }
#friend-search-result { padding: 0 16px; }
.friend-list { padding: 12px 16px; }
.friend-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.friend-card .f-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); border: 1px solid rgba(122, 95, 46, 0.15); color: var(--brown); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.friend-card .f-info { flex: 1; }
.friend-card .f-name { font-size: 14px; font-weight: 700; }
.friend-card .f-sub { font-size: 11px; color: var(--weak); }
.friend-card .f-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.friend-card .f-ops .btn { height: 28px; font-size: 11px; padding: 0 10px; }
.friend-sec {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--brown); padding: 12px 16px 6px; font-weight: 800;
  letter-spacing: 0.5px;
}
.friend-sec::before { content: ""; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }

/* 称号成就 */
#title-tabs { display: flex; gap: 8px; padding: 10px 16px 0; }
#title-tabs button { flex: 1; border: 1px solid var(--line-gold); background: #fff; font-size: 13px; padding: 8px 0; border-radius: 8px; cursor: pointer; color: var(--sub); transition: all 0.15s; }
#title-tabs button.on { background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-color: transparent; color: #fff; font-weight: 700; box-shadow: var(--shadow); }
.ach-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 12px; margin: 8px 16px; box-shadow: var(--shadow); }
.ach-card.done { border-color: var(--line-gold); border-left-color: var(--green); background: linear-gradient(180deg, #f6fbf7 0%, #eef7ef 100%); }
.ach-head { display: flex; align-items: center; gap: 10px; }
.ach-icon {
  width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--brown); flex-shrink: 0;
}
.ach-icon.ready { background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%); border-color: rgba(122, 95, 46, 0.3); color: #5c4a12; }
.ach-icon.claimed { background: linear-gradient(180deg, #4c9a6a 0%, #387a50 100%); border-color: rgba(30, 90, 60, 0.35); color: #fff; }
.ach-icon.todo { color: var(--weak); filter: grayscale(0.5); }
.ach-name { font-size: 14px; font-weight: 700; flex: 1; }
.ach-state { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ach-state.ready { color: #5c4a12; background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%); }
.ach-state.claimed { color: #fff; background: linear-gradient(180deg, #8da090 0%, #6f8375 100%); }
.ach-state.todo { color: var(--weak); background: #ece9e1; }
.ach-desc { font-size: 11px; color: var(--sub); margin: 6px 0; }
.ach-prog { height: 6px; border-radius: 3px; background: #e8e5dd; overflow: hidden; margin: 6px 0; }
.ach-prog .fill { height: 100%; background: linear-gradient(90deg, #f0d488, #c9a94f); border-radius: 3px; transition: width 0.3s; }
.ach-card.done .ach-prog .fill { background: linear-gradient(90deg, #7fbf97, #4c9a6a); }
.ach-prog-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--weak); margin-bottom: 4px; }
.ach-prog-meta .ach-pct { color: var(--gold); font-weight: 700; }
.ach-reward { font-size: 11px; color: var(--brown); background: rgba(201, 168, 106, 0.12); border: 1px solid rgba(122, 95, 46, 0.15); border-radius: 7px; padding: 4px 8px; display: inline-block; }
.ach-claim { width: 100%; height: 32px; font-size: 12px; margin-top: 8px; }
.title-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
.title-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 10px; padding: 10px; text-align: center; box-shadow: var(--shadow); position: relative; }
.title-card.owned { border-left: 4px solid #c9a86a; }
.title-card.locked { opacity: 0.6; filter: grayscale(0.5); }
.title-card .t-icon {
  width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 11px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--brown);
}
.title-card.owned .t-icon { background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%); border-color: rgba(122, 95, 46, 0.3); color: #5c4a12; }
.title-card.locked .t-icon { color: var(--weak); }
.title-card .t-name { font-size: 13px; font-weight: 700; margin-top: 4px; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 5px; }
.title-card .t-wearing {
  font-size: 10px; color: #fff; background: linear-gradient(180deg, #4c9a6a 0%, #387a50 100%);
  border-radius: 4px; padding: 1px 5px; font-weight: 700; white-space: nowrap;
}
.title-card .t-desc { font-size: 10px; color: var(--weak); margin-top: 2px; }
.title-card .t-bonus { font-size: 11px; color: var(--gold); margin: 3px 0; }
.title-card .t-cond { font-size: 10px; color: var(--weak); margin-top: 3px; }
.title-card .btn { width: 100%; height: 28px; font-size: 12px; margin-top: 6px; }
.title-card .t-wear-off { width: 100%; height: 28px; font-size: 12px; margin-top: 6px; }

/* ---------- 怪物图鉴 ---------- */
#bestiary-body { padding: 12px 16px; }
.besti-summary {
  display: flex; align-items: center; gap: 12px; position: relative;
  background: linear-gradient(135deg, #5f4b28 0%, #453a1e 55%, #3d3520 100%);
  border: 1px solid rgba(197, 168, 106, 0.35); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(42, 42, 38, 0.18);
}
.besti-summary::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #c9a86a, rgba(201, 168, 106, 0));
}
.besti-summary .bs-ico {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%);
  border: 1px solid rgba(255, 226, 160, 0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #5c4a12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.besti-summary .bs-meta { flex: 1; min-width: 0; }
.besti-summary .bs-title { font-size: 15px; font-weight: 800; color: #f5ecd8; letter-spacing: 1px; }
.besti-summary .bs-prog { font-size: 12px; color: rgba(245, 236, 216, 0.8); margin-top: 2px; }
.besti-summary .bs-num { font-size: 18px; font-weight: 800; color: #f0d488; }
.besti-summary .bs-total { color: rgba(245, 236, 216, 0.55); }
.besti-summary .bs-bar {
  position: absolute; left: 16px; right: 16px; bottom: 8px; height: 5px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.35); overflow: hidden; border: 1px solid rgba(197, 168, 106, 0.25);
}
.besti-summary .bs-bar .fill {
  height: 100%; background: linear-gradient(90deg, #f0d488, #c9a94f); border-radius: 3px;
}
.besti-areas { margin-bottom: 6px; }
.besti-area {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.besti-area.ready { border-left-color: var(--green); }
.besti-area .ba-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.besti-area .ba-head b { color: var(--brown); }
.besti-area .ba-cnt { font-size: 11px; font-weight: 700; color: var(--gold); }
.besti-area .ba-bar { height: 6px; border-radius: 3px; background: #e8e5dd; overflow: hidden; }
.besti-area .ba-bar .fill { height: 100%; background: linear-gradient(90deg, #9a7b3f, #7a5f2e); border-radius: 3px; transition: width 0.3s; }
.besti-area .ba-btn { width: 100%; height: 30px; font-size: 12px; margin-top: 8px; }
.besti-area .ba-claimed { font-size: 11px; color: var(--green); margin-top: 6px; }
.besti-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.mon-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 10px; padding: 10px 8px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.mon-card.owned { border-left: 4px solid #c9a86a; }
.mon-card.locked { opacity: 0.6; border-left: 4px solid #d7d3c8; filter: grayscale(0.4); }
.mon-card .mon-ico {
  width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 10px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--brown);
}
.mon-card.owned .mon-ico {
  background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%);
  border-color: rgba(122, 95, 46, 0.3); color: #5c4a12;
}
.mon-card.locked .mon-ico { color: var(--weak); }
.mon-card .mon-name { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-card .mon-sub { font-size: 10.5px; color: var(--weak); margin-top: 3px; }
.mon-card .mon-kill { color: var(--orange); }

/* ---------- 装备图鉴 ---------- */
.ecomp-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.ecomp-tabs button { border: 1px solid var(--line-gold); background: #fff; color: var(--sub); font-size: 11px; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: all 0.15s; }
.ecomp-tabs button.on { background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-color: transparent; color: #fff; font-weight: 700; }
.ecomp-tabs-2 { padding-top: 8px; }
.ecomp-tabs-2 button { border-color: var(--line); color: var(--sub); font-size: 10px; padding: 3px 8px; }
.ecomp-tabs-2 button.on { background: linear-gradient(180deg, #4a7a4f 0%, #3a6640 100%); }
#ecomp-body { padding: 12px 16px; }
.ecomp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.ecc-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #d7d3c8;
  border-radius: 10px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow);
}
.ecc-card.owned { border-left: 4px solid #c9a86a; }
.ecc-card.locked { opacity: 0.62; filter: grayscale(0.45); }
.ecc-card[data-q="0"].owned { border-left-color: var(--q0); }
.ecc-card[data-q="1"].owned { border-left-color: var(--q1); }
.ecc-card[data-q="2"].owned { border-left-color: var(--q2); }
.ecc-card[data-q="3"].owned { border-left-color: var(--q3); }
.ecc-card[data-q="4"].owned { border-left-color: var(--q4); }
.ecc-card[data-q="5"].owned { border-left-color: var(--q5); }
.ecc-card .ecc-ico {
  width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 10px;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  border: 1px solid rgba(122, 95, 46, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.ecc-card .ecc-char { font-size: 18px; font-weight: 800; color: var(--brown); font-style: normal; }
.ecc-card.locked .ecc-char { color: var(--weak); }
.ecc-card.owned .ecc-ico { background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%); border-color: rgba(122, 95, 46, 0.3); }
.ecc-card.owned .ecc-char { color: #5c4a12; }
.ecc-card .ecc-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-card .ecc-name[data-q="0"] { color: var(--q0); }
.ecc-card .ecc-name[data-q="1"] { color: var(--q1); }
.ecc-card .ecc-name[data-q="2"] { color: var(--q2); }
.ecc-card .ecc-name[data-q="3"] { color: var(--q3); }
.ecc-card .ecc-name[data-q="4"] { color: var(--q4); }
.ecc-card .ecc-name[data-q="5"] { color: var(--q5); }
.ecc-card .ecc-sub { font-size: 10px; color: var(--weak); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecc-card .ecc-stats { display: flex; justify-content: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.ecc-card .ecc-s { font-size: 10px; color: var(--sub); background: #fff; border: 1px solid var(--line-gold); border-radius: 5px; padding: 1px 5px; }
.ecc-card .ecc-s b { color: var(--brown); margin-right: 2px; }

/* 组队地下城 */
.td-sec-title { font-size: 14px; font-weight: 800; color: var(--brown); margin: 14px 0 8px; }
.td-empty { text-align: center; color: var(--weak); font-size: 12px; padding: 20px 0; }
.td-my-summary {
  background: linear-gradient(135deg, #6a4f1d 0%, #8a6a2a 55%, #a8873a 100%);
  border: 1px solid #d3b46a; border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 10px rgba(138, 106, 42, 0.35); margin-bottom: 10px;
  color: #fff8e7; position: relative; overflow: hidden;
}
.td-my-summary::after { content: ''; position: absolute; left: 35%; top: -14px; width: 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.65), transparent); }
.td-ms-badge { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: linear-gradient(160deg, #f7e9b6, #dfbe66); color: #6a4f1d; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), inset 0 -3px 0 rgba(106, 79, 29, 0.25); }
.td-ms-main { flex: 1; min-width: 0; }
.td-ms-title { font-size: 14px; font-weight: 800; letter-spacing: 1px; position: relative; z-index: 1; }
.td-ms-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; position: relative; z-index: 1; }
.td-ms-chip { font-size: 10px; font-weight: 600; color: #fff3d6; background: rgba(255, 248, 231, 0.14); border: 1px solid rgba(255, 244, 214, 0.35); border-radius: 999px; padding: 2px 9px; }
.td-ms-chip.td-ms-lead { color: #ffd97a; border-color: rgba(255, 217, 122, 0.5); }
.td-my-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.td-member-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow); position: relative;
}
.td-member-card.is-leader { border-color: #c9a86a; }
.td-member-card.is-leader::after { content: '队长'; position: absolute; top: -7px; right: 6px; font-size: 9px; color: #fff; background: linear-gradient(180deg, #f0d488, #c9a94f); border-radius: 4px; padding: 0 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.td-m-head { display: flex; align-items: center; gap: 8px; }
.td-m-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #e08a84, #c0564f); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.18); }
.td-m-avatar.td-r-tank { background: linear-gradient(135deg, #6f9be0, #3f6fb5); }
.td-m-avatar.td-r-heal { background: linear-gradient(135deg, #63c98c, #2e9e5b); }
.td-m-avatar.td-r-dps { background: linear-gradient(135deg, #e08a84, #c0564f); }
.td-m-avatar.td-r-supp { background: linear-gradient(135deg, #b095e0, #8a6bc9); }
.td-m-hi { flex: 1; min-width: 0; }
.td-m-name { font-size: 12px; font-weight: 800; color: var(--brown); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.td-m-role { font-size: 9px; font-weight: 700; flex-shrink: 0; border: 1px solid; border-radius: 4px; padding: 0 4px; line-height: 1.5; }
.td-m-sub { font-size: 9px; color: var(--weak); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-m-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-gold); }
.td-m-level { font-size: 9px; color: var(--weak); flex-shrink: 0; }
.td-m-power { font-size: 9px; color: var(--gold); font-weight: 700; flex: 1; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-member-card .btn-xs { margin: 0 0 0 auto; padding: 1px 7px; font-size: 10px; flex-shrink: 0; }
.td-empty-slot { border-style: dashed; background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px; }
.td-empty-slot .td-m-avatar { background: #e8e2d2; color: var(--weak); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.1); opacity: 0.7; }
.td-empty-slot .td-m-sub { margin-top: 0; }
.td-my-ops { display: flex; gap: 8px; margin-bottom: 6px; }
.td-my-ops .btn { flex: 1; }
.td-team-row {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; box-shadow: var(--shadow); margin-bottom: 8px;
}
.td-team-name { font-size: 13px; font-weight: 800; color: var(--brown); }
.td-team-ld { font-size: 11px; color: var(--weak); font-weight: 400; margin-left: 6px; }
.td-team-members { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.td-chip { font-size: 10px; background: #fff; border: 1px solid var(--line-gold); color: var(--sub); border-radius: 5px; padding: 1px 6px; }
.td-chip.td-r-tank, .td-m-role.td-r-tank { color: #3f6fb5; border-color: #3f6fb5; }
.td-chip.td-r-heal, .td-m-role.td-r-heal { color: #2e9e5b; border-color: #2e9e5b; }
.td-chip.td-r-dps, .td-m-role.td-r-dps { color: #c0564f; border-color: #c0564f; }
.td-chip.td-r-supp, .td-m-role.td-r-supp { color: #8a6bc9; border-color: #8a6bc9; }
.td-team-power { font-size: 10px; color: var(--weak); margin-top: 4px; }
.td-weak { color: #e05a5a; font-weight: 700; margin-left: 4px; }
.td-weak-bar {
  background: linear-gradient(180deg, #fdf6f6 0%, #f7e9e6 100%);
  border: 1px solid #e8c4bd; border-left: 4px solid #e05a5a; border-radius: 8px;
  font-size: 11px; color: #a34b3c; padding: 6px 10px; margin-bottom: 8px;
}
.td-running-bar {
  background: linear-gradient(180deg, #f6f4ff 0%, #ece9fb 100%);
  border: 1px solid #cfc6ec; border-left: 4px solid #7b68d6; border-radius: 8px;
  font-size: 11px; color: #57479e; padding: 6px 10px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.td-running-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #7b68d6; flex: none;
  animation: td-pulse 1s ease-in-out infinite;
}
@keyframes td-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
.td-running-tip { font-size: 12px; color: var(--sub); padding: 6px 2px; }
.td-pick-tip { font-size: 12px; color: var(--sub); margin: -4px 0 10px; }
.td-tabs {
  display: flex; gap: 8px; margin-bottom: 10px; background: #f4f1e8;
  border: 1px solid var(--line); border-radius: 10px; padding: 4px;
}
.td-tab {
  flex: 1; border: none; background: transparent; border-radius: 8px;
  padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--sub);
  cursor: pointer;
}
.td-tab.on { background: var(--brown); color: #fff; box-shadow: var(--shadow); }
.td-tab em {
  font-style: normal; font-size: 11px; background: #fff; color: var(--brown);
  border-radius: 10px; padding: 0 6px; margin-left: 4px;
}
.td-tab.on em { background: rgba(255,255,255,.25); color: #fff; }
.td-tab-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.td-tab-title { font-size: 13px; font-weight: 800; color: var(--brown); }
.td-m-role { font-size: 10px; font-weight: 700; border: 1px solid; border-radius: 4px; padding: 0 4px; }
.td-rec { font-size: 11px; color: var(--sub); margin-top: 4px; }
.td-rec b { color: var(--brown); }
.td-loot-row {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.td-loot-item { display: flex; align-items: baseline; gap: 8px; }
.td-loot-name { font-size: 13px; font-weight: 800; }
.td-loot-name[data-q="0"] { color: var(--q0); }
.td-loot-name[data-q="1"] { color: var(--q1); }
.td-loot-name[data-q="2"] { color: var(--q2); }
.td-loot-name[data-q="3"] { color: var(--q3); }
.td-loot-name[data-q="4"] { color: var(--q4); }
.td-loot-name[data-q="5"] { color: var(--q5); }
.td-loot-item span { font-size: 10px; color: var(--weak); }
.td-loot-rolls { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.td-loot-rolls span { font-size: 10px; background: #fff; border: 1px solid var(--line-gold); border-radius: 5px; padding: 1px 6px; color: var(--sub); }
.td-loot-rolls .td-roll.win { border-color: #c9a86a; color: #8a6a2a; font-weight: 700; background: linear-gradient(180deg, #fdf6e3, #f4e7c4); }
.td-loot-rolls .td-roll.me { outline: 1px solid #c9a86a; }
.td-loot-winner { font-size: 11px; color: var(--brown); margin-top: 6px; }
.td-loot-winner b { font-weight: 800; }
.td-result-row {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.td-result-row b { font-size: 13px; color: var(--brown); }
.td-result-row span { font-size: 11px; color: var(--weak); }
.td-result-row.win { border-left: 4px solid var(--green); }
.td-result-row.lose { border-left: 4px solid #e05a5a; }
 .td-battle-log {
   background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
   border: 1px solid var(--line-gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px;
   max-height: 140px; overflow-y: auto;
 }
 .td-battle-log div { font-size: 11px; color: #6a655a; line-height: 1.85; padding: 1px 4px; border-radius: 4px; }
 .td-battle-log div:hover { background: rgba(201, 168, 106, 0.07); }

/* ===== 组队地下城 UI 美化 ===== */
/* 地下城卡片 */
.td-card { border-left: 4px solid #c9a86a; position: relative; overflow: hidden; }
.td-card::after { content: ''; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 106, 0.12), transparent 70%); pointer-events: none; }
.td-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.d-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #2e7464, #4f7fa8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: 0 2px 6px rgba(46, 116, 100, 0.3); }
.d-name-wrap { flex: 1; min-width: 0; }
.td-card .d-name { font-size: 15px; font-weight: 800; color: var(--text); }
.td-card .d-sub { font-size: 11px; color: var(--weak); margin-top: 2px; }
.td-card .d-tier { flex: none; font-size: 11px; font-weight: 800; color: #8a6a2a; background: linear-gradient(180deg, #f6e8c8, #ecd9ae); border: 1px solid #dcc189; border-radius: 999px; padding: 3px 10px; }
.td-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--sub); margin-bottom: 8px; }
.td-meta span { display: inline-flex; align-items: center; gap: 4px; }
.td-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #c9a86a; }
.td-meta .td-used { color: #e05a5a; }
.td-card-ops { display: flex; gap: 8px; margin-top: 4px; }
.td-card-ops .btn { flex: 1; height: 34px; font-size: 13px; }

/* 组队地下城面板容器：与其他板块统一浅色风格 */
#td-body { padding: 12px 16px 20px; }

/* 队伍大厅 */
.td-team-row { border-left: 4px solid #4a8a77; }
.td-team-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.td-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px 2px 4px; font-weight: 600; }
.td-chip::first-letter { font-weight: 800; }
.td-chip.td-r-tank, .td-m-role.td-r-tank, .td-r-ava.td-r-tank { color: #3f6fb5; border-color: #3f6fb5; }
.td-chip.td-r-heal, .td-m-role.td-r-heal, .td-r-ava.td-r-heal { color: #2e9e5b; border-color: #2e9e5b; }
.td-chip.td-r-dps, .td-m-role.td-r-dps, .td-r-ava.td-r-dps { color: #c0564f; border-color: #c0564f; }
.td-chip.td-r-supp, .td-m-role.td-r-supp, .td-r-ava.td-r-supp { color: #8a6bc9; border-color: #8a6bc9; }

/* 我的队伍成员卡 */
.td-m-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #e08a84, #c0564f); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.18); }
.td-m-avatar.td-r-tank { background: linear-gradient(135deg, #6f9be0, #3f6fb5); }
.td-m-avatar.td-r-heal { background: linear-gradient(135deg, #63c98c, #2e9e5b); }
.td-m-avatar.td-r-dps { background: linear-gradient(135deg, #e08a84, #c0564f); }
.td-m-avatar.td-r-supp { background: linear-gradient(135deg, #b095e0, #8a6bc9); }

/* 结算 */
.td-result-hero.win .rs-ico { background: linear-gradient(135deg, #63c98c, #2e9e5b); }
.td-result-hero.lose .rs-ico { background: linear-gradient(135deg, #e08a84, #c0564f); }
.td-loot-head { display: flex; align-items: center; gap: 8px; }
.td-loot-ico { width: 28px; height: 28px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; }
.td-loot-ico[data-q="0"] { background: #8a8578; }
.td-loot-ico[data-q="1"] { background: #4a9d7e; }
.td-loot-ico[data-q="2"] { background: #4f7fa8; }
.td-loot-ico[data-q="3"] { background: #84719e; }
.td-loot-ico[data-q="4"] { background: var(--q4); }
.td-loot-ico[data-q="5"] { background: var(--q5); }
.td-loot-q { font-size: 10px; color: var(--weak); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.td-loot-rolls .td-roll { border-radius: 999px; padding: 2px 9px; font-size: 11px; }
.td-roll em { font-style: normal; font-weight: 800; margin-left: 2px; }
.td-roll.win { border-color: #c9a86a; color: #8a6a2a; font-weight: 700; background: linear-gradient(180deg, #fdf6e3, #f4e7c4); }
.td-roll.me { outline: 1px solid #3f6fb5; }
.td-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.td-result-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 10px; padding: 8px; text-align: center; box-shadow: var(--shadow); }
.td-result-card.win { border-top: 3px solid var(--green); }
.td-result-card.lose { border-top: 3px solid #e05a5a; opacity: 0.8; }
.td-r-head { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 4px; }
.td-r-ava { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.td-r-head b { font-size: 12px; color: var(--brown); }
.td-r-state { font-size: 10px; color: var(--weak); }
.td-r-state:empty { display: none; }
.td-r-gain { font-size: 10px; color: var(--green); font-weight: 700; margin-top: 2px; }


/* 签到 */
.signin-box { max-width: 440px; margin: 0 auto; background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%); border: 1px solid var(--line-gold); border-radius: 14px; padding: 22px 20px; box-shadow: var(--shadow); }

.sig-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; text-align: left; }
.sig-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; background: linear-gradient(160deg, #f0d488, #c9a94f); color: #5c4a12; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(201, 169, 79, 0.4); }
.sig-title { font-size: 16px; font-weight: 800; color: var(--text); }
.sig-sub { font-size: 11px; color: var(--weak); margin-top: 2px; }

.sig-bar { height: 8px; background: #eae4d4; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.sig-bar-in { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f0d488, #c9a94f); transition: width 0.5s; }

.sig-streak { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--sub); margin-bottom: 12px; }
.sig-streak b { color: var(--orange); font-size: 16px; }
.sig-round b { color: var(--gold); }

.sig-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.s-day { position: relative; border: 1px solid var(--line-gold); border-radius: 8px; padding: 6px 2px 5px; text-align: center; background: #fff; }
.s-day .s-day-top { font-size: 9px; font-weight: 800; color: var(--sub); margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.s-day .s-day-r { display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.s-r-gold { color: var(--gold); font-weight: 700; }
.s-r-gold b { background: var(--gold-soft); border-radius: 4px; padding: 0 3px; }
.s-r-exp { color: var(--blue); font-weight: 700; }
.s-r-exp b { background: rgba(84, 112, 126, 0.12); border-radius: 4px; padding: 0 3px; }

.s-day.done { background: var(--green-soft); border-color: rgba(46, 116, 100, 0.5); }
.s-day.done .s-day-top { color: var(--green); }
.s-day.done .s-r-gold, .s-day.done .s-r-exp { color: var(--green); }
.s-check { position: absolute; top: 2px; right: 4px; color: var(--green); font-weight: 900; font-size: 11px; }

.s-day.on { border-color: #c9a94f; background: linear-gradient(170deg, #f7e6ad 0%, #e6c874 100%); animation: sigGlow 1.8s ease-in-out infinite; }
.s-day.on .s-day-top { color: #5c4a12; }
.s-day.on .s-day-r { color: #6a5518; }
.s-now { position: absolute; top: 2px; left: 3px; font-size: 8px; font-weight: 800; color: #8a6d10; background: rgba(255, 255, 255, 0.7); border-radius: 4px; padding: 0 3px; }
@keyframes sigGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201, 169, 79, 0.28), 0 3px 8px rgba(201, 169, 79, 0.3); }
  50% { box-shadow: 0 0 0 2px rgba(201, 169, 79, 0.45), 0 3px 16px rgba(201, 169, 79, 0.55); }
}

.s-day.lock { background: #faf9f4; }
.s-big { font-style: normal; font-size: 8px; color: #fff; background: linear-gradient(135deg, #d97a3d, #c2532f); border-radius: 4px; padding: 1px 3px; margin-left: 2px; }

.sig-btn { width: 100%; height: 46px; font-size: 15px; }
.sig-tip { font-size: 11px; color: var(--weak); margin-top: 12px; text-align: center; }

/* 日志历史 */
.log-hist-filter { display: flex; gap: 6px; padding: 10px 16px; flex-wrap: wrap; align-items: center; }
.log-hist-filter button { border: 1px solid var(--line-gold); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 11px; color: var(--sub); cursor: pointer; }
.log-hist-filter button.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.log-hist-filter .form-input { width: 110px; }
#log-hist-body { padding: 0 16px; }
.log-hist-item { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
.log-hist-item .lh-time { color: var(--weak); font-size: 10px; }
.log-hist-item .lh-tag { display: inline-block; background: #f1ede6; border-radius: 4px; padding: 0 6px; font-size: 10px; color: var(--sub); margin-right: 6px; }
.log-hist-item .lh-tag.tt-battle   { background: #fbeaea; color: #b84a46; }
.log-hist-item .lh-tag.tt-elite    { background: #f6e7f6; color: #9c27b0; }
.log-hist-item .lh-tag.tt-gather   { background: #e7f3ec; color: #2e7464; }
.log-hist-item .lh-tag.tt-treasure { background: #fdf1e3; color: #c07a1f; }
.log-hist-item .lh-tag.tt-dungeon  { background: #e9effb; color: #4b7aa6; }
.log-hist-item .lh-tag.tt-luck     { background: #eef4fb; color: #4b7aa6; }
.log-hist-item .lh-tag.tt-event    { background: #f0eeeb; color: #726c78; }
.log-hist-page { display: flex; gap: 8px; justify-content: center; padding: 10px; }
.log-hist-page button { border: 1px solid var(--line-gold); background: #fff; border-radius: 8px; padding: 4px 14px; font-size: 12px; cursor: pointer; }

/* 拍卖行 */
#auction-tabs { margin-bottom: 6px; }
.auc-card { background: linear-gradient(180deg, #fffdf6 0%, #f6f1e4 100%); border: 1px solid var(--line-gold); border-left: 3px solid #c9a86a; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; box-shadow: var(--shadow); }
.auc-card[data-q="0"] { border-left-color: var(--q0); }
.auc-card[data-q="1"] { border-left-color: var(--q1); }
.auc-card[data-q="2"] { border-left-color: var(--q2); }
.auc-card[data-q="3"] { border-left-color: var(--q3); }
.auc-card[data-q="4"] { border-left-color: var(--q4); }
.auc-card[data-q="5"] { border-left-color: var(--q5); }
.auc-head { display: flex; align-items: center; gap: 10px; }
.auc-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #c9c4b8, #9c978a); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.16); }
.auc-icon[data-q="0"] { background: linear-gradient(160deg, #c9c4b8, #9c978a); }
.auc-icon[data-q="1"] { background: linear-gradient(160deg, #a8dcc0, #6fb894); }
.auc-icon[data-q="2"] { background: linear-gradient(160deg, #9cc3e8, #5f93c9); }
.auc-icon[data-q="3"] { background: linear-gradient(160deg, #c4a9e8, #9274c4); }
.auc-icon[data-q="4"] { background: linear-gradient(160deg, #f5c98c, #dd9a4f); }
.auc-icon[data-q="5"] { background: linear-gradient(160deg, #f0a99b, #d26b5c); }
.auc-name { flex: 1; min-width: 0; }
.auc-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.auc-title span[data-q="0"] { color: var(--q0); }
.auc-title span[data-q="1"] { color: var(--q1); }
.auc-title span[data-q="2"] { color: var(--q2); }
.auc-title span[data-q="3"] { color: var(--q3); }
.auc-title span[data-q="4"] { color: var(--q4); }
.auc-title span[data-q="5"] { color: var(--q5); }
.auc-enh { background: var(--gold); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px; flex-shrink: 0; }
.auc-sub { font-size: 10px; color: var(--weak); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auc-stats { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.auc-stat { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-right: 4px; }
.stat-att { color: #c0564f; background: rgba(192, 86, 79, 0.12); }
.stat-def { color: #3f6fb5; background: rgba(63, 111, 181, 0.12); }
.stat-hp { color: #2e9e5b; background: rgba(46, 158, 91, 0.12); }
.auc-affix { font-size: 10px; color: var(--brown); margin-top: 4px; line-height: 1.5; }
.auc-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--weak); margin-top: 7px; }
.auc-meta b { color: var(--brown); font-weight: 700; }
.auc-flag { margin-left: auto; color: var(--red); background: var(--red-soft); border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.auc-price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-gold); }
.auc-price { font-size: 11px; color: var(--weak); white-space: nowrap; }
.auc-price b { font-size: 15px; color: var(--orange); margin-left: 3px; }
.auc-ops { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; min-width: 0; }
.auc-ops .btn { height: 30px; font-size: 12px; padding: 0 12px; }
.auc-ops input { flex: 1; max-width: 92px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; background: #fff; min-width: 0; }
.auc-status { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.auc-status.s0 { color: #2e9e5b; background: rgba(46, 158, 91, 0.14); }
.auc-status.s1 { color: #b8860b; background: rgba(184, 134, 11, 0.14); }
.auc-status.s2 { color: var(--weak); background: rgba(120, 120, 120, 0.12); }
.auc-status.s3 { color: var(--red); background: var(--red-soft); }
.auc-card-eq { display: block; align-items: normal; margin-bottom: 8px; }
.auc-card-eq .auc-head { margin-bottom: 8px; }
.auc-card-eq .auc-stats { margin-top: 0; margin-bottom: 8px; }
.auc-card-eq .auc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--weak); padding-top: 6px; }
.auc-card-eq .auc-price-row { border-top: none; margin-top: 4px; }
.auc-card-eq .auc-sub { font-size: 11px; color: var(--weak); margin-top: 3px; white-space: normal; overflow: visible; }

/* 拍卖行 v2：筛选栏 / 分页器 / 卡片展开 */
.auc-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line-gold); border-radius: 12px; }
.auc-filter input, .auc-filter select { height: 32px; border: 1px solid #d8cfc0; border-radius: 8px; padding: 0 8px; font-size: 12px; background: #fff; color: #333; outline: none; }
.auc-filter input { flex: 1 1 110px; min-width: 90px; }
.auc-filter select { flex: 0 0 auto; max-width: 108px; }
.auc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; font-size: 12px; color: var(--weak); }
.auc-pager button:disabled { opacity: .4; cursor: not-allowed; }
.auction-item { margin-bottom: 8px; cursor: pointer; }
.auction-item .auc-card, .auction-item .auc-card-eq { margin-bottom: 0; }
.auc-chevron { margin-left: auto; color: var(--weak); font-size: 12px; transition: transform .2s; flex-shrink: 0; }
.auction-item.open .auc-chevron { transform: rotate(180deg); }
.auc-detail { display: none; padding: 8px 12px; background: rgba(0, 0, 0, .035); border-left: 3px solid #c9a86a; border-radius: 0 8px 8px 0; }
.auction-item.open .auc-detail { display: block; }
.auc-lv { font-style: normal; color: #b8860b; font-weight: 700; }
.auc-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #555; }
.auc-affix { font-size: 11px; color: var(--weak); margin-top: 3px; }

/* 上架拍卖表单 */
.auc-form { padding: 4px 0; }
.auc-form .form-input { height: 36px; font-size: 13px; }

/* 赠送好友列表 */
.gift-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.gift-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 10px 14px; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color 0.15s, background 0.15s;
}
.gift-item:hover { border-color: var(--gold); background: linear-gradient(180deg, #fdfbf6 0%, #efe8d3 100%); }
.gift-item .gi-name { font-size: 13px; font-weight: 700; color: var(--text); }
.gift-item .gi-sub { font-size: 11px; color: var(--weak); }

/* 玩家个人弹窗 */
.panel-profile {
  position: fixed; inset: 0; z-index: 140; background: var(--bg);
  transform: translateY(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-profile.open { transform: translateY(0); }

.profile-head {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 16px 22px; overflow: hidden;
  background: linear-gradient(135deg, #3b8a76, #2e7464 55%, #24594e);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.profile-head::before {
  content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 68%);
  top: -110px; right: -50px;
}
.profile-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 18% -20%, rgba(255,255,255,.35), transparent 55%), radial-gradient(ellipse at 105% 130%, rgba(255,255,255,.14), transparent 50%);
}
.profile-head.pf-warrior { background: linear-gradient(135deg, #c99a55, #a87f2e 60%, #7a5f2e); }
.profile-head.pf-mage { background: linear-gradient(135deg, #9c93b0, #84719e 60%, #6f6a80); }
.profile-head.pf-archer { background: linear-gradient(135deg, #7c9ba8, #54707e 60%, #435a66); }
.profile-head.pf-assassin { background: linear-gradient(135deg, #b98a92, #a84842 60%, #7f3a35); }
.profile-head.pf-priest { background: linear-gradient(135deg, #5f9e86, #2e7464 60%, #20584c); }

.profile-avatar {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 27px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 0 18px rgba(255,255,255,.22), 0 6px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.5);
}
.profile-avatar .pf-dot {
  position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.profile-avatar .pf-dot.on { background: var(--green); box-shadow: 0 0 10px rgba(46, 116, 100, 0.7); }
.profile-avatar .pf-dot.off { background: #9ca3af; }
.profile-meta { position: relative; flex: 1; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); letter-spacing: .5px; }
.pf-status { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; vertical-align: 3px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.25); }
.pf-status.on { background: rgba(46, 116, 100, 0.28); color: #cfe5dd; }
.pf-status.off { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.62); }
.profile-title { margin-top: 6px; }
.title-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #ffe9a3, #e0b64e); color: #5c4508;
  border-radius: 999px; padding: 3px 12px; font-size: 11px; font-weight: 800;
  box-shadow: 0 2px 5px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.7);
}
.title-chip::before { content: '✦'; font-size: 9px; }
.profile-sub { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pf-class {
  font-weight: 800; font-size: 12px; color: #fff; padding: 3px 11px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.38);
}
.pf-tag { font-size: 12px; color: rgba(255,255,255,.9); padding: 3px 11px; border-radius: 999px; background: rgba(0,0,0,.18); }
.pf-power {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #5c4508;
  padding: 3px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe9a3, #e0b64e);
  box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.6);
}
.pf-power::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #5c4508; }
.profile-head .close-btn {
  position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); color: #fff; font-size: 15px; cursor: pointer; flex-shrink: 0;
}

.pf-sig {
  position: relative; margin: 14px 16px 0; padding: 12px 14px 12px 20px; font-size: 13px; color: var(--brown);
  background: linear-gradient(180deg, #fdf6e0, #f8ecd0); border: 1px solid #ecdcb0; border-radius: 12px;
  line-height: 1.6; box-shadow: 0 3px 10px rgba(90,60,10,.08);
}
.pf-sig::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #d9b64a, #b98c2e);
}
.pf-sig.empty { color: #b8a887; font-style: italic; }

.profile-sec {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brown);
  font-weight: 800; padding: 16px 16px 8px;
}
.profile-sec::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #57b39a, #2e7464); }
.profile-sec .sec-tag { font-size: 11px; color: var(--weak); font-weight: 600; }

.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; }
.pg-card.pg-card-wide { grid-column: 1 / -1; }
.pg-card {
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold);
  border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
}
.pg-ico { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.pg-ico.hp   { background: linear-gradient(135deg,#c0766e,#a84842); }
.pg-ico.atk  { background: linear-gradient(135deg,#d0764f,#a8482f); }
.pg-ico.def  { background: linear-gradient(135deg,#7c9ba8,#54707e); }
.pg-ico.crit { background: linear-gradient(135deg,#9c93b0,#84719e); }
.pg-ico.crd  { background: linear-gradient(135deg,#d0a94f,#a87f2e); }
.pg-ico.dod  { background: linear-gradient(135deg,#5b8fc4,#3f6aa0); }
.pg-ico.hit  { background: linear-gradient(135deg,#5f9e86,#2e7464); }
.pg-ico.spd  { background: linear-gradient(135deg,#3fa8a0,#2e7464); }
.pg-ico.sta  { background: linear-gradient(135deg,#4fae7a,#2f8a45); }
.pg-ico.spr  { background: linear-gradient(135deg,#9c93b0,#6f6a80); }
.pg-ico.eng  { background: linear-gradient(135deg,#9c7bd0,#6f55a8); }
.pg-ico.set  { background: linear-gradient(135deg,#d0a94f,#a87f2e); }
.pg-body { display: flex; flex-direction: column; min-width: 0; }
.pg-k { font-size: 11px; color: var(--weak); }
.pg-v { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 14px; margin: 0 16px 8px; font-size: 13px; box-shadow: var(--shadow);
}
.profile-row .k { color: var(--sub); font-size: 12px; }
.profile-row .v { font-weight: 800; color: var(--brown); }
.profile-grid .profile-row { margin: 0; }

.profile-equip-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.pe-item {
  display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 10px 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  box-shadow: var(--shadow);
}
.pe-item.q1 { border: 1px solid var(--line-gold); }
.pe-item.q2 { border: 1px solid #a7c8f5; background: linear-gradient(180deg,#f4f9ff,#eaf3fd); }
.pe-item.q3 { border: 1px solid #cbb8f7; background: linear-gradient(180deg,#faf7ff,#f1ecfd); }
.pe-item.q4 { border: 1px solid #eecf9a; background: linear-gradient(180deg,#fffaf0,#fdf1dd); }
.pe-item.q5 { border: 1px solid #f3b3b3; background: linear-gradient(180deg,#fff5f5,#fdeaea); }
.pe-icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.15);
}
.pe-icon.q1 { background: linear-gradient(135deg,#a8a29e,#57534e); }
.pe-icon.q2 { background: linear-gradient(135deg,#7c9ba8,#54707e); }
.pe-icon.q3 { background: linear-gradient(135deg,#9c93b0,#6f6a80); }
.pe-icon.q4 { background: linear-gradient(135deg,#d0a94f,#a87f2e); }
.pe-icon.q5 { background: linear-gradient(135deg,#c0766e,#a84842); }
.pe-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pe-head { display: flex; align-items: center; gap: 6px; }
.pe-name { font-size: 14px; font-weight: 800; }
.pe-name.q1 { color: #2e7464; } .pe-name.q2 { color: #54707e; } .pe-name.q3 { color: #84719e; } .pe-name.q4 { color: #a87f2e; } .pe-name.q5 { color: #a84842; }
.pe-enh { font-style: normal; background: linear-gradient(180deg,#d0a94f,#a87f2e); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 800; }
.pe-slot { font-size: 10px; color: var(--weak); font-weight: 600; }
.pe-stats { display: flex; gap: 4px 10px; flex-wrap: wrap; }
.pe-st { font-size: 11px; font-weight: 800; color: #ea580c; }
.pe-st-def { color: #54707e; }
.pe-st-hp { color: #a84842; }
.pe-affix-row { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.pe-affix { font-size: 11px; color: #7a7a72; }
.no-equip { font-size: 12px; color: var(--weak); padding: 8px 4px; }

/* 套装加成卡 */
.profile-set-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.pe-set {
  display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow);
}
.pe-set-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1px solid;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.pe-set-info { min-width: 0; }
.pe-set-name { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pe-set-name em { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(180deg,#8d7040,#6f5530); border-radius: 999px; padding: 1px 7px; }
.pe-set-desc { font-size: 11px; color: var(--sub); margin-top: 2px; line-height: 1.5; }

.profile-title-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.title-chip.sm {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg,#fffdf4,#faf3df); color: #8a6508;
  border: 1px solid #e6d6a8; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.profile-ops { display: flex; gap: 8px; padding: 16px 16px 24px; }
.profile-ops .btn { flex: 1; height: 42px; font-size: 13px; border-radius: 999px; }
.weak-text { font-size: 12px; color: var(--weak); }

/* ---------- 好友系统（微信风格） ---------- */
#friend-contact { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#friend-message { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.friend-tabs { display: flex; gap: 8px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line-gold); }
.friend-tabs button { flex: 1; border: 1px solid var(--line-gold); background: #fff; font-size: 13px; padding: 8px 0; border-radius: 8px; cursor: pointer; color: var(--sub); transition: all 0.15s; }
.friend-tabs button.on { background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-color: transparent; color: #fff; font-weight: 700; box-shadow: var(--shadow); }
#rank-tabs { display: flex; gap: 8px; padding: 10px 16px 0; }
#rank-tabs button { flex: 1; border: 1px solid var(--line-gold); background: #fff; font-size: 13px; padding: 8px 0; border-radius: 8px; cursor: pointer; color: var(--sub); transition: all 0.15s; }
#rank-tabs button.on { background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-color: transparent; color: #fff; font-weight: 700; box-shadow: var(--shadow); }
.friend-list { padding: 8px 12px 80px; }
.friend-add-btn { margin: 0 16px 16px; width: calc(100% - 32px); height: 44px; }
.friend-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer;
  box-shadow: var(--shadow);
}
.friend-row .f-avatar { position: relative; }
.friend-row .on-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #f3efe4; }
.friend-row .on-dot.on { background: var(--green); }
.friend-row .on-dot.off { background: #c4c0b8; }
.friend-row .f-name { display: flex; align-items: center; gap: 6px; }
.friend-row .f-sub { font-size: 11px; color: var(--weak); }
.conv-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer;
  box-shadow: var(--shadow);
}
.conv-row .c-info { flex: 1; min-width: 0; }
.conv-row .c-name { font-size: 14px; font-weight: 700; }
.conv-row .c-preview { font-size: 12px; color: var(--weak); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-row .c-right { text-align: right; flex-shrink: 0; }
.conv-row .c-time { font-size: 10px; color: var(--weak); }
.conv-row .c-unread { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; text-align: center; padding: 0 5px; margin-top: 4px; }
/* 好友二级滑入页 */
.friend-sub { position: absolute; inset: 0; z-index: 110; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s ease; }
.friend-sub.open { transform: translateX(0); }
.sub-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px; background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border-bottom: 1px solid var(--line-gold); }
.sub-head h2 { flex: 1; font-size: 16px; font-weight: 700; text-align: center; color: var(--brown); }
.sub-back { width: 32px; height: 32px; border: 1px solid rgba(122, 95, 46, 0.15); background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--brown); line-height: 1; flex-shrink: 0; }
.sub-spacer { width: 32px; flex-shrink: 0; }
.sub-more { width: 32px; text-align: center; color: var(--sub); font-size: 18px; flex-shrink: 0; }
.friend-row .f-avatar, .conv-row .f-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); border: 1px solid rgba(122, 95, 46, 0.15); color: var(--brown); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.friend-profile { padding: 24px 16px; text-align: center; }
.friend-profile .fp-avatar { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%); border: 1px solid rgba(122, 95, 46, 0.2); color: var(--brown); font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; box-shadow: var(--shadow); }
.friend-profile .fp-name { font-size: 18px; font-weight: 800; }
.friend-profile .fp-sub { font-size: 12px; color: var(--weak); margin: 6px 0 12px; }
.friend-profile .fp-sig { font-size: 13px; color: var(--sub); background: #f7f3e9; border: 1px solid var(--line-gold); border-radius: 8px; padding: 10px; margin: 0 12px 16px; }
.friend-profile .fp-ops { display: flex; gap: 10px; justify-content: center; }

/* ---------- 聊天频道 ---------- */
.chat-scroll {
  flex: 1; overflow-y: auto; padding: 14px 14px 10px; -webkit-overflow-scrolling: touch;
  background-color: #fbf8ee;
  background-image: radial-gradient(rgba(122, 95, 46, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-thumb { background: #d8cdb4; border-radius: 3px; }

.chat-filterbar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: linear-gradient(180deg, #fffdf6, #faf6ea);
  border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line);
}
.chat-filterbar button[data-f] {
  border: 1px solid #e6dcc2; background: #fffdf6; color: #8a7a5a;
  font-size: 12px; padding: 6px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; transition: all .18s; box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.chat-filterbar button[data-f]:hover { border-color: #d8c69a; color: #6f5f45; }
.chat-filterbar button[data-f].on {
  background: linear-gradient(180deg, #57b39a, #2e7464); border-color: #2e7464;
  color: #fff; box-shadow: 0 2px 6px rgba(46,116,100,.25), inset 0 1px 0 rgba(255,255,255,.25);
}
.chat-filterbar .cf-spacer { flex: 1; }
.chat-filterbar .cf-gear {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e6dcc2;
  background: #fffdf6; color: #8a7a5a; font-size: 15px; cursor: pointer; transition: all .18s;
}
.chat-filterbar .cf-gear:hover { border-color: #d8c69a; transform: rotate(90deg); }

.chat-replybar {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: linear-gradient(180deg, #fdf6e0, #f9eccb);
  border-top: 1px solid #ecdcb0; font-size: 12px; color: #8a7a5a;
}
.chat-replybar .cr-txt { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-replybar .cr-txt b { color: #a06a35; }
.chat-replybar .cr-txt i { color: var(--weak); font-style: normal; }
.chat-replybar .cr-cancel {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(180,83,9,.12);
  color: #a06a35; font-size: 11px; cursor: pointer; flex-shrink: 0;
}
.chat-replybar .cr-cancel:hover { background: rgba(180,83,9,.22); }

.chat-inputbar {
  display: flex; gap: 8px; padding: 10px 12px;
  background: linear-gradient(180deg, #fffdf6, #f7f3e6); border-top: 1px solid var(--line-gold);
}
.chat-inputbar .form-input { flex: 1; height: 40px; border-radius: 999px; background: #fff; }
.chat-inputbar .form-input:focus { box-shadow: 0 0 0 3px rgba(46,116,100,.12); }
.chat-inputbar .btn {
  height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(180deg, #57b39a, #2e7464); border-color: #2e7464;
  box-shadow: 0 2px 6px rgba(46,116,100,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.chat-inputbar .chat-plus {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6dcc2;
  background: #fffdf6; color: #2e7464; font-size: 20px; cursor: pointer; flex-shrink: 0; transition: all .18s;
}
.chat-inputbar .chat-plus:hover { border-color: #57b39a; transform: scale(1.05); }

.chat-emoji {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px;
  background: linear-gradient(180deg, #fffdf6, #faf6ea); border-top: 1px solid var(--line);
}
.chat-emoji .em {
  width: 38px; height: 38px; border: 1px solid transparent; background: #fff; font-size: 21px;
  border-radius: 10px; cursor: pointer; transition: all .15s; box-shadow: 0 1px 2px rgba(42,42,38,.06);
}
.chat-emoji .em:hover { border-color: #e6dcc2; transform: translateY(-2px); }
.chat-emoji .em:active { background: var(--gold-soft); transform: scale(.92); }

.chat-msg { display: flex; margin-bottom: 18px; align-items: flex-start; gap: 8px; }
.chat-msg.self { justify-content: flex-end; }
.chat-msg.other { justify-content: flex-start; }
.chat-ava-wrap { position: relative; flex-shrink: 0; align-self: flex-start; }
.chat-ava {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 5px rgba(42,42,38,.18);
}
.chat-ava.other { background: linear-gradient(135deg, #57b39a, #25604f); }
.chat-ava.self { background: linear-gradient(135deg, #c9a94f, #8d7040); }
.chat-badge {
  position: absolute; right: -5px; bottom: -5px; font-size: 9px; line-height: 1;
  background: linear-gradient(180deg, #f0d488, #c9a94f); color: #5c4a12;
  border: 1.5px solid #fff; border-radius: 999px; padding: 2px 5px; font-weight: 800;
  box-shadow: 0 1px 3px rgba(42,42,38,.28);
}
.chat-main { max-width: 76%; display: flex; flex-direction: column; }
.chat-msg.self .chat-main { align-items: flex-end; }
.chat-msg.other .chat-main { align-items: flex-start; }
.chat-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; margin-bottom: 5px; padding: 0 3px; }
.chat-head .chat-name { font-size: 12.5px; font-weight: 800; color: var(--orange); }
.chat-tag-row .chat-lv {
  color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .2px;
  border-radius: 999px; padding: 1px 7px;
  background: linear-gradient(180deg, #57b39a, #2e7464);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(46,116,100,.25);
}
.chat-tag-row .chat-lv.lv-t1 { background: linear-gradient(180deg, #a8a29e 0%, #6e6a63 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t2 { background: linear-gradient(180deg, #d2a679 0%, #9c7a4a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t3 { background: linear-gradient(180deg, #cbd5e1 0%, #8b98a9 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t4 { background: linear-gradient(180deg, #eac566 0%, #c9a227 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t5 { background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t6 { background: linear-gradient(180deg, #93c5fd 0%, #4f7fa8 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-tag-row .chat-lv.lv-t7 { background: linear-gradient(180deg, #fca5a5 0%, #ad4a43 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.12); }
.chat-class-badge {
  position: absolute; left: -5px; bottom: -5px; font-size: 9px; line-height: 1; color: #fff;
  border: 1.5px solid #fff; border-radius: 5px; padding: 2px 5px; font-weight: 800;
  box-shadow: 0 1px 3px rgba(42,42,38,.28);
}
.chat-class-badge.cc-c1 { background: linear-gradient(180deg, #fdba74 0%, #ea580c 100%); }
.chat-class-badge.cc-c2 { background: linear-gradient(180deg, #b0a9c2 0%, #84719e 100%); }
.chat-class-badge.cc-c3 { background: linear-gradient(180deg, #b98a92 0%, #a84842 100%); }
.chat-class-badge.cc-c4 { background: linear-gradient(180deg, #5f9e86 0%, #2e7464 100%); }
.chat-class-badge.cc-c5 { background: linear-gradient(180deg, #9fb3bf 0%, #54707e 100%); }
.chat-tag-row { display: flex; align-items: center; gap: 5px; margin-bottom: 1px; padding: 0 3px; }
.chat-tag-row .chat-title {
  background: linear-gradient(180deg, #f5d98f, #d4ab4a); color: #5c4a12;
  border-radius: 999px; padding: 1px 7px; font-size: 9px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(122,95,46,.18);
}
.chat-head .chat-time { color: #c2b8a0; font-size: 10px; margin-left: auto; font-variant-numeric: tabular-nums; }
.chat-head .chat-reply {
  border: 1px solid #e6dcc2; background: #fdfbf3; color: #8a6508;
  border-radius: 999px; padding: 2px 12px; font-size: 11px; cursor: pointer; transition: all .18s;
}
.chat-head .chat-reply:hover { border-color: #57b39a; color: #2e7464; }
.chat-msg .bubble {
  max-width: 100%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; word-break: break-word;
  position: relative;
}
.chat-msg.self .bubble {
  background: #fff; color: var(--text);
  border: 1px solid #e8d9ae; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 5px rgba(122,95,46,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.chat-msg.self .bubble::after {
  content: ''; position: absolute; right: -7px; bottom: 9px;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #fff;
  filter: drop-shadow(1px 0 0 #e8d9ae);
}
.chat-msg.other .bubble {
  background: linear-gradient(180deg, #fdfdf9, #f6f1e2); color: #33302a;
  border: 1px solid #ece2c8; border-radius: 4px 14px 14px 14px;
  box-shadow: 0 2px 5px rgba(42,42,38,.06);
}
.chat-msg.other .bubble::after {
  content: ''; position: absolute; left: -7px; bottom: 9px;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 8px solid #f8f4e6;
  filter: drop-shadow(-1px 0 0 #ece2c8);
}
.bubble-quote {
  background: linear-gradient(180deg, #fdf3d8, #f9e9bc); border-left: 3px solid #d4ab4a;
  border-radius: 8px; padding: 6px 9px; margin-bottom: 7px; font-size: 12px;
}
.bubble-quote span { color: #a06a35; font-weight: 700; margin-right: 6px; }
.bubble-quote i { color: #8a7a5a; font-style: normal; }
.chat-msg .msg-time { font-size: 10px; color: #c2b8a0; margin-top: 4px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.chat-notice {
  margin: 4px auto 10px; max-width: 96%; display: flex; align-items: flex-start; gap: 8px;
  background: linear-gradient(180deg, #fffdf6, #faf6ea);
  border: 1px solid var(--line-gold); border-radius: 10px;
  padding: 8px 10px; font-size: 12px; box-shadow: 0 1px 3px rgba(122,95,46,.06);
  transition: border-color .2s, box-shadow .2s;
}
.chat-notice .cn-ico {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.chat-notice .cn-ico.t-drop { background: #fdf1e3; color: #c07a1f; }
.chat-notice .cn-ico.t-forge { background: #fdeee2; color: #b9792a; }
.chat-notice .cn-ico.t-craft { background: #f1e8fb; color: #84719e; }
.chat-notice .cn-ico.t-dungeon { background: #e8f0fb; color: #4b7aa6; }
.chat-notice .cn-ico.t-rebirth { background: #fbeaea; color: #ad4a43; }
.chat-notice .cn-ico.t-trade { background: #e6efe9; color: #397c62; }
.chat-notice .cn-ico.t-rumor { background: #fdf0e0; color: #e68a28; }
.chat-notice .cn-ico.t-announce { background: #fdeaea; color: #b84a46; }
.chat-notice .cn-body { flex: 1; min-width: 0; }
.chat-notice .cn-top { display: flex; align-items: center; gap: 6px; }
.chat-notice .cn-title { font-size: 12px; color: #5c4a2a; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-notice .cn-time { font-size: 10px; color: #c2b8a0; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.chat-notice .cn-text { font-size: 12px; color: #6f5f45; line-height: 1.55; margin-top: 2px; word-break: break-word; }
.chat-notice .cn-text b { font-weight: 800; }
.chat-notice.cn-leg { border-color: rgba(217, 151, 55, 0.55); background: linear-gradient(180deg, #fffaf0, #fbf3e0); box-shadow: 0 0 12px rgba(217, 151, 55, 0.18); }
.chat-notice.cn-myth { border-color: rgba(214, 72, 84, 0.5); background: linear-gradient(180deg, #fff5f4, #fdeeec); box-shadow: 0 0 14px rgba(214, 72, 84, 0.2); }
.chat-notice.cn-max { border-color: rgba(185, 121, 42, 0.55); background: linear-gradient(180deg, #fff8ec, #fdefd8); box-shadow: 0 0 12px rgba(185, 121, 42, 0.2); }
.chat-notice.cn-rb { border-color: rgba(157, 94, 180, 0.5); background: linear-gradient(180deg, #f9f3fd, #f1e9f8); box-shadow: 0 0 12px rgba(157, 94, 180, 0.18); }
.chat-notice.cn-recruit { border-color: rgba(75, 122, 166, 0.5); background: linear-gradient(180deg, #f2f7fd, #eaf2fa); box-shadow: 0 0 12px rgba(75, 122, 166, 0.14); }
.chat-notice .cn-ops { margin-top: 6px; }
.chat-notice .cn-ops .btn { margin-right: 6px; }
/* 告示分类概览条 */
.cn-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 2px 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line-gold); }
.cn-bar-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 11px;
  padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.cn-bar-btn em { font-style: normal; font-weight: 800; font-size: 10px; }
.cn-bar-btn.on { background: linear-gradient(180deg, #8d7040, #6f5530); border-color: #6f5530; color: #fff; font-weight: 700; }
.cn-bar-btn:active { transform: scale(.97); }

/* ---------- 信息频道 ---------- */
.feed-line { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.7; }
.feed-line .feed-time { color: #949494; font-size: 11px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.feed-line .feed-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; font-weight: 700; }
.feed-tag.t-announce { background: #fdeaea; color: #b84a46; }
.feed-tag.t-rumor { background: #fdf0e0; color: #e68a28; }
.feed-tag.t-fortune { background: #e8f0fb; color: #4b7aa6; }
.feed-tag.t-guild { background: #e6efe9; color: #397c62; }
.feed-tag.t-event { background: #e7f0fe; color: #4b7aa6; }
.feed-tag.t-personal { background: #f0ead9; color: #7a5f2e; }
.feed-empty { text-align: center; color: var(--weak); padding: 40px 0; font-size: 13px; }

/* ---------- 营地 ---------- */
.camp-hero { background: linear-gradient(135deg, #5f4b28, #3d3520); color: #f5ecd8; padding: 16px; border-radius: 10px; margin-bottom: 12px; }
.camp-hero .c-name { font-size: 18px; font-weight: 800; }
.camp-hero .c-meta { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.camp-sec { font-size: 12px; color: var(--weak); font-weight: 700; padding: 12px 0 4px; }
.camp-card { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-left: 4px solid #c9a86a; border-radius: 10px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.camp-card .c-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.camp-card .c-desc { font-size: 11px; color: var(--weak); margin-bottom: 8px; }
.camp-card .btn { height: 32px; font-size: 12px; padding: 0 14px; }


/* 适配小屏 */
@media (max-width: 460px) {
  .sig-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .sig-brand { gap: 10px; }
  .sig-ico { width: 40px; height: 40px; flex: 0 0 40px; font-size: 19px; }
  .signin-box { padding: 16px 12px; }
  .head-left { gap: 6px; }
  .header-logo { font-size: 18px; letter-spacing: 2px; }
  .header-role-name, .header-map { padding: 0 8px; font-size: 11px; }
  .header-map .map-name { max-width: 64px; }
  .header-gametime { padding: 0 8px; font-size: 11px; }
}
@media (max-width: 400px) {
  .header-logo { display: none; }
  .head-left { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .bag-item { padding: 8px 10px; gap: 8px; }
  .bag-item .bi-ico { width: 30px; height: 30px; font-size: 15px; }
  .header-gametime { display: none; }
  .sig-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .s-day .s-day-r { font-size: 9px; }
  .s-day .s-day-top { font-size: 8px; }
}

/* =========================================================
   宽屏三栏布局（桌面端）：左侧角色面板常驻 + 中间主区
   ========================================================= */
/* 窄屏（移动端）：隐藏顶部横向导航与 logo 竖标，保留底部导航 */
@media (max-width: 919px) {
  .header-nav { display: none; }
  .header-logo-mark { display: none; }
  .header-logo { display: none; }
}

@media (min-width: 920px) {
  body { overflow: auto; }

  /* 左侧角色面板：从抽屉改为常驻侧栏 */
  .panel-left#panel-char {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    transform: none;
    border-radius: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
    z-index: 50;
    background: var(--bg-panel);
  }
  .panel-left#panel-char .char-close { display: none; }

  /* 主界面左移，让出侧栏空间 */
  #screen-main { left: 280px; }

  /* 底部导航隐藏（入口已在顶部 header 横向导航） */
  #screen-main .bottom-nav { display: none; }

  /* 顶部属性条隐藏（左侧角色面板已展示生命/体力/攻防等） */
  #screen-main .stat-bar { display: none; }

  /* 主区最大宽度居中，避免超宽屏内容拉伸 */
  #screen-main .log-area { max-width: 760px; margin: 0 auto; width: 100%; }
  #screen-main .ops { max-width: 760px; margin: 0 auto; }
  #screen-main .tabs, #screen-main .log-filter { max-width: 760px; margin-left: auto; margin-right: auto; }

  /* 全屏二级面板也避开左侧常驻栏 */
  .panel-full { left: 280px; }
  .panel-bottom { left: 280px; }
  .panel-profile { left: 280px; }
  #action-sheet { left: 280px; }
  .modal-mask { left: 280px; }
}

/* =========================================================
   任务面板
   ========================================================= */
.quest-scroll { padding: 14px 14px 30px; }

/* 横幅 */
.quest-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2e7464, #4f7fa8);
  color: #fff;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.quest-banner::after {
  content: ''; position: absolute; right: -24px; top: -24px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.quest-banner::before {
  content: ''; position: absolute; left: 38%; bottom: -40px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.qb-ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.qb-title { font-size: 18px; font-weight: 800; letter-spacing: 2px; font-family: var(--font-display); }
.qb-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* 分区标题 */
.quest-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 800; color: var(--sub);
  margin: 18px 2px 10px;
}
.quest-sec-title::before {
  content: ''; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #c9a94f, #a8842f);
  margin-right: 8px;
}
.qs-count { font-size: 11px; font-weight: 600; color: var(--weak); }

/* 任务卡片 */
.quest-item {
  display: flex; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.quest-item:active { transform: scale(0.995); }
.quest-item.is-ready {
  border-color: var(--line-gold);
  background: linear-gradient(180deg, #fffdf6, #fdf8ec);
  box-shadow: 0 0 0 1px rgba(122, 95, 46, 0.12), var(--shadow);
}
.quest-item.is-done { opacity: 0.58; }

.q-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: var(--brown);
  background: var(--gold-soft);
}
.quest-item.is-ready .q-ico {
  background: linear-gradient(135deg, #f0d488, #c9a94f);
  color: #5c4a12;
}
.quest-item.is-done .q-ico { background: #eef0ec; color: #a8a89e; }

.q-main { flex: 1; min-width: 0; }
.q-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-desc { font-size: 12px; color: var(--weak); margin: 3px 0 8px; }

/* 状态标签 */
.q-state { font-size: 10px; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.q-state.prog { background: #f0f0ea; color: var(--weak); }
.q-state.ready { background: #f7ecc8; color: #8a6d1f; }
.q-state.done { background: #e8eae6; color: #8a8a80; }

/* 进度条 */
.q-prog {
  height: 14px;
  background: #eceee8;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.q-bar {
  height: 100%;
  background: linear-gradient(90deg, #2e7464, #4f7fa8);
  border-radius: 7px;
  transition: width 0.4s ease;
}
.q-bar.bar-done { background: linear-gradient(90deg, #d9b45c, #c9a94f); }

/* 底部：奖励 + 领取按钮 */
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.q-rewards { display: flex; gap: 6px; flex-wrap: wrap; }
.q-rw { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.q-rw-gold { background: var(--gold-soft); color: var(--gold); }
.q-rw-dia  { background: #e6eef3; color: #3b6f8f; }
.q-rw-soul { background: #efeaf5; color: #7a5a8f; }
.q-rw-sta  { background: var(--green-soft); color: var(--green); }
.q-rw-item { background: #f6ece2; color: #8f6a42; }
.q-rw-myst { background: #e5eff6; color: #2c5f8a; }
.q-state.lock { background: #f0f0ea; color: #a8a89e; }

/* 成长引导任务 */
.guide-sec-title { margin-top: 16px; }
.guide-tip { font-size: 11px; color: var(--weak); margin: -2px 0 8px; }
.quest-item.guide-item.is-locked { opacity: 0.55; }
.quest-item.guide-item .q-ico { background: linear-gradient(160deg, #f5c98c, #dd9a4f); color: #fff; }
.quest-item.guide-item.is-done .q-ico { background: #eef0ec; color: #a8a89e; }
.quest-item.guide-item .q-prog { max-width: 320px; }
.q-go-btn { height: 28px; padding: 0 14px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700; background: linear-gradient(180deg, #2e7464, #1f5c50); color: #fff; flex-shrink: 0; }
.q-go-btn:hover { filter: brightness(1.08); }
.quest-item.is-ready .q-go-btn { background: linear-gradient(180deg, #f0b73e, #d99b1f); }

.q-claim-btn {
  border: none; border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #c9a94f, #b8923c);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(122, 95, 46, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  flex: none;
}
.q-claim-btn:hover { filter: brightness(1.05); box-shadow: 0 3px 9px rgba(122, 95, 46, 0.35); }
.q-claim-btn:active { transform: scale(0.95); }

.quest-tip { font-size: 11px; color: var(--weak); margin-top: 12px; text-align: center; }

/* =========================================================
   移动端增强：触控面积与布局
   ========================================================= */
@media (max-width: 919px) {
  .ops .btn { min-height: 44px; }
  .log-area { font-size: 13px; }
  .quest-item .q-claim-btn { width: 100%; height: 38px; }
  .q-foot { justify-content: flex-end; }
  .bottom-nav .nav-item { min-height: 52px; }
}

/* =========================================================
   全局统一 · 精致化
   统一各界面小标题、品质色、卡片反馈与滚动条，
   消除界面切换时的视觉落差
   ========================================================= */

/* 1. 界面/区块标题统一为「金色左竖条」 */
.menu-cat h3,
.bag-group-title,
.camp-sec,
.profile-sec {
  align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 1px;
  line-height: 1.2;
}
.menu-cat h3, .camp-sec { display: inline-flex; }
.bag-group-title, .profile-sec { display: flex; }
.menu-cat h3::before,
.bag-group-title::before,
.camp-sec::before,
.profile-sec::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, #c9a86a, rgba(201, 168, 106, 0.28));
}
.menu-cat h3 { padding-left: 0; border-left: none; margin-bottom: 12px; }
.menu-cat h3::before { margin-right: 2px; }
.bag-group-title { margin-bottom: 6px; }
.bag-group-title::after { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 168, 106, 0.3), transparent); }
.camp-sec { padding: 14px 2px 6px; }
.profile-sec { color: var(--gold); }
.profile-sec::before { background: linear-gradient(180deg, #c9a86a, rgba(201, 168, 106, 0.28)); }

/* 2. 品质色统一到设计变量（q4 琥珀 / q5 朱红） */
.bag-item[data-q="4"] .bi-ico, .bag-item[data-q="4"] .bi-name,
.equip-slot[data-q="4"] .es-icon, .equip-slot[data-q="4"] .es-name,
.swap-item .si-icon[data-q="4"], .swap-item .si-name[data-q="4"],
.forge-row .f-name span[data-q="4"] { color: var(--q4); }
.bag-item[data-q="5"] .bi-ico, .bag-item[data-q="5"] .bi-name,
.equip-slot[data-q="5"] .es-icon, .equip-slot[data-q="5"] .es-name,
.swap-item .si-icon[data-q="5"], .swap-item .si-name[data-q="5"],
.forge-row .f-name span[data-q="5"] { color: var(--q5); }
.bag-item[data-q="0"] .bi-ico, .bag-item[data-q="0"] .bi-name,
.equip-slot[data-q="0"] .es-icon, .equip-slot[data-q="0"] .es-name,
.swap-item .si-icon[data-q="0"], .swap-item .si-name[data-q="0"],
.forge-row .f-name span[data-q="0"] { color: var(--q0); }

/* 3. 列表卡片统一悬浮反馈（轻上浮 + 金边 + 阴影） */
.bag-item, .forge-row, .swap-item, .gift-item, .friend-row, .conv-row,
.auc-card, .skill-card, .camp-card, .td-card, .td-team-row, .equip-slot {
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.bag-item:hover, .forge-row:hover, .swap-item:hover, .gift-item:hover,
.friend-row:hover, .conv-row:hover, .auc-card:hover, .skill-card:hover,
.camp-card:hover, .td-card:hover, .td-team-row:hover, .equip-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 106, 0.55);
  box-shadow: 0 3px 10px rgba(42, 42, 38, 0.09);
}
.menu-item:hover { transform: translateY(-2px); }

/* 4. 各面板标签页 on 状态统一为金棕色渐变 */
.friend-tabs button.on, #rank-tabs button.on { border-color: #6f5530; }
.log-hist-filter button.on { border-color: var(--brown); box-shadow: 0 1px 3px rgba(42, 42, 38, 0.2); }
#auction-tabs button.on { background: linear-gradient(180deg, #8d7040 0%, #6f5530 100%); border-color: #6f5530; color: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(42, 42, 38, 0.18); }

/* 5. 品质标签徽章（与冒险日志品质框同风格） */
.q-badge {
  display: inline-block; border-radius: 4px; padding: 0 6px; margin-left: 4px;
  font-size: 10px; font-weight: 800; line-height: 1.7; vertical-align: 1px;
}
.q-badge[data-q="0"] { color: var(--q0); background: rgba(138, 133, 120, 0.26); }
.q-badge[data-q="1"] { color: var(--q1); background: rgba(46, 116, 100, 0.26); }
.q-badge[data-q="2"] { color: var(--q2); background: rgba(79, 127, 168, 0.26); }
.q-badge[data-q="3"] { color: var(--q3); background: rgba(132, 113, 158, 0.26); }
.q-badge[data-q="4"] { color: var(--q4); background: rgba(185, 121, 42, 0.26); }
.q-badge[data-q="5"] { color: var(--q5); background: rgba(173, 74, 67, 0.26); }

/* 6. 面板滚动区背景统一 */
.panel-scroll { background: transparent; }
.panel-full { background: linear-gradient(180deg, #faf9f4 0%, #efede3 100%); }

/* 7. 面板标题统一金色竖条（与日志章节标题呼应） */
.panel-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 2px;
  margin-right: 8px; vertical-align: -2px;
  background: linear-gradient(180deg, #c9a86a, rgba(201, 168, 106, 0.3));
}
.sub-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px;
  margin-right: 8px; vertical-align: -2px;
  background: linear-gradient(180deg, #c9a86a, rgba(201, 168, 106, 0.3));
}






.nav-dot { position: absolute; top: 2px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #e23; box-shadow: 0 0 5px rgba(221, 51, 51, 0.6); }

/* ================= 玩法面板统一 UI（GP v2 · 主题精美面板） ================= */
/* 六面板主题色板：塔金 / 契约兽青 / 成就翠 / 世界Boss红橙 / 远征蓝紫 / 竞技场绯红 */
.gp-theme-tower { --t1: #f0d488; --t2: #c9a94f; --t3: #7a5f2e; }
.gp-theme-pet   { --t1: #7fd9b6; --t2: #58b092; --t3: #2e7464; }
.gp-theme-ach   { --t1: #a8d88a; --t2: #6aa84e; --t3: #4d8a37; }
.gp-theme-boss  { --t1: #f0b088; --t2: #c07a52; --t3: #8a4a38; }
.gp-theme-exp   { --t1: #9fb0d8; --t2: #6a7fae; --t3: #4a5c88; }
.gp-theme-arena { --t1: #e8a0b0; --t2: #b8667e; --t3: #8a4256; }
.gp-theme-char  { --t1: #c0a8d8; --t2: #8a6fae; --t3: #5f4a78; }
.gp-theme-bag   { --t1: #e0b78f; --t2: #c08a55; --t3: #8a5a30; }
.gp-theme-skill { --t1: #9fb8d8; --t2: #5a86ae; --t3: #3a5a78; }
.gp-theme-team  { --t1: #b8c878; --t2: #829e48; --t3: #5a722e; }
.gp-theme-story { --t1: #c0a0d0; --t2: #8a62ae; --t3: #5f3a78; }
.gp-theme-dungeon { --t1: #8fc8b0; --t2: #4a9278; --t3: #2e5e4e; }
.gp-theme-rebirth { --t1: #e0a0b8; --t2: #a86a88; --t3: #7a4260; }
.gp-theme-maps  { --t1: #88c0d0; --t2: #4a8ea0; --t3: #2e6070; }
.gp-theme-shop  { --t1: #f0d488; --t2: #c9a94f; --t3: #7a5f2e; }
.gp-theme-rank  { --t1: #9fb0c8; --t2: #6a82a8; --t3: #425a78; }
.gp-theme-mail  { --t1: #c0c8d0; --t2: #8a98a8; --t3: #5a6878; }
.gp-theme-best  { --t1: #a8c888; --t2: #6a9450; --t3: #44682e; }
.gp-theme-ecomp { --t1: #98c8c0; --t2: #589a90; --t3: #366860; }
.gp-theme-td    { --t1: #8fc0e0; --t2: #4a8ab0; --t3: #2e6078; }
.gp-theme-title { --t1: #f0d488; --t2: #c9a94f; --t3: #8a6a2e; }
.gp-theme-sign  { --t1: #e8a8b8; --t2: #c06a80; --t3: #8a4258; }
.gp-theme-quest { --t1: #a0c8a0; --t2: #5a9460; --t3: #3a683e; }
.gp-theme-friend { --t1: #e8b0c0; --t2: #c07890; --t3: #8a4a62; }
.gp-theme-auction { --t1: #e8b08a; --t2: #c0824e; --t3: #8a542e; }
.gp-theme-log   { --t1: #b0b8c0; --t2: #7a8898; --t3: #4e5a68; }
.gp-theme-forge { --t1: #e0c08a; --t2: #b8904e; --t3: #7a5c2e; }
.gp-theme-gacha { --t1: #d0a8e0; --t2: #a86ac8; --t3: #6a3a88; }
.gp-theme-tower, .gp-theme-pet, .gp-theme-ach, .gp-theme-boss, .gp-theme-exp, .gp-theme-arena,
.gp-theme-char, .gp-theme-bag, .gp-theme-skill, .gp-theme-team, .gp-theme-story, .gp-theme-dungeon,
.gp-theme-rebirth, .gp-theme-maps, .gp-theme-shop, .gp-theme-rank, .gp-theme-mail, .gp-theme-best,
.gp-theme-ecomp, .gp-theme-td, .gp-theme-title, .gp-theme-sign, .gp-theme-quest, .gp-theme-friend,
.gp-theme-auction, .gp-theme-log, .gp-theme-forge, .gp-theme-gacha {
  --tq: color-mix(in srgb, var(--t1) 80%, #fff);
}

/* ---- Hero 头图 ---- */
.gp-hero {
  position: relative; display: flex; align-items: center; gap: 14px;
  border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(130% 170% at -10% -20%, color-mix(in srgb, var(--t2) 16%, transparent) 0%, transparent 55%),
    linear-gradient(120deg, #fdfbf6 0%, #f6f1e4 55%, #fdfbf6 100%);
  border: 1px solid rgba(122, 95, 46, 0.22);
  box-shadow: 0 6px 18px rgba(122, 95, 46, 0.1);
}
.gp-hero-sm {
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(122, 95, 46, 0.09);
}
.gp-hero-sm .gp-hero-ico { width: 46px; height: 46px; border-radius: 13px; font-size: 22px; }
.gp-hero-sm .gp-hero-title { font-size: 17px; }
.gp-hero-sm .gp-hero-desc { margin-top: 2px; }
.gp-hero-sm .gp-hero-sub { margin-top: 5px; }
.gp-hero-sm .gp-hero-side .v { font-size: 23px; }
.gp-hero::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--t1) 30%, transparent), transparent 70%);
}
.gp-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--t1), color-mix(in srgb, var(--t1) 0%, transparent));
  pointer-events: none; z-index: -1;
}
.gp-hero-ico {
  width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 900;
  color: #fff;
  background: linear-gradient(160deg, var(--t2) 0%, var(--t3) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 10px color-mix(in srgb, var(--t3) 32%, transparent);
}
.gp-hero-meta { flex: 1; min-width: 0; }
.gp-hero-title {
  font-size: 19px; font-weight: 900; color: #3c3326; letter-spacing: 2px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.gp-hero-desc { font-size: 11.5px; color: #7a6f5c; margin-top: 3px; line-height: 1.6; }
.gp-hero-sub {
  font-size: 10.5px; font-weight: 700; color: var(--t3);
  margin-top: 7px; letter-spacing: 0.8px;
}
.gp-hero-badge {
  font-size: 10px; font-weight: 800; padding: 2px 10px; border-radius: 999px; letter-spacing: 1px;
  color: #fff; background: linear-gradient(180deg, var(--t2), var(--t3));
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.gp-hero-side {
  text-align: right; flex-shrink: 0; padding-left: 16px;
  border-left: 1px solid rgba(122, 95, 46, 0.2);
}
.gp-hero-side .v {
  font-size: 27px; font-weight: 900; color: var(--t3); line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.gp-hero-side .k { font-size: 10px; color: #9a8c74; margin-top: 5px; letter-spacing: 1.5px; }

/* ---- 统计卡（带图标与主题顶条） ---- */
.gp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.gp-stat {
  position: relative; background: linear-gradient(180deg, #fffdf6 0%, #f8f4e8 100%);
  border: 1px solid rgba(197,168,106,0.3); border-radius: 12px;
  padding: 13px 10px 11px; text-align: center; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.gp-stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--t1,#e0b84c), var(--t2,#c99a3f));
}
.gp-stat .st-ico {
  width: 23px; height: 23px; margin: 0 auto 6px; border-radius: 8px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #2b2010;
  background: linear-gradient(160deg, var(--t1,#f3d27e), var(--t2,#c99a3f));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.gp-stat .v { font-size: 17px; font-weight: 900; color: var(--brown,#7a5f2e); line-height: 1.3; }
.gp-stat .k { font-size: 10.5px; color: #9a8c74; margin-top: 3px; letter-spacing: 0.5px; }

/* ---- 分区标题 ---- */
.gp-sec {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 900; color: var(--brown,#6b5738);
  margin: 18px 0 11px; letter-spacing: 1px;
}
.gp-sec::before {
  content: ""; width: 5px; height: 15px; border-radius: 2.5px;
  background: linear-gradient(180deg, var(--t1,#c9a86a), var(--t2,#a5823f));
}
.gp-sec .gp-count {
  margin-left: auto; font-size: 10px; font-weight: 800; color: #9a8c74;
  background: rgba(0,0,0,0.05); padding: 2px 10px; border-radius: 999px;
}

/* ---- 卡片 ---- */
.gp-card {
  position: relative; background: #fffdf6; border: 1px solid rgba(197,168,106,0.3);
  border-radius: 13px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.045);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gp-card:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0,0,0,0.09); }
.gp-card.tinted {
  background: linear-gradient(140deg, color-mix(in srgb, var(--t1,#f3d27e) 15%, #fffdf6) 0%, #fdf3d7 100%);
  border-color: color-mix(in srgb, var(--t2,#c99a3f) 42%, rgba(197,168,106,0.3));
}
.gp-card.accent-bar { border-left: 4px solid var(--t2,#c99a3f); }

/* ---- 标签与徽章 ---- */
.gp-tag {
  font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: 0.5px;
  background: color-mix(in srgb, var(--t1,#e0b84c) 16%, #fff); color: var(--t3,#7a5f2e);
  border: 1px solid color-mix(in srgb, var(--t1,#e0b84c) 42%, transparent);
}
.gp-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.gp-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; border-radius: 50%; flex-shrink: 0;
  font-size: 11px; font-weight: 900; color: #2b2010;
}
.gp-medal.m1 { background: linear-gradient(160deg,#ffe9a3,#d9a94a); box-shadow: 0 1px 4px rgba(217,169,74,.5); }
.gp-medal.m2 { background: linear-gradient(160deg,#e6e9ef,#b7c0cc); box-shadow: 0 1px 4px rgba(150,160,175,.45); }
.gp-medal.m3 { background: linear-gradient(160deg,#f0c59a,#cc8a4a); box-shadow: 0 1px 4px rgba(204,138,74,.45); }
.gp-medal.mn { background: rgba(0,0,0,0.06); color: #9a8c74; }

/* ---- 进度条（带刻度与光泽） ---- */
.gp-bar {
  position: relative; height: 12px; border-radius: 7px; overflow: hidden;
  background: rgba(0,0,0,0.07); border: 1px solid rgba(197,168,106,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.gp-bar .fill {
  height: 100%; border-radius: 7px; position: relative;
  transition: width .45s cubic-bezier(.22,.61,.36,1);
}
.gp-bar .fill::after {
  content: ""; position: absolute; inset: 1px 2px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.05));
}
.gp-bar-label { display: flex; justify-content: space-between; font-size: 10.5px; color: #9a8c74; margin: 5px 2px 0; font-weight: 700; }

/* ---- 行 / 名称 / 辅助文本 ---- */
.gp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gp-name { font-size: 13.5px; font-weight: 800; }
.gp-sub { font-size: 11px; color: #9a8c74; margin-top: 2px; line-height: 1.6; }
.gp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.gp-empty { text-align: center; color: #b0a48c; padding: 26px 0; font-size: 12px; }
.gp-q { font-weight: 800; }

/* ---- 按钮（并入 .btn 体系，保留语义色） ---- */
.gp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; font-size: 12.5px; padding: 0 16px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; user-select: none;
  transition: filter .15s ease, transform .12s ease, opacity .12s ease;
  box-shadow: 0 1px 3px rgba(42, 42, 38, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.gp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gp-btn:active { transform: scale(0.97); }
.gp-btn.primary {
  background: linear-gradient(180deg,#d9a83f 0%,#a87f2e 100%); color: #fff;
  border-color: rgba(185,140,50,0.45); box-shadow: 0 2px 5px rgba(185,140,50,0.3);
}
.gp-btn.ghost { background: transparent; color: #6b5738; border-color: rgba(150,120,70,0.35); }
.gp-btn.ghost:hover { background: rgba(201,168,106,0.12); }
.gp-btn.danger {
  background: linear-gradient(180deg,#ee8770 0%,#d45f46 100%); color: #fff;
  border-color: rgba(180,80,50,0.5); box-shadow: 0 2px 5px rgba(212,95,70,0.3);
}
.gp-btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.2); }

/* ---- 说明面板 ---- */
.gp-tip {
  background: linear-gradient(180deg,#f8f4e9,#f4efe1);
  border: 1px dashed color-mix(in srgb, var(--t2,#c99a3f) 45%, transparent);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #8a7a5e; line-height: 2;
}
.gp-tip b { color: var(--t3,#7a5f2e); }
.gp-zone { margin-bottom: 0; }

/* 套装图鉴 */
.setc-card {
  --setc: #7a5f2e;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f2e6 100%);
  border: 1px solid var(--line-gold);
  border-left: 4px solid var(--setc);
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.setc-card.open { box-shadow: 0 3px 10px rgba(122, 95, 46, 0.12); }
.setc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer;
  transition: background 0.15s;
}
.setc-head:active { background: rgba(122, 95, 46, 0.05); }
.setc-ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(160deg, var(--setc) 0%, color-mix(in srgb, var(--setc) 72%, #5c4a12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(90, 70, 20, 0.25);
  color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}
.setc-main { flex: 1; min-width: 0; }
.setc-name { font-size: 16px; font-weight: 800; color: var(--text); }
.setc-name::after { content: "套"; font-size: 10px; color: var(--weak); font-weight: 600; margin-left: 4px; }
.setc-bar { height: 6px; border-radius: 99px; background: #ece5d2; margin: 6px 0 5px; overflow: hidden; }
.setc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--setc), color-mix(in srgb, var(--setc) 80%, #fff)); }
.setc-meta { font-size: 11px; color: var(--weak); }
.setc-meta b { color: var(--setc); font-weight: 800; }
.setc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.setc-pct { font-size: 17px; font-weight: 800; color: var(--setc); }
.setc-arrow { font-size: 11px; color: var(--weak); transition: transform 0.2s; }
.setc-card.open .setc-arrow { transform: rotate(180deg); }
.setc-tip {
  margin: 0 14px 12px; padding: 8px 10px;
  background: rgba(122, 95, 46, 0.06); border: 1px dashed color-mix(in srgb, var(--setc) 45%, transparent);
  border-radius: 9px; font-size: 11px; color: var(--sub); line-height: 1.7;
}
.setc-tip b { color: var(--setc); font-weight: 800; }
.setc-detail { border-top: 1px solid var(--line-gold); padding: 12px 14px 14px; background: rgba(0, 0, 0, 0.015); }
.setc-badges { display: flex; gap: 6px; margin-bottom: 12px; }
.setc-badges span {
  font-size: 11px; font-weight: 700; color: var(--weak);
  background: #fff; border: 1px solid var(--line-gold); border-radius: 99px; padding: 4px 10px;
}
.setc-badges span.on {
  background: var(--setc); border-color: transparent; color: #fff;
  box-shadow: 0 2px 5px rgba(90, 70, 20, 0.25);
}
.setc-dsec { font-size: 12px; font-weight: 800; color: var(--brown); margin: 0 0 8px; }
.setc-dsec:not(:first-of-type) { margin-top: 14px; }
.setc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.setc-piece {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #f7f3e7 0%, #efe9d7 100%);
  border: 1px solid var(--line-gold); border-radius: 10px;
  padding: 9px 4px 7px;
}
.setc-piece.locked { opacity: 0.72; filter: grayscale(0.55); }
.setc-piece.owned { cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.setc-piece.owned:active { transform: scale(0.96); }
.setc-piece.eq { border: 1.5px solid var(--setc); }
.setc-p-ico {
  width: 34px; height: 34px; margin: 0 auto 5px; border-radius: 9px;
  background: #e6dfc9; color: #b6ad92; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(122, 95, 46, 0.14);
}
.setc-piece.owned .setc-p-ico {
  background: linear-gradient(160deg, var(--setc) 0%, color-mix(in srgb, var(--setc) 72%, #5c4a12) 100%);
  color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.setc-p-name { font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setc-p-sub { font-size: 9.5px; color: var(--weak); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setc-p-tag {
  position: absolute; top: -1px; right: -1px;
  background: var(--setc); color: #fff; font-size: 8.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 0 10px 0 9px;
}
.setc-bonuslist { display: flex; flex-direction: column; gap: 6px; }
.setc-bitem {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--weak);
  background: #fff; border: 1px solid var(--line-gold); border-radius: 9px; padding: 8px 10px;
}
.setc-bitem span {
  flex: none; font-size: 10px; font-weight: 800; color: var(--brown);
  background: var(--gold-soft); border: 1px solid var(--line-gold);
  border-radius: 6px; padding: 2px 6px;
}
.setc-bitem.on { background: color-mix(in srgb, var(--setc) 7%, #fff); border-color: color-mix(in srgb, var(--setc) 55%, transparent); color: var(--sub); }
.setc-bitem.on span { background: var(--setc); border-color: transparent; color: #fff; }
@media (max-width: 400px) {
  .setc-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .setc-ico { width: 42px; height: 42px; }
}

/* ================= 幸运抽奖 ================= */
.gacha-content { display: flex; flex-direction: column; gap: 14px; }
.gacha-ritual {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #fffdf6 0%, #faf5ea 100%);
  border: 1px solid rgba(197,168,106,0.35); border-radius: 16px;
  padding: 20px 14px 16px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.gacha-ritual::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--t1,#e8c0ff), var(--t2,#a86ae0));
}
.gacha-ritual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(120,90,160,.5), transparent),
    radial-gradient(1px 1px at 78% 30%, rgba(120,90,160,.45), transparent),
    radial-gradient(1px 1px at 62% 82%, rgba(120,90,160,.4), transparent),
    radial-gradient(1px 1px at 25% 74%, rgba(120,90,160,.35), transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(120,90,160,.3), transparent);
}
.gacha-magic {
  position: relative; width: 116px; height: 116px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 3px 10px rgba(168, 106, 224, 0.35));
}
.gacha-mc {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(168, 106, 224, 0.55);
}
.gacha-mc-a { inset: 0; border-style: dashed; animation: gacha-spin 14s linear infinite; }
.gacha-mc-b { inset: 9px; border-color: rgba(168, 106, 224, 0.4); animation: gacha-spin 10s linear infinite reverse; }
.gacha-mc-b::before, .gacha-mc-b::after {
  content: '✦'; position: absolute; color: rgba(168, 106, 224, 0.75);
  font-size: 10px; left: 50%; top: -7px; transform: translateX(-50%);
}
.gacha-mc-b::after { top: auto; bottom: -7px; }
.gacha-mc-c { inset: 21px; border-style: dashed; animation: gacha-spin 6s linear infinite; }
.gacha-mc-c::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px dotted rgba(168, 106, 224, 0.35);
}
.gacha-mc-core {
  position: absolute; inset: 32px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b98cee, #7a4ac0 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 12px rgba(122, 74, 192, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  animation: gacha-pulse 2.4s ease-in-out infinite;
}
.gacha-ticket-num { font-size: 19px; font-weight: 900; line-height: 1.05; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.gacha-ticket-label { font-size: 8.5px; letter-spacing: 2px; opacity: 0.9; margin-top: 2px; }
.gacha-ritual-title {
  margin-top: 14px; font-size: 16px; font-weight: 900; letter-spacing: 4px; color: var(--brown,#6b5738);
}
.gacha-ritual-sub { font-size: 11px; color: #9a8c74; margin-top: 4px; letter-spacing: 1px; }
.gacha-btns { display: flex; gap: 12px; margin-top: 14px; }
.btn-gacha {
  position: relative; border: none; border-radius: 99px; padding: 11px 30px;
  font-size: 14px; font-weight: 900; letter-spacing: 3px; cursor: pointer; color: #fff;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.btn-gacha:hover { filter: brightness(1.08); }
.btn-gacha:active { transform: scale(0.94); }
.btn-single {
  background: linear-gradient(160deg, #a78ce6, #6a4ac0);
  box-shadow: 0 3px 12px rgba(106, 74, 192, 0.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-ten {
  background: linear-gradient(160deg, #d6a85e, #a86a2e);
  box-shadow: 0 3px 12px rgba(168, 106, 46, 0.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.gacha-pity {
  background: linear-gradient(180deg, #fffdf6 0%, #f8f4e8 100%);
  border: 1px solid rgba(197,168,106,0.3); border-radius: 12px; padding: 12px 14px;
}
.gacha-pity-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--brown,#6b5738); }
.gacha-pity-title { letter-spacing: 1px; }
.gacha-pity-num { color: #8a5ae0; }
.gacha-pity-bar {
  height: 9px; margin-top: 9px; border-radius: 99px; overflow: hidden;
  background: #f2ead8; border: 1px solid rgba(197,168,106,0.4);
}
.gacha-pity-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #7a4ac0, #b06eff, #e8c0ff);
  box-shadow: 0 0 8px rgba(160, 110, 224, 0.55);
  transition: width 0.45s ease;
}
.gacha-pity-tip { font-size: 11px; color: #9a8c74; margin-top: 8px; }
.gacha-pity-tip b { color: #8a5ae0; }
.gacha-pool-title {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--brown,#6b5738);
}
.gacha-pool-list { display: flex; flex-direction: column; gap: 7px; }
.gacha-pool {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, #fffdf6 0%, #f8f4e8 100%);
  border: 1px solid rgba(197,168,106,0.3); border-radius: 10px; padding: 9px 12px;
}
.gacha-q {
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px;
}
.gacha-c { font-size: 13px; font-weight: 800; color: var(--brown,#6b5738); }

/* ---- 抽卡揭示全屏遮罩 ---- */
#gacha-reveal {
  position: fixed; inset: 0; z-index: 3000; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #241a4e 0%, #120d2b 55%, #08050f 100%);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
#gacha-reveal.open { opacity: 1; pointer-events: auto; }
#gacha-reveal.shake { animation: gacha-shake 0.45s ease; }
.gacha-rev-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 15%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 75% 80%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,.65), transparent),
    radial-gradient(2px 2px at 15% 85%, rgba(190,170,255,.6), transparent),
    radial-gradient(2px 2px at 85% 60%, rgba(255,255,255,.5), transparent);
  animation: gacha-twinkle 3.2s ease-in-out infinite alternate;
}
.gacha-rev-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.gacha-rev-stage.ten { flex-wrap: wrap; gap: 14px; padding: 70px 18px; align-content: center; }
.gacha-rev-stage:not(.ten) { gap: 0; }
.gacha-rev-magic {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 26px rgba(160, 130, 255, 0.6));
  transition: opacity 0.18s, transform 0.18s;
}
.gacha-rev-magic .gacha-mc-a { inset: 0; }
.gacha-rev-magic .gacha-mc-b { inset: 14px; }
.gacha-rev-magic .gacha-mc-c { inset: 32px; }
.gacha-rev-magic.boom { opacity: 0; transform: scale(2.2); }
.gacha-rev-charge {
  position: absolute; inset: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #c9b8ff, #7c5ce0 70%);
  box-shadow: 0 0 26px rgba(190, 160, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; animation: gacha-charge 0.95s ease-in-out infinite alternate;
}

/* ---- 卡牌 ---- */
.gc {
  width: 86px; height: 122px; perspective: 900px; flex: none;
  opacity: 0; transform: translateY(40px) scale(0.7); transition: opacity 0.3s, transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.gc.in { opacity: 1; transform: translateY(0) scale(1); }
.gc-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.3, 1, 0.4, 1);
}
.gc.flip .gc-inner { transform: rotateY(180deg); }
.gc-face {
  position: absolute; inset: 0; border-radius: 11px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-sizing: border-box; padding: 7px 5px 6px;
}
.gc-back {
  background:
    radial-gradient(circle at 50% 40%, rgba(168, 106, 224, 0.28), transparent 62%),
    linear-gradient(150deg, #3a2c6e 0%, #221a4a 55%, #181136 100%);
  border: 2px solid rgba(190, 170, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(140, 110, 240, 0.35);
  color: #cdbfff;
  position: relative;
}
.gc-back::before {
  content: ""; position: absolute; inset: 4px; border-radius: 7px;
  border: 1px dashed rgba(190, 170, 255, 0.3); pointer-events: none;
}
.gc-back-glyph {
  font-size: 26px; color: #e0d2ff;
  text-shadow: 0 0 12px rgba(200, 170, 255, 0.95), 0 0 26px rgba(200, 170, 255, 0.4);
  animation: gc-glyph-breathe 2.4s ease-in-out infinite;
}
.gc-back-run { font-size: 8px; letter-spacing: 3px; margin-top: 8px; opacity: 0.8; }
.gc-back-corner { position: absolute; font-size: 9px; color: rgba(200, 180, 255, 0.6); line-height: 1; }
.gc-back-corner.tl { top: 5px; left: 6px; }
.gc-back-corner.tr { top: 5px; right: 6px; transform: scaleX(-1); }
.gc-back-corner.bl { bottom: 5px; left: 6px; transform: scaleY(-1); }
.gc-back-corner.br { bottom: 5px; right: 6px; transform: scale(-1, -1); }
.gacha-rev-stage:not(.ten) .gc { width: 148px; height: 210px; }
.gacha-rev-stage:not(.ten) .gc-back-glyph { font-size: 40px; }
.gacha-rev-stage:not(.ten) .gc-back-run { font-size: 11px; }
.gacha-rev-stage:not(.ten) .gc-name { font-size: 14px; }
.gacha-rev-stage:not(.ten) .gc-meta { font-size: 11px; }
.gacha-rev-stage:not(.ten) .gc-qty { font-size: 13px; }
.gc-front {
  transform: rotateY(180deg);
  --gc: #888;
  background:
    radial-gradient(120% 60% at 50% -5%, color-mix(in srgb, var(--gc) 42%, transparent), transparent 62%),
    linear-gradient(180deg, #2a1f4e 0%, #171031 88%);
  border: 2px solid color-mix(in srgb, var(--gc) 72%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--gc) 48%, transparent);
  position: relative;
  overflow: hidden;
}
.gc-front::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 20%, transparent), var(--gc), color-mix(in srgb, var(--gc) 20%, transparent));
  box-shadow: 0 0 8px color-mix(in srgb, var(--gc) 70%, transparent);
}
.gc-front::after {
  content: ""; position: absolute; inset: 4px; border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--gc) 26%, transparent); pointer-events: none;
}
.gc-front.q0 { --gc: #9e9e9e; }
.gc-front.q1 { --gc: #2e7464; }
.gc-front.q2 { --gc: #4f7fa8; }
.gc-front.q3 { --gc: #a855f7; }
.gc-front.q4 { --gc: #b9792a; }
.gc-front.q5 { --gc: #ad4a43; }
.gc-name {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 900; color: #fff; line-height: 1.3; padding: 0 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.gc-meta {
  position: relative; z-index: 1;
  font-size: 8px; color: color-mix(in srgb, var(--gc) 65%, #fff);
  margin-top: 5px; padding: 2px 7px; border-radius: 99px; line-height: 1.4;
  background: color-mix(in srgb, var(--gc) 20%, transparent);
}
.gc-qty { position: relative; z-index: 1; font-size: 10px; font-weight: 900; color: var(--gc); margin-top: 7px; }
.gc-front.q4, .gc-front.q5 {
  background:
    radial-gradient(130% 70% at 50% -8%, color-mix(in srgb, var(--gc) 55%, transparent), transparent 64%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #33261f 0%, #1d150e 90%);
}
.gc-front.q5 { border-color: #ff5a7a; box-shadow: 0 0 24px rgba(255, 90, 122, 0.6); animation: gc-myth-glow 1.2s ease-in-out infinite; }
.gc-front.q5 .gc-meta { color: #ffc1cf; background: rgba(255, 90, 122, 0.24); }
.gc-front.q5 .gc-qty { color: #ff8ba2; }

/* ---- 粒子 ---- */
.gc-particle {
  position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 3001;
  animation: gacha-fly 0.75s ease-out forwards;
}
@keyframes gacha-fly {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ---- 横幅 ---- */
.gacha-rev-banner {
  position: absolute; left: 0; right: 0; bottom: 64px; text-align: center;
  min-height: 34px; padding: 0 16px; pointer-events: none;
}
.gacha-rev-banner-text { font-size: 15px; font-weight: 900; letter-spacing: 2px; animation: gacha-rise 0.5s ease both; }
.myth-banner {
  color: #ff6b8a; text-shadow: 0 0 18px rgba(255, 80, 120, 0.9), 0 0 40px rgba(255, 80, 120, 0.5);
}
.stat-banner { color: #ffd77a; text-shadow: 0 0 12px rgba(255, 200, 90, 0.7); }
.stat-banner span { margin: 0 7px; }
.cnt-myth { color: #ff6b8a; text-shadow: 0 0 14px rgba(255, 80, 120, 0.9); }
.cnt-leg { color: #ffd77a; text-shadow: 0 0 10px rgba(255, 200, 90, 0.7); }
.cnt-epic { color: #c99dff; text-shadow: 0 0 10px rgba(180, 120, 255, 0.7); }
.calm-banner { color: #8f83b8; font-size: 13px; letter-spacing: 3px; }

.gacha-rev-close {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  border: 1px solid rgba(190, 170, 255, 0.5); border-radius: 99px;
  background: rgba(40, 28, 90, 0.7); color: #d9cdff; font-size: 13px; font-weight: 800;
  letter-spacing: 4px; padding: 11px 34px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.2s;
}
#gacha-reveal.done .gacha-rev-close { opacity: 1; pointer-events: auto; animation: gacha-rise 0.4s ease both; }
.gacha-rev-close:hover { background: rgba(80, 60, 160, 0.85); }

@keyframes gacha-spin { to { transform: rotate(360deg); } }
@keyframes gc-glyph-breathe {
  0%, 100% { opacity: 0.85; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes gc-myth-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 90, 122, 0.5); }
  50%      { box-shadow: 0 0 32px rgba(255, 90, 122, 0.85); }
}
@keyframes gacha-pulse {
  0%, 100% { box-shadow: inset 0 0 14px rgba(255,255,255,.25), 0 0 16px rgba(150,120,255,.5); }
  50%      { box-shadow: inset 0 0 18px rgba(255,255,255,.4), 0 0 30px rgba(190,150,255,.9); }
}
@keyframes gacha-twinkle { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes gacha-charge {
  from { transform: scale(0.82); box-shadow: 0 0 18px rgba(190, 160, 255, 0.6); }
  to   { transform: scale(1.06); box-shadow: 0 0 40px rgba(190, 160, 255, 1); }
}
@keyframes gacha-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 4px); }
  40% { transform: translate(7px, -5px); }
  60% { transform: translate(-5px, -4px); }
  80% { transform: translate(5px, 3px); }
}
@keyframes gacha-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* ================= 休闲小游戏（森林湖景·治愈手账风） ================= */
#casual-body {
  padding: 14px 12px 20px;
  min-height: 100%;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(255, 230, 190, 0.55), transparent 55%),
    radial-gradient(80% 50% at 95% 5%, rgba(190, 235, 255, 0.5), transparent 55%),
    radial-gradient(120% 80% at 50% 110%, rgba(195, 245, 215, 0.4), transparent 60%),
    linear-gradient(180deg, #fffaf0 0%, #f6f0e0 45%, #eef4e6 100%);
}
/* 顶部横幅 */
.casual-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px 16px 16px;
  margin-bottom: 14px;
  text-align: center;
  background:
    radial-gradient(120% 160% at 20% -20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, #ffe9c4 0%, #ffd9a8 40%, #a8e6cf 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 18px rgba(160, 130, 90, 0.18);
}
.casual-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 120%, rgba(255, 255, 255, 0.6), transparent 70%);
  pointer-events: none;
}
.ch-sun {
  position: absolute;
  top: 10px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d0 0%, #ffd96a 60%, #f7b84a 100%);
  box-shadow: 0 0 20px rgba(255, 210, 100, 0.7), 0 0 44px rgba(255, 210, 100, 0.35);
  animation: ch-sunspin 18s linear infinite;
}
@keyframes ch-sunspin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.ch-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 40px;
  animation: ch-drift 24s linear infinite;
}
.ch-cloud::before, .ch-cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.ch-cloud::before { width: 22px; height: 22px; top: -10px; left: 10px; }
.ch-cloud::after { width: 16px; height: 16px; top: -6px; left: 26px; }
.ch-c1 { width: 44px; height: 14px; top: 14px; left: 10%; }
.ch-c2 { width: 30px; height: 10px; top: 26px; left: 60%; animation-delay: -10s; }
@keyframes ch-drift {
  0% { transform: translateX(-40px); opacity: 0.5; }
  25% { opacity: 1; }
  50% { transform: translateX(60px); }
  100% { transform: translateX(-40px); opacity: 0.5; }
}
.ch-title {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: #6b4a2a;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ch-sub {
  position: relative;
  margin-top: 6px;
  font-size: 12px;
  color: #9a7a50;
  letter-spacing: 0.5px;
}
.ch-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 16px;
}
.ch-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ch-sico { font-size: 20px; filter: drop-shadow(0 2px 3px rgba(120, 90, 50, 0.3)); }
.ch-stat b {
  font-size: 18px;
  font-weight: 800;
  color: #4d5a4a;
  background: rgba(255, 255, 255, 0.75);
  padding: 1px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(120, 90, 50, 0.15), inset 0 1px 0 #fff;
}
.ch-stat i {
  font-style: normal;
  font-size: 10px;
  color: #8a7a5a;
  letter-spacing: 1px;
}
/* 游戏卡片 */
.casual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.casual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 245, 0.98) 100%);
  border: 1px solid rgba(200, 180, 140, 0.35);
  box-shadow: 0 3px 12px rgba(150, 120, 80, 0.12), inset 0 1px 0 #fff;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.2s ease;
}
.casual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(150, 120, 80, 0.22), 0 0 0 1px rgba(255, 200, 130, 0.5), inset 0 1px 0 #fff;
}
.casual-card:active { transform: translateY(-1px) scale(0.98); }
.casual-card.casual-disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) opacity(0.72);
}
.casual-card.casual-disabled:hover { transform: none; box-shadow: 0 3px 12px rgba(150, 120, 80, 0.12); }
.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.cc-ico {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 16px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5), 0 3px 8px rgba(80, 80, 120, 0.18);
  transition: transform 0.2s ease;
}
.casual-card:hover .cc-ico { transform: scale(1.1) rotate(-6deg); }
.cc-ico-fish { background: linear-gradient(145deg, #d6f1ff 0%, #9fd8f5 100%); }
.cc-ico-card { background: linear-gradient(145deg, #ecdfff 0%, #cdb3f0 100%); }
.cc-ico-dice { background: linear-gradient(145deg, #fff0d6 0%, #f8ce93 100%); }
.cc-ico-farm { background: linear-gradient(145deg, #e0f6e2 0%, #b6e3bb 100%); }
.cc-tag {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
  color: #b06a1a;
  background: linear-gradient(180deg, #fff3d6 0%, #ffe4b0 100%);
  border: 1px solid rgba(240, 180, 80, 0.4);
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 #fff;
}
.casual-card.casual-disabled .cc-tag {
  color: #999;
  background: linear-gradient(180deg, #f0f0f0 0%, #e2e2e2 100%);
  border-color: rgba(160, 160, 160, 0.4);
}
.casual-name {
  font-size: 16px;
  font-weight: 800;
  color: #4a4038;
  letter-spacing: 1px;
}
.casual-desc {
  font-size: 11px;
  color: #9a8c78;
  line-height: 1.5;
  min-height: 32px;
}
.casual-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #a08a6a;
}
.cm-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; box-shadow: 0 0 4px rgba(0,0,0,0.15); }
.casual-btn {
  margin-top: 4px;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #ffc46a 0%, #f59b3c 100%);
  border: 1px solid rgba(220, 140, 50, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(230, 150, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.casual-card:not(.casual-disabled):hover .casual-btn {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 5px 14px rgba(230, 150, 60, 0.45);
}
.casual-card.casual-disabled .casual-btn {
  background: linear-gradient(180deg, #ece8e0 0%, #ddd6ca 100%);
  color: #aaa296;
  border-color: rgba(170, 160, 145, 0.3);
  box-shadow: none;
}
.casual-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: #b0a48e;
  letter-spacing: 1px;
}
/* 顶部操作栏（子视图） */
.casual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.casual-back {
  flex: none;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #8a6a3a;
  border-radius: 20px;
  border: 1px solid rgba(200, 160, 100, 0.5);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(150, 120, 80, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}
.casual-back:hover { background: #fff; transform: translateX(-2px); }
.ctb-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #4a4038;
  letter-spacing: 1px;
}
.ctb-stats {
  flex: none;
  display: flex;
  gap: 6px;
}
.ctb-stats span {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #5a6a5a;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(190, 200, 180, 0.6);
  box-shadow: inset 0 1px 0 #fff;
}
.casual-act {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #7fd8a8 0%, #47b887 100%);
  border: 1px solid rgba(40, 160, 110, 0.4);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(60, 180, 120, 0.35);
  text-shadow: 0 1px 2px rgba(0, 80, 50, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.casual-act:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(60, 180, 120, 0.45); }
.casual-act:disabled { background: linear-gradient(180deg, #e5e2da 0%, #d5d0c4 100%); color: #b0a89a; border-color: rgba(180, 170, 150, 0.3); box-shadow: none; cursor: not-allowed; text-shadow: none; }
.casual-hint {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: #a89a80;
  line-height: 1.6;
}
/* 钓鱼场景 */
.fishing-scene {
  position: relative;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(90, 120, 140, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.fs-sky {
  position: absolute;
  inset: 0 0 52% 0;
  background: linear-gradient(180deg, #aee3ff 0%, #d8f2ff 60%, #eafaff 100%);
}
.fs-sun {
  position: absolute;
  top: 16px; right: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9d8 0%, #ffe08a 55%, #ffcf5c 100%);
  box-shadow: 0 0 26px rgba(255, 220, 130, 0.85);
}
.fs-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  animation: ch-drift 20s linear infinite;
}
.fs-cloud::before, .fs-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.fs-cloud::before { width: 24px; height: 24px; top: -10px; left: 10px; }
.fs-cloud::after { width: 18px; height: 18px; top: -5px; left: 30px; }
.fs-c1 { width: 50px; height: 15px; top: 18px; left: 8%; }
.fs-c2 { width: 36px; height: 12px; top: 44px; left: 55%; animation-delay: -8s; }
.fs-far-hill {
  position: absolute;
  left: 0; right: 0;
  bottom: 48%;
  height: 46%;
  background:
    radial-gradient(120% 130% at 20% 100%, rgba(120, 190, 130, 0.85) 0%, transparent 60%),
    radial-gradient(120% 130% at 85% 100%, rgba(90, 170, 120, 0.8) 0%, transparent 55%),
    linear-gradient(180deg, rgba(140, 200, 140, 0.9) 0%, rgba(160, 215, 160, 0.95) 100%);
  border-radius: 50% 60% 0 0;
}
.fs-water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  overflow: hidden;
  background: linear-gradient(180deg, #7ec8ef 0%, #4fa8d8 55%, #3a8fc0 100%);
  border-top: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 8px 14px rgba(40, 110, 150, 0.35);
}
.fw-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: fw-wave-move 4s ease-in-out infinite;
}
.fw-w1 { top: 12%; }
.fw-w2 { top: 34%; animation-delay: -1.4s; }
.fw-w3 { top: 60%; animation-delay: -2.6s; }
@keyframes fw-wave-move {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-30px) scaleY(1.4); }
  100% { transform: translateX(0) scaleY(1); }
}
.fw-shine {
  position: absolute;
  top: 8%; left: 30%;
  width: 60px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: rotate(-8deg);
  animation: fw-shine 5s ease-in-out infinite;
}
@keyframes fw-shine {
  0% { opacity: 0.2; transform: translateX(0) rotate(-8deg); }
  50% { opacity: 0.7; transform: translateX(26px) rotate(-8deg); }
  100% { opacity: 0.2; transform: translateX(0) rotate(-8deg); }
}
.fw-bubble {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3) 70%);
  opacity: 0.5;
  animation: fw-bubble-up 6s ease-in infinite;
}
.fw-b1 { left: 18%; bottom: -12px; animation-delay: 0s; }
.fw-b2 { left: 66%; bottom: -12px; animation-delay: -2s; width: 8px; height: 8px; }
.fw-b3 { left: 82%; bottom: -12px; animation-delay: -4s; width: 12px; height: 12px; }
@keyframes fw-bubble-up {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateY(-120px); opacity: 0; }
}
.fw-float {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  animation: fw-float-bob 2.4s ease-in-out infinite;
}
.fw-float::before, .fw-float::after { content: ''; position: absolute; background: #b33; border-radius: 2px; }
.fw-float::before {
  top: -52px; left: 7px;
  width: 2px; height: 52px;
  background: linear-gradient(180deg, transparent, #d44 0%, #d44);
}
.fw-float::after {
  top: 6px; left: 0;
  width: 18px; height: 4px;
  background: #7a0f0f;
  border-radius: 4px;
}
.fw-float-top {
  width: 16px; height: 10px;
  margin: 0 auto;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #ffb366 0%, #e8632b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@keyframes fw-float-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
.fw-ripple {
  position: absolute;
  top: 44%; left: 50%;
  width: 40px; height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
}
.fishing-hook {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  font-size: 26px;
  transition: top 0.5s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.fishing-hook.cast { top: 62%; }
.fishing-scene .fs-water.cast .fw-float { animation-duration: 0.6s; }
.fs-water.caught .fw-ripple {
  animation: fw-ripple-out 0.9s ease-out forwards;
}
.fs-water.caught .fw-float { animation: fw-float-bob 0.3s ease-in-out infinite; }
@keyframes fw-ripple-out {
  0% { opacity: 0.8; transform: translateX(-50%) scale(0.4); }
  100% { opacity: 0; transform: translateX(-50%) scale(3); }
}
.fishing-line {
  position: absolute;
  z-index: 2;
  top: 12px; left: 50%;
  width: 2px; height: 110px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(200, 210, 220, 0.9) 20%, rgba(200, 210, 220, 0.6));
  pointer-events: none;
  transition: height 0.5s ease;
}
.fishing-scene:has(.fishing-hook.cast) .fishing-line { height: 176px; }
/* 鱼获展示 */
.fishing-result { min-height: 66px; margin-top: 12px; }
.fishing-catch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  animation: fc-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes fc-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.fc-ico {
  font-size: 30px;
  animation: fc-bob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}
@keyframes fc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fc-body { flex: 1; }
.fc-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.fc-text { font-size: 13px; font-weight: 700; }
.fc-spark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.6), transparent 55%);
}
.fishing-catch.rarity-common {
  background: linear-gradient(180deg, #eef6fa 0%, #dceaf2 100%);
  border: 1px solid rgba(120, 170, 200, 0.4);
}
.fishing-catch.rarity-common .fc-label { color: #4a7a96; }
.fishing-catch.rarity-common .fc-text { color: #5a6a76; }
.fishing-catch.rarity-rare {
  background: linear-gradient(180deg, #f0eaff 0%, #e2d8fb 100%);
  border: 1px solid rgba(140, 110, 220, 0.5);
  box-shadow: 0 0 18px rgba(140, 110, 220, 0.25);
}
.fishing-catch.rarity-rare .fc-label { color: #7a5ac0; }
.fishing-catch.rarity-rare .fc-text { color: #5a4a8a; }
.fishing-catch.rarity-legend {
  background: linear-gradient(180deg, #fff3d8 0%, #ffe2b0 100%);
  border: 1px solid rgba(230, 170, 60, 0.7);
  box-shadow: 0 0 22px rgba(255, 190, 80, 0.4), inset 0 0 18px rgba(255, 230, 170, 0.5);
}
.fishing-catch.rarity-legend .fc-label { color: #b07010; }
.fishing-catch.rarity-legend .fc-text { color: #a06000; }
/* 翻牌连连看 */
.cm-progress { margin-bottom: 12px; }
.cmp-track {
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(210, 200, 180, 0.5), rgba(230, 220, 200, 0.7));
  box-shadow: inset 0 1px 3px rgba(120, 100, 70, 0.2);
  overflow: hidden;
}
.cmp-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #8fe0b0 0%, #47c98a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 8px rgba(80, 200, 140, 0.5);
  transition: width 0.35s ease;
}
.cmp-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #8a7a5a;
}
.cmp-meta .cm-steps { color: #c07a3a; font-weight: 700; }
.cm-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.cm-card {
  position: relative;
  aspect-ratio: 3 / 4;
  perspective: 600px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.cm-card:hover { transform: translateY(-2px); }
.cm-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.4, 1);
  border-radius: 10px;
}
.cm-card.cm-open .cm-inner { transform: rotateY(180deg); }
.cm-face, .cm-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cm-face {
  font-size: 22px;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #fff6e2 0%, #ffeecb 100%);
  border: 2px solid rgba(220, 180, 110, 0.55);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 3px 8px rgba(150, 120, 80, 0.15);
}
.cm-back {
  background: linear-gradient(160deg, #8fc7e8 0%, #5a9fd0 60%, #4a8ab8 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 3px rgba(70, 120, 160, 0.4), inset 0 0 14px rgba(30, 80, 120, 0.35), 0 3px 8px rgba(70, 110, 140, 0.25);
}
.cm-back span {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 -2px 4px rgba(30, 80, 120, 0.3);
  text-shadow: 0 1px 2px rgba(0, 60, 100, 0.4);
}
.cm-card.cm-done { cursor: default; }
.cm-card.cm-done .cm-inner { transform: rotateY(180deg); }
.cm-card.cm-done .cm-face {
  background: linear-gradient(160deg, #d8f5e2 0%, #b6e8c8 100%);
  border-color: rgba(80, 190, 130, 0.6);
  box-shadow: 0 0 14px rgba(90, 210, 145, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.cm-card.cm-done .cm-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(80% 60% at 50% 50%, transparent 0%, rgba(120, 230, 165, 0.25) 100%);
  animation: cm-done-pulse 1.2s ease-out;
}
@keyframes cm-done-pulse {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.casual-result { min-height: 50px; margin-top: 12px; }
.casual-catch {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #2f7a52;
  background: linear-gradient(180deg, #e8f8ee 0%, #d4f0de 100%);
  border: 1px solid rgba(80, 190, 130, 0.45);
  box-shadow: inset 0 1px 0 #fff;
  animation: fc-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.casual-catch.cm-fail {
  color: #c05a3a;
  background: linear-gradient(180deg, #fdeee8 0%, #f6ddd4 100%);
  border-color: rgba(220, 120, 80, 0.45);
}

/* ================= 掷骰大富翁（二批） ================= */
.mono-panel {
  background: linear-gradient(180deg, #fffdf6 0%, #fff6e6 100%);
  border: 1px solid rgba(240, 170, 90, 0.35);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(190, 130, 50, 0.12), inset 0 1px 0 #fff;
}
.mono-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mono-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #7a6440;
  border: 1px solid rgba(200, 170, 120, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mono-cell .mono-ico { font-size: 22px; }
.mono-cell .mono-lb { font-weight: 700; font-size: 10px; }
.mono-cell.mono-gold { background: linear-gradient(180deg, #fff7d6 0%, #ffedb8 100%); }
.mono-cell.mono-material { background: linear-gradient(180deg, #eef3fd 0%, #dbe6fa 100%); }
.mono-cell.mono-chest { background: linear-gradient(180deg, #fdf0dd 0%, #fbe0bc 100%); }
.mono-cell.mono-rest { background: linear-gradient(180deg, #eefaf0 0%, #d9f3df 100%); }
.mono-cell.mono-monster { background: linear-gradient(180deg, #fdeeec 0%, #f8dcd8 100%); }
.mono-cell.mono-cur {
  border-color: #f0a13a;
  box-shadow: 0 0 0 2px rgba(240, 161, 58, 0.4), 0 4px 12px rgba(240, 161, 58, 0.35);
  transform: translateY(-2px);
}
.mono-pawn {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 16px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  animation: mono-bounce 0.6s ease-in-out infinite alternate;
}
@keyframes mono-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}
.mono-info { margin-top: 12px; }
.mono-progress {
  height: 10px;
  border-radius: 6px;
  background: #f3e8d0;
  overflow: hidden;
  border: 1px solid rgba(220, 190, 140, 0.4);
}
.mono-prog-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffc46b, #f0a13a);
  transition: width 0.4s ease;
}
.mono-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #8a6f45;
  gap: 6px;
  flex-wrap: wrap;
}
.mono-meta b { color: #c07a1f; font-size: 14px; }
.mono-event { margin-top: 10px; min-height: 52px; }
.mono-ev {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf6 0%, #fdf4e0 100%);
  border: 1px solid rgba(240, 180, 100, 0.4);
  animation: fc-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.mono-ev-ico { font-size: 24px; }
.mono-ev-t { font-weight: 700; font-size: 14px; color: #8a5a1a; }
.mono-ev-sub { font-size: 11px; color: #b09260; margin-top: 2px; }
.mono-ev-monster .mono-ev-t { color: #b0402e; }
.mono-settle {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #b06a00;
  background: linear-gradient(180deg, #fff3d6 0%, #ffe2a8 100%);
  border: 1px solid rgba(240, 170, 60, 0.5);
  animation: fc-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

/* ================= 种田（二批） ================= */
.farm-field, .farm-plant-box {
  background: linear-gradient(180deg, #f4fbf0 0%, #e9f6e3 100%);
  border: 1px solid rgba(120, 190, 110, 0.35);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 6px 20px rgba(90, 160, 70, 0.1), inset 0 1px 0 #fff;
}
.farm-title {
  font-size: 13px;
  font-weight: 700;
  color: #4a7a3a;
  margin-bottom: 10px;
}
.farm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.farm-plot {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  border: 1px dashed rgba(150, 190, 140, 0.6);
  background: linear-gradient(180deg, #fdf7e8 0%, #f6ecd2 100%);
  color: #8a6f45;
  cursor: pointer;
  transition: transform 0.2s;
}
.farm-plot:active { transform: scale(0.95); }
.farm-empty { color: #b8a580; }
.farm-empty .fp-empty { font-size: 24px; font-weight: 300; }
.farm-empty .fp-sub { font-size: 11px; }
.farm-growing {
  background: linear-gradient(180deg, #f0faf0 0%, #ddf2dd 100%);
  border-style: solid;
  border-color: rgba(110, 180, 100, 0.5);
}
.farm-growing .fp-crop { font-size: 24px; animation: mono-bounce 1.2s ease-in-out infinite; }
.farm-growing .fp-time { color: #6a9a5a; font-size: 10px; }
.farm-ready {
  background: linear-gradient(180deg, #fff7c9 0%, #ffe9a0 100%);
  border-style: solid;
  border-color: rgba(240, 180, 60, 0.6);
  box-shadow: 0 0 0 2px rgba(240, 190, 80, 0.35), 0 4px 12px rgba(230, 170, 50, 0.3);
}
.farm-ready .fp-crop { font-size: 26px; animation: mono-bounce 0.7s ease-in-out infinite alternate; }
.farm-ready .fp-name { color: #a5750f; font-weight: 700; }
.farm-ready .fp-ready { color: #c07a1f; font-weight: 700; font-size: 10px; }
.farm-crops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.farm-crop {
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf3 100%);
  border: 1px solid rgba(130, 190, 120, 0.4);
  box-shadow: 0 3px 10px rgba(90, 160, 70, 0.12);
  cursor: pointer;
  transition: transform 0.2s;
}
.farm-crop:active { transform: scale(0.95); }
.farm-crop .fc-ico { font-size: 24px; }
.farm-crop .fc-name { font-weight: 700; color: #4a7a3a; font-size: 12px; margin: 2px 0; }
.farm-crop .fc-time { font-size: 10px; color: #8ab07a; }
.farm-crop .fc-out { font-size: 10px; color: #6a9a5a; margin-top: 3px; }
