/*! 雲頂國際 · VIP 中心（vip-center.css）
 *  只作用于 VIP 版面：PC /activity?tab=2 与 H5 /vip。
 *  结构与参考站 https://www.hk11.com/vip 对齐（等级卡 / 等级阶梯 / 晋级条件 / 专属特权 / 三段记录），
 *  配色沿用本站 obsidian-gold：底 #0f0d0b · 金 #c8a45c · 香槟 #e3cf9f。
 *  所有节点都带 data-cn9v，方便回收；不改动原生组件的样式文件。
 */

#cn9-vip-center {
  --vip-ink: #0f0d0b;
  --vip-panel: #17130f;
  --vip-panel-2: #1d1813;
  --vip-panel-3: #241d16;
  --vip-line: rgba(200, 164, 92, 0.18);
  --vip-line-strong: rgba(200, 164, 92, 0.34);
  --vip-gold: #c8a45c;
  --vip-gold-soft: #e3cf9f;
  --vip-gold-dim: #8d7546;
  --vip-text: #f1e9da;
  --vip-muted: #a89a86;
  --vip-dim: #7c7061;
  --vip-ok: #7fd0a1;
  --vip-lock: #c98a7a;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px 56px;
  box-sizing: border-box;
  color: var(--vip-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: cn9v-in 0.32s ease both;
}
@keyframes cn9v-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
html.cn9v-modal-open { overflow: hidden !important; }
#cn9-vip-center *,
#cn9-vip-center *::before,
#cn9-vip-center *::after { box-sizing: border-box; }
#cn9-vip-center button { font: inherit; color: inherit; }
[data-cn9v-hidden="1"] { display: none !important; }

/* ---------------------------------------------------------------- 顶部标题 + 切页 */
.cn9v-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 16px;
  flex-wrap: wrap;
}
.cn9v-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cn9v-head-crown {
  width: 30px; height: 30px; flex: 0 0 30px;
  color: var(--vip-gold);
  filter: drop-shadow(0 0 8px rgba(200, 164, 92, 0.35));
}
.cn9v-head-crown svg { width: 100%; height: 100%; display: block; }
.cn9v-title {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f3e6c9;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}
.cn9v-subtitle {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--vip-line);
  color: var(--vip-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cn9v-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--vip-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.cn9v-tabs::-webkit-scrollbar { display: none; }
.cn9v-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vip-muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.cn9v-tab:hover { color: var(--vip-gold-soft); }
.cn9v-tab.on {
  color: #f6e7c4;
  background: linear-gradient(180deg, #3a2d1d, #271f16);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 92, 0.4), 0 4px 12px -6px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------------------- 主栅格 */
.cn9v-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cn9v-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------------------------------------------------------------- 当前等级卡 */
.cn9v-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  padding: 22px 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--vip-line-strong);
  background:
    radial-gradient(72% 130% at 88% 4%, rgba(200, 164, 92, 0.2), transparent 62%),
    linear-gradient(135deg, #221b14 0%, #16120e 58%, #12100c 100%);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px #000;
}
.cn9v-hero::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 164, 92, 0.1);
  border-radius: 11px;
  pointer-events: none;
}
.cn9v-hero-main { position: relative; z-index: 1; min-width: 0; }
.cn9v-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vip-gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.cn9v-eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vip-gold));
}
.cn9v-level-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 2px;
  flex-wrap: wrap;
}
.cn9v-level-num {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f7e9c8;
  text-shadow: 0 2px 18px rgba(200, 164, 92, 0.28);
  font-variant-numeric: tabular-nums;
}
.cn9v-level-num small {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 4px;
  color: var(--vip-gold-soft);
}
.cn9v-level-name {
  font-size: 16px;
  color: var(--vip-gold-soft);
  letter-spacing: 0.1em;
}
.cn9v-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(200, 164, 92, 0.34);
  background: rgba(200, 164, 92, 0.1);
  color: var(--vip-gold-soft);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.cn9v-level-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--vip-gold); box-shadow: 0 0 6px var(--vip-gold); }
.cn9v-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  color: var(--vip-dim);
  font-size: 12px;
  flex-wrap: wrap;
}
.cn9v-hero-meta b { color: var(--vip-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cn9v-progress {
  margin-top: 16px;
  max-width: 420px;
}
.cn9v-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--vip-muted);
  margin-bottom: 7px;
}
.cn9v-progress-top b { color: var(--vip-gold-soft); font-weight: 600; }
.cn9v-bar {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: #2a231b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.cn9v-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7d6134, #c8a45c 62%, #f2ddab);
  box-shadow: 0 0 12px rgba(200, 164, 92, 0.45);
  transition: width 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
  min-width: 0;
}
.cn9v-bar.is-zero > i { background: linear-gradient(90deg, #4a3c28, #6d5836); }
.cn9v-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cn9v-emblem {
  isolation: isolate;
  background: none;
  width: 112px;
  height: 124px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
.cn9v-emblem svg { width: 100%; height: 100%; display: block; }
.cn9v-gift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--vip-line-strong);
  background: rgba(20, 16, 12, 0.72);
  color: var(--vip-gold-soft);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.cn9v-gift:hover { border-color: var(--vip-gold); background: rgba(200, 164, 92, 0.12); transform: translateY(-1px); }
.cn9v-gift svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- 等级阶梯 */
.cn9v-ladder-card {
  border: 1px solid var(--vip-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #191510, #141110);
  padding: 14px 16px 12px;
}
.cn9v-ladder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cn9v-ladder-title { font-size: 13px; color: var(--vip-muted); letter-spacing: 0.08em; }
.cn9v-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: #100e0b;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cn9v-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vip-dim);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.cn9v-seg button.on { background: #33291d; color: var(--vip-gold-soft); }
.cn9v-ladder {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: #3a3025 transparent;
}
.cn9v-ladder::-webkit-scrollbar { height: 4px; }
.cn9v-ladder::-webkit-scrollbar-thumb { background: #3a3025; border-radius: 99px; }
.cn9v-step {
  padding: 8px 2px 6px;
  flex: 1 1 46px;
  min-width: 45px;
  max-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.cn9v-step:hover { background: rgba(200, 164, 92, 0.06); transform: translateY(-2px); }
.cn9v-step.on { background: rgba(200, 164, 92, 0.1); border-color: rgba(200, 164, 92, 0.3); }
.cn9v-step-crest { isolation: isolate; background: none; width: 32px; height: 36px; opacity: 0.55; transition: opacity 0.18s, filter 0.18s; }
.cn9v-step-crest svg { width: 100%; height: 100%; display: block; }
.cn9v-step.reached .cn9v-step-crest { opacity: 0.92; }
.cn9v-step.current .cn9v-step-crest { opacity: 1; filter: drop-shadow(0 0 8px rgba(200, 164, 92, 0.55)); }
.cn9v-step.on .cn9v-step-crest { opacity: 1; }
.cn9v-step-name { font-size: 10px; color: var(--vip-dim); letter-spacing: 0; white-space: nowrap; }
.cn9v-step.current .cn9v-step-name,
.cn9v-step.on .cn9v-step-name { color: var(--vip-gold-soft); }
.cn9v-step.current .cn9v-step-name {
  border-bottom: 1px solid rgba(200, 164, 92, 0.7);
  padding-bottom: 1px;
}
.cn9v-step-tag {
  height: 14px;
  font-size: 9.5px;
  line-height: 14px;
  padding: 0 5px;
  border-radius: 99px;
  color: #16120d;
  background: linear-gradient(90deg, #c8a45c, #eed9a6);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- 晋级条件 */
.cn9v-card {
  border: 1px solid var(--vip-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #191510, #141110);
  padding: 16px 18px;
}
.cn9v-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cn9v-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #efe1c1;
  letter-spacing: 0.02em;
}
.cn9v-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(201, 138, 122, 0.42);
  color: #e2a394;
  background: rgba(201, 138, 122, 0.08);
}
.cn9v-state.is-ok {
  border-color: rgba(127, 208, 161, 0.4);
  color: var(--vip-ok);
  background: rgba(127, 208, 161, 0.08);
}
.cn9v-points {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.cn9v-points-label { font-size: 12px; color: var(--vip-muted); }
.cn9v-points-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--vip-gold-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.cn9v-points-val span { font-size: 13px; font-weight: 500; color: var(--vip-dim); }
.cn9v-points-gap { font-size: 12px; color: var(--vip-muted); }
.cn9v-points-gap b { color: #e2a394; font-weight: 600; font-variant-numeric: tabular-nums; }
.cn9v-conds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.cn9v-cond {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px 12px;
}
.cn9v-cond-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--vip-muted);
}
.cn9v-cond-top em {
  font-style: normal;
  color: var(--vip-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cn9v-cond .cn9v-bar { height: 5px; margin-top: 8px; }
.cn9v-cond-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--vip-dim);
  font-variant-numeric: tabular-nums;
}
.cn9v-cond-foot .is-ok { color: var(--vip-ok); }
.cn9v-cond-foot .is-lock { color: var(--vip-lock); }
.cn9v-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cn9v-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--vip-line-strong);
  background: transparent;
  color: var(--vip-gold-soft);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.cn9v-btn:hover { background: rgba(200, 164, 92, 0.1); border-color: var(--vip-gold); transform: translateY(-1px); }
.cn9v-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #e2c88f, #c8a45c);
  color: #241a0c;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(200, 164, 92, 0.8);
}
.cn9v-btn.is-primary:hover { background: linear-gradient(180deg, #f0d9a8, #d3b06a); }

/* ---------------------------------------------------------------- 专属特权 */
.cn9v-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cn9v-perk {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  padding: 12px 12px 11px;
  min-height: 96px;
  transition: border-color 0.18s, transform 0.18s;
}
.cn9v-perk:hover { border-color: rgba(200, 164, 92, 0.28); transform: translateY(-2px); }
.cn9v-perk.is-locked { opacity: 0.62; }
.cn9v-perk-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--vip-gold);
  background: rgba(200, 164, 92, 0.1);
  border: 1px solid rgba(200, 164, 92, 0.18);
}
.cn9v-perk-icon svg { width: 15px; height: 15px; }
.cn9v-perk-name { margin-top: 8px; font-size: 13px; color: #e9dcc4; }
.cn9v-perk-val {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--vip-gold-soft);
  font-variant-numeric: tabular-nums;
}
.cn9v-perk-lock {
  position: absolute;
  top: 12px;
  right: 10px;
  font-size: 10.5px;
  color: var(--vip-lock);
  border: 1px solid rgba(201, 138, 122, 0.36);
  border-radius: 99px;
  padding: 1px 7px;
  background: rgba(201, 138, 122, 0.07);
}
.cn9v-perk-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--vip-dim);
}
.cn9v-link {
  white-space: nowrap;
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 0;
  color: var(--vip-gold);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cn9v-link:hover { color: var(--vip-gold-soft); text-decoration: underline; }

/* ---------------------------------------------------------------- 右侧记录面板 */
.cn9v-panel {
  border: 1px solid var(--vip-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #17130f, #12100d);
  display: flex;
  flex-direction: column;
  min-height: 468px;
  overflow: hidden;
}
.cn9v-panel-head {
  padding: 16px 18px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cn9v-panel-title { font-size: 15px; font-weight: 600; color: #efe1c1; }
.cn9v-panel-tip { font-size: 11.5px; color: var(--vip-dim); }
.cn9v-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 18px 2px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}
.cn9v-kpi {
  background: #14110e;
  padding: 9px 11px;
  min-width: 0;
}
.cn9v-kpi span { display: block; font-size: 11px; color: var(--vip-dim); letter-spacing: 0.02em; white-space: nowrap; }
.cn9v-kpi b {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vip-gold-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn9v-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 14px;
  flex-wrap: wrap;
}
.cn9v-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #100e0b;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--vip-muted);
}
.cn9v-date svg { width: 14px; height: 14px; color: var(--vip-dim); flex: 0 0 14px; }
.cn9v-date input {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vip-text);
  font: inherit;
  font-size: 12.5px;
  width: 104px;
  padding: 0;
  outline: none;
  color-scheme: dark;
}
.cn9v-date input::-webkit-calendar-picker-indicator { opacity: 0.4; cursor: pointer; }
.cn9v-date-sep { color: var(--vip-dim); font-size: 12px; }
.cn9v-search {
  appearance: none;
  margin-left: auto;
  width: 40px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #e2c88f, #c8a45c);
  color: #241a0c;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -8px rgba(200, 164, 92, 0.8);
}
.cn9v-search svg { width: 17px; height: 17px; }
.cn9v-notice {
  margin: 0 18px 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(200, 164, 92, 0.24);
  background: rgba(200, 164, 92, 0.08);
  color: var(--vip-gold-soft);
  font-size: 11.5px;
  line-height: 1.5;
}
.cn9v-quick { display: flex; gap: 6px; padding: 0 18px 10px; flex-wrap: wrap; }
.cn9v-quick button {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--vip-dim);
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 99px;
  cursor: pointer;
}
.cn9v-quick button:hover,
.cn9v-quick button.on { color: var(--vip-gold-soft); border-color: rgba(200, 164, 92, 0.35); background: rgba(200, 164, 92, 0.08); }

.cn9v-tablewrap { flex: 1; padding: 0 18px; overflow-x: auto; }
.cn9v-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cn9v-table th {
  text-align: left;
  font-weight: 500;
  color: var(--vip-dim);
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.cn9v-table td {
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--vip-muted);
  font-variant-numeric: tabular-nums;
}
.cn9v-table td:first-child { color: var(--vip-dim); }
.cn9v-table td.pos { color: var(--vip-ok); }
.cn9v-table td.neg { color: var(--vip-lock); }
.cn9v-table tr:last-child td { border-bottom: 0; }

.cn9v-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 54px 16px 44px;
  color: var(--vip-dim);
}
.cn9v-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(200, 164, 92, 0.28);
  color: var(--vip-gold-dim);
  margin-bottom: 4px;
}
.cn9v-empty-icon svg { width: 24px; height: 24px; }
.cn9v-empty b { color: var(--vip-muted); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; }
.cn9v-empty small { font-size: 12px; line-height: 1.7; max-width: 300px; }
.cn9v-empty-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.cn9v-empty-actions .cn9v-btn { padding: 6px 14px; font-size: 12px; }
.cn9v-panel-foot {
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--vip-dim);
}
.cn9v-pager { display: flex; align-items: center; gap: 8px; }
.cn9v-pager button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--vip-dim);
  cursor: pointer;
}
.cn9v-pager button:disabled { opacity: 0.35; cursor: default; }
.cn9v-pager em { font-style: normal; color: var(--vip-muted); font-variant-numeric: tabular-nums; }

/* 右侧下方：规则摘要 */
.cn9v-rules {
  border: 1px solid var(--vip-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #17130f, #12100d);
  padding: 15px 18px 14px;
}
.cn9v-rules h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e9dcc4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cn9v-rules h4 svg { width: 15px; height: 15px; color: var(--vip-gold); }
.cn9v-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cn9v-rules li {
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--vip-muted);
}
.cn9v-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vip-gold-dim);
}
.cn9v-rules li b { color: var(--vip-gold-soft); font-weight: 600; }

/* ---------------------------------------------------------------- 权益说明弹层 */
.cn9v-modal {
  --vip-ink:#0f0d0b; --vip-panel:#17130f; --vip-panel-2:#1d1813; --vip-panel-3:#241d16;
  --vip-line:rgba(200,164,92,.18); --vip-line-strong:rgba(200,164,92,.34);
  --vip-gold:#c8a45c; --vip-gold-soft:#e3cf9f; --vip-gold-dim:#8d7546;
  --vip-text:#f1e9da; --vip-muted:#a89a86; --vip-dim:#7c7061;
  --vip-ok:#7fd0a1; --vip-lock:#c98a7a;
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 5, 4, 0.76);
  backdrop-filter: blur(6px);
  animation: cn9v-fade 0.2s ease both;
}
@keyframes cn9v-fade { from { opacity: 0; } to { opacity: 1; } }
.cn9v-modal-box {
  width: min(920px, 100%);
  max-height: min(760px, 88vh);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(200, 164, 92, 0.3);
  background: linear-gradient(180deg, #1b1611, #110f0c);
  box-shadow: 0 30px 80px -20px #000;
  overflow: hidden;
}
.cn9v-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vip-line);
}
.cn9v-modal-head h3 { margin: 0; font-size: 16px; color: #f2e4c6; letter-spacing: 0.04em; }
.cn9v-modal-head small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--vip-dim); }
.cn9v-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--vip-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cn9v-modal-close:hover { color: var(--vip-text); border-color: rgba(200, 164, 92, 0.4); }
.cn9v-modal-body { overflow: auto; padding: 4px 20px 28px; }
.cn9v-modal-body::-webkit-scrollbar { width: 6px; }
.cn9v-modal-body::-webkit-scrollbar-thumb { background: #3a3025; border-radius: 99px; }
.cn9v-benefit-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.cn9v-benefit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1b1611;
  text-align: left;
  font-weight: 500;
  color: var(--vip-dim);
  padding: 10px 10px;
  border-bottom: 1px solid var(--vip-line);
  white-space: nowrap;
}
.cn9v-benefit-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--vip-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cn9v-benefit-table tr.is-current td { background: rgba(200, 164, 92, 0.09); color: var(--vip-gold-soft); }
.cn9v-benefit-table td:first-child { color: var(--vip-text); }
.cn9v-benefit-table .is-muted { color: var(--vip-dim); }
.cn9v-modal-foot { padding: 12px 20px 16px; border-top: 1px solid var(--vip-line); font-size: 11.5px; color: var(--vip-dim); }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 1080px) {
  .cn9v-grid { grid-template-columns: minmax(0, 1fr); }
  .cn9v-panel { min-height: 0; }
  .cn9v-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #cn9-vip-center { padding: 2px 14px 40px; }
  .cn9v-head { align-items: flex-start; }
  .cn9v-title { font-size: 20px; }
  .cn9v-subtitle { display: none; }
  .cn9v-tabs { width: 100%; }
  .cn9v-tab { flex: 1 0 auto; padding: 8px 12px; font-size: 13px; }
  .cn9v-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; }
  .cn9v-hero-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
  }
  .cn9v-emblem { width: 64px; height: 72px; }
  .cn9v-level-num { font-size: 32px; }
  .cn9v-level-name { font-size: 14px; }
  .cn9v-gift { font-size: 11.5px; padding: 7px 12px; }
  .cn9v-step { flex-basis: 64px; }
  .cn9v-step-crest { isolation: isolate; background: none; width: 32px; height: 36px; }
  .cn9v-conds { grid-template-columns: 1fr; }
  .cn9v-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn9v-toolbar { gap: 6px; }
  .cn9v-date { flex: 1 1 44%; }
  .cn9v-date input { width: 100%; }
  .cn9v-search { margin-left: auto; width: 44px; }
  .cn9v-modal { padding: 12px; }
  .cn9v-modal-box { max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  #cn9-vip-center,
  #cn9-vip-center * { animation: none !important; transition: none !important; }
}

/* 有登录态但还没读到等级：等级相关的左列先占位不显示（尺寸不变），读到后出现；不先画一个错的 VIP 0 */
#cn9-vip-center.is-pending .cn9v-grid > .cn9v-col:first-child { visibility: hidden; }
