:root {
  --color-primary: #E0B15A;
  --color-on-primary: #1A1408;
  --color-surface: #121212;
  --color-on-surface: #F3F3F3;
  --color-outline: #9A9A9A;
  --color-surface-variant: #2A2A2A;
  --color-card: #1C1C1C;
  --color-error: #BA1A1A;
  --color-secondary: #4F6354;
  --radius-md: 8px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --tab-height: 56px;
  --sidebar-width: 220px;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "HarmonyOS Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: var(--font-body); background: var(--color-surface); color: var(--color-on-surface); }
button, input, textarea, select { font: inherit; }
a { color: var(--color-primary); }
.app { display: flex; height: 100%; min-height: 100vh; }
.sidebar {
  width: 76px; min-width: 76px; max-width: 76px;
  background: #161616; color: #C8C8C8; display: flex; flex-direction: column; align-items: center; padding: 12px 0;
}
.sidebar .logo { padding: 4px 0 16px; font-weight: 700; font-size: 11px; color: #fff; text-align: center; }
.sidebar .logo img { width: 36px; height: 36px; display: block; margin: 0 auto 6px; }
.sidebar nav { width: 100%; }
.sidebar nav button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc(100% - 16px);
  margin: 4px 8px; border: 0; border-radius: 8px; background: transparent;
  color: #BDBDBD; text-align: center; padding: 8px 4px; cursor: pointer; font-size: 12px;
}
.sidebar nav button.active, .sidebar nav button:hover { color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.sidebar .ico {
  width: 20px; height: 20px; display: inline-block; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.hall-ad { position: absolute; inset: 0; z-index: 8; overflow: hidden; cursor: pointer; background: #0a0f14; }
.hall-ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall-ad.local::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,16,.2), rgba(8,12,16,.72));
}
.hall-ad-skip {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  border: 0; border-radius: 999px; background: rgba(0,0,0,.55); color: #f1ece1;
  padding: 6px 12px; cursor: pointer; font: inherit;
}
.hall-ad-copy {
  position: absolute; left: 48px; bottom: 96px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px; color: #f1ece1;
  text-shadow: 0 2px 16px rgba(0,0,0,.8); pointer-events: none;
}
.hall-ad-copy .seal-img { width: 72px; height: 64px; }
.hall-ad-copy strong { font-size: 36px; letter-spacing: 6px; }
.hall-ad-copy em { font-style: normal; color: #e7cf92; font-size: 16px; }
.hall-ad-more {
  position: absolute; right: 28px; bottom: 28px; z-index: 2;
  border: 0; background: rgba(0,0,0,.72); color: #f1ece1;
  padding: 10px 16px; cursor: pointer; font: inherit;
}
.topbar {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid #2A2A2A; background: #161616;
}
.topbar .muted { color: var(--color-outline); font-size: 13px; }
.content { flex: 1; overflow: auto; padding: var(--space-5); }
.card {
  background: var(--color-card); border: 1px solid #2A2A2A; border-radius: var(--radius-md);
  padding: var(--space-4); margin-bottom: var(--space-4);
}
.btn {
  border: 0; border-radius: var(--radius-md); padding: 10px 16px; cursor: pointer;
  background: var(--color-primary); color: var(--color-on-primary);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn.danger { background: var(--color-error); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field input, .field textarea, .field select {
  border: 1px solid #3A3A3A; border-radius: var(--radius-md); padding: 10px 12px;
  background: #111; color: var(--color-on-surface);
}
.err { color: var(--color-error); margin: 8px 0; }
.ok { color: var(--color-primary); }
.muted { color: var(--color-outline); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--color-surface-variant); font-size: 12px; }
.pill.warn { background: #FFF3CD; }
.pill.ok { background: #D1E8D5; }
.split { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-4); min-height: 420px; }
.list-item { padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent; }
.list-item:hover, .list-item.active { background: var(--color-surface-variant); }
.tabs { display: flex; gap: 8px; margin-bottom: var(--space-4); }
.tabs button { border: 0; background: var(--color-surface-variant); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.active { background: var(--color-primary); color: #fff; }
.empty { text-align: center; padding: 48px 16px; color: var(--color-outline); }
.gate { max-width: 420px; margin: 48px auto; }
.login-screen {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 9vw;
  background:
    linear-gradient(90deg, rgba(8,12,16,.15) 30%, rgba(8,12,16,.72) 80%),
    url("../assets/login/tmmd-login.jpg") center / cover no-repeat,
    #0a0f14;
}
.login-card {
  width: 380px; max-width: 90vw; padding: 36px 32px; text-align: center;
  border: 20px solid transparent;
  border-image: url("../assets/login/tmmd-frame.jpg") 54 48 stretch;
  background: linear-gradient(180deg, rgba(28,24,18,.92), rgba(12,10,8,.96));
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.seal-img { width: 96px; height: 86px; object-fit: contain; }
.login-title { margin: 0 0 6px; font-size: 26px; letter-spacing: 4px; color: #e7cf92; font-weight: 700; }
.login-sub { margin: 0 0 22px; color: #b3ab98; font-size: 13px; }
.login-tip { margin: 0; color: #b3ab98; font-size: 12px; line-height: 1.7; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field span { font-size: 13px; color: #b3ab98; }
.login-field input {
  background: #0a0f14; border: 1px solid rgba(196,160,90,.32); color: #f1ece1;
  padding: 10px 12px; outline: none; font: inherit; box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
.login-submit {
  border: 10px solid transparent; border-width: 10px 24px;
  border-image: url("../assets/login/tmmd-btn.jpg") 22 75 fill stretch;
  background: transparent; color: #2a1c08; cursor: pointer; font: inherit; font-weight: 700;
  letter-spacing: 6px; min-height: 44px;
}
.login-text, .login-agree button {
  border: 0; background: transparent; color: #b3ab98; cursor: pointer; font: inherit; padding: 0;
}
#captcha-opts { justify-content: center; }
#captcha-opts button {
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid #c4a05a; background: transparent; color: #e7cf92; font-size: 18px;
}
#captcha-opts button:hover,
#captcha-opts button:focus { background: transparent; color: #e7cf92; outline: none; }
#captcha-opts button.active,
#captcha-opts button.active:hover,
#captcha-opts button.active:focus { background: #e0b15a; color: #241a08; }
.login-agree { color: #b3ab98; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.login-links { display: flex; justify-content: space-between; }
.login-code { display: flex; gap: 8px; }
.login-code input { flex: 1 1 auto; min-width: 0; }
.login-code-btn {
  flex: none; padding: 0 12px; border: 1px solid rgba(196,160,90,.5); background: transparent;
  color: #e7cf92; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap;
}
.login-code-btn:disabled { opacity: .55; cursor: default; }
.sms-tip { font-size: 12px; }
.login-agree button { text-decoration: underline; }
.splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    linear-gradient(180deg, rgba(8,12,16,.35), rgba(8,12,16,.82)),
    url("../assets/login/tmmd-login.jpg") center / cover no-repeat,
    #0a0f14;
}
.splash-title { font-size: 26px; font-weight: 700; letter-spacing: 4px; color: #f1ece1; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.splash-sub { font-size: 13px; color: #b3ab98; }
.splash-bar { width: 280px; height: 6px; background: #141b24; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.splash-bar-fill { width: 0; height: 100%; background: linear-gradient(90deg, #c69a32, #e7c878); }
.login-split { display: grid; grid-template-columns: minmax(0, 1.15fr) 440px; min-height: 100vh; }
.login-visual {
  background: #0E1014; color: #fff; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 64px; gap: 16px;
}
.login-visual h1 { margin: 0; font-size: 40px; font-weight: 700; }
.login-visual p { margin: 0; max-width: 360px; line-height: 1.6; color: #C5D0C8; }
.login-mark { width: 280px; height: 280px; object-fit: contain; }
.login-panel { display: flex; align-items: center; padding: 32px; background: #171A21; }
.login-panel .card { width: 100%; margin: 0; background: transparent; border: 0; }
.chips { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { border: 0; background: transparent; color: #C8C8C8; padding: 6px 0; cursor: pointer; }
.chip.active, .chip:hover { color: var(--color-primary); }
.home-banner {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  background: linear-gradient(90deg, #1B6B43, #0E1014 55%);
  border: 0; border-radius: 8px; color: #fff; padding: 22px 20px; margin-bottom: 20px; cursor: pointer;
}
.home-banner img { width: 64px; height: 64px; }
.home-banner strong { display: block; font-size: 22px; }
.home-banner em { font-style: normal; color: #E6E6E6; }
.home-banner .btn { margin-left: auto; }
.home-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; }
.home-split h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.srv-row {
  display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: var(--color-card); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.srv-time { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.srv-thumb { width: 40px; height: 40px; border-radius: 6px; }
.srv-go { padding: 6px 12px; }
.srv-row.rank { grid-template-columns: 28px 36px minmax(0, 1fr); cursor: pointer; }
.shortcuts { display: flex; gap: 10px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.shortcut {
  min-width: 72px; border: 1px solid #2A2A2A; background: var(--color-card); color: inherit;
  border-radius: var(--radius-md); padding: 12px 14px; cursor: pointer; color: var(--color-on-surface);
}
.shortcut.active, .shortcut:hover { border-color: var(--color-primary); color: var(--color-primary); }
.find-row { margin-bottom: var(--space-4); }
.find-row input {
  width: min(420px, 100%); border: 1px solid var(--color-outline); border-radius: var(--radius-md);
  padding: 10px 12px; background: #111; color: inherit;
}
.reco { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--space-4); }
.reco-card {
  min-width: 180px; background: var(--color-card); border: 1px solid #2A2A2A;
  border-radius: var(--radius-md); padding: 14px; cursor: pointer; text-align: left; color: inherit;
}
.reco-card strong { display: block; margin-bottom: 6px; }
.zone-row {
  display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  gap: 12px; align-items: center; background: var(--color-card); border: 1px solid #2A2A2A;
  border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px;
}
.zone-mark {
  width: 44px; height: 44px; border-radius: 10px; background: #1B6B43; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.zone-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-4); align-items: start; }
.zone-hero {
  min-height: 168px; border-radius: var(--radius-md); padding: var(--space-4);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(145deg, #0F1A14 0%, #1B6B43 100%); margin-bottom: var(--space-4);
}
.zone-hero h2 { margin: 0 0 6px; font-size: 28px; }
.zone-side { background: var(--color-card); border: 1px solid #2A2A2A; border-radius: var(--radius-md); padding: var(--space-4); }
.zone-side h3 { margin: 0 0 12px; font-size: 16px; }
.zone-side .btn { width: 100%; margin-top: 8px; }
.zone-util {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: var(--space-4); padding: 10px 14px; background: var(--color-card);
  border: 1px solid var(--color-surface-variant); border-radius: var(--radius-md); font-size: 13px;
}
.section-label { margin: 0 0 8px; font-size: 13px; color: var(--color-outline); }
/* ---------- Shell layout ---------- */
:root {
  --bg: #111317; --panel: #191c22; --card: #20242b; --card-2: #262b33; --line: #2b3038;
  --gold: #e0b15a; --gold-2: #f2d08a; --text: #ece7dc; --muted: #8d939c; --crimson: #b8402f; --jade: #3f9d84;
}
body { background: var(--bg); color: var(--text); }
.svg { display: inline-flex; width: 18px; height: 18px; flex: none; }
.svg svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app { display: flex; flex-direction: column; height: 100vh; background: var(--bg); }
.appbar {
  height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: #0d0f12; border-bottom: 1px solid #1d2026;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 120px; font-weight: 700; letter-spacing: 3px; color: var(--gold-2); }
.brand img { width: 28px; height: 25px; object-fit: contain; }
.icon-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: #b9bec6; cursor: pointer;
}
.icon-btn:hover { background: #1d2128; color: var(--gold-2); }
.search {
  display: flex; align-items: center; gap: 6px; width: 240px; height: 30px; padding: 0 10px;
  background: #1a1d23; border: 1px solid #262a31; border-radius: 15px; color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 13px; }
.search.light { background: #1d2128; }
.appbar-meta { flex: 1; color: var(--muted); font-size: 12px; }
.appbar-right { display: flex; align-items: center; gap: 6px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); cursor: pointer;
  background: linear-gradient(160deg, #7a1d18, #3d0f0c); color: var(--gold-2); font-weight: 700;
}
.avatar.sm { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-body { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 64px; min-width: 64px; max-width: 64px; display: flex; flex-direction: column; align-items: center;
  padding: 10px 0; background: #0d0f12; border-right: 1px solid #1d2026; color: #b9bec6;
}
.sidebar nav { width: 100%; }
.sidebar nav button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; margin: 2px auto 8px;
  padding: 8px 0; border: 0; border-radius: 10px; background: transparent; color: #aab0b9; font-size: 12px; cursor: pointer;
}
.sidebar nav button.active { background: #1e2229; color: var(--gold-2); box-shadow: none; }
.sidebar nav button:hover { color: var(--gold-2); box-shadow: none; }
.side-links { width: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px solid #1d2026; display: flex; flex-direction: column; }
.side-links button { border: 0; background: transparent; color: #8d939c; font-size: 12px; padding: 9px 0; cursor: pointer; }
.side-links button:hover, .side-links button.on { color: var(--gold-2); }
.side-links button.on { background: #1e2229; }
.side-foot {
  margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; background: transparent; color: #8d939c; font-size: 11px; cursor: pointer;
}
.side-foot .svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #1e2229; color: var(--gold); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.content { flex: 1; overflow: auto; padding: 18px 64px 40px 28px; }
.float-bar {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; border-radius: 22px;
  background: #1c1f26; border: 1px solid #2a2f37; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.float-bar button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #c5cad2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.float-bar button:hover { background: #2a2f37; color: var(--gold-2); }
.hall { max-width: 1180px; margin: 0 auto; }
.zone-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ztab {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 6px;
  background: transparent; color: #aab0b9; cursor: pointer; font-size: 14px;
}
.ztab .svg { width: 16px; height: 16px; }
.ztab.active { background: linear-gradient(180deg, #f0c66a, #d39a35); color: #241a08; font-weight: 700; }
.sub-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.stab { height: 30px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: #8d939c; cursor: pointer; font-size: 13px; }
.stab.active { background: #20242b; color: var(--gold-2); }
.notice-strip { margin-bottom: 14px; padding: 8px 12px; border-radius: 6px; background: #241f15; color: #e9d3a1; font-size: 13px; }
.sec { margin-bottom: 30px; }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: #f3efe6; white-space: nowrap; }
.sec-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #8d939c; cursor: pointer; font-size: 13px; }
.more .svg { width: 16px; height: 16px; border-radius: 50%; background: #2a2f37; padding: 2px; }
.date-strip { flex: 1; display: flex; align-items: center; gap: 4px; position: relative; }
.date-strip::before { content: ""; position: absolute; left: 34px; right: 34px; top: 50%; border-top: 1px solid #30353e; }
.ds-arrow { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #262a31; color: #c5cad2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ds-day { position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 13px; }
.ds-day i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #5b616b; background: var(--bg); }
.ds-day.active { color: var(--gold-2); }
.ds-day.active i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(224,177,90,.6); }
.corner {
  position: absolute; left: 0; top: 0; z-index: 2; padding: 3px 8px; font-size: 11px; color: #f6eedd;
  background: rgba(15,17,20,.82); border-bottom-right-radius: 6px;
}
.corner.right { left: auto; right: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 6px; background: var(--crimson); }
.cover-title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; padding: 0 10px;
  text-align: center; font-family: "STKaiti", "KaiTi", "楷体", serif; font-size: 34px; font-weight: 700; line-height: 1.15;
  color: #fff6de; letter-spacing: 3px; pointer-events: none;
  text-shadow: 0 0 1px #2a1204, 0 1px 2px #2a1204, 0 2px 6px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.75), 0 0 26px rgba(232,170,72,.45);
}
.cover-title.sm { font-size: 22px; letter-spacing: 2px; }
.cover-title.xs { font-size: 15px; letter-spacing: 1px; }
.feature-cover::after, .mini-cover::after, .cover::after, .cover-tile::after, .rank-thumb::after, .find-cover::after, .play-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.42), rgba(0,0,0,.05) 70%);
}
.feature {
  display: grid; grid-template-columns: 42% 58%; height: 214px; border-radius: 10px; overflow: hidden;
  background: #1a1d23; cursor: pointer; border: 1px solid #23272e;
}
.feature-cover { position: relative; overflow: hidden; }
.feature-cover img, .feature-bg, .mini-cover img, .pick img, .cover img, .cover-tile img, .rank-thumb img,
.find-cover img, .find-bg, .play-cover img, .forum-head-bg, .feed-banner img, .zone-hero-bg, .zicon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.feature-info { position: relative; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; opacity: .55; }
.feature-info::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,27,.96) 30%, rgba(20,22,27,.35)); }
.feature-text { position: relative; z-index: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.feature-text h3 { margin: 0; font-size: 19px; color: #fbf6ea; }
.feature-text p { margin: 0; color: #b2b7bf; font-size: 13px; }
.feature-text .btn-gold { margin-top: auto; align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid #3a3f48; border-radius: 3px; color: #b8bdc5; font-size: 11px; line-height: 18px; background: #1d2026; }
.btn-gold, .btn-dark, .btn-hot, .btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; white-space: nowrap;
}
.btn-gold { height: 34px; padding: 0 22px; border-radius: 6px; background: linear-gradient(180deg, #f3cc72, #d6a03d); color: #2a1d06; font-weight: 700; }
.btn-gold.sm { height: 28px; padding: 0 14px; font-size: 13px; }
.btn-gold .svg, .btn-dark .svg { width: 14px; height: 14px; }
.btn-dark { height: 30px; padding: 0 14px; border-radius: 6px; background: #2a2f37; color: #e5e1d8; font-size: 13px; }
.btn-dark:hover { background: #343a44; color: var(--gold-2); }
.btn-dark:disabled { opacity: .55; cursor: not-allowed; background: #2a2f37; color: #9aa0a9; }
.btn-dark.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn-hot { height: 32px; padding: 0 20px; border-radius: 16px; background: linear-gradient(180deg, #ff7a3d, #e24a1f); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(226,74,31,.35); }
.btn-hot:disabled, .btn-gold:disabled, .btn-ink:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ink { height: 30px; padding: 0 16px; border-radius: 4px; background: #23201a; color: var(--gold-2); border: 1px solid #4a3d22; font-size: 13px; }
.btn-ink.active { background: var(--gold); color: #241a08; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 8px; background: #1c1f25; cursor: pointer; border: 1px solid #23272e; }
.mini:hover, .feature:hover, .cover-card:hover, .pick:hover, .rank-big:hover { border-color: #4b3f25; }
.mini-cover { position: relative; height: 64px; border-radius: 6px; overflow: hidden; }
.mini-info strong { display: block; font-size: 14px; color: #f3efe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-info p { margin: 3px 0 5px; color: #8d939c; font-size: 12px; }
.pick-row { display: grid; grid-template-columns: 2.1fr repeat(4, minmax(0, 1fr)); gap: 12px; height: 230px; }
.pick { position: relative; padding: 0; border: 1px solid #23272e; border-radius: 10px; overflow: hidden; cursor: pointer; background: #1a1d23; text-align: left; color: inherit; }
.pick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(8,9,12,.88)); }
.pick-text { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.pick-text strong { font-family: "STKaiti", "KaiTi", "楷体", serif; font-size: 22px; color: #fff1cf; text-shadow: 0 2px 8px #000; }
.pick.wide .pick-text strong { font-size: 32px; }
.pick-text em { font-style: normal; font-size: 12px; color: #d8d2c3; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { min-width: 0; }
.panel-body { background: #1a1d23; border: 1px solid #23272e; border-radius: 10px; padding: 14px 16px; }
.clock-row { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid #2b3038; }
.clock-chips { flex: 1; display: flex; gap: 8px; overflow-x: auto; }
.clock { height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: #262a31; color: #c5cad2; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock.active { background: linear-gradient(180deg, #f3cc72, #d6a03d); color: #2a1d06; font-weight: 700; }
.clock-row select, .filter-bar select, .task-top select {
  height: 30px; padding: 0 10px; border-radius: 5px; border: 1px solid #2f343c; background: #20242b; color: #d5d9df;
}
.open-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #23272e; cursor: pointer; }
.open-row.timed { grid-template-columns: 52px 44px minmax(0, 1fr) auto; }
.open-row:last-child { border-bottom: 0; }
.open-clock { color: var(--gold-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.open-info strong { display: block; margin-bottom: 4px; font-size: 14px; color: #f3efe6; }
.chan-tip { margin: 0 0 12px; color: #9a9a9a; font-size: 13px; }
.chan-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.chan-srv { flex: 1 1 240px; min-width: 0; max-width: 100%; padding: 12px; border: 1px solid #2a2a2a; border-radius: var(--radius-md); background: #151515; }
.chan-srv.multi { flex: 2 1 400px; }
.chan-zone { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chan-zone strong { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-zone > span:last-child { margin-left: auto; flex: none; color: #9a9a9a; font-size: 12px; }
.chan-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.chan-area { min-width: 0; padding: 8px 10px; border-radius: 6px; background: #1d1d1d; }
.chan-area.focus { outline: 1px solid var(--gold-2); }
.chan-area-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.chan-area-head b { font-size: 14px; color: #f3efe6; }
.chan-area-head em { font-style: normal; font-size: 12px; color: #9a9a9a; }
.chan-area-head em.ok { color: #6fcf7f; }
.chan-roles { display: flex; flex-direction: column; gap: 4px; }
.chan-roles span { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; min-width: 0; }
.chan-roles i { flex: none; font-style: normal; color: #9a9a9a; font-size: 12px; }
.chan-roles span.on i { color: #6fcf7f; }
.chan-roles em { font-style: normal; color: #9a9a9a; font-size: 13px; }
.chan-roles em.bad { color: var(--color-error); }
.zicon { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; border: 1px solid #5b4521; }
.zicon b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "STKaiti", "KaiTi", "楷体", serif; font-size: 17px; line-height: 1; color: #fff1cf;
  background: rgba(20,10,4,.35); text-shadow: 0 1px 2px #000, 0 0 6px rgba(240,170,70,.6);
}
.rank-tabs { display: flex; justify-content: space-around; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid #2b3038; }
.rtab { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #8d939c; cursor: pointer; font-size: 13px; padding: 4px 6px; }
.rtab .svg { width: 15px; height: 15px; }
.rtab.active { color: var(--gold-2); }
.rank-row { display: grid; grid-template-columns: 30px 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; cursor: pointer; }
.rank-no { text-align: center; font-size: 20px; font-style: italic; font-weight: 700; color: #6d737c; }
.rank-row.top .rank-no, .rank-big.top .rank-no { color: var(--gold); font-size: 24px; }
.rank-thumb { position: relative; height: 54px; border-radius: 6px; overflow: hidden; border: 1px solid #2f343c; }
.rank-info strong { display: block; font-size: 14px; color: #f3efe6; }
.rank-info p { margin: 2px 0 4px; color: #8d939c; font-size: 12px; }
.badge { font-style: normal; margin-left: 6px; padding: 0 6px; border: 1px solid #8b6a2c; border-radius: 3px; color: var(--gold-2); font-size: 11px; }
.cover-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cover-card { cursor: pointer; border: 1px solid #23272e; border-radius: 10px; overflow: hidden; background: #1a1d23; padding-bottom: 10px; }
.cover { position: relative; height: 112px; overflow: hidden; }
.cover .cover-title { font-size: 26px; }
.cover-name { padding: 8px 10px 4px; font-size: 14px; color: #f3efe6; }
.cover-card .tags { padding: 0 10px; }
.find-layout, .rank-layout { display: grid; gap: 16px; align-items: start; }
.find-layout { grid-template-columns: minmax(0, 1fr) 168px; }
.rank-layout { grid-template-columns: 96px minmax(0, 1fr) 168px; }
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 20px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.filter-bar input { height: 30px; flex: 1; max-width: 220px; padding: 0 10px; border-radius: 5px; border: 1px solid #2f343c; background: #20242b; color: var(--text); }
.filter-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.filter-panel { position: sticky; top: 0; padding: 14px 12px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.filter-panel h4 { margin: 0 0 10px; font-size: 14px; color: #f3efe6; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.fp { height: 28px; border: 1px solid #2f343c; border-radius: 5px; background: transparent; color: #b8bdc5; cursor: pointer; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp.active { border-color: var(--gold); color: var(--gold-2); background: #2a2316; }
.fp-note { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.find-feature { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; height: 150px; padding: 12px; border-radius: 10px; overflow: hidden; cursor: pointer; background: #1a1d23; border: 1px solid #23272e; }
.find-bg { position: absolute; inset: 0; opacity: .4; }
.find-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,27,.5), rgba(20,22,27,.92) 40%, rgba(20,22,27,.55)); }
.find-cover { position: relative; z-index: 1; border-radius: 6px; overflow: hidden; }
.find-info { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.find-title { display: flex; gap: 10px; align-items: center; }
.find-title h3 { margin: 0 0 4px; font-size: 16px; color: #f3efe6; }
.find-title p { margin: 0; color: #a7acb4; font-size: 12px; }
.find-info .btn-gold { align-self: flex-start; }
.find-feature .corner.right { z-index: 3; }
.cover-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cover-tile { position: relative; height: 96px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid #23272e; }
.cover-tile-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4px 8px; font-size: 12px; color: #f3efe6; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }
.rank-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.rn { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 13px; }
.rn .svg { width: 15px; height: 15px; }
.rn.active { background: #262a31; color: var(--gold-2); }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-big { display: grid; grid-template-columns: 40px 140px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px 10px 8px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; cursor: pointer; }
.rank-big .rank-thumb { height: 70px; }
.rank-big .rank-no { font-size: 26px; }
.rank-big.top { background: linear-gradient(90deg, #2a2418, #1a1d23 45%); }

.rank-layout2 { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.rank-cats { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: #1a1d23; border: 1px solid #23272e; }
.rc { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 13px; text-align: left; }
.rc:hover { background: #20242b; color: #d4d8de; }
.rc.active { background: #262a31; color: var(--gold-2); font-weight: 600; }
.rc-n { font-size: 11px; color: var(--muted); margin-left: 4px; }
.rank-cards { display: flex; flex-direction: column; gap: 10px; }
.rank-card { display: grid; grid-template-columns: 44px 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px 14px 10px; border-radius: 10px; background: #1a1d23; border: 1px solid #23272e; cursor: pointer; transition: border-color .15s; }
.rank-card:hover { border-color: #3a3f48; }
.rank-card.top3 { background: linear-gradient(90deg, #2a2418, #1a1d23 50%); border-color: #3d3221; }
.rank-pos { font-size: 28px; font-weight: 700; color: #5a5f68; text-align: center; font-style: italic; }
.rank-pos.g1 { color: #f5c842; text-shadow: 0 0 8px rgba(245,200,66,.3); }
.rank-pos.g2 { color: #c0c0c0; }
.rank-pos.g3 { color: #cd7f32; }
.rank-cover { width: 150px; height: 84px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-detail { min-width: 0; }
.rank-title { font-size: 16px; font-weight: 600; color: #f3efe6; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-metric { margin-bottom: 6px; font-size: 13px; }
.rc-played { font-size: 15px; font-weight: 600; color: var(--gold-2); }
.rc-label { color: var(--muted); font-size: 12px; }
.market-card { padding: 30px; border-radius: 10px; background: #1a1d23; border: 1px solid #23272e; }
.empty-art { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; color: var(--muted); text-align: center; }
.empty-art img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; opacity: .9; }
.empty-art p { margin: 0; max-width: 420px; font-size: 13px; line-height: 1.6; }
.day-head { margin: 12px 0 4px; font-size: 13px; color: var(--gold-2); }
.day-head:first-child { margin-top: 0; }
/* modal + toast */
.modal-mask { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(5,6,8,.6); }
.modal { width: min(560px, 92vw); max-height: 86vh; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #1a1d23; border: 1px solid #2f343c; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal.gift-modal { width: min(820px, 94vw); }
.modal.post-modal { width: min(680px, 94vw); }
.modal-head { display: flex; align-items: center; justify-content: center; position: relative; height: 46px; background: #121418; border-bottom: 1px solid #262a31; }
.modal-head strong { font-size: 15px; color: #f3efe6; }
.modal-x { position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border: 0; background: transparent; color: #aab0b9; font-size: 22px; cursor: pointer; }
.modal-body { padding: 16px 20px 20px; overflow: auto; }
.modal-body h4 { margin: 16px 0 8px; font-size: 14px; color: #f3efe6; }
.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 60; padding: 9px 18px; border-radius: 20px; background: #262a31; color: #f3efe6; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.bad { background: #4a1d18; color: #ffd9d2; }
.toast[hidden] { display: none; }
.gift-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid #262a31; }
.gift-tabs { flex: 1; display: flex; gap: 20px; }
.gift-tabs button { height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 15px; font-weight: 700; }
.gift-tabs button.active { color: #f3efe6; border-bottom-color: var(--gold); }
.gift-top .search { margin-bottom: 6px; }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gift-grid .empty-art, .gift-grid > p { grid-column: 1 / -1; }
.gift-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; background: #20242b; border: 1px solid #2b3038; }
.gift-card .zicon { width: 56px; height: 56px; }
.gift-info strong { display: block; margin-bottom: 4px; font-size: 14px; color: #f3efe6; }
.gift-info p { margin: 2px 0; font-size: 12px; color: #c9ced5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-info b { color: var(--gold-2); letter-spacing: 1px; }
.link { border: 0; background: transparent; color: #8d939c; cursor: pointer; font-size: 12px; text-decoration: underline; }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.kf-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kf-pick .btn small { margin-left: 6px; color: var(--muted, #8a9099); font-size: 12px; }
.modal.kefu-modal { width: min(620px, 94vw); height: min(640px, 86vh); }
.kefu-modal .modal-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; display: flex; }
.kf-host { flex: 1; }
.kf-empty { margin: auto; text-align: center; }
.qq-kefu { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.qq-kefu .qq-head div, .ib-conv .qq-head div { flex: 1; }
.qq-ava.kefu, .cp-ava.kefu { display: inline-flex; align-items: center; justify-content: center; border-color: var(--gold); background: #2a2416; color: var(--gold-2); }
.qq-ava.kefu .svg, .cp-ava.kefu .svg { width: 60%; height: 60%; }
.fb-item { padding: 10px 12px; border-radius: 6px; background: #20242b; }
.fb-item p { margin: 0 0 4px; font-size: 13px; }
.fb-reply { color: var(--gold-2); }
.mono { font-family: Consolas, monospace; word-break: break-all; padding: 8px 10px; border-radius: 6px; background: #111317; }
.modal.inbox-modal { width: min(860px, 96vw); height: min(600px, 88vh); }
.inbox-modal .modal-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.ib { display: grid; grid-template-columns: 150px minmax(0, 1fr); height: 100%; }
.ib-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; overflow: auto; background: #15171c; border-right: 1px solid #262a31; }
.ib-nav-i { position: relative; height: 40px; padding: 0 16px; border: 0; border-radius: 6px; text-align: left; background: transparent; color: #b9bec6; font: 14px var(--font-body); cursor: pointer; }
.ib-nav-i:hover { background: #1f232a; color: var(--text); }
.ib-nav-i.on { background: #262b33; color: var(--gold-2); }
.ib-nav-i .red-dot { top: 12px; right: 14px; }
.ib-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ib-head { display: flex; align-items: center; gap: 22px; height: 48px; padding: 0 18px; border-bottom: 1px solid #262a31; }
.ib-tab { position: relative; height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9aa0a9; font: 14px var(--font-body); cursor: pointer; }
.ib-tab.on { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.ib-tab .red-dot { top: 12px; right: -8px; }
.ib-title { color: var(--text); font-size: 14px; }
.ib-clear { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; border: 0; background: transparent; color: #9aa0a9; font: 13px var(--font-body); cursor: pointer; }
.ib-clear:hover { color: var(--text); }
.ib-clear .svg { width: 15px; height: 15px; }
.ib-list { flex: 1; overflow: auto; padding: 6px 18px 14px; }
.ib-list .notice-card { margin-top: 10px; }
.ib-empty { text-align: center; padding: 40px 0; }
.ib-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #22262d; }
.ib-row.go { cursor: pointer; }
.ib-row.go:hover { background: #1f232a; }
.ib-row.new .ib-line strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #f04b3c; vertical-align: middle; }
.ib-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ib-line { color: #b9bec6; font-size: 13px; }
.ib-line strong { color: var(--text); font-weight: 600; }
.ib-line em { margin-left: 6px; font-style: normal; color: var(--muted); font-size: 12px; }
.ib-sub { color: #d6d2c8; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-quote { padding: 6px 10px; border-radius: 6px; background: #20242b; color: #aab0b9; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-go { color: var(--muted); }
.ib-head[hidden], .ib-list[hidden] { display: none; }
.ib-chats { margin: 0 -18px; }
.ib-chats .qq-row { padding: 12px 18px; border-bottom: 1px solid #22262d; }
.ib-conv { flex: 1; }
.ib-conv .qq-head { padding-left: 8px; }
.ib-conv .qq-back { display: inline-flex; }
.notice-card { padding: 12px 14px; margin-bottom: 10px; border-radius: 8px; background: #20242b; }
.notice-card p { margin: 6px 0 0; line-height: 1.6; }
.modal .field input, .modal .field textarea, .modal .field select { background: #111317; border-color: #2f343c; color: var(--text); }
/* community */
.forum { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.forum-head { position: relative; display: flex; align-items: center; gap: 16px; height: 116px; padding: 0 22px; border-radius: 10px 10px 0 0; overflow: hidden; }
.forum-head-bg { position: absolute; inset: 0; }
.forum-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,26,10,.92) 25%, rgba(40,26,10,.35)); }
.forum-head > *:not(img) { position: relative; z-index: 1; }
.forum-head-icon { width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 2px solid #f2d08a; background: linear-gradient(160deg, #c99540, #7d5418); color: #fff7e2; font-family: "STKaiti", "KaiTi", serif; font-size: 34px; }
.forum-head h2 { margin: 0 0 6px; font-size: 22px; color: #fff3d6; }
.forum-head p { margin: 0; color: #e3d3ae; font-size: 13px; }
.forum-feed { padding: 16px 20px 6px; border-radius: 0 0 10px 10px; background: #1a1d23; border: 1px solid #23272e; border-top: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.feed-head h3 { margin: 0; font-size: 16px; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.feed-head span { color: var(--muted); font-size: 12px; }
.feed-note { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: #2a1e1a; color: #f1c8bd; font-size: 13px; }
.feed-banner { position: relative; height: 92px; margin-bottom: 8px; border-radius: 8px; overflow: hidden; }
.feed-banner span { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.feed-banner strong { font-family: "STKaiti", "KaiTi", serif; font-size: 26px; color: #fff1cf; text-shadow: 0 2px 8px #000; }
.feed-banner em { font-style: normal; color: #ead9b4; font-size: 13px; text-shadow: 0 1px 4px #000; }
.post { padding: 16px 0; border-bottom: 1px solid #262a31; }
.post:last-child { border-bottom: 0; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-head strong { display: block; font-size: 13px; color: #f3efe6; }
.post-head span:not(.avatar) { font-size: 11px; color: var(--muted); }
.post h4 { margin: 0 0 8px; font-size: 15px; color: #f3efe6; cursor: pointer; }
.post h4:hover { color: var(--gold-2); }
.pin, .board-tag { font-style: normal; margin-right: 6px; padding: 0 6px; border-radius: 3px; font-size: 11px; vertical-align: 2px; }
.pin { background: var(--crimson); color: #fff; }
.board-tag { background: #2a2f37; color: var(--gold-2); }
.post-body { margin: 0 0 10px; color: #aab0b9; font-size: 13px; line-height: 1.7; white-space: pre-wrap; cursor: pointer; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.post-foot span:first-child { flex: 1; }
.post-foot button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 12px; }
.post-foot button.on { color: var(--crimson); }
.post-full { white-space: pre-wrap; line-height: 1.7; }
.reply-list p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.forum-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
.side-card { padding: 14px; border-radius: 10px; background: #1a1d23; border: 1px solid #23272e; }
.side-card h3 { margin: 0 0 12px; font-size: 15px; color: #f3efe6; }
.side-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.side-field select { height: 30px; border-radius: 5px; border: 1px solid #2f343c; background: #20242b; color: var(--text); padding: 0 8px; }
.publish-entry { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid #2b3038; background: #20242b; color: inherit; cursor: pointer; text-align: left; }
.publish-entry:hover { border-color: #4b3f25; }
.publish-entry strong { display: block; font-size: 14px; color: #f3efe6; }
.publish-entry em { font-style: normal; font-size: 11px; color: var(--muted); }
.pe-ico { width: 38px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; }
.pe-a { background: linear-gradient(160deg, #f2a65a, #d9692e); }
.pe-b { background: linear-gradient(160deg, #8f86f0, #5a4fd0); }
.pe-c { background: linear-gradient(160deg, #4fc2a0, #2a8a70); }
.board-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 4px; border: 0; border-radius: 8px; background: transparent; color: #c5cad2; cursor: pointer; font-size: 13px; text-align: left; }
.board-item.active, .board-item:hover { background: #262a31; color: var(--gold-2); }
.board-ico { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(160deg, #c99540, #7d5418); color: #fff7e2; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; }
/* playing + tasks + pages */
.page { max-width: 1040px; margin: 0 auto; }
.page-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.page-head h2, .page-head h3 { margin: 0; color: #f3efe6; }
.page-head span { color: var(--muted); font-size: 12px; }
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.play-card { border-radius: 10px; overflow: hidden; background: #1a1d23; border: 1px solid #23272e; }
.play-cover { position: relative; height: 120px; cursor: pointer; }
.play-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.play-body p { margin: 0; color: #aab0b9; font-size: 13px; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.role-list li { display: flex; justify-content: space-between; font-size: 13px; }
.role-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.task-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.task-title { margin: 0 8px 0 0; padding-left: 10px; border-left: 4px solid #ef8a3a; font-size: 20px; color: #f3efe6; display: inline-flex; align-items: center; gap: 8px; }
.tip { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #6b717a; color: #8d939c; font-size: 11px; font-style: italic; }
.task-top .search { flex: 1; max-width: 260px; margin-left: auto; }
.task-stat { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.task-block { margin-bottom: 14px; border-radius: 8px; overflow: hidden; background: #1a1d23; border: 1px solid #23272e; }
.task-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #20242b; }
.task-head .zicon { width: 36px; height: 36px; }
.task-head .zicon b { font-size: 14px; }
.task-head strong { font-size: 15px; color: #f3efe6; }
.task-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.task-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 110px auto; gap: 16px; align-items: center; padding: 14px 16px; }
.task-body strong { display: block; margin-bottom: 4px; font-size: 14px; color: #f3efe6; }
.task-body p { margin: 2px 0; color: #9aa0a9; font-size: 12px; }
.task-body .reward { display: inline-flex; align-items: center; gap: 4px; color: #ef8a3a; font-weight: 700; }
.task-body .reward .svg { width: 14px; height: 14px; }
.task-state { color: #d5d9df; font-size: 13px; font-weight: 700; }
.zone-hero { position: relative; overflow: hidden; min-height: 190px; }
.zone-hero-bg { position: absolute; inset: 0; }
.zone-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,15,.1), rgba(10,12,15,.85)); }
.zone-hero > h2, .zone-hero > div { position: relative; z-index: 1; }
.zone-hero h2 { font-family: "STKaiti", "KaiTi", serif; font-size: 34px; color: #fff1cf; text-shadow: 0 2px 10px #000; }
.content .card { background: #1a1d23; border-color: #23272e; }
.hall-ad-more { display: inline-flex; align-items: center; gap: 6px; }
/* svip */
.svip-chip {
  height: 22px; padding: 0 9px; border-radius: 11px; border: 1px solid #b98a3a; cursor: pointer;
  background: linear-gradient(180deg, #3b2c12, #1f170a); color: var(--gold-2); font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.svip-chip.static { display: inline-flex; align-items: center; margin-right: 8px; cursor: default; }
.side-links .side-svip { color: var(--gold); font-weight: 700; }
.side-links .side-svip.on { color: var(--gold-2); background: #1e2229; }
.svip { max-width: 1100px; margin: 0 auto; }
.svip-hero {
  position: relative; overflow: hidden; margin: -18px -64px 22px -28px; padding: 30px 64px 22px;
  background:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 58% 14%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 76% 52%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90% 28%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse at 50% -20%, #3a2a6e 0%, #191530 45%, #0d0c16 80%);
}
.svip-arc { position: relative; height: 70px; margin: 0 auto 6px; max-width: 760px; }
.svip-arc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 260px; border-radius: 50%;
  border-top: 2px solid rgba(150,120,255,.55); box-shadow: 0 -6px 18px -10px rgba(150,120,255,.6);
}
.arc-node { position: absolute; top: 0; transform: translateX(-50%); color: #a9a2c8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.arc-node::after { content: ""; position: absolute; left: 50%; top: 26px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #a9a2c8; }
.arc-node.left { left: 18%; top: 12px; }
.arc-node.mid { left: 50%; color: #fff; font-size: 14px; }
.arc-node.mid::after { top: 26px; width: 12px; height: 12px; margin-left: -6px; background: #fff; box-shadow: 0 0 10px #c8b8ff; }
.arc-node.right { left: 82%; top: 12px; }
.svip-cards { display: grid; grid-template-columns: 36px 1fr 1.25fr 1fr 36px; gap: 14px; align-items: center; }
.svip-arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.svip-arrow:disabled { opacity: .3; cursor: default; }
.svip-card {
  position: relative; min-height: 132px; padding: 18px 20px; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, #2a2445, #18152a); border: 1px solid #3b3460;
}
.svip-card.side { opacity: .6; transform: scale(.94); }
.svip-card.main { background: linear-gradient(150deg, #3d2f78, #1f1840 70%); border-color: #7b68d8; box-shadow: 0 10px 30px rgba(70,50,160,.45); }
.svip-card.blank { visibility: hidden; }
.svip-gem { position: absolute; right: -6px; top: -6px; width: 104px; height: 104px; object-fit: cover; mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.svip-card-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 78%; }
.svip-card-text p { margin: 0; color: #d6d0ee; font-size: 13px; }
.svip-card-text b { color: #fff; }
.svip-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px !important; font-weight: 700; color: #fff !important; }
.svip-pill { padding: 2px 8px; border-radius: 10px; background: rgba(120,100,230,.35); border: 1px solid rgba(170,150,255,.5); font-size: 11px; font-weight: 400; color: #e8e2ff; }
.svip-pill.dim { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.svip-bar { height: 5px; width: 70%; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.svip-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8f7bff, #d9cbff); }
.svip-card.side .svip-bar i { background: linear-gradient(90deg, #c9a24a, #f2d08a); }
.svip-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px auto 0; width: fit-content; padding: 7px 14px; border-radius: 6px; background: rgba(255,255,255,.06); color: #cfc8e8; font-size: 12px; }
.svip-tip .svg { width: 14px; height: 14px; }
.svip-pending { margin-bottom: 26px; padding: 4px 16px 16px; border-radius: 12px; background: linear-gradient(180deg, #f4d899, #e6bf6b); }
.sp-title { display: inline-block; margin: 0 0 10px -16px; padding: 6px 22px 6px 16px; border-radius: 12px 0 14px 0; background: linear-gradient(90deg, #ffe7b0, #f3cf80); color: #5a3d0c; font-weight: 700; }
.sp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 14px 8px; border-radius: 10px; background: #fffaf0; }
.sp-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 14px; border-right: 1px solid #f0e2c4; }
.sp-item:last-child { border-right: 0; }
.sp-item strong { display: block; color: #3a2a10; font-size: 14px; }
.sp-item em { font-style: normal; color: #9a8762; font-size: 11px; }
.sp-item .btn-gold { background: linear-gradient(180deg, #ffd34d, #f5b417); color: #3a2a10; }
.svip-perk-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
.sv-box { padding: 16px; border-radius: 12px; background: #1a1d23; border: 1px solid #23272e; }
.sv-box.zone { background: linear-gradient(180deg, #3a2c14, #1a1d23 60%); border-color: #5b4521; }
.sv-box h3 { margin: 0 0 6px; font-size: 15px; color: #f3efe6; }
.sv-box > p { margin: 0 0 12px; color: #c9a86a; font-size: 12px; }
.sv-line { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3f48; background: #20242b; color: #f3efe6; cursor: pointer; font-size: 13px; text-align: left; }
.sv-line.off { cursor: default; color: #9aa0a9; }
.sv-line em { font-style: normal; font-size: 11px; color: #8d939c; }
.sv-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.sv-ic { position: relative; flex: 1; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 0; border-radius: 10px; background: #20242b; color: #f3efe6; cursor: pointer; text-align: center; }
.sv-ic i { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a3, #d79a3b); color: #5a3a0c; }
.sv-ic i .svg { width: 22px; height: 22px; }
.sv-ic strong { font-size: 13px; }
.sv-ic em { font-style: normal; font-size: 11px; color: #9aa0a9; }
.sv-ic.off { opacity: .55; cursor: default; }
.sv-ic.off i { background: #2f343c; color: #9aa0a9; }
.sv-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-80%); padding: 1px 6px; border-radius: 8px 8px 8px 0; background: linear-gradient(90deg, #ff7a3d, #e24a1f); color: #fff; font-size: 10px; }
.ledger-top { padding: 12px 14px; margin-bottom: 8px; border-radius: 8px; background: #20242b; font-size: 14px; }
.ledger-top b { color: var(--gold-2); font-size: 18px; margin-left: 6px; }
.ledger-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: 8px; background: #20242b; font-size: 13px; }
.ledger-row span { display: flex; flex-direction: column; gap: 2px; }
.ledger-row em { font-style: normal; font-size: 11px; color: #8d939c; }
.ledger-row .gain { color: #ff9a4d; }
.ledger-row .use { color: #4fc2a0; }
.ledger-row.expired { opacity: .55; }
.sv-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.sv-table th, .sv-table td { padding: 7px 8px; border-bottom: 1px solid #2b3038; text-align: center; }
.sv-table th { color: var(--gold-2); font-weight: 600; }
.gift-card { position: relative; }
.gift-card.svip { border-color: #5b4521; background: linear-gradient(180deg, #2a2316, #20242b 60%); }
.gift-ribbon { position: absolute; left: 0; top: 0; padding: 1px 8px; border-radius: 8px 0 8px 0; background: linear-gradient(90deg, #e24a1f, #ff7a3d); color: #fff; font-size: 10px; }
.gift-tier { color: var(--gold-2) !important; font-weight: 700; }
.gift-lock { color: #ff9a7a !important; }
.gift-svip-head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: 10px; overflow: hidden; background: linear-gradient(120deg, #2a2445, #15131f); }
.gift-svip-head strong { color: #fff; }
.gift-svip-head p { margin: 6px 0 0; display: flex; align-items: center; font-size: 12px; color: #d6d0ee; }
.gift-svip-head img { position: absolute; right: 10px; top: 50%; width: 70px; height: 70px; transform: translateY(-50%); mix-blend-mode: screen; }
/* member */
.member { max-width: 1000px; margin: 0 auto; padding-bottom: 70px; }
.mb-hero { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: end; gap: 20px; min-height: 230px; padding: 0 24px 18px; border-radius: 14px 14px 0 0; overflow: hidden; background: radial-gradient(ellipse at 70% 0%, #2c2a26, #1a1918 60%, #121212); }
.mb-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -60px; height: 120px; border-radius: 50%; background: #1c1b19; box-shadow: 0 -2px 0 rgba(224,177,90,.25); }
.mb-hero-art { position: relative; z-index: 1; width: 230px; height: 250px; object-fit: cover; object-position: top; mix-blend-mode: lighten; -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }
.mb-hero-text { position: relative; z-index: 1; align-self: center; color: #d8d2c3; font-size: 13px; }
.mb-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; color: #f2d08a; }
.mb-logo img { width: 30px; height: 27px; }
.mb-logo em { font-style: italic; font-family: Georgia, serif; font-size: 20px; color: #e0b15a; }
.mb-hero-text ol { margin: 0; padding-left: 18px; line-height: 1.9; }
.mb-hero-text b { color: #f2d08a; }
.mb-state { margin: 8px 0 0; color: #9aa0a9; }
.mb-buy { position: relative; z-index: 1; align-self: center; display: inline-flex; gap: 14px; align-items: center; height: 40px; padding: 0 26px; border: 0; border-radius: 4px; cursor: pointer; background: linear-gradient(90deg, #f3dca5, #c2924c); color: #2a1d06; font-size: 14px; font-weight: 700; }
.mb-frame { position: relative; padding: 26px 30px 24px; border: 2px solid #b88b44; border-radius: 0 0 14px 14px; background: #1c1b19; box-shadow: inset 0 0 0 6px #1c1b19, inset 0 0 0 7px rgba(184,139,68,.35); }
.mb-frame::before, .mb-frame::after { content: ""; position: absolute; top: -10px; width: 26px; height: 26px; border: 3px solid #d8a85a; border-radius: 50%; background: #1c1b19; }
.mb-frame::before { left: -12px; }
.mb-frame::after { right: -12px; }
.mb-perks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mb-badge { width: 120px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50% 50% 46% 46%; border: 3px solid #c99a4e; background: radial-gradient(circle at 50% 35%, #3a3328, #191714); color: #f2d08a; font-family: "STKaiti", "KaiTi", serif; font-size: 22px; line-height: 1.1; box-shadow: 0 0 0 6px rgba(201,154,78,.15); }
.mb-tile { width: 108px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mb-tile i { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff7e6, #e9d3a6); color: #8a5a17; box-shadow: 0 0 0 5px rgba(255,255,255,.06); }
.mb-tile i .svg { width: 24px; height: 24px; }
.mb-tile strong { font-size: 13px; color: #f3efe6; }
.mb-tile em { font-style: normal; font-size: 11px; color: #9aa0a9; }
.mb-tile.off { opacity: .5; }
.mb-divider { position: relative; margin: 18px 0 14px; text-align: center; color: #6f6656; font-family: Georgia, serif; font-style: italic; }
.mb-divider::before, .mb-divider::after { content: ""; position: absolute; top: 50%; width: 38%; border-top: 1px solid #3a352c; }
.mb-divider::before { left: 0; }
.mb-divider::after { right: 0; }
.mb-rules { padding: 14px 16px; border: 1px solid #4a4234; border-radius: 6px; background: #1a1917; }
.mb-rules h4 { margin: 0 0 8px; color: #d8d2c3; font-weight: 500; }
.mb-rules p { margin: 4px 0; font-size: 12px; color: #b9b2a3; line-height: 1.7; }
.mb-rules p.hot { color: #ff7a6a; text-decoration: underline; text-underline-offset: 3px; }
.mb-daily { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.mb-daily span { flex: 1; color: #d5d9df; }
.mb-orders { margin-top: 16px; }
.mb-orders h4 { margin: 0 0 8px; color: #f3efe6; }
.mb-order { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border-radius: 6px; background: #1a1d23; font-size: 12px; color: #c5cad2; }
.mb-order em { font-style: normal; color: #ffb35c; }
.mb-order em.ok { color: #4fc2a0; }
.mb-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 18px -28px -40px -28px; padding: 12px 64px 12px 28px; background: #f6f3ee; }
.mb-bar span { color: #7b7468; font-size: 13px; }
.mb-bar .btn-ink { height: 34px; padding: 0 26px; border-radius: 17px; background: #23201a; border: 0; color: #f2d08a; }
.mb-bar .btn-ink.solid { background: #1a1a1a; color: #fff; }
/* lottery */
.lottery { max-width: 1040px; margin: 0 auto; }
.lt-banner { position: relative; height: 150px; margin: -18px -64px 0 -28px; overflow: hidden; }
.lt-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.lt-banner strong { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: "STKaiti", "KaiTi", serif; font-size: 40px; letter-spacing: 8px; color: #b8402f; text-shadow: 0 1px 0 #fff3d6, 0 2px 8px rgba(255,255,255,.4); }
.lt-ticker { overflow: hidden; margin: 12px 0 14px; white-space: nowrap; }
.lt-track { display: inline-flex; gap: 12px; animation: lt-scroll 40s linear infinite; }
.lt-track span { padding: 5px 14px; border-radius: 14px; background: #20242b; color: #c5cad2; font-size: 12px; }
@keyframes lt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lt-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.lt-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; min-height: 360px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.lt-nav button { height: 34px; border: 0; border-radius: 6px; background: transparent; color: #c5cad2; cursor: pointer; font-size: 13px; }
.lt-nav button.active { background: #2a2f37; color: var(--gold-2); font-weight: 700; }
.lt-main { min-height: 360px; padding: 14px 16px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.lt-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lt-top span { color: #c5cad2; font-size: 13px; }
.lt-top b { color: #ff9a4d; font-size: 16px; }
.lt-top .link { margin-left: auto; }
.lt-top strong { flex: 1; color: #f3efe6; }
.lt-panel { border-radius: 8px; background: #20242b; }
.lt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #2b3038; }
.lt-tabs button { height: 38px; border: 0; background: transparent; color: #9aa0a9; cursor: pointer; font-weight: 700; }
.lt-tabs button.active { color: var(--gold-2); }
.lt-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #2b3038; cursor: pointer; }
.lt-row:hover { background: #262a31; }
.lt-cover { position: relative; width: 66px; height: 54px; border-radius: 6px; overflow: hidden; border: 1px solid #5b4521; }
.lt-cover img { width: 100%; height: 100%; object-fit: cover; }
.lt-info strong { display: block; color: #f3efe6; font-size: 14px; margin-bottom: 4px; }
.lt-info p { display: flex; gap: 18px; flex-wrap: wrap; margin: 2px 0; font-size: 12px; color: #9aa0a9; }
.lt-info p .svg { width: 13px; height: 13px; vertical-align: -2px; color: #ff7a3d; }
.lt-info b { color: #ffb35c; }
.crumb { margin-bottom: 12px; color: #9aa0a9; font-size: 12px; }
.pd { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
.pd-poster { position: relative; height: 300px; border-radius: 10px; overflow: hidden; }
.pd-poster > img { width: 100%; height: 100%; object-fit: cover; }
.pd-poster .cover-title { top: 30%; font-size: 30px; }
.pd-chips { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; gap: 6px; }
.pd-chips span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; border: 1px solid #d8a85a; background: rgba(20,12,6,.75); font-size: 11px; color: #f3efe6; text-align: center; }
.pd-chips em { font-style: normal; color: #f2d08a; }
.pd-info h2 { margin: 0 0 6px; color: #f3efe6; font-size: 18px; }
.pd-total b { color: #ffb35c; font-size: 20px; }
.pd-info .muted { font-size: 12px; }
.pd-info .muted .svg { width: 13px; height: 13px; color: #ff7a3d; vertical-align: -2px; }
.pd-info h4 { margin: 14px 0 8px; color: #f3efe6; font-size: 14px; }
.pd-info h4 .muted { margin-left: 8px; font-weight: 400; }
.pd-prizes { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-prize { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #20242b; border: 1px solid #2b3038; }
.pd-prize i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #fff7e6; color: #b8402f; }
.pd-prize strong { display: block; font-size: 12px; color: #f3efe6; }
.pd-prize em { font-style: normal; font-size: 11px; color: #9aa0a9; }
.pd-enter { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.pd-enter input { width: 48px; height: 30px; text-align: center; border-radius: 5px; border: 1px solid #2f343c; background: #111317; color: var(--text); }
.btn-hot.wide { flex: 1; max-width: 260px; height: 40px; border-radius: 8px; background: linear-gradient(90deg, #ff6a2b, #ffa53b); }
.pd-drawn { color: #ffb35c; font-weight: 700; }
.pd-codes { margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: #20242b; }
.pd-codes h4 { margin: 0 0 8px; padding-left: 8px; border-left: 3px solid var(--gold); color: #f3efe6; }
.pd-codes p { margin: 6px 0; font-size: 12px; color: #c5cad2; }
.pd-codes .hot { color: #ff9a4d; margin-left: 8px; }
.pd-code-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pd-code-list span { padding: 3px 10px; border-radius: 4px; border: 1px solid #4a4f58; color: #f2d08a; font-variant-numeric: tabular-nums; font-size: 12px; }
.pd-code-list span.off { color: #9aa0a9; border-style: dashed; }
.pd-code-list span.win { border-color: #ff7a3d; color: #ffb35c; }
.mono-sm { font-family: Consolas, monospace; font-size: 11px !important; word-break: break-all; }
.gt-card { margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: #20242b; border: 1px solid #2b3038; max-width: 560px; }
.gt-head { display: flex; align-items: center; gap: 10px; padding: 12px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.03)), url("../assets/art/tjg-zone-cover.jpg") center / cover; }
.gt-head > div { flex: 1; }
.gt-head strong { color: #fff; }
.gt-head p { margin: 2px 0 0; font-size: 11px; color: #e3ddd0; }
.gt-tasks { margin: 10px 12px; padding: 10px 12px; border-radius: 8px; background: #1a1d23; }
.gt-tasks > strong { display: block; margin-bottom: 6px; color: #f3efe6; font-size: 13px; }
.gt-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12px; color: #c5cad2; }
.gt-invite { display: flex; flex-direction: column; gap: 6px; margin: 0 12px 10px; font-size: 12px; color: #9aa0a9; }
.gt-code b { color: #f2d08a; letter-spacing: 2px; }
.gt-fill { display: flex; gap: 8px; }
.gt-fill input { flex: 1; height: 28px; padding: 0 8px; border-radius: 5px; border: 1px solid #2f343c; background: #111317; color: var(--text); }
.gt-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid #2b3038; font-size: 12px; color: #c5cad2; }
.win-row { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 8px; background: #20242b; }
.win-row > div { flex: 1; }
.win-row strong { color: #ffb35c; }
.win-row p { margin: 3px 0 0; font-size: 12px; }
.win-state { color: #c5cad2; font-size: 12px; }
.win-state b { color: #f2d08a; letter-spacing: 1px; }
.addr-pick { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid #2f343c; background: #20242b; color: #f3efe6; cursor: pointer; text-align: left; }
.addr-pick span { font-size: 12px; color: #9aa0a9; }
.lt-table td.gain { color: #ff9a4d; }
.lt-table td.use { color: #4fc2a0; }
/* svip matrix + avatar frame */
.modal.rules-modal { width: min(1040px, 96vw); }
.sv-matrix-wrap { overflow-x: auto; margin-bottom: 12px; border-radius: 10px; border: 1px solid #2b3038; }
.sv-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.sv-matrix th, .sv-matrix td { padding: 12px 8px; text-align: center; line-height: 1.5; border-bottom: 1px solid #262a31; }
.sv-matrix thead th { background: #20242b; color: #f3efe6; font-size: 13px; }
.sv-matrix tbody th { width: 88px; background: #20242b; color: #d5d9df; }
.sv-matrix tbody tr:nth-child(even) td { background: #1c1f25; }
.sv-matrix td { color: #b9bec6; }
.sv-matrix .cur { background: linear-gradient(180deg, #3a2c14, #2a2216) !important; color: #f2b35a !important; }
.sv-matrix thead .cur { background: linear-gradient(180deg, #f3cc72, #d6a03d) !important; color: #2a1d06 !important; }
.avatar.framed { position: relative; box-shadow: 0 0 0 2px #1a1408, 0 0 0 4px #e0b15a, 0 0 10px rgba(224,177,90,.7); }
.avatar.framed[data-level]:not([data-level=""])::after { content: attr(data-level); position: absolute; right: -6px; bottom: -4px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #b8402f; color: #fff; font-size: 9px; line-height: 14px; }

/* 武侠头像 + SVIP 框：1 级近白，越高越金，5 级起带光，8 级流光 */
.avatar.has-img, .me-ava.has-img, .pe-ava.has-img, .cp-ava.has-img { padding: 0; background: #0d0f12; border: 1px solid rgba(236,231,220,.14); }
.has-img > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; user-select: none; }
.avatar.xs { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; vertical-align: -5px; font-size: 10px; }
.has-img[data-svip]:not([data-svip=""]) { position: relative; padding: 2px; border: 0; background: var(--ring); box-shadow: var(--glow, none); }
.me-ava.has-img[data-svip]:not([data-svip=""]), .pe-ava.has-img[data-svip]:not([data-svip=""]) { padding: 4px; }
[data-svip="1"] { --ring: linear-gradient(160deg, #ffffff, #e9e6df 55%, #c4bfb3); }
[data-svip="2"] { --ring: linear-gradient(160deg, #ffffff, #ece3cc 55%, #cdbf9b); }
[data-svip="3"] { --ring: linear-gradient(160deg, #fffdf5, #efdcb0 55%, #d5b97a); }
[data-svip="4"] { --ring: linear-gradient(160deg, #fff8e2, #f0d395 50%, #d8ab5c); }
[data-svip="5"] { --ring: linear-gradient(160deg, #fff4cc, #f1cb79 45%, #d79f45); --glow: 0 0 6px rgba(241,203,121,.4); }
[data-svip="6"] { --ring: linear-gradient(160deg, #fff0ba, #f2c765 40%, #d19733); --glow: 0 0 9px rgba(242,199,101,.5); }
[data-svip="7"] { --ring: linear-gradient(160deg, #ffe99c, #f3c050 40%, #c78820); --glow: 0 0 12px rgba(243,192,80,.6); }
[data-svip="8"] { --ring: conic-gradient(from 210deg, #fff7d6, #f6c64e, #c27e18, #ffe28c, #fff7d6); --glow: 0 0 13px rgba(246,198,78,.7); }
.has-img[data-svip="8"] { animation: svip-glow 2.8s ease-in-out infinite; }
@keyframes svip-glow { 50% { box-shadow: 0 0 20px rgba(255,214,110,.95); } }
@media (prefers-reduced-motion: reduce) { .has-img[data-svip="8"] { animation: none; } }
/* trade */
.trade-top { display: flex; align-items: center; gap: 34px; margin: 4px 0 16px; }
.tt { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #c5cad2; cursor: pointer; font-size: 19px; font-weight: 700; }
.tt .svg { width: 20px; height: 20px; }
.tt.active { color: var(--gold-2); }
.tt-help { margin-left: auto; font-size: 12px; }
.tt-zone { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #9aa0a9; font-size: 13px; white-space: nowrap; }
.tt-zone select { min-width: 120px; padding: 4px 8px; border-radius: 6px; border: 1px solid #3a3f47; background: #1d2026; color: #e6e8eb; }
.tt-zone + .tt-help { margin-left: 0; }
.trade-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.trade-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; min-height: 380px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.trade-side button { height: 36px; border: 0; border-radius: 6px; background: transparent; color: #c5cad2; cursor: pointer; font-size: 13px; font-weight: 600; }
.trade-side button.active { background: #2a2f37; color: var(--gold-2); }
.trade-main { min-width: 0; }
.trade-search { display: flex; align-items: center; gap: 8px; max-width: 420px; height: 38px; padding: 0 0 0 12px; margin-bottom: 14px; border-radius: 6px; background: #1a1d23; border: 1px solid #2b3038; color: var(--muted); overflow: hidden; }
.trade-search input { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); }
.trade-search .btn-gold { height: 38px; border-radius: 0; }
.trade-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.trade-chips > span { margin-right: 6px; color: #d5d9df; font-weight: 700; font-size: 13px; }
.trade-chips .fp { min-width: 58px; padding: 0 12px; border-radius: 14px; }
.trade-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.trade-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px 12px; border-radius: 8px; border: 1px solid #2b3038; background: #1e2127; color: #f3efe6; cursor: pointer; }
.trade-zone:hover { border-color: #4b3f25; }
.trade-zone .zicon { width: 72px; height: 72px; border-radius: 12px; }
.trade-zone .zicon b { font-size: 24px; }
.trade-zone strong { font-size: 13px; }
.tz-ribbon { position: absolute; right: 6px; top: 6px; padding: 1px 8px; border-radius: 3px 8px 3px 8px; background: linear-gradient(90deg, #e24a1f, #ff7a3d); color: #fff; font-size: 11px; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.good { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: #1e2127; border: 1px solid #2b3038; }
.good.off { opacity: .6; }
.good-head { display: flex; gap: 10px; align-items: center; }
.good-icon { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #5b4521; background: radial-gradient(circle at 40% 35%, #3a2f1c, #17130c); color: #f2d08a; font-family: "STKaiti", "KaiTi", serif; font-size: 22px; }
.good-head strong { display: block; color: #f3efe6; font-size: 14px; }
.good-head p { margin: 3px 0 0; font-size: 12px; color: #9aa0a9; }
.good-detail { margin: 0; min-height: 32px; font-size: 12px; color: #aab0b9; line-height: 1.5; }
.good-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.good-price { color: #ff6a3d; font-weight: 700; }
.good-foot .good-price { font-size: 17px; }
.good-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.good-badge { margin: 0; }
.tag.warn { border-color: #6b3a32; color: #f0a08f; background: #2a1c1a; }
.role-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 10px 0; }
.role-stats span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: #1d2026; }
.role-stats em { font-style: normal; font-size: 11px; color: var(--muted); }
.role-stats b { color: var(--gold-2); }
.role-box { margin: 12px 0 6px; font-size: 13px; color: #d5d9df; }
.good-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.role-items { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; }
.role-item { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: #1d2026; border: 1px solid #2f343c; font-size: 12px; color: #c9ced6; }
.role-item img { width: 20px; height: 20px; object-fit: contain; }
.role-item.c3 { color: #6fc3ff; }
.role-item.c4 { color: #c58cff; }
.role-item.c5, .role-item.c6 { color: var(--gold-2); }
.role-item.c7, .role-item.c8 { color: #ff8a5c; }
.cart-total { margin-bottom: 12px; padding: 10px 14px; border-radius: 8px; background: #20242b; color: #d5d9df; }
.trade-table td.gain { color: #ff9a4d; }
.trade-table td.use { color: #4fc2a0; }
.shelf td { text-align: left; vertical-align: middle; }
.shelf-info strong { color: #f3efe6; }
.shelf-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.fee-tabs { display: flex; justify-content: center; gap: 60px; margin: 4px 0 14px; }
.fee-tabs button { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9aa0a9; cursor: pointer; font-size: 14px; font-weight: 700; }
.fee-tabs button.active { color: #f3efe6; border-bottom-color: var(--gold); }
.fee-total { margin-bottom: 12px; padding: 14px 16px; border-radius: 8px; background: #20242b; color: #c5cad2; }
.fee-total b { margin-left: 10px; color: #fff; font-size: 18px; }
.fee-card { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 16px; border-radius: 8px; background: #20242b; }
.fee-card > div { flex: 1; }
.fee-card p { margin: 6px 0 0; font-size: 13px; color: #c5cad2; }
.wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 8px; overflow: hidden; border: 1px solid #2b3038; }
.wc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; background: #1e2127; border-right: 1px solid #2b3038; text-align: center; }
.wc:last-child { border-right: 0; }
.wc.active { border-top: 3px solid #ffcf3d; background: #262a31; }
.wc span { color: #f3efe6; font-weight: 700; }
.wc em { font-style: normal; font-size: 11px; color: #8d939c; max-width: 240px; }
.wc b { margin-top: 10px; font-size: 26px; color: #fff; }
.wallet-ops { display: flex; justify-content: center; gap: 12px; margin: 26px 0 10px; }
.btn-gold.wide { min-width: 220px; background: linear-gradient(180deg, #ffd34d, #f5b417); color: #2a1d06; }
.wallet-note { text-align: center; font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #d5d9df; }
@media (max-width: 1100px) {
  .content { padding: 14px 56px 30px 16px; }
  .lt-banner { margin: -14px -56px 0 -16px; }
  .mb-bar { margin: 18px -16px -30px -16px; padding-right: 56px; }
  .svip-hero { margin: -14px -56px 20px -16px; padding: 26px 40px 20px; }
  .pick-row { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .pick-row .pick:last-child { display: none; }
  .cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .two-col, .forum, .find-layout, .rank-layout, .rank-layout2 { grid-template-columns: 1fr; }
  .filter-panel, .rank-nav, .rank-cats, .forum-side { position: static; }
  .rank-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .rank-cats::-webkit-scrollbar { display: none; }
  .rc { flex: none; }
  .rank-card { grid-template-columns: 36px 100px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 8px; }
  .rank-cover { width: 100px; height: 56px; }
  .rank-pos { font-size: 22px; }
  .search { width: 160px; }
  .split, .login-split, .zone-layout { grid-template-columns: 1fr; }
  .task-body { grid-template-columns: 1fr 1fr; }
}
/* update progress */
.upd-notes { margin: 8px 0 0; white-space: pre-wrap; color: var(--text, #e8dcc0); font-size: 13px; }
.upd-bar { margin-top: 12px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.upd-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #b8893b, #f0cf7a); transition: width .3s; }

/* ---------- 个人中心 ---------- */
.crumb { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.crumb b { margin: 0 6px; font-weight: 400; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.me-card { display: flex; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.me-ava, .pe-ava { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: var(--gold-2); background: radial-gradient(circle at 35% 30%, #3a3f49, #1b1e24); border: 2px solid var(--line); flex: none; }
.me-ava.framed { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,177,90,.25); }
.me-info { flex: 1; min-width: 0; display: grid; gap: 10px; }
.me-name { display: flex; align-items: center; gap: 8px; }
.me-name strong { font-size: 20px; color: var(--text); }
.me-svip { font: italic 700 11px/1 var(--font-body); padding: 3px 7px; border-radius: 9px; color: #3b2706; background: linear-gradient(90deg, #f2d08a, #e0b15a); }
.me-perk { border: 0; border-radius: 10px; padding: 3px 10px; font-size: 12px; color: var(--gold-2); background: #2b2416; cursor: pointer; }
.me-stats { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.me-stats b { color: var(--text); margin-right: 2px; }
.me-stats i { width: 1px; height: 12px; background: var(--line); }
.me-stats button, .me-meta button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.me-stats button:hover, .me-meta button:hover { color: var(--gold); }
.me-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.me-acts { display: flex; gap: 10px; align-self: flex-start; }
.me-act { border: 0; border-radius: 6px; padding: 8px 14px; background: var(--card-2); color: var(--text); cursor: pointer; font-size: 13px; }
.me-act:hover { color: var(--gold-2); }
.me-act.more { padding: 8px 12px; font-weight: 700; }
.me-act.warn { color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2); }
.me-panel { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 24px 24px; min-height: 320px; }
.me-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.me-tabs button { border: 0; background: none; color: var(--muted); padding: 14px 0 12px; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.me-tabs button.active { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.me-tabs .q { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 50%; font-size: 10px; }
.me-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.me-row.link { cursor: pointer; }
.me-row strong { color: var(--text); }
.me-row p { margin: 0; color: var(--text); opacity: .85; font-size: 13px; }
.me-row em { font-style: normal; color: var(--muted); font-size: 12px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.me-menu { display: grid; gap: 8px; min-width: 260px; }
.me-menu button { border: 1px solid var(--line); background: var(--card-2); color: var(--text); padding: 10px; border-radius: 6px; cursor: pointer; }
.me-menu button.danger { color: #ff8a7a; }
.credit-big { text-align: center; margin: 4px 0 10px; }
.credit-big b { font-size: 44px; color: var(--gold-2); }
.credit-big span { color: var(--muted); margin-left: 4px; }
.credit-log, .vc-hist { list-style: none; margin: 0; padding: 0; }
.credit-log li, .vc-hist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.credit-log li span, .vc-hist li span { flex: 1; }
.credit-log em, .vc-hist em { font-style: normal; color: var(--muted); font-size: 12px; display: block; }
.neg { color: #ff8a7a; }
.pos { color: var(--jade); }

/* 编辑资料 */
.pe-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px 40px 32px; }
.pe-ava { margin: 0 auto 10px; width: 108px; height: 108px; }
.pe-ava-name { margin: 0 0 14px; text-align: center; color: var(--gold-2); font-size: 13px; letter-spacing: 2px; }
.ava-pick { display: grid; grid-template-columns: repeat(6, 52px); gap: 12px; justify-content: center; margin: 0 auto 26px; }
.ava-opt { width: 52px; height: 52px; padding: 2px; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.ava-opt img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ava-opt:hover { transform: translateY(-2px); border-color: rgba(224,177,90,.45); }
.ava-opt.on { border-color: var(--gold); box-shadow: 0 0 10px rgba(224,177,90,.45); }
button.me-ava { padding: 0; cursor: pointer; font-family: inherit; }
button.me-ava:hover { filter: brightness(1.08); }
.pe-card h4 { margin: 0 0 18px; color: var(--text); }
.pe-row { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.pe-row > label:first-child { width: 72px; text-align: right; color: var(--muted); font-size: 13px; flex: none; }
.pe-row input:not([type=radio]), .pe-row select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px; height: 34px; padding: 0 10px; }
.pe-row select { width: 118px; }
.pe-radio { display: inline-flex; align-items: center; gap: 6px; color: var(--text); margin-right: 18px; }
.pe-radio input { accent-color: var(--gold); }
.pe-bio { position: relative; flex: 1; }
.pe-bio input { width: 100%; box-sizing: border-box; }
.pe-bio em { position: absolute; right: 10px; top: 8px; font-style: normal; color: var(--muted); font-size: 12px; }
.pe-btns { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
.pe-cancel, .pe-save { width: 116px; height: 36px; border-radius: 18px; cursor: pointer; font-size: 14px; }
.pe-cancel { border: 1px solid var(--line); background: none; color: var(--muted); }
.pe-save { border: 0; background: var(--gold); color: #1a1408; }

/* 钱包 / 充值券 */
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wallet-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 8px; justify-items: start; }
.wallet-card span { color: var(--muted); }
.wallet-card b { font-size: 28px; color: var(--gold-2); }
.wallet-card em { font-style: normal; color: var(--muted); font-size: 12px; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vc-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.vc-tabs button { border: 0; background: none; color: var(--muted); padding: 10px 0; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.vc-tabs button.active { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.vc-sum { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 16px; color: var(--text); }
.vc-sum b { margin-right: 6px; }
.vc-sum button { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 12px; padding: 2px 12px; cursor: pointer; font-size: 12px; }
.vc-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: 11px; font-style: italic; margin-right: 4px; }
.vc-layout { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
.vc-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 24px; }
.vc-card h4 { margin: 0 0 8px; color: var(--text); }
.vc-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vc-row img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.vc-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vc-main strong { color: var(--text); margin-right: 8px; }
.vc-tag { display: inline-block; font-size: 11px; padding: 1px 6px; margin-right: 6px; border-radius: 3px; background: var(--card-2); color: var(--muted); }
.vc-main p { margin: 0; color: var(--muted); font-size: 12px; }
.vc-main p span { margin-left: 14px; }
.vc-pay { border: 0; border-radius: 4px; padding: 7px 18px; background: var(--gold); color: #1a1408; cursor: pointer; }
.vc-pay[disabled] { opacity: .45; cursor: not-allowed; }
.vc-filter { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.vc-filter input { width: 100%; box-sizing: border-box; height: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 12px; }
.vc-filter h5 { margin: 14px 0 8px; color: var(--text); font-size: 14px; }
.vc-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-chips button { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 4px; padding: 6px 4px; cursor: pointer; font-size: 12px; }
.vc-chips button.on { border-color: var(--gold); color: var(--gold-2); background: rgba(224,177,90,.08); }

/* 顶栏：红点 / 在玩 / 浮层 */
.dot-host { position: relative; }
.red-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #f04b3c; }
.play-chip { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--card-2); }
.play-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-chip em { position: absolute; left: 0; right: 0; bottom: 0; font: normal 600 10px/14px var(--font-body); color: #fff; background: #e0553f; }
.float-panel { position: fixed; top: 58px; right: 16px; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.play-menu { width: 420px; max-height: 420px; overflow-y: auto; padding: 8px 14px; }
/* 右上角两个下拉菜单：头像下面的那个靠头像，三道杠下面的那个贴右边 */
.user-menu { right: 54px; }
.drop-menu { display: grid; min-width: 168px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px 0; }
.drop-menu button { border: 0; background: none; color: var(--text); text-align: left; padding: 10px 22px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.drop-menu button:hover { background: #1d2128; color: var(--gold-2); }
.drop-menu button.danger { color: #ff8a7a; }
.about-box { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.about-box img { width: 56px; height: 56px; border-radius: 12px; }
.about-box strong { font-size: 18px; }
.about-box p { margin: 4px 0 0; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pm-row img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.pm-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pm-go, .pm-fix { border-radius: 6px; padding: 7px 16px; cursor: pointer; font-size: 14px; }
.pm-go { border: 1px solid var(--gold); background: none; color: var(--gold-2); }
.pm-fix { border: 0; background: var(--card-2); color: var(--text); }
.pm-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.pm-empty { padding: 18px; text-align: center; }
.chat-panel { width: 340px; max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-panel.min .cp-list { display: none; }
.cp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cp-head strong { flex: 1; color: var(--text); }
.cp-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.cp-list { overflow-y: auto; }
.cp-row { display: flex; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.cp-row:hover { background: rgba(224,177,90,.08); }
.cp-ava { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #2f3640; color: var(--gold-2); font-size: 18px; }
.cp-ava.group { background: #283a34; }
.cp-head .cp-ava { width: 40px; height: 40px; }
.cp-ava b { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #f04b3c; color: #fff; font: 600 11px/16px var(--font-body); }
.cp-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cp-top { display: flex; justify-content: space-between; gap: 8px; }
.cp-top strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-top em { font-style: normal; color: var(--muted); font-size: 12px; flex: none; }
.cp-text { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 区服评价 */
.rv-head { display: flex; align-items: baseline; gap: 12px; }
.rv-head b { font-size: 32px; color: var(--gold-2); }
.rv-head em { font-style: normal; color: var(--muted); }
.rv-write textarea { width: 100%; box-sizing: border-box; min-height: 70px; margin: 8px 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.rv-stars button { border: 0; background: none; font-size: 22px; color: var(--line); cursor: pointer; padding: 0 2px; }
.rv-stars button.on { color: var(--gold); }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-top em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.rv-reply { margin: 4px 0 0; padding-left: 12px; border-left: 2px solid var(--line); font-size: 13px; }
.rv-reply-box { display: flex; gap: 8px; margin-top: 8px; }
.rv-reply-box input { flex: 1; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 4px; height: 30px; padding: 0 8px; }

/* 盒子聊天（QQ 式两栏） */
.chat-page .float-bar { display: none; }
.content.chat-fill { padding: 18px 28px 22px; overflow: hidden; display: flex; min-height: 0; }
.content.chat-fill .qq { flex: 1; min-height: 0; height: auto; border: 1px solid #23272e; border-radius: 8px; }
.content.chat-fill .empty-art { margin: auto; }
.qq { display: grid; grid-template-columns: 300px 1fr; height: 100%; min-height: 0; overflow: hidden; background: #1a1d23; }
.qq-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #23272e; background: #15171c; }
.qq-me { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid #262a31; }
.qq-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qq-me-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.qq-me-t em { font-style: normal; font-size: 12px; color: var(--muted); cursor: pointer; }
.qq-me-t em:hover { color: var(--gold-2); }
.qq-me #qq-plus { display: inline-flex; align-items: center; gap: 4px; }
.qq-tabs { display: grid; grid-template-columns: repeat(4, 1fr); height: 48px; border-bottom: 1px solid #262a31; }
.qq-tabs button { position: relative; height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9aa0a9; font: 14px var(--font-body); cursor: pointer; }
.qq-tabs button.on { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.qq-tabs .red-dot { top: 10px; right: 14px; }
.qq-list { flex: 1; overflow: auto; }
.qq-pad { padding: 18px 16px; font-size: 13px; line-height: 1.6; }
.qq-h { margin: 14px 16px 6px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.qq-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: transparent; color: var(--text); text-align: left; font: 14px var(--font-body); cursor: pointer; }
.qq-row:hover { background: #1f232a; }
.qq-row.on { background: #262b33; color: var(--gold-2); }
.qq-req { cursor: default; align-items: flex-start; }
.qq-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qq-row-t { display: flex; justify-content: space-between; gap: 6px; }
.qq-row-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.qq-row-t em { flex: none; font-style: normal; font-size: 11px; color: var(--muted); }
.qq-row-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.qq-num { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f04b3c; color: #fff; font: 11px/18px var(--font-body); text-align: center; }
.qq-acts { display: flex; flex-direction: column; gap: 6px; }
.qq-state { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.qq-ava {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid #3a3324;
  background: linear-gradient(160deg, #2a2416, #16140f); color: var(--gold-2); font-weight: 700;
}
.qq-ava.off { border-color: var(--gold); box-shadow: 0 0 0 1px #1a1408, 0 0 8px rgba(224,177,90,.35); }
.qq-tag { display: inline-block; margin: 0 4px 0 0; padding: 0 5px; border-radius: 3px; background: var(--gold); color: #1a1408; font: 700 10px/16px var(--font-body); vertical-align: 1px; }
.qq-tag.owner { background: #c99b3c; } .qq-tag.admin { background: #3f9d84; color: #fff; } .qq-tag.mute { background: #5b2a24; color: #f3c8c0; }
.qq-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #1a1d23; }
.qq-empty { margin: auto; color: var(--muted); }
.qq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid #262a31; background: #15171c; }
.qq-head div { display: flex; flex-direction: column; min-width: 0; }
.qq-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.qq-log-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.qq-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 22px; background: #111317; }
.qq-more { align-self: center; border: 0; background: transparent; color: var(--gold-2); font-size: 12px; cursor: pointer; }
.qq-note { align-self: center; padding: 3px 12px; border-radius: 10px; background: #1c2026; color: var(--muted); font-size: 12px; }
.qq-msg { position: relative; display: flex; align-items: flex-start; gap: 10px; max-width: 76%; padding-right: 26px; }
.qq-msg.me { align-self: flex-end; flex-direction: row-reverse; padding: 0 0 0 26px; }
.qq-msg-ava { flex: none; }
.qq-msg-ava[data-peer] { cursor: pointer; }
.qq-msg-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qq-msg.me .qq-msg-b { align-items: flex-end; }
.qq-msg-n { font-size: 12px; color: var(--muted); }
.qq-bubble { padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: #2a2e35; color: #e8e6e1; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.qq-msg.me .qq-bubble { border-radius: 14px 4px 14px 14px; background: #0b84f0; color: #fff; }
.qq-msg.official .qq-bubble { border: 1px solid var(--gold); background: #2a2416; color: var(--text); }
.qq-msg.at-me .qq-bubble { box-shadow: 0 0 0 1px #f0a03c; }
.qq-msg.flash .qq-bubble { animation: qq-flash 1.6s ease; }
@keyframes qq-flash { 0%, 60% { box-shadow: 0 0 0 3px rgba(240,160,60,.75); } 100% { box-shadow: none; } }
.qq-msg-at { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6f757e; }
.qq-burn { font-style: normal; padding: 0 3px; border-radius: 3px; background: #5b2a24; color: #f3c8c0; }
.qq-tools { display: none; gap: 6px; }
.qq-msg:hover .qq-tools { display: inline-flex; }
.qq-tools button { border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; }
.qq-tools button:hover { color: var(--gold-2); }
.qq-send { border-top: 1px solid #262a31; padding: 12px 16px 14px; background: #15171c; }
.qq-send textarea { width: 100%; resize: none; border: 0; background: transparent; color: var(--text); font: 14px var(--font-body); outline: none; }
.qq-send-r { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.qq-why { margin: 0 0 6px; color: var(--crimson); font-size: 12px; }
.qq-privacy { gap: 8px; margin-bottom: 6px; }
.qq-btns { gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qq-notice { margin: 8px 0 12px; padding: 10px 12px; border-radius: 6px; background: #1a1d23; border: 1px solid #23272e; white-space: pre-wrap; }
.qq-set { margin-bottom: 12px; } .qq-set summary { cursor: pointer; color: var(--gold-2); margin-bottom: 8px; }
.qq-check { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 13px; }
.qq-group-modal { width: min(560px, 94vw); }
.qq-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 260px; overflow: auto; }
.qq-mem { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; background: #1a1d23; border: 1px solid #23272e; min-width: 0; }
.qq-mem > span:not(.qq-ava):not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.qq-mem .qq-ava, .qq-mem .avatar { width: 28px; height: 28px; font-size: 12px; }
.qq-mem .qq-tag { margin: 0 0 0 5px; }
.qq-mem-more { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.qq-mem-more:hover { color: var(--gold-2); }
.qq-menu { display: flex; flex-direction: column; gap: 6px; }
.qq-addtabs { margin: -4px 0 14px; border-bottom: 1px solid #262a31; }
.qq-addtabs button { font-size: 14px; }
.qq-card { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px; border-radius: 8px; background: #1a1d23; border: 1px solid #23272e; }
.qq-card div { display: flex; flex-direction: column; } .qq-card em { font-style: normal; font-size: 12px; color: var(--muted); }
.qq-back { display: none; }

/* 会话列表：搜索、置顶、免打扰、有人@我 */
.qq-find { display: flex; align-items: center; gap: 6px; margin: 10px 12px 4px; padding: 0 10px; height: 32px; border-radius: 16px; background: #1d2027; color: var(--muted); }
.qq-find .svg { width: 16px; height: 16px; flex: none; }
.qq-find input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: 13px var(--font-body); }
.qq-row.pinned { background: #1b1f26; }
.qq-row.pinned:hover { background: #222731; }
.qq-row.pinned.on, .qq-row.on { background: #262b33; }
.qq-row-t em { display: inline-flex; align-items: center; gap: 3px; }
.qq-pin .svg, .qq-mute .svg { width: 12px; height: 12px; }
.qq-pin { display: inline-flex; color: var(--gold); }
.qq-mute { display: inline-flex; margin-left: 4px; color: #6f757e; vertical-align: -1px; }
.qq-atme { font-style: normal; color: #f05a4b; margin-right: 2px; }
.qq-num.muted { background: #4a4f58; }

/* 消息区：时间条、引用、@、图片、更多 */
.qq-time { align-self: center; margin: 2px 0 -4px; padding: 2px 10px; border-radius: 10px; color: #8a9099; font-size: 12px; }
.qq-quote { display: block; width: 100%; margin: 0 0 6px; padding: 4px 8px; border: 0; border-left: 3px solid rgba(255,255,255,.35); border-radius: 3px; background: rgba(0,0,0,.18); color: inherit; opacity: .85; font: 12px/1.5 var(--font-body); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.qq-quote b { font-weight: 600; }
.qq-at { color: #6cb8ff; }
.qq-msg.me .qq-at { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.qq-at.me { color: #f0a03c; font-weight: 600; }
.qq-bubble.img { padding: 0; background: transparent !important; overflow: hidden; }
.qq-bubble.img .qq-quote { margin: 0 0 4px; }
.qq-img { display: block; max-width: 240px; max-height: 240px; min-width: 60px; min-height: 40px; border-radius: 8px; background: #23272e; cursor: zoom-in; object-fit: contain; }
.qq-img.loading { width: 160px; height: 120px; background: linear-gradient(90deg, #23272e 25%, #2c3139 50%, #23272e 75%) 0 0 / 200% 100%; animation: qq-shimmer 1.2s linear infinite; }
@keyframes qq-shimmer { to { background-position: -200% 0; } }
.qq-img-gone { display: inline-block; padding: 9px 13px; border-radius: 8px; background: #23272e; color: var(--muted); font-size: 13px; }
.qq-dots { position: absolute; right: 0; top: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; line-height: 22px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.qq-msg.me .qq-dots { right: auto; left: 0; }
.qq-msg:hover .qq-dots, .qq-dots:focus-visible { opacity: 1; }
.qq-dots:hover { background: #262b33; color: var(--text); }
.qq-pill { position: absolute; right: 20px; bottom: 14px; padding: 6px 14px; border: 0; border-radius: 16px; background: #0b84f0; color: #fff; font: 12px var(--font-body); box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }

/* 输入区：工具条、表情、@ 成员、引用条 */
.qq-send { position: relative; }
.qq-bar { display: flex; gap: 4px; margin: -4px 0 6px -4px; }
.qq-bar-b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #9aa0a9; cursor: pointer; }
.qq-bar-b .svg { width: 20px; height: 20px; }
.qq-bar-b:hover:not(:disabled) { background: #22262d; color: var(--text); }
.qq-bar-b:disabled { opacity: .4; cursor: default; }
.qq-pop { position: absolute; left: 12px; bottom: calc(100% - 6px); z-index: 30; border: 1px solid #2b3038; border-radius: 10px; background: #1b1e24; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.qq-emoji { width: 372px; max-width: calc(100% - 24px); max-height: 280px; overflow: hidden auto; padding: 8px 10px 10px; }
.qq-emoji h6 { margin: 6px 2px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.qq-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; }
.qq-emoji-grid button { min-width: 0; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 20px; line-height: 34px; cursor: pointer; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.qq-emoji-grid button:hover { background: #2a2e35; }
.qq-atpop { width: 240px; max-height: 260px; overflow: auto; padding: 4px; }
.qq-atpop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: 13px var(--font-body); text-align: left; cursor: pointer; }
.qq-atpop button.on, .qq-atpop button:hover { background: #262b33; }
.qq-atpop .avatar, .qq-atpop .qq-ava { width: 24px; height: 24px; font-size: 11px; }
.qq-atpop span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-atpop em { font-style: normal; font-size: 11px; color: var(--muted); }
.qq-reply { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 5px 8px 5px 10px; border-left: 3px solid #0b84f0; border-radius: 4px; background: #1d2128; color: #aeb4bd; font-size: 12px; }
.qq-reply[hidden], .qq-pop[hidden], .qq-pill[hidden] { display: none; }
.qq-reply span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-reply button { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.qq-reply button:hover { color: var(--text); }

/* 右键菜单、看大图、发图确认 */
.qq-ctx { position: fixed; z-index: 1000; min-width: 128px; padding: 4px; border: 1px solid #2f343d; border-radius: 8px; background: #1f2229; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.qq-ctx button { display: block; width: 100%; padding: 7px 14px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 13px var(--font-body); text-align: left; cursor: pointer; }
.qq-ctx button:hover { background: #2c313a; }
.qq-lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: rgba(0,0,0,.86); cursor: zoom-out; }
.qq-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: default; }
.qq-lightbox-x { position: absolute; top: 16px; right: 20px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.qq-img-modal { width: min(460px, 94vw); }
.qq-preview { display: block; max-width: 100%; max-height: 50vh; margin: 0 auto 4px; border-radius: 6px; }
.qq-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- iPhone：分享到主屏幕的引导 ---------- */
.home-guide {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 16px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(5,6,8,.55);
}
.home-guide.pad { justify-content: flex-start; padding-top: calc(12px + env(safe-area-inset-top)); }
.hg-card {
  width: min(420px, 100%); padding: 16px; border-radius: 16px; background: #1a1d23; border: 1px solid #3a3324;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.hg-title { display: flex; align-items: center; gap: 12px; }
.hg-title img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
.hg-title strong { display: block; font-size: 17px; }
.hg-title p, .hg-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hg-card ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hg-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; }
.hg-card li i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2a2416; color: var(--gold-2);
  font-style: normal; font-size: 12px; line-height: 22px; text-align: center;
}
.hg-card li .svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold-2); }
.hg-card b { color: var(--gold-2); font-weight: 600; }
.hg-card .btn-gold, .hg-card .btn-dark { width: 100%; height: 38px; margin-top: 14px; }
.hg-card .btn-dark + .btn-gold { margin-top: 8px; }
.hg-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 12px; color: #fff; animation: hg-bob 1.1s ease-in-out infinite; }
.hg-arrow em { font-style: normal; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hg-arrow .svg { width: 28px; height: 28px; }
.hg-arrow.right { align-self: flex-end; margin-right: 8px; }
.hg-arrow.up { margin: 0 0 12px; flex-direction: column-reverse; }
.hg-arrow.up.right { margin-right: 8px; }
.hg-arrow.up .svg { transform: rotate(180deg); }
.home-pill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
  border: 1px solid #6d5a32; border-radius: 16px; padding: 7px 14px; background: #2a2416; color: var(--gold-2);
  font: 13px var(--font-body); cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.4);
  display: inline-flex; align-items: center; gap: 5px;
}
.home-pill .svg { width: 14px; height: 14px; }
body:has(.sidebar nav) .home-pill { bottom: calc(70px + env(safe-area-inset-bottom)); }
@keyframes hg-bob { 50% { transform: translateY(5px); } }

@media (max-width: 760px) {
  html, body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }
  input, textarea, select { font-size: 16px !important; }
  .app { height: 100vh; height: 100dvh; }
  .login-screen, .splash { min-height: 100vh; min-height: 100dvh; }

  /* 顶栏 */
  .appbar { height: calc(46px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 10px; gap: 4px; }
  .appbar .search, .appbar-meta, #nav-reload, .appbar [data-go=gameChannel], .play-chip, .svip-chip, .appbar .more-btn { display: none !important; }
  .brand { flex: 1; min-width: 0; letter-spacing: 2px; }
  .appbar .icon-btn { width: 36px; height: 36px; }

  /* 侧栏拆成：顶部快捷条 + 底部标签栏 */
  .app-body { flex-direction: column; }
  .sidebar { display: contents; }
  .app-body > .main { order: 2; flex: 1; min-height: 0; }
  .side-links {
    order: 1; flex: none; flex-direction: row; gap: 6px; width: 100%; margin: 0; padding: 7px 10px;
    border-top: 0; border-bottom: 1px solid #1d2026; background: #0d0f12; overflow-x: auto; scrollbar-width: none;
  }
  .side-links::-webkit-scrollbar { display: none; }
  .side-links button { flex: none; padding: 5px 13px; border-radius: 14px; background: #1a1d23; font-size: 12px; }
  .side-links button.on, .side-links .side-svip.on { background: #2a2416; color: var(--gold-2); }
  .side-foot, .float-bar { display: none; }
  .sidebar nav {
    order: 3; flex: none; display: flex; width: 100%;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: #0d0f12; border-top: 1px solid #1d2026;
  }
  .sidebar nav button { flex: 1; width: auto; margin: 0; padding: 5px 0 3px; gap: 3px; font-size: 11px; border-radius: 8px; }
  .sidebar nav button.active { background: transparent; color: var(--gold-2); }
  .content { padding: 12px 12px 24px; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

  /* 二级页面、开屏 */
  #app > .main { height: 100vh !important; height: 100dvh !important; }
  .topbar { gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .topbar .btn.ghost { padding: 7px 12px; }
  #app > .main > .content { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hall-ad-skip { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .hall-ad-copy { left: 20px; right: 20px; bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hall-ad-copy strong { font-size: 28px; letter-spacing: 4px; }
  .hall-ad-more { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); }

  /* 首页 / 找服 / 排行 */
  .zone-tabs { gap: 6px; margin-bottom: 10px; }
  .sub-tabs { overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .stab { flex: none; padding: 0 12px; }
  .sec { margin-bottom: 22px; }
  .sec-head { flex-wrap: wrap; gap: 10px; }
  .sec-head h2 { font-size: 18px; }
  .date-strip { flex: 1 1 100%; order: 3; min-width: 0; }
  .ds-day { min-width: 0; font-size: 11px; gap: 3px; white-space: nowrap; }
  .ds-day i { width: 7px; height: 7px; }
  .feature { height: 172px; grid-template-columns: 40% 60%; }
  .feature-text { padding: 14px; gap: 6px; }
  .feature-text h3 { font-size: 17px; }
  .feature-text p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pick-row { grid-template-columns: 1fr 1fr; height: auto; gap: 8px; }
  .pick, .pick-row .pick:last-child { display: block; height: 132px; }
  .pick.wide { grid-column: 1 / -1; height: 160px; }
  .pick-text strong { font-size: 18px; }
  .pick.wide .pick-text strong { font-size: 26px; }
  .mini-grid, .play-grid { grid-template-columns: 1fr; gap: 8px; }
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cover-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cover { height: 96px; }
  .panel-body { padding: 10px 12px; }
  .filter-bar { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .filter-bar input { max-width: none; min-width: 140px; }
  .find-feature { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .find-cover { height: 120px; }
  .find-info .btn-gold { margin-top: 10px; }
  .rank-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .rank-nav::-webkit-scrollbar { display: none; }
  .rn { flex: none; }
  .rank-big { grid-template-columns: 26px 78px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .rank-big > :last-child:not(.rank-info) { grid-column: 2 / -1; justify-self: end; }
  .rank-big .rank-thumb { height: 50px; }
  .rank-big .rank-no { font-size: 20px; }
  .rank-row { grid-template-columns: 26px 76px minmax(0, 1fr); gap: 8px; }
  /* 社区：侧栏挪到帖子上面，压成两行 */
  .forum { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .forum-side { order: -1; gap: 8px; min-width: 0; }
  .side-card { padding: 10px; }
  .side-card h3 { display: none; }
  .side-field { flex-direction: row; align-items: center; gap: 10px; }
  .side-field select { flex: 1; height: 36px; }
  .side-card:has(.publish-entry) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .publish-entry { margin: 0; flex-direction: row-reverse; justify-content: center; gap: 6px; padding: 8px 4px; }
  .publish-entry em { display: none; }
  .publish-entry strong { font-size: 13px; }
  .pe-ico { width: 26px; height: 24px; border-radius: 6px; }
  .side-card:has(.board-item) { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px; }
  .side-card:has(.board-item)::-webkit-scrollbar { display: none; }
  .board-item { width: auto; flex: none; margin: 0; padding: 4px 12px 4px 4px; gap: 6px; }
  .board-ico { width: 26px; height: 26px; font-size: 14px; border-radius: 6px; }
  .forum-head { height: 92px; padding: 0 14px; gap: 12px; }
  .forum-head-icon { width: 54px; height: 54px; font-size: 26px; }
  .forum-feed { padding: 12px 12px 4px; }
  .feed-banner { height: 76px; }
  .feed-banner strong { font-size: 20px; }

  /* 任务 */
  .task-top { flex-wrap: wrap; gap: 8px; }
  .task-title { flex: none; margin-right: auto; white-space: nowrap; font-size: 18px; }
  .task-top .btn-ink { order: 1; padding: 0 10px; }
  .task-top select { order: 2; }
  .task-top .search { order: 3; flex: 1; width: auto; max-width: none; margin: 0; }
  .task-body { gap: 10px; padding: 12px; }

  /* 我的 */
  .me-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 16px; }
  .me-ava, .pe-ava { width: 64px; height: 64px; font-size: 26px; }
  .pe-ava { width: 84px; height: 84px; }
  .ava-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 340px; }
  .ava-opt { width: 100%; height: auto; aspect-ratio: 1; }
  .me-info { gap: 6px; }
  .me-stats { flex-wrap: wrap; gap: 6px 12px; }
  .me-stats span, .me-stats button { white-space: nowrap; }
  .me-meta { gap: 6px 12px; }
  .me-acts { grid-column: 1 / -1; align-self: stretch; gap: 8px; }
  .me-act { flex: 1; white-space: nowrap; }
  .me-act.more { flex: none; }
  .me-panel { margin-top: 10px; padding: 2px 12px 14px; min-height: 0; }
  .me-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .me-tabs::-webkit-scrollbar { display: none; }
  .me-tabs button { flex: none; white-space: nowrap; font-size: 14px; }
  .me-menu { min-width: 0; }

  /* 交易行 */
  .trade-top { gap: 18px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
  .trade-top::-webkit-scrollbar { display: none; }
  .tt { flex: none; gap: 5px; font-size: 15px; white-space: nowrap; }
  .tt .svg { width: 16px; height: 16px; }
  .tt-help { flex: none; white-space: nowrap; }
  .tt-zone { flex: none; }
  .trade-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trade-side { position: static; flex-direction: row; min-height: 0; padding: 6px; overflow-x: auto; scrollbar-width: none; }
  .trade-side::-webkit-scrollbar { display: none; }
  .trade-side button { flex: none; height: 32px; padding: 0 12px; white-space: nowrap; }
  .trade-search { max-width: none; }
  .trade-zones { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .trade-zone .zicon { width: 56px; height: 56px; }
  .goods-grid { grid-template-columns: minmax(0, 1fr); }
  .trade-table { display: block; overflow-x: auto; }
  .wallet-cards { grid-template-columns: 1fr; }
  .wc { border-right: 0; border-bottom: 1px solid #2b3038; padding: 14px; }
  .wc:last-child { border-bottom: 0; }
  .wc b { margin-top: 4px; font-size: 22px; }
  .wallet-ops { flex-wrap: wrap; margin: 16px 0 8px; }
  .btn-gold.wide { min-width: 0; flex: 1; }
  .fee-tabs { gap: 24px; }
  .fee-card { flex-wrap: wrap; gap: 10px; padding: 12px; }

  /* 会员 */
  .mb-hero { grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 10px 12px; min-height: 0; padding: 12px 14px 18px; }
  .mb-hero-art { width: 108px; height: 140px; }
  .mb-logo { margin-bottom: 6px; font-size: 20px; }
  .mb-hero-text { font-size: 12px; }
  .mb-hero-text ol { line-height: 1.7; }
  .mb-buy { grid-column: 1 / -1; justify-content: center; }
  .mb-frame { padding: 16px 14px; }
  .mb-perks { justify-content: center; gap: 12px; }
  .mb-badge { width: 96px; height: 80px; font-size: 18px; }
  .mb-tile { width: 96px; }
  .mb-order { grid-template-columns: 1fr 1fr; }
  .mb-bar .btn-ink { padding: 0 16px; }

  /* SVIP */
  .svip-arc { height: 56px; }
  .svip-cards { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 8px; }
  .svip-cards .svip-card.side, .svip-cards .svip-card.blank { display: none; }
  .svip-arrow { width: 32px; height: 32px; }
  .svip-card { padding: 14px; }
  .svip-gem { width: 84px; height: 84px; }
  .svip-card-text { max-width: 72%; gap: 8px; }
  .svip-tip { width: auto; text-align: center; }
  .sp-row { grid-template-columns: 1fr 1fr; gap: 6px 0; }
  .sp-item { padding: 4px 10px; }
  .sp-item:nth-child(2n) { border-right: 0; }
  .svip-perk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sv-box { padding: 12px; }
  .sv-ic { min-width: 84px; }
  .ledger-row { grid-template-columns: 1fr 1fr; }

  /* 消息中心 */
  .ib { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ib-nav { flex-direction: row; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid #262a31; }
  .ib-nav::-webkit-scrollbar { display: none; }
  .ib-nav-i { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; white-space: nowrap; }
  .ib-nav-i .red-dot { top: 6px; right: 6px; }
  .ib-head { gap: 16px; height: 44px; padding: 0 12px; }
  .ib-tab { height: 44px; white-space: nowrap; }
  .ib-clear { white-space: nowrap; }
  .ib-list { padding: 4px 12px 12px; }
  .ib-chats { margin: 0 -12px; }
  .ib-chats .qq-row { padding: 12px; }

  .lt-banner { margin: -12px -12px 0; }
  .lt-banner strong { font-size: 30px; letter-spacing: 6px; }
  .lt-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lt-nav { position: static; flex-direction: row; min-height: 0; padding: 6px; overflow-x: auto; scrollbar-width: none; }
  .lt-nav::-webkit-scrollbar { display: none; }
  .lt-nav button { flex: none; height: 32px; padding: 0 12px; white-space: nowrap; }
  .lt-main { min-height: 0; padding: 12px; }
  .lt-top { flex-wrap: wrap; gap: 8px 12px; }
  .lt-row { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .lt-row > :last-child { grid-column: 1 / -1; justify-self: end; }
  .lt-cover { width: 56px; height: 46px; }
  .mb-bar { margin: 16px -12px -24px; padding-right: 12px; }
  .svip-hero { margin: -12px -12px 16px; padding: 20px 16px 16px; }

  /* 弹窗改成底部抽屉 */
  .modal-mask { align-items: flex-end; }
  .modal, .modal.gift-modal, .modal.post-modal, .modal.rules-modal, .modal.inbox-modal, .qq-group-modal {
    width: 100%; max-width: 100%; max-height: 88vh; max-height: 88dvh;
    border-radius: 14px 14px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom);
  }
  .modal.inbox-modal { height: 88vh; height: 88dvh; }
  .modal-body { padding: 14px 14px 18px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
  .float-panel { top: calc(52px + env(safe-area-inset-top)); left: 8px; right: 8px; }
  .play-menu, .chat-panel { width: auto; }

  /* 登录 */
  .login-screen { justify-content: center; padding: 16px; }
  .login-card { width: 100%; max-width: 380px; padding: 26px 20px; }

  /* 聊天：一次只显示列表或会话 */
  .content.chat-fill { padding: 0; }
  .content.chat-fill .qq { border: 0; border-radius: 0; }
  .qq { grid-template-columns: 1fr; }
  .qq-side { border-right: 0; }
  .qq > .qq-main { display: none; }
  .qq.conv-open .qq-side { display: none; }
  .qq.conv-open .qq-main { display: flex; }
  .qq-back { display: inline-flex; margin-left: -6px; }
  .qq-head { padding: 0 10px 0 6px; gap: 4px; }
  .qq-head div { flex: 1; }
  .qq-log { padding: 12px; }
  .qq-msg { max-width: 88%; }
  .qq-tools { display: inline-flex; }
  .qq-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .qq-send .qq-why, .qq-send .qq-bar, .qq-send .qq-reply { grid-column: 1 / -1; }
  .qq-send .qq-bar { margin: 0 0 0 -4px; }
  .qq-send textarea { height: 38px; max-height: 96px; padding: 8px 10px; border-radius: 8px; background: #1d2026; }
  .qq-send-r #qq-count, .qq-send-r .kf-count { display: none; }
  .qq-send-r .btn-gold { height: 38px; padding: 0 16px; }
  .qq-members { grid-template-columns: 1fr; }
  .chat-page .side-links { display: none; }
  .chat-page:has(.qq.conv-open) .sidebar nav { display: none; }
  [data-more="r"] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  [data-more="l"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
  [data-more="lr"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
}

/* ---------- 区服详情 ---------- */
.zd { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.zd-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zd-top { display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zd-gallery { display: flex; flex-direction: column; min-width: 0; }
.zd-stage { aspect-ratio: 16 / 9; background: #0c0e11; overflow: hidden; }
.zd-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zd-thumbs { display: flex; align-items: center; gap: 6px; padding: 8px; background: #15181d; }
.zd-strip { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.zd-strip::-webkit-scrollbar { display: none; }
.zd-strip button { flex: none; width: 96px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.zd-strip button.on { border-color: var(--gold); opacity: 1; }
.zd-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zd-arrow { flex: none; width: 24px; height: 54px; border: 0; border-radius: 6px; background: #22262d; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.zd-arrow:hover { color: var(--gold-2); }
.zd-arrow .svg { width: 14px; height: 14px; }
.zd-info { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-left: 1px solid var(--line); min-width: 0; }
.zd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.zd-badge { padding: 2px 8px; border-radius: 4px; background: rgba(224, 177, 90, .14); border: 1px solid rgba(224, 177, 90, .35); color: var(--gold-2); font-size: 12px; }
.zd-state { padding: 2px 8px; border-radius: 4px; background: var(--card-2); color: var(--muted); font-size: 12px; }
.zd-state.ok { background: rgba(63, 157, 132, .16); color: #7fd1b9; }
.zd-state.beta { background: rgba(150, 110, 220, .18); color: #cfb2ff; }
.zd-info h2 { margin: 0; font-family: "STKaiti", "KaiTi", var(--font-body); font-size: 22px; color: #fff1cf; line-height: 1.3; word-break: break-all; }
.zd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.zd-tags span { padding: 1px 8px; border: 1px solid #3a3f48; border-radius: 3px; background: #1d2026; color: #c9cdd3; font-size: 12px; line-height: 20px; }
.zd-facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
.zd-facts dt { color: var(--muted); }
.zd-facts dd { margin: 0; text-align: right; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-facts dd.rank { color: var(--gold-2); font-weight: 700; }
.zd-grade { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); cursor: pointer; }
.zd-grade h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.zd-grade div { display: flex; align-items: center; gap: 8px; }
.zd-grade b { color: var(--gold-2); }
.zd-grade p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.zd-stars { display: inline-flex; gap: 2px; }
.zd-stars i { width: 16px; height: 16px; color: #4a4f58; }
.zd-stars i svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.zd-stars i.on { color: var(--gold); }

.zd-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zd-perks.n1 { grid-template-columns: minmax(0, 1fr); }
.zd-perks.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zd-perk { min-width: 0; padding: 12px 14px; text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.zd-perk:hover { border-color: rgba(224, 177, 90, .45); }
.zd-perk.title { cursor: default; }
.zd-perk.title:hover { border-color: var(--line); }
.zd-perk.svip { background: linear-gradient(135deg, rgba(224, 177, 90, .16), var(--panel) 62%); border-color: rgba(224, 177, 90, .35); }
.zd-perk h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; color: var(--gold-2); }
.zd-perk h4 .svg { width: 16px; height: 16px; color: var(--gold); }
.zd-perk p { margin: 0; font-size: 12px; line-height: 1.6; color: #b9bec6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zd-boxgift { margin-top: 10px; padding: 12px 14px; background: linear-gradient(135deg, rgba(63, 157, 132, .14), var(--panel) 60%); border: 1px solid rgba(63, 157, 132, .4); border-radius: 10px; }
.zd-boxgift h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: 14px; color: var(--gold-2); }
.zd-boxgift h4 .svg { width: 16px; height: 16px; color: var(--gold); }
.zd-boxgift h4 span { font-size: 12px; font-weight: 400; color: var(--muted); }
.zd-boxgift ul { margin: 0; padding: 0; list-style: none; }
.zd-boxgift li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.zd-boxgift li:first-child { border-top: 0; }
.zd-boxgift li > div { flex: 1; min-width: 0; }
.zd-boxgift li b { font-size: 13px; color: var(--text); }
.zd-boxgift li i { margin-left: 6px; padding: 0 6px; font-style: normal; font-size: 11px; color: var(--jade); border: 1px solid rgba(63, 157, 132, .5); border-radius: 8px; }
.zd-boxgift li em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #b9bec6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-boxgift .btn-gold { height: 30px; padding: 0 16px; flex: none; }
.zd-bg-st { flex: none; font-size: 12px; color: var(--muted); }
.zd-bg-st.done, .zd-bg-st.sending { color: var(--jade); }
.zd-bg-st.failed { color: var(--crimson); }
.zd-code { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.zd-code b { color: var(--text); font-family: Consolas, monospace; }
.zd-copy { display: inline-flex; padding: 0; border: 0; background: none; color: var(--gold); cursor: pointer; }
.zd-copy .svg { width: 14px; height: 14px; }

.zd-body { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zd-tabs { display: flex; gap: 4px; padding: 0 12px; background: #15181d; border-bottom: 1px solid var(--line); }
.zd-tabs button { position: relative; padding: 12px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.zd-tabs button:hover { color: var(--text); }
.zd-tabs button.active { color: var(--gold-2); }
.zd-tabs button.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); }
.zd-tabs .zd-tab-lobby { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); }
.zd-tabs .zd-tab-lobby .svg { width: 16px; height: 16px; }
.zd-lobby { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid #2b3038; border-radius: 10px; background: #1a1d23; }
.zd-lobby .qq-ava { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }
.zd-lobby-m { flex: 1; min-width: 0; }
.zd-lobby-m h4 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.zd-lobby-m p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.zd-lobby-m .zd-lobby-n { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #15171c; color: #c9ccd2; white-space: pre-wrap; }
/* 入群卡片、邀请入群 */
.modal-body .zd-lobby { margin-bottom: 12px; }
.gi-qr { margin: 14px 0 10px; }
.gi-qr svg { display: block; border-radius: 6px; }
.jc-pc { margin-top: 12px; }
.jc-pc a { color: var(--gold-2); }
.zd-beta-tip { margin: 8px 0 0; color: #cfb2ff; font-size: 12px; text-align: center; }
.zd-pane { min-height: 160px; padding: 16px; }
.zd-video { width: 100%; border-radius: 8px; margin-bottom: 14px; background: #000; }
.zd-intro { margin-bottom: 14px; line-height: 1.9; color: var(--text); }
.zd-intro p { margin: 0; }
.zd-intro p.gap { height: 10px; }
.zd-section { margin-bottom: 16px; line-height: 1.9; color: var(--text); }
.zd-sec-title { color: var(--gold); font-size: 15px; margin: 0 0 6px; }
.zd-sec-img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }
.zd-section p { margin: 0; }
.zd-basics { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; margin: 0; padding: 12px 14px; background: var(--card); border-radius: 8px; font-size: 13px; }
.zd-basics dt { color: var(--muted); }
.zd-basics dd { margin: 0; }
.zd-pane-tip { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.zd-same { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.zd-same button { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; }
.zd-same button:hover { border-color: rgba(224, 177, 90, .45); }
.zd-same img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.zd-same strong, .zd-same span { padding: 0 10px; }
.zd-same span { font-size: 12px; color: var(--muted); }
.zd-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.zd-post { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 10px 4px; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.zd-post:hover strong { color: var(--gold-2); }
.zd-post span { font-size: 12px; color: var(--muted); }
.zd-post .pin { margin-right: 6px; padding: 0 4px; border: 1px solid var(--crimson); border-radius: 3px; font-size: 11px; font-style: normal; color: var(--crimson); }

.zd-side { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zd-side h3 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.zd-today, .zd-lines, .zd-gamelines { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.zd-none { margin: 0; font-size: 12px; }
.zd-timeline { display: flex; flex-direction: column; gap: 8px; max-height: 150px; margin: 0; padding: 0 0 0 12px; overflow: auto; list-style: none; border-left: 1px dashed #3a3f48; }
.zd-timeline li { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); cursor: pointer; }
.zd-timeline li::before { content: ""; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--jade); }
.zd-timeline li.later, .zd-timeline li.later time, .zd-timeline li.later em { color: var(--muted); }
.zd-timeline li.later::before { background: #4a4f58; }
.zd-timeline li.on span { color: var(--gold-2); }
.zd-timeline time { font-family: Consolas, monospace; color: var(--gold); }
.zd-timeline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-timeline em { font-size: 11px; font-style: normal; color: var(--jade); }
.zd-lines { max-height: 380px; overflow: auto; }
.zd-group + .zd-group { margin-top: 4px; }
.zd-group-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.zd-group-head span { flex: 1; text-align: left; }
.zd-group-head em { font-size: 11px; font-style: normal; color: var(--muted); }
.zd-group-head .svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.zd-group.open .zd-group-head .svg { transform: rotate(180deg); }
.zd-group-body { display: none; padding: 4px 0 2px 8px; }
.zd-group.open .zd-group-body { display: block; }
.zd-line { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: #c9cdd3; font: inherit; font-size: 13px; cursor: pointer; }
.zd-line:hover { background: #22262d; }
.zd-line.on { background: rgba(224, 177, 90, .12); color: var(--gold-2); }
.zd-line span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-line em { font-size: 11px; font-style: normal; color: var(--muted); }
.zd-line em.ok { color: var(--jade); }
.zd-line.on em { color: var(--gold); }
.zd-pick { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.zd-pick dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 12px; }
.zd-pick dt { color: var(--muted); }
.zd-pick dd { margin: 0; min-width: 0; text-align: right; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-launch { height: 48px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #f3cc72, #d6a03d); color: #2a1d06; font-family: "STKaiti", "KaiTi", var(--font-body); font-size: 21px; font-weight: 800; letter-spacing: 6px; cursor: pointer; box-shadow: 0 6px 18px rgba(214, 160, 61, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.zd-launch:hover { filter: brightness(1.06); }
.zd-launch:active { transform: translateY(1px); }

.zd-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.zd-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #3a3f48; border-radius: 6px; background: #1d2026; color: #d6d2c8; font: inherit; font-size: 13px; cursor: pointer; }
.zd-tool .svg { width: 15px; height: 15px; color: var(--gold); }
.zd-tool:hover { border-color: rgba(224, 177, 90, .5); color: var(--gold-2); }
.zd-tool:disabled { opacity: .5; cursor: not-allowed; }
.zd-tool.gold { min-width: 84px; justify-content: center; border-color: rgba(224, 177, 90, .55); background: rgba(224, 177, 90, .08); color: var(--gold-2); }
.zd-acct { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; color: var(--muted); }
.zd-acct .svg { width: 15px; height: 15px; }
.zd-acct b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.zd-fill { flex: 1; }
@media (max-width: 1100px) {
  .zd { grid-template-columns: minmax(0, 1fr) 230px; }
  .zd-top { grid-template-columns: 1fr; }
  .zd-info { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .zd { grid-template-columns: 1fr; }
  .zd-perks, .zd-perks.n2 { grid-template-columns: 1fr; }
  .zd-lines { max-height: none; }
}
@media (max-width: 760px) {
  .zd-tabs { padding: 0 4px; overflow-x: auto; }
  .zd-tabs button { flex: none; padding: 10px; }
  .zd-acct { margin-left: 0; }
  .zd-fill { display: none; }
  .zd-same { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 修仙自助充值 */
.pay-card { max-width: 480px; }
.pay-card h3 { margin: 0 0 8px; }
.pay-card a.btn-gold { text-decoration: none; margin: 10px 0 4px; }
.pay-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
#tp-amount + .pay-quick { margin-top: 8px; }
#tp-result .notice-card { margin-top: 12px; }
#tp-result a.btn-gold { display: inline-block; text-decoration: none; margin: 10px 0 4px; }
.btn.pay-mini { padding: 4px 10px; font-size: 13px; }

/* 时装工坊 */
.wf-dot { display: inline-block; min-width: 16px; margin-left: 6px; padding: 0 5px; border-radius: 8px; background: #d9443a; color: #fff; font-size: 11px; font-style: normal; line-height: 16px; text-align: center; vertical-align: 1px; }
.wf-small { font-size: 12px; line-height: 1.6; }
.wf-link { border: 0; background: none; padding: 0 0 0 6px; color: var(--gold); font-size: 13px; cursor: pointer; text-decoration: underline; }
.wf-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wd-tags span.violet { background: #2a2140; color: #c9b8f5; }
.wd-card small { font-size: 11px; color: var(--gold-2); }
.modal.wf-modal { width: min(460px, 94vw); }
.wf-orders td small { font-size: 12px; }
.wf-st { display: inline-block; padding: 1px 8px; border-radius: 9px; background: #262b33; color: #c8c3b8; font-size: 12px; }
.wf-st.done { background: #16301f; color: #86d6a0; }
.wf-st.unpaid, .wf-st.sending { background: #2a2416; color: var(--gold-2); }
.wf-st.failed, .wf-st.check { background: #3a1d1d; color: #f2a3a3; }
.wf-custom { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.wf-left { display: flex; flex-direction: column; gap: 8px; }
.wf-left h4 { margin: 8px 0 2px; color: #d8d2c4; font-size: 14px; }
.wf-artist { padding: 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.wf-artist.on { border-color: var(--gold); }
.wf-artist strong { color: #f3efe6; margin-right: 8px; }
.wf-artist small { color: var(--muted); font-size: 12px; }
.wf-artist p { margin: 6px 0 8px; color: #b8b2a6; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.wf-thead { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.wf-thead.on { border-color: var(--gold); }
.wf-thead small { color: var(--muted); font-size: 12px; }
.wf-right { min-width: 0; padding: 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.wf-right h3 { margin: 0 0 6px; color: #f3efe6; font-size: 17px; }
.wf-howto ol { margin: 10px 0; padding-left: 20px; color: #c8c3b8; line-height: 2; font-size: 13px; }
.wf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.wf-pics { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-pics figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wf-pics img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.wf-pics button { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.wf-made { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.wf-made-item { display: flex; gap: 12px; padding: 10px; border-radius: 8px; border: 1px solid #4a3d22; background: #1d1a13; }
.wf-made-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 5px; }
.wf-made-item strong { display: block; color: #f3efe6; }
.wf-made-item small { color: var(--gold-2); font-size: 12px; }
.wf-made-item .row { margin-top: 6px; gap: 8px; }
.wf-notes { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow: auto; margin: 12px 0; padding: 10px; border-radius: 8px; background: #15171c; }
.wf-note { align-self: flex-start; max-width: 80%; padding: 8px 12px; border-radius: 10px; background: #232730; color: #e2ddd2; }
.wf-note.me { align-self: flex-end; background: #2e2716; }
.wf-note.sys { align-self: center; max-width: 90%; background: none; color: var(--muted); font-size: 12px; text-align: center; }
.wf-note small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.wf-note p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.6; }
.wf-note .wf-pics { margin-top: 6px; }
.wf-reply textarea { width: 100%; box-sizing: border-box; border: 1px solid #3A3A3A; border-radius: 8px; padding: 8px 10px; background: #111; color: var(--color-on-surface); font: inherit; resize: vertical; }
.wf-reply .row { margin-top: 8px; gap: 8px; }
.wf-reply label.btn { display: inline-flex; align-items: center; }
@media (max-width: 900px) { .wf-custom { grid-template-columns: 1fr; } .wf-two { grid-template-columns: 1fr; } }
.wd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.wd-stage { min-width: 0; }
.wd-view { position: relative; display: flex; align-items: center; justify-content: center; height: min(72vh, 760px); border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #2a2c33 0%, #15171c 70%); border: 1px solid var(--line); }
.wd-view video, .wd-view img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.wd-view img { cursor: zoom-in; }
.wd-none { cursor: default; }
.wd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.wd-thumbs button { flex: none; width: 64px; height: 84px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: #1a1d23; overflow: hidden; cursor: pointer; color: var(--gold-2); font-size: 12px; }
.wd-thumbs button.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wd-info { padding: 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.wd-info h2 { margin: 0 0 8px; font-size: 20px; color: #f3efe6; }
.wd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.wd-tags span { padding: 2px 10px; border-radius: 10px; background: #262b33; color: #c8c3b8; font-size: 12px; }
.wd-tags span.gold { background: #2a2416; color: var(--gold-2); }
.wd-source { margin: 0 0 8px; color: var(--gold-2); font-size: 13px; }
.wd-intro { margin: 0; color: #b8b2a6; font-size: 13px; line-height: 1.7; max-height: 200px; overflow: auto; }
.wd-filter { display: flex; flex-direction: column; gap: 10px; }
.wd-seg, .wd-parts { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-seg button, .wd-parts button { height: 28px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #1a1d23; color: #aab0b9; font-size: 12px; cursor: pointer; }
.wd-seg button.on, .wd-parts button.on { border-color: #4a3d22; background: #2a2416; color: var(--gold-2); }
.wd-shelf button { height: 32px; padding: 0 18px; font-size: 13px; }
.wd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding-right: 2px; }
.wd-card { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text); text-align: left; }
.wd-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wd-card img, .wd-blank { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 5px; display: flex; align-items: center; justify-content: center; background: #15171c; color: var(--muted); font-size: 12px; }
.wd-card strong { font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.modal.wd-modal { width: min(900px, 94vw); }
.wd-big { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; }
@media (max-width: 1100px) { .wd { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 760px) {
  .wd { grid-template-columns: 1fr; }
  .wd-view { height: 62vh; }
  .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
}

/* 多语言 */
html[lang="zh-Hant"] { --font-body: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="en"], html[lang="vi"] { --font-body: "Segoe UI", "Noto Sans", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="th"] { --font-body: "Leelawadee UI", "Noto Sans Thai", "Tahoma", "Microsoft YaHei", system-ui, sans-serif; }
html:not([lang^="zh"]) .login-title, html:not([lang^="zh"]) .zd-launch, html:not([lang^="zh"]) .lt-banner strong { letter-spacing: 1px; }
.lang-btn { position: absolute; top: 16px; right: 18px; z-index: 2; padding: 6px 12px; border: 1px solid rgba(231, 207, 146, .4); border-radius: 16px; background: rgba(0, 0, 0, .45); color: #e7cf92; font-size: 13px; cursor: pointer; }
.lang-btn:hover { background: rgba(0, 0, 0, .6); }
.me-menu button.active { color: var(--gold); }

/* ===== 集市 · 角色书册（挂单时的快照：人物属性 / 武学修为 / 背包，鼠标移上去看说明） ===== */
.modal.role-modal { width: min(940px, 96vw); height: min(720px, 92vh); max-height: 92vh; }
.role-modal .modal-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rb-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rb { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 13px; color: #d5d9df; }
.rb [hidden] { display: none !important; }
.rb-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #15181d; border-bottom: 1px solid #262a31; }
.rb-portrait, .rb-figure-face { position: relative; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #5d4f2e; background: #101216; color: var(--gold-2); }
.rb-portrait { width: 52px; height: 52px; border-radius: 8px; font-size: 22px; }
.rb-portrait img, .rb-figure-face img { width: 100%; height: 100%; object-fit: cover; }
.rb-short { display: none; }
.noimg > .rb-short { display: block; }
.rb-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-who strong { font-size: 16px; color: #f3efe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-cult { flex: none; display: flex; gap: 8px; }
.rb-cult span { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 5px 10px; border-radius: 6px; background: #1d2026; border: 1px solid #2b3038; }
.rb-cult em { font-style: normal; font-size: 11px; color: var(--muted); }
.rb-cult b { font-size: 14px; color: var(--gold-2); }

.rb-tabs { flex: none; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.rb-tabs::-webkit-scrollbar { display: none; }
.rb-tabs button { flex: none; border: 0; background: transparent; color: #9aa1ab; font: inherit; cursor: pointer; white-space: nowrap; }
.rb-tabs button em { margin-left: 4px; font-style: normal; font-size: 11px; color: #6f7680; }
.rb-tabs-main { padding: 0 14px; background: #121418; border-bottom: 1px solid #262a31; }
.rb-tabs-main button { padding: 10px 16px; font-size: 14px; border-bottom: 2px solid transparent; }
.rb-tabs-main button.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.rb-tabs-sub { margin-bottom: 10px; padding: 3px; border-radius: 8px; background: #14171b; }
.rb-tabs-sub button { padding: 5px 11px; border-radius: 6px; font-size: 12px; }
.rb-tabs-sub button.on { background: #2a2f37; color: var(--gold-2); }
.rb-tabs-sub button.on em { color: #b9a678; }
.rb-tabs button:hover { color: #e6e1d5; }

.rb-pane.rb-attr, .rb-pane.rb-scroll { flex: 1; min-height: 0; padding: 14px 18px; }
.rb-pane.rb-scroll { overflow-y: auto; }
.rb-pane.rb-attr { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 16px; overflow: hidden; }
.rb-gear, .rb-side { min-height: 0; display: flex; flex-direction: column; }
.rb-gear > .rb-pane, .rb-side > .rb-pane { flex: 1; min-height: 0; overflow-y: auto; }

/* 一格：图标、右下角的数量；没有图标时写名字的头两个字 */
.rb-hit { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rb-cell { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #101216; border: 1px solid #343a44; color: #9aa1ab; font-size: 12px; line-height: 1.1; }
.rb-cell img { width: 100%; height: 100%; object-fit: contain; }
.rb-cell i { position: absolute; right: 2px; bottom: 1px; padding: 0 2px; border-radius: 3px; background: rgba(0,0,0,.72); color: #fff; font-style: normal; font-size: 10px; line-height: 13px; }
.rb-cell.q3 { border-color: #3d7fb3; }
.rb-cell.q4 { border-color: #8a5fc0; }
.rb-cell.q5 { border-color: #a8843c; }
.rb-cell.q7 { border-color: #c2633d; }
.rb-cell.rb-vacant { border-style: dashed; border-color: #2b3038; background: transparent; color: #4f5660; font-size: 11px; }
.rb-hit:hover .rb-cell, .rb-hit.on .rb-cell, .rb-hit:focus-visible .rb-cell { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2); }
.rb-hit:focus-visible { outline: none; }
.rb b.q3, .rb-tip h3.q3 { color: #6fc3ff; }
.rb b.q4, .rb-tip h3.q4 { color: #c58cff; }
.rb b.q5, .rb-tip h3.q5 { color: var(--gold-2); }
.rb b.q7, .rb-tip h3.q7 { color: #ff8a5c; }

/* 纸娃娃：左右各八格，中间是人 */
.rb-doll { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 12px; }
.rb-doll-col { display: flex; flex-direction: column; gap: 5px; }
.rb-doll-col .rb-cell { width: 42px; height: 42px; }
.rb-figure { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px 8px; border-radius: 8px; background: linear-gradient(180deg, #1b1e24, #14171b); border: 1px solid #262a31; text-align: center; }
.rb-figure-face { width: 96px; height: 96px; border-radius: 50%; font-size: 30px; margin-bottom: 6px; }
.rb-figure strong { font-size: 15px; color: #f3efe6; }
.rb-figure > span { font-size: 12px; color: var(--muted); }
.rb-buffs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: auto; padding-top: 10px; }
.rb-buffs .rb-cell { width: 30px; height: 30px; border-radius: 4px; font-size: 10px; }

/* 带名字的一条：内功、经脉、异宝 */
.rb-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; }
.rb-art { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px; border-radius: 8px; background: #1b1e24; border: 1px solid #262a31; }
.rb-art:hover, .rb-art.on { background: #22262d; }
.rb-art .rb-cell { width: 38px; height: 38px; }
.rb-art-text { min-width: 0; display: flex; flex-direction: column; }
.rb-art-text b { font-weight: 500; color: #e6e1d5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-art-text small { font-size: 11px; color: var(--muted); }
.rb-cat { margin: 14px 0 6px; font-size: 13px; color: var(--gold-2); }
.rb-cat:first-of-type { margin-top: 0; }
.rb-routine { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #22262d; }
.rb-routine strong { font-weight: 500; color: #e6e1d5; }
.rb-routine strong em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.rb-moves, .rb-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-moves .rb-cell { width: 38px; height: 38px; }

/* 状态、实力 */
.rb-group { margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; background: #1b1e24; border: 1px solid #262a31; }
.rb-group h5 { margin: 0 0 6px; font-size: 12px; color: var(--gold-2); }
.rb-group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 0; }
.rb-group dl div { display: flex; justify-content: space-between; gap: 8px; }
.rb-group dt { color: var(--muted); }
.rb-group dd { margin: 0; color: #f3efe6; font-variant-numeric: tabular-nums; }
.rb-group .boost dd { color: #58e36b; cursor: help; }
.rb-money { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #14171b; color: var(--muted); }
.rb-money b { margin-left: 4px; color: var(--gold-2); font-weight: 500; }

/* 风物志、灵物、兵录、坐骑、生活 */
.rb-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.rb-entry { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: #1b1e24; border: 1px solid #262a31; }
.rb-entry img { flex: none; width: 36px; height: 36px; object-fit: contain; }
.rb-entry > div { flex: 1; min-width: 0; }
.rb-entry strong { display: block; font-weight: 500; color: #e6e1d5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-entry p { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; font-size: 11px; color: var(--muted); }
.rb-entry p b { font-weight: 400; color: #c9ced6; }
.rb-entry progress { display: block; width: 100%; height: 4px; margin-top: 4px; border: 0; border-radius: 2px; overflow: hidden; background: #2b3038; appearance: none; -webkit-appearance: none; }
.rb-entry progress::-webkit-progress-bar { background: #2b3038; }
.rb-entry progress::-webkit-progress-value { background: var(--gold); }
.rb-entry progress::-moz-progress-bar { background: var(--gold); }
.rb-empty { margin: 30px 0; text-align: center; color: var(--muted); }
.rb-note { flex: none; margin: 0; padding: 7px 18px; border-top: 1px solid #262a31; background: #121418; font-size: 11px; color: #6f7680; }

/* 说明框：和游戏里一样黑底，一行一条 */
.rb-tip { position: fixed; z-index: 60; left: 8px; top: 8px; width: 320px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; padding: 10px 12px; border-radius: 6px; background: rgba(6, 7, 9, .97); border: 1px solid #7a6739; box-shadow: 0 10px 34px rgba(0,0,0,.7); color: #f1ede3; font-size: 12px; line-height: 1.7; pointer-events: none; scrollbar-width: thin; }
.rb-tip.pinned { pointer-events: auto; border-color: var(--gold-2); }
.rb-tip[hidden] { display: none; }
.rb-tip-head { display: flow-root; min-height: 48px; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid #2b2a24; }
.rb-tip-head img { float: right; width: 48px; height: 48px; margin-left: 8px; object-fit: contain; border: 1px solid #4a4433; border-radius: 4px; background: #101216; }
.rb-tip-head.k-skill { min-height: 0; }
.rb-tip-head h3 { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.rb-tip-head small { display: block; font-size: 11px; color: #8d939c; }
.rb-tip p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rb-tip em { font-style: normal; }
.rb-tip .t-normal { color: #f1ede3; }
.rb-tip .t-value { color: #ffdf5a; }
.rb-tip .t-effect { color: #49e85f; }
.rb-tip .t-set { color: #46d3e6; }
.rb-tip .t-processing { color: #ff5a4d; }
.rb-tip .t-prop { color: #7fd1ff; }
.rb-tip .t-skill { color: #d0a6ff; }
.rb-tip .k-treasure .t-effect span { color: #ff6a5c; }
.rb-tip-note { margin-top: 6px !important; color: #7d7767; font-size: 11px; }
.rb-tip-bar { position: sticky; top: -10px; z-index: 1; margin: -10px -12px 4px; padding: 6px 8px 4px; text-align: right; background: rgba(6, 7, 9, .97); }
.rb-tip-x { padding: 0 8px; border: 1px solid #6b5d3a; border-radius: 4px; background: #24211a; color: #e9dfc4; font: inherit; cursor: pointer; }
/* 集市道具详情：同一张说明卡片，不浮动，一件一张排在弹窗里 */
.rb-tip.rb-tip-card { position: static; width: auto; max-width: none; max-height: none; overflow: visible; margin: 0 0 10px; box-shadow: none; pointer-events: auto; }
.rb-tip-card .rb-tip-head { min-height: 0; }
.rb-tip-card .rb-tip-head h3 { font-size: 15px; }
.gd-list { max-height: 62vh; overflow-y: auto; margin: 8px 0; }
.good-head[data-detail] { cursor: pointer; }
.good-head[data-detail]:hover strong, .good-head[data-detail]:focus-visible strong { color: var(--gold-2); }
.rb-tip.rb-tip-sheet { left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: 62vh; }

@media (max-width: 760px) {
  .modal.role-modal { width: 100%; height: 92vh; height: 92dvh; max-height: 92vh; max-height: 92dvh; }
  .role-modal .modal-body { padding: 0; }
  .rb-head { flex-wrap: wrap; padding: 10px 12px; }
  .rb-cult { width: 100%; }
  .rb-cult span { flex: 1; min-width: 0; }
  .rb-tabs-main { padding: 0 6px; }
  .rb-tabs-main button { flex: 1; padding: 10px 6px; }
  .rb-pane.rb-attr, .rb-pane.rb-scroll { padding: 12px; }
  .rb-pane.rb-attr { display: block; overflow-y: auto; }
  .rb-gear > .rb-pane, .rb-side > .rb-pane { overflow: visible; }
  .rb-gear { margin-bottom: 14px; }
  .rb-arts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .rb-routine { grid-template-columns: 1fr; gap: 4px; }
  .rb-routine strong em { display: inline; margin-left: 6px; }
  .rb-note { padding: 6px 12px; }
}

/* ---------- OTC 承兑交易 ---------- */
.modal.modal-wide { width: min(780px, 94vw); }
.tag.info { border-color: #2a4a6b; color: #8fc5f0; background: #1a2a3a; }
.tag.good { border-color: #2a5b35; color: #8ff0a0; background: #1a2a1c; }
.tag.bad { border-color: #6b2a2a; color: #f08f8f; background: #2a1a1a; }
.tag.muted { border-color: #3a3f48; color: #808890; background: #1d2026; }
.otc-tab.active { background: var(--gold) !important; color: #000 !important; }
.otc-qr { display: block; max-width: 200px; max-height: 200px; margin: 8px 0; border-radius: 6px; border: 1px solid #2f343c; }
.otc-order-head { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.otc-order-head p { margin: 4px 0; }
.otc-chat { max-height: 300px; overflow-y: auto; background: #111317; border: 1px solid #2f343c; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.otc-msg { display: flex; }
.otc-msg.mine { justify-content: flex-end; }
.otc-msg-bubble { max-width: 70%; padding: 8px 12px; border-radius: 10px; background: #1e2228; font-size: 13px; word-break: break-all; }
.otc-msg.mine .otc-msg-bubble { background: #2a3a2a; }
.otc-msg-bubble em { display: block; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 4px; }
.otc-msg-bubble span { color: var(--text); }
.otc-chat-img { display: block; max-width: 180px; max-height: 180px; border-radius: 4px; margin: 4px 0; cursor: pointer; }
.otc-chat-input { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.otc-chat-input input { flex: 1; background: #111317; border: 1px solid #2f343c; border-radius: 6px; padding: 6px 10px; color: var(--text); font-size: 13px; }

/* ---------- 推送通知 toast ---------- */
.push-toast { position: fixed; top: 16px; right: 16px; z-index: 9999; max-width: 340px; padding: 12px 36px 12px 16px; border-radius: 8px; background: #1e2128; border-left: 4px solid var(--toast-color, #3b82f6); box-shadow: 0 4px 20px rgba(0,0,0,.5); animation: pushIn .3s ease; }
.push-toast-title { font-size: 14px; font-weight: 600; color: #f3f3f3; }
.push-toast-body { margin-top: 4px; font-size: 12px; color: #9ca3af; }
.push-toast-close { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; line-height: 1; }
@keyframes pushIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- 活动列表/卡片 ---------- */
.activity-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.activity-pill { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 260px; flex-shrink: 0; padding: 10px 14px; border-radius: 10px; background: #1a1d24; border: 1px solid #2a2e36; cursor: pointer; text-align: left; }
.activity-pill:hover { border-color: var(--color-primary); }
.activity-pill img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.activity-pill-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #24272e; border-radius: 6px; flex-shrink: 0; }
.activity-pill-text { display: flex; flex-direction: column; overflow: hidden; }
.activity-pill-text strong { font-size: 13px; color: #f3f3f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-pill-text em { font-size: 11px; color: #6b7280; font-style: normal; }

.activity-card { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: #1a1d24; border: 1px solid #2a2e36; cursor: pointer; margin-bottom: 8px; }
.activity-card:hover { border-color: var(--color-primary); }
.activity-cover { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.activity-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.activity-info h3 { font-size: 15px; color: #f3f3f3; margin: 0; }
.activity-type { font-size: 11px; padding: 1px 6px; border-radius: 3px; display: inline-block; width: fit-content; }
.tag-event { background: #1e3a5f; color: #60a5fa; }
.tag-promo { background: #1a3a2a; color: #34d399; }
.tag-notice { background: #3a2f1a; color: #fbbf24; }
.activity-time { font-size: 11px; color: #6b7280; }
.activity-detail { padding: 16px; }
.activity-detail-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.activity-detail h2 { font-size: 18px; color: #f3f3f3; margin: 0 0 8px; }
.activity-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.activity-body { font-size: 14px; color: #d1d5db; line-height: 1.6; white-space: pre-wrap; }

/* ---------- 推荐区服 ---------- */
.recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.recommend-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #1a1d24; border: 1px solid #2a2e36; cursor: pointer; text-align: left; transition: border-color .2s; }
.recommend-card:hover { border-color: var(--gold); }
.recommend-name { font-size: 14px; font-weight: 600; color: #f3f3f3; }
.recommend-meta { font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recommend-status { font-size: 11px; color: #6b7280; }
.recommend-status.online { color: #34d399; }
.recommend-card.hot { border-left: 3px solid #ef4444; }
.recommend-card.new { border-left: 3px solid #3b82f6; }
.recommend-name { font-size: 14px; font-weight: 600; color: #f3f3f3; }
.recommend-meta { font-size: 11px; color: #6b7280; }
.recommend-status { font-size: 11px; color: #6b7280; }
.recommend-status.online { color: #34d399; }

/* ---------- 搜索结果 ---------- */
.search-results { padding: 0; }
.search-head { margin-bottom: 16px; }
.search-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #1a1d24; border: 1px solid #2a2e36; border-radius: 8px; margin-bottom: 10px; }
.search-bar svg { width: 16px; height: 16px; stroke: #6b7280; flex-shrink: 0; }
.search-bar input { flex: 1; background: none; border: none; color: var(--text); font-size: 14px; outline: none; }
.search-tabs { display: flex; gap: 6px; }
.search-section { margin-bottom: 20px; }
.search-section h3 { font-size: 14px; color: var(--gold); margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #2a2e36; }

.search-zone-list { display: flex; flex-direction: column; gap: 6px; }
.search-zone-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: #1a1d24; border: 1px solid #2a2e36; cursor: pointer; text-align: left; }
.search-zone-item:hover { border-color: var(--gold); }
.sz-name { font-size: 14px; font-weight: 600; color: #f3f3f3; flex: 1; }
.sz-meta { font-size: 11px; color: #6b7280; }
.sz-status { font-size: 11px; color: #6b7280; }
.sz-status.online { color: #34d399; }

.search-post-list { display: flex; flex-direction: column; gap: 6px; }
.search-post-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 8px; background: #1a1d24; border: 1px solid #2a2e36; cursor: pointer; text-align: left; }
.search-post-item:hover { border-color: var(--gold); }
.sp-title { font-size: 14px; font-weight: 600; color: #f3f3f3; }
.sp-body { font-size: 12px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-meta { font-size: 11px; color: #6b7280; }

.search-gift-list { display: flex; flex-direction: column; gap: 6px; }
.search-gift-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: #1a1d24; border: 1px solid #2a2e36; }
.sg-name { font-size: 14px; font-weight: 600; color: #f3f3f3; }
.sg-zone { font-size: 11px; color: var(--gold); }
.sg-desc { font-size: 12px; color: #9ca3af; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 直播 (livestream) ---------- */
.live-head { align-items: center; }
.live-zone { margin-left: auto; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.live-card { display: flex; flex-direction: column; padding: 0; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); text-align: left; color: var(--text); cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.live-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.live-cover { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #262b33, #15181d); }
.live-card.on .live-cover { background: linear-gradient(140deg, #3a2a1a, #17191e); }
.live-cover-letter { font-family: "STKaiti", "KaiTi", serif; font-size: 44px; color: rgba(242,208,138,.35); }
.live-plat { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.live-cover .live-plat { position: absolute; left: 8px; top: 8px; }
.live-flag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.live-flag.off { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.live-cover .live-flag { position: absolute; right: 8px; top: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: live-pulse 1.4s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.live-viewers { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.6); color: #e5e1d8; font-size: 11px; }
.live-meta { padding: 10px 12px 12px; min-width: 0; }
.live-meta strong { display: block; font-size: 14px; color: #f3efe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-meta p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.live-meta p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-meta p em { margin-left: auto; flex: none; font-style: normal; color: var(--gold); }

.live-viewer { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,9,12,.86); }
.live-stage { display: flex; flex-direction: column; width: min(1180px, 100%); max-height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.live-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); }
.live-title { flex: 1; min-width: 0; font-size: 15px; color: #f3efe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-x { flex: none; width: 30px; height: 30px; border-radius: 6px; background: #2a2f37; color: #e5e1d8; font-size: 20px; line-height: 1; }
.live-x:hover { background: var(--crimson); color: #fff; }
.live-main { display: flex; min-height: 0; flex: 1; }
.live-player { position: relative; flex: 1; min-width: 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-flv { position: absolute; inset: 0; }
.live-video-player { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.live-noembed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.live-noembed p { margin: 0; }
.live-chat { display: flex; flex-direction: column; flex: none; width: 260px; border-left: 1px solid var(--line); background: var(--panel); }
.live-chat[hidden] { display: none; }
.live-chat-head { padding: 9px 12px; font-size: 13px; color: var(--gold-2); border-bottom: 1px solid var(--line); }
.live-chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; }
.live-chat-list p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--text); word-break: break-word; }
.live-chat-list b { margin-right: 6px; font-weight: 600; color: var(--gold); }
.live-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.live-host-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card-2); }
.live-host-ava b { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card-2); color: var(--gold-2); font-size: 16px; }
.live-host { flex: 1; min-width: 0; }
.live-host strong { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #f3efe6; }
.live-host p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.live-gift { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.live-gift svg { width: 16px; height: 16px; }

.live-entry-lane { position: absolute; left: 0; right: 0; top: 14px; height: 48px; overflow: hidden; pointer-events: none; }
.live-entry { position: absolute; left: 0; top: 4px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; white-space: nowrap; font-size: 14px; background: rgba(0,0,0,.55); color: #fff; transform: translateX(-110%); animation: live-entry-slide 4.2s ease-in-out forwards; }
@keyframes live-entry-slide { 0% { transform: translateX(-110%); opacity: 0; } 12% { transform: translateX(16px); opacity: 1; } 82% { transform: translateX(16px); opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
.live-entry.t2 { animation-duration: 5.2s; background: linear-gradient(90deg, rgba(92,60,10,.9), rgba(40,26,6,.75)); border: 1px solid rgba(242,208,138,.7); box-shadow: 0 0 14px rgba(242,199,101,.55); }
.live-entry.t2 .live-entry-text, .live-entry.t3 .live-entry-text { font-weight: 700; color: #ffe9a8; text-shadow: 0 0 8px rgba(255,204,92,.9), 0 0 18px rgba(255,170,40,.6); }
.live-entry.t3 { animation-duration: 6.4s; height: 40px; padding: 0 20px; font-size: 15px; border-radius: 20px; background: #1d1407; isolation: isolate; }
.live-entry.t3::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: 22px; background: conic-gradient(from var(--live-angle, 0deg), #fff7d6, #f6c64e, #c27e18, #ff8a3c, #ffe28c, #fff7d6); animation: live-entry-spin 2.2s linear infinite; }
.live-entry.t3::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: linear-gradient(90deg, #3a2608, #1d1407); }
@property --live-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes live-entry-spin { to { --live-angle: 360deg; } }
.live-spark { position: absolute; left: var(--x); top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #ffe28c; box-shadow: 0 0 6px #ffcc5c; opacity: 0; animation: live-spark 1.3s ease-out infinite; animation-delay: calc(var(--i) * .17s); }
.live-entry.t3 .live-spark { width: 6px; height: 6px; border-radius: 0; background: #fff7d6; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation-name: live-sparkle; }
@keyframes live-spark { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-22px) scale(0); opacity: 0; } }
@keyframes live-sparkle { 0% { transform: translateY(6px) scale(0) rotate(0); opacity: 0; } 40% { transform: translateY(-10px) scale(1.4) rotate(90deg); opacity: 1; } 100% { transform: translateY(-24px) scale(0) rotate(180deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-spark, .live-entry.t3::before { animation: none; } }
@media (max-width: 760px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .live-viewer { padding: 0; }
  .live-stage { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .live-main { flex-direction: column; }
  .live-player { flex: none; }
  .live-chat { width: auto; flex: 1; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
}