/* =========================================================
   异界冒险 · 全局样式
   设计：竖屏移动端优先，宣纸底色，水墨点缀，楷体题字
   ========================================================= */
: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: #7a5f2e;
  --brown-soft: #f0ead9;
  --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-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-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-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;
}
.panel-body { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }

/* =========================================================
   异界冒险开场
   ========================================================= */
#screen-gaokao {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(201, 168, 106, 0.14), rgba(0, 0, 0, 0) 60%),
    linear-gradient(168deg, #232b30 0%, #333c42 55%, #1c2327 100%);
  display: flex; flex-direction: column; align-items: center; padding: 24px 20px;
}
.gaokao-wrap { width: 100%; max-width: 420px; margin-top: 8px; }
.gaokao-head { text-align: center; margin-bottom: 16px; }
.gaokao-head .emblem {
  width: 56px; height: 56px; margin: 0 auto 10px; 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 16px rgba(201, 168, 106, 0.45);
}
.gaokao-head h1 { font-size: 18px; color: #e8e0cc; letter-spacing: 3px; }
.gaokao-head .sub { font-size: 12px; color: #9aa3a8; margin-top: 6px; letter-spacing: 2px; }
.gaokao-progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); margin-bottom: 14px; overflow: hidden; }
.gaokao-progress .bar { height: 100%; width: 0; background: #c9a86a; transition: width 0.3s; box-shadow: 0 0 8px rgba(201, 168, 106, 0.6); }
.gaokao-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 12px; padding: 20px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.gaokao-q-no { font-size: 12px; color: #9aa3a8; margin-bottom: 10px; letter-spacing: 1px; }
.gaokao-q-title { font-size: 16px; font-weight: 700; line-height: 1.7; margin-bottom: 16px; color: #e8e4da; }
.gaokao-opt {
  display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 106, 0.28); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: #e8e4da; margin-bottom: 10px; cursor: pointer;
  transition: all 0.15s; letter-spacing: 1px;
}
.gaokao-opt:active { transform: scale(0.98); border-color: #c9a86a; background: rgba(201, 168, 106, 0.16); }
.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: 2px; }

/* 黑屏晕厥转场 */
#blackout {
  position: fixed; inset: 0; z-index: 999; background: #000;
  opacity: 0; pointer-events: none; transition: opacity 0.6s ease;
  display: flex; align-items: center; justify-content: center;
}
#blackout.on { opacity: 1; pointer-events: auto; }
#blackout .bo-text { color: #ddd; font-size: 15px; text-align: center; line-height: 2; letter-spacing: 2px; opacity: 0; transition: opacity 0.8s; }
#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, #7c3aed, #c026d3); box-shadow: 0 1px 3px rgba(124, 58, 237, 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); }

/* 战斗过程行关键词高亮 */
.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; }
.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);
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: transform 0.12s ease; position: relative; }
.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; }

/* 角色面板 */
.char-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 16px;
  background: linear-gradient(135deg, #5f4b28 0%, #453a1e 55%, #3d3520 100%);
  border-bottom: 1px solid rgba(197, 168, 106, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(42, 42, 38, 0.18);
  position: relative; color: #f5ecd8;
}
.char-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #c9a86a, rgba(201, 168, 106, 0));
}
.char-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  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: 24px; font-weight: 800; flex-shrink: 0;
  color: #5c4a12; font-family: var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.char-meta { flex: 1; min-width: 0; }
.char-name { font-size: 18px; font-weight: 800; color: #f5ecd8; font-family: var(--font-display); letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.char-sub { font-size: 12px; color: rgba(245, 236, 216, 0.75); margin-top: 3px; }
.char-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(245, 236, 216, 0.35); background: rgba(0, 0, 0, 0.25); color: #f5ecd8; font-size: 15px; cursor: pointer; }

.char-exp-box {
  padding: 12px 16px;
  background: linear-gradient(135deg, #5f4b28 0%, #453a1e 55%, #3d3520 100%);
  border-bottom: 1px solid rgba(197, 168, 106, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.exp-label { display: flex; justify-content: space-between; font-size: 12px; color: rgba(245, 236, 216, 0.85); margin-bottom: 6px; }
.exp-label span:last-child { color: #f0d488; font-weight: 700; }
.exp-bar { height: 9px; border-radius: 5px; background: rgba(0, 0, 0, 0.35); overflow: hidden; border: 1px solid rgba(197, 168, 106, 0.25); }
.exp-bar .fill { height: 100%; background: linear-gradient(90deg, #f0d488, #c9a94f); border-radius: 4px; transition: width 0.4s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.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; }
.equip-slot {
  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: 9px 12px; box-shadow: var(--shadow);
}
.equip-slot[data-q="0"] { border-left-color: #d7d7d7; }
.equip-slot[data-q="1"] { border-left-color: #2e7464; }
.equip-slot[data-q="2"] { border-left-color: #4f7fa8; }
.equip-slot[data-q="3"] { border-left-color: #84719e; }
.equip-slot[data-q="4"] { border-left-color: #f59e0b; }
.equip-slot[data-q="5"] { border-left-color: #ef4444; }
.equip-slot .es-icon {
  width: 34px; height: 34px; border-radius: 8px;
  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); flex-shrink: 0;
}
.equip-slot[data-q="1"] .es-icon { background: linear-gradient(180deg, #e6efe9 0%, #d3e3da 100%); color: #2e7464; }
.equip-slot[data-q="2"] .es-icon { background: linear-gradient(180deg, #eaf1f5 0%, #d7e4ec 100%); color: #4f7fa8; }
.equip-slot[data-q="3"] .es-icon { background: linear-gradient(180deg, #efe9f8 0%, #e0d4ee 100%); color: #84719e; }
.equip-slot[data-q="4"] .es-icon { background: linear-gradient(180deg, #fdf2e0 0%, #f6e0ba 100%); color: #f59e0b; }
.equip-slot[data-q="5"] .es-icon { background: linear-gradient(180deg, #fce9e8 0%, #f6d2cf 100%); color: #ef4444; }
.equip-slot .es-meta { flex: 1; min-width: 0; }
.equip-slot .es-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.equip-slot .es-name[data-q="0"] { color: #8a857a; }
.equip-slot .es-name[data-q="1"] { color: #2e7464; }
.equip-slot .es-name[data-q="2"] { color: #4f7fa8; }
.equip-slot .es-name[data-q="3"] { color: #84719e; }
.equip-slot .es-name[data-q="4"] { color: #f59e0b; }
.equip-slot .es-name[data-q="5"] { color: #ef4444; }
.equip-slot .es-enh { font-size: 11px; color: var(--orange); margin-top: 1px; }
.equip-slot .es-dur { font-size: 10px; color: var(--weak); margin-top: 1px; }
.equip-slot .es-slot { font-size: 11px; color: var(--weak); flex-shrink: 0; }
/* 分配自由点 */
.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-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; }
.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; }
.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 {
  position: relative; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%);
  border: 1px solid var(--line-gold); border-left: 3px solid var(--line); border-radius: 10px; padding: 7px 11px;
  cursor: pointer; box-shadow: var(--shadow); transition: transform 0.12s;
}
.bag-item:active { transform: scale(0.99); }
.bag-item[data-q="0"] { border-left-color: var(--q0); }
.bag-item[data-q="1"] { border-left-color: var(--q1); }
.bag-item[data-q="2"] { border-left-color: var(--q2); }
.bag-item[data-q="3"] { border-left-color: var(--q3); }
.bag-item[data-q="4"] { border-left-color: var(--q4); }
.bag-item[data-q="5"] { border-left-color: var(--q5); }
.bag-item .bi-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(180deg, #f3efe4 0%, #e9e2d0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--sub);
  border: 1px solid rgba(122, 95, 46, 0.15);
}
.bag-item[data-q="1"] .bi-ico { color: var(--q1); }
.bag-item[data-q="2"] .bi-ico { color: var(--q2); }
.bag-item[data-q="3"] .bi-ico { color: var(--q3); }
.bag-item[data-q="4"] .bi-ico { color: var(--q4); }
.bag-item[data-q="5"] .bi-ico { color: var(--q5); }
.bag-item .bi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bag-item .bi-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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-sub { font-size: 11px; color: var(--weak); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-item .bi-tier { font-size: 10px; color: var(--gold); 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; }

/* 物品操作弹层 */
.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: #fdf2e0; color: #f59e0b; border-color: #ecd3ab; }
.swap-item .si-icon[data-q="5"] { background: #fce9e8; color: #ef4444; border-color: #ecc5c5; }
.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: #f59e0b; }
.swap-item .si-name[data-q="5"] { color: #ef4444; }
.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-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; }
.enhance-panel { padding: 14px 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-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; }
.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; }
.skill-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 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.skill-card.locked { opacity: 0.68; filter: saturate(0.7); }
.skill-card .s-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.skill-card .s-icon {
  width: 30px; height: 30px; border-radius: 8px;
  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: 13px; font-weight: 800; flex-shrink: 0;
}
.skill-card .s-icon-p { color: var(--brown); }
.skill-card .s-icon-a { color: var(--green); }
.skill-card .s-name { font-size: 14px; font-weight: 700; flex: 1; }
.skill-card .s-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;
}
.skill-card.locked .s-lv { color: var(--weak); background: rgba(42, 42, 38, 0.06); border-color: transparent; }
.skill-card .s-desc { font-size: 12px; color: var(--sub); margin-bottom: 10px; }
.skill-card .s-btn { width: 100%; height: 34px; font-size: 12px; }

/* 冒险团 */
.team-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5f4b28 0%, #453a1e 55%, #3d3520 100%);
  color: #f5ecd8; padding: 16px 16px 14px; border-radius: 10px; margin-bottom: 12px;
  border: 1px solid rgba(197, 168, 106, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(42, 42, 38, 0.18);
}
.team-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #c9a86a, rgba(201, 168, 106, 0));
}
.team-hero .t-name {
  font-size: 19px; font-weight: 800; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.team-hero .t-name::before {
  content: '团'; font-size: 12px; color: #5c4a12; font-weight: 800;
  background: linear-gradient(180deg, #f0d488, #c9a94f);
  border-radius: 7px; padding: 2px 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.team-hero .t-meta { font-size: 11.5px; opacity: 0.9; margin-top: 6px; line-height: 1.7; }
.team-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.team-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;
}
.team-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);
}
.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; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.team-member .m-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  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);
}
.team-member .m-avatar-gold {
  background: linear-gradient(180deg, #f0d488 0%, #c9a94f 100%);
  border-color: rgba(122, 95, 46, 0.3); color: #5c4a12;
}
.team-member .m-avatar-wrap { position: relative; flex-shrink: 0; align-self: center; }
.team-member .m-info { flex: 1; }
.team-member .m-name { font-size: 13px; font-weight: 700; }
.team-member .m-sub { font-size: 11px; color: var(--weak); margin-top: 1px; }
.team-member .m-pos { font-size: 11px; color: var(--brown); font-weight: 700; }
.team-member .m-online { font-size: 11px; font-weight: 600; }
.team-member .m-online::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b6b6ad; display: inline-block; margin-right: 4px;
}

/* 转生面板升级 */
.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; }
.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; }
.team-upgrade {
  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 .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-bottom: 8px; }
.team-upgrade .btn { height: 30px; font-size: 12px; padding: 0 14px; }
.team-empty { text-align: center; padding: 46px 0 40px; color: var(--weak); }
.team-empty .team-empty-ico {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px;
  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: 26px; font-weight: 800; color: var(--brown);
  box-shadow: var(--shadow);
}
.team-empty .btn { margin-top: 14px; }
.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; }

/* 剧情 */
.story-chapters { padding: 12px 16px; }
.story-ch { 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: 10px; box-shadow: var(--shadow); }
.story-ch .sc-no { width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.story-ch.locked { opacity: 0.55; }
.story-ch.locked .sc-no { background: #eee; color: var(--weak); }
.story-ch .sc-info { flex: 1; }
.story-ch .sc-title { font-size: 14px; font-weight: 700; }
.story-ch .sc-sub { font-size: 11px; color: var(--weak); margin-top: 2px; }
.story-ch .sc-state { font-size: 11px; }
.story-reader { padding: 16px; }
.story-text { background: linear-gradient(180deg, #fdfbf6 0%, #f6f2e7 100%); border: 1px solid var(--line-gold); border-radius: 12px; padding: 18px; font-size: 14px; line-height: 2; min-height: 180px; }
.story-choices { margin-top: 16px; }
.story-choice {
  display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; font-size: 14px; margin-bottom: 10px; cursor: pointer;
}
.story-choice:active { transform: scale(0.98); border-color: var(--green); }
.story-next { margin-top: 4px; }

/* 副本 */
.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 { font-size: 11px; color: var(--purple); font-weight: 700; }
.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.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; background: linear-gradient(180deg, #fffdf3 0%, #f8f1de 100%); border: 1px solid rgba(201, 169, 79, 0.5); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; }
.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-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; }
.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); }
.fc-ico[data-q="3"] { color: var(--q3); }
.fc-ico[data-q="4"] { color: var(--q4); }
.fc-ico[data-q="5"] { color: var(--q5); }
.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-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-result { text-align: right; flex-shrink: 0; max-width: 46%; font-size: 11px; line-height: 1.6; }
.fc-foot .btn { padding: 6px 14px; font-size: 12px; }
@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; }

/* 邮件 */
.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; padding: 10px 18px; border-radius: 999px;
  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: 80vw; text-align: center;
  border: 1px solid rgba(201, 168, 106, 0.35);
}
#toast.show { opacity: 1; }

/* 底部操作弹层 */
#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;
  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; }
.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; }

/* 公告横幅（滚动播报） */
.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: 7px; align-items: flex-start; padding: 2px 0; animation: battleLineIn 0.25s ease; }
.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; }
.battle-line.event .battle-dot { background: #4a4a44; }
.battle-line.event .battle-txt { color: #2f2f2b; font-weight: 700; }
.battle-line.battle .battle-dot { background: #5c7380; }
.battle-line.battle .battle-txt { color: #5c7380; }
.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); } }

/* 属性帮助提示 */
.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-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-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-loot-win { border-color: #c9a86a; color: #8a6a2a; font-weight: 700; background: linear-gradient(180deg, #fdf6e3, #f4e7c4); }
.td-loot-rolls .td-loot-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 #4caf50; }
.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: var(--sub); line-height: 1.8; }

/* ===== 组队地下城 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-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: #f59e0b; }
.td-loot-ico[data-q="5"] { background: #ef4444; }
.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 #4caf50; }
.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: 22px 16px 20px; overflow: hidden;
  background: linear-gradient(135deg, #3b8a76, #2e7464 55%, #24594e);
}
.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,.16), transparent 50%);
}
.profile-head.pf-warrior { background: linear-gradient(135deg, #e8a35a, #b45309 60%, #8a3b06); }
.profile-head.pf-mage { background: linear-gradient(135deg, #a78bfa, #7c3aed 60%, #5b21b6); }
.profile-head.pf-archer { background: linear-gradient(135deg, #38bdf8, #0e7490 60%, #155e75); }
.profile-head.pf-assassin { background: linear-gradient(135deg, #fb7185, #be123c 60%, #881337); }
.profile-head.pf-priest { background: linear-gradient(135deg, #4ade80, #15803d 60%, #14532d); }

.profile-avatar {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.55); box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.profile-meta { position: relative; flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.profile-title { margin-top: 5px; }
.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 { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.profile-sub b { color: #fff; }
.pf-class { font-weight: 800; }
.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 {
  margin: 12px 16px 0; padding: 12px 14px; font-size: 13px; color: var(--brown);
  background: linear-gradient(180deg, #fdf6e0, #f8ecd0); border: 1px solid #ecdcb0; border-radius: 12px;
  line-height: 1.6;
}
.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 {
  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,#f87171,#ad4a43); }
.pg-ico.atk  { background: linear-gradient(135deg,#fb923c,#ea580c); }
.pg-ico.def  { background: linear-gradient(135deg,#60a5fa,#2563eb); }
.pg-ico.crit { background: linear-gradient(135deg,#c084fc,#84719e); }
.pg-ico.crd  { background: linear-gradient(135deg,#f0abfc,#c026d3); }
.pg-ico.dod  { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.pg-ico.hit  { background: linear-gradient(135deg,#4ade80,#16a34a); }
.pg-ico.spd  { background: linear-gradient(135deg,#facc15,#ca8a04); }
.pg-ico.sta  { background: linear-gradient(135deg,#34d399,#059669); }
.pg-ico.spr  { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.pg-ico.eng  { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.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-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,#60a5fa,#2563eb); }
.pe-icon.q3 { background: linear-gradient(135deg,#c084fc,#7c3aed); }
.pe-icon.q4 { background: linear-gradient(135deg,#fbbf24,#b9792a); }
.pe-icon.q5 { background: linear-gradient(135deg,#f87171,#ad4a43); }
.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: #57534e; } .pe-name.q2 { color: #2563eb; } .pe-name.q3 { color: #7c3aed; } .pe-name.q4 { color: #b45309; } .pe-name.q5 { color: #ad4a43; }
.pe-enh { font-style: normal; background: linear-gradient(180deg,#fbbf24,#b9792a); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 800; }
.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-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: #4caf50; }
.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: #b45309; }
.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: #b45309; 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, #c4b5fd 0%, #7c3aed 100%); }
.chat-class-badge.cc-c3 { background: linear-gradient(180deg, #fda4af 0%, #be123c 100%); }
.chat-class-badge.cc-c4 { background: linear-gradient(180deg, #86efac 0%, #15803d 100%); }
.chat-class-badge.cc-c5 { background: linear-gradient(180deg, #93c5fd 0%, #2563eb 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: #b45309; 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: 92%; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #fffdf6, #faf6ea);
  border: 1px solid var(--line-gold); border-radius: 10px;
  padding: 6px 10px; font-size: 12px; box-shadow: 0 1px 3px rgba(122,95,46,.06);
}
.chat-notice-text { flex: 1; color: #6f5f45; line-height: 1.6; word-break: break-word; }
.chat-notice-time { color: #c2b8a0; font-size: 10px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- 信息频道 ---------- */
.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; }
}
@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: #f3d27e; --t2: #c99a3f; --t3: #7a5f2e; }
.gp-theme-pet   { --t1: #7fd9b6; --t2: #3fae8f; --t3: #2e7464; }
.gp-theme-ach   { --t1: #b0da7c; --t2: #6fae4e; --t3: #4d8a37; }
.gp-theme-boss  { --t1: #ff9a78; --t2: #e2624c; --t3: #a83e2e; }
.gp-theme-exp   { --t1: #97a8ff; --t2: #6a7fd6; --t3: #4a5ca8; }
.gp-theme-arena { --t1: #ff8fb0; --t2: #d6507a; --t3: #a8325a; }
/* 功能面板主题色板：背包棕铜 / 技能靛蓝 / 冒险团金绿 / 剧情紫罗 / 副本深翠 / 转生绯紫 / 地图湖蓝 / 商店琥珀 / 排行钢蓝 / 邮件云灰 / 图鉴苔绿 / 装备图鉴青黛 / 组队地下城海蓝 / 称号鎏金 / 签到玫金 / 任务松绿 / 好友樱粉 / 拍卖橙金 / 日志石墨 / 锻造青铜 */
.gp-theme-char  { --t1: #d9b3ff; --t2: #a678e0; --t3: #6f4a9e; }
.gp-theme-bag   { --t1: #e0b78f; --t2: #c08a55; --t3: #8a5a30; }
.gp-theme-skill { --t1: #8fc7ff; --t2: #5a96e0; --t3: #3a6a9e; }
.gp-theme-team  { --t1: #cde887; --t2: #96b84e; --t3: #5f7a2e; }
.gp-theme-story { --t1: #c79bff; --t2: #9a6ae0; --t3: #6a429e; }
.gp-theme-dungeon { --t1: #8fd8b8; --t2: #4aa886; --t3: #2e6e52; }
.gp-theme-rebirth { --t1: #ff9ac0; --t2: #e05a8c; --t3: #9e3a5e; }
.gp-theme-maps  { --t1: #7fd8e8; --t2: #3fa8c0; --t3: #2e7080; }
.gp-theme-shop  { --t1: #f0d488; --t2: #c9a94f; --t3: #7a5f2e; }
.gp-theme-rank  { --t1: #9fb8e8; --t2: #6a86c0; --t3: #425a8a; }
.gp-theme-mail  { --t1: #c8d4e8; --t2: #8a9cb8; --t3: #5a6882; }
.gp-theme-best  { --t1: #a8d88a; --t2: #6aa84e; --t3: #447a2e; }
.gp-theme-ecomp { --t1: #9ad8d0; --t2: #58a89e; --t3: #36746a; }
.gp-theme-td    { --t1: #8fc8f0; --t2: #4a94c8; --t3: #2e6286; }
.gp-theme-title { --t1: #f5d98f; --t2: #d4ab4e; --t3: #8a6a2e; }
.gp-theme-sign  { --t1: #ffb0c0; --t2: #e86a86; --t3: #a83a56; }
.gp-theme-quest { --t1: #a0e0a8; --t2: #5aaa60; --t3: #36743a; }
.gp-theme-friend { --t1: #ffb3d6; --t2: #e0709e; --t3: #9e3a66; }
.gp-theme-auction { --t1: #f5b87f; --t2: #d97f45; --t3: #9e5426; }
.gp-theme-log   { --t1: #b8c4d0; --t2: #7a8898; --t3: #4e5a68; }
.gp-theme-forge { --t1: #e0c08a; --t2: #b8904e; --t3: #7a5c2e; }
.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 {
  --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) 34%, transparent) 0%, transparent 55%),
    linear-gradient(120deg, #26282e 0%, #34373f 55%, #26282e 100%);
  border: 1px solid color-mix(in srgb, var(--t1) 45%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.gp-hero-sm {
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.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: #2b2010;
  background: linear-gradient(160deg, var(--t1) 0%, var(--t2) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 5px 14px color-mix(in srgb, var(--t2) 48%, transparent);
}
.gp-hero-meta { flex: 1; min-width: 0; }
.gp-hero-title {
  font-size: 19px; font-weight: 900; color: #f7efda; letter-spacing: 2px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.gp-hero-desc { font-size: 11.5px; color: rgba(247,239,218,0.78); margin-top: 3px; line-height: 1.6; }
.gp-hero-sub {
  font-size: 10.5px; font-weight: 700; color: var(--tq);
  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: #2b2010; background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.gp-hero-side {
  text-align: right; flex-shrink: 0; padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.gp-hero-side .v {
  font-size: 27px; font-weight: 900; color: var(--t1); line-height: 1;
  text-shadow: 0 2px 10px color-mix(in srgb, var(--t2) 55%, transparent);
}
.gp-hero-side .k { font-size: 10px; color: rgba(247,239,218,0.6); 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; }

/* ---- 按钮 ---- */
.gp-btn {
  height: 30px; font-size: 12px; padding: 0 14px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; font-weight: 800; letter-spacing: 0.5px;
  transition: filter .15s ease, transform .12s ease;
}
.gp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gp-btn.primary {
  background: linear-gradient(180deg,#f3cf7a 0%,#ddab49 100%); color: #3a2e10;
  border-color: rgba(185,140,50,0.55); 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; }
