/*
 * 邀请页 · 重做样式（2026-11-18）
 * ────────────────────────────────────────────────────────────────────────────
 * 服主「重做一下」，重点：**突出链接与一键复制**。
 *
 * ## 旧版问题
 *   整页四大段文字，没有任何一处告诉玩家"你能拿多少"；链接藏在第一条最后一句。
 *
 * ## 新版顺序
 *   ① 顶部大卡（100 点券 / 阶梯）
 *   ② 你的专属链接 + 一键复制
 *   ③ 三步图
 *   ④ 阶梯进度条
 *   ⑤ 规则明细（折叠）
 *   ⑥ 视频与直播
 *
 * ## 配色
 *   全部用站上已有变量（--ink / --line / --soft / --brand-btn），不另创色值。
 *   卡片底 #f8faff + 边框 #e3eaf3，与全站一致。
 * ────────────────────────────────────────────────────────────────────────────
 */

.wrap.inv-main {
  max-width: 760px;
  /* 左栏是 fixed 浮层（264px），必须显式让位 */
  padding-left: 96px;
}

/* ==========================================================================
   一、顶部：能拿多少
   ========================================================================== */
.inv-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2f6ff, #f8faff);
  border: 1px solid #dde7f7;
}
.inv-hero-l { text-align: center; }
.inv-hero-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #3558c8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.inv-hero-num span {
  font-size: 13px;
  font-weight: 600;
  margin-left: 3px;
  color: #6b7c9e;
}
.inv-hero-cap {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-4, #98a1b0);
  white-space: nowrap;
}

.inv-hero-r {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.inv-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3eaf3;
}
.inv-mini b {
  font-size: 15px;
  font-weight: 800;
  color: #3558c8;
  font-variant-numeric: tabular-nums;
}
.inv-mini span {
  font-size: 9.5px;
  color: var(--ink-4, #98a1b0);
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   二、卡片
   ========================================================================== */
.inv-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e3eaf3;
}
.inv-card-h { margin-bottom: 13px; }
.inv-card-h b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #17255c);
  line-height: 1.4;
}
.inv-card-h em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-4, #98a1b0);
  line-height: 1.6;
}
.inv-card-h em b { display: inline; font-size: inherit; color: #3558c8; }

/* ==========================================================================
   三、专属链接
   ========================================================================== */
.inv-card--link {
  background: linear-gradient(150deg, #eff5ff, #f8faff);
  border-color: #d5e2f7;
}
.inv-linkrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.inv-link {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #cfdcf3;
  border-radius: 10px;
  background: #fff;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  color: #3558c8;
  cursor: text;
}
.inv-link:focus {
  outline: none;
  border-color: #9db6f7;
  box-shadow: 0 0 0 3px rgba(157, 182, 247, .18);
}
.inv-copy {
  flex: none;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #4a6ee2, #6f92f2);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, transform .12s;
}
.inv-copy:hover { filter: brightness(1.05); transform: translateY(-1px); }
.inv-copy:active { transform: translateY(0); }

.inv-tip {
  margin: 11px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3, #7b8494);
}
.inv-tip b { color: var(--ink, #17255c); font-weight: 650; }
.inv-tip code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(74, 110, 226, .1);
  color: #3558c8;
}
.inv-tip a { color: var(--brand-btn, #4a6ee2); font-weight: 600; }

/* ==========================================================================
   四、三步
   ========================================================================== */
.inv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inv-steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e7eef9;
}
.inv-step-n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6ee2, #6f92f2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  margin-top: 1px;
}
.inv-steps li b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink, #17255c);
  margin-bottom: 2px;
}
.inv-steps li span {
  font-size: 11.5px;
  color: var(--ink-3, #7b8494);
  line-height: 1.65;
}
.inv-steps li code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(74, 110, 226, .1);
  color: #3558c8;
  font-weight: 600;
}

/* ==========================================================================
   五、阶梯进度
   ========================================================================== */
.inv-tiers {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.inv-tier {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e7eef9;
}
.inv-tier.is-done {
  background: rgba(34, 160, 100, .045);
  border-color: rgba(34, 160, 100, .25);
}
.inv-tier-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.inv-tier-top b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink, #17255c);
  font-variant-numeric: tabular-nums;
}
.inv-tier-top span {
  font-size: 11.5px;
  color: var(--ink-3, #7b8494);
}
.inv-tier-ok {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(34, 160, 100, .14);
  color: #17794a;
  margin-left: auto;
}
.inv-tier-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 140, 175, .14);
  overflow: hidden;
}
.inv-tier-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b8ff5, #4a6ee2);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.inv-tier.is-done .inv-tier-bar i {
  background: linear-gradient(90deg, #2aa96e, #1d8a58);
}

/* 明细表 */
.inv-detail {
  margin-top: 13px;
  border-top: 1px dashed #e3eaf3;
  padding-top: 11px;
}
.inv-detail summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--brand-btn, #4a6ee2);
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.inv-detail summary::-webkit-details-marker { display: none; }
.inv-detail summary::before {
  content: "▸ ";
  font-size: 10px;
}
.inv-detail[open] summary::before { content: "▾ "; }

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 9px;
  font-size: 11.5px;
}
.inv-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-4, #98a1b0);
  border-bottom: 1px solid #eef2f9;
}
.inv-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f4f7fc;
  color: var(--ink-2, #40536c);
}
.inv-ok   { color: #17794a; font-weight: 600; }
.inv-half { color: #b8730a; font-weight: 600; }
.inv-wait { color: var(--ink-4, #98a1b0); }

/* ==========================================================================
   六、规则折叠
   ========================================================================== */
.inv-fold summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.inv-fold summary::-webkit-details-marker { display: none; }
.inv-fold summary b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #17255c);
}
.inv-fold summary span {
  font-size: 11px;
  color: var(--ink-4, #98a1b0);
}
.inv-fold summary::before {
  content: "▸";
  font-size: 11px;
  color: var(--brand-btn, #4a6ee2);
}
.inv-fold[open] summary::before { content: "▾"; }
.inv-fold-body { margin-top: 13px; }

.inv-rules {
  margin: 0;
  padding-left: 19px;
}
.inv-rules li {
  margin: 7px 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--ink-3, #7b8494);
}
.inv-warn {
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(240, 180, 41, .07);
  border: 1px solid rgba(240, 180, 41, .28);
  font-size: 11.5px;
  line-height: 1.8;
  color: #8a6b2e;
}
.inv-warn b { color: #8f5e00; }

/* ==========================================================================
   七、视频与直播
   ========================================================================== */
.inv-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.inv-media-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e7eef9;
}
.inv-media-item > b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink, #17255c);
  margin-bottom: 5px;
}
.inv-media-item p {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3, #7b8494);
}
.inv-media-item code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(120, 140, 175, .12);
}
.inv-media-num {
  margin: 0 !important;
  font-size: 10.5px !important;
  color: var(--ink-4, #98a1b0) !important;
}
.inv-media-num b { color: #3558c8; font-weight: 700; font-size: 12px; }

.inv-note {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--ink-4, #98a1b0);
  text-align: center;
  line-height: 1.8;
}

/* ==========================================================================
   八、深色主题
   ========================================================================== */
html[data-theme="dark"] .inv-hero {
  background: linear-gradient(135deg, rgba(120, 150, 220, .1), rgba(255, 255, 255, .03));
  border-color: rgba(120, 150, 220, .2);
}
html[data-theme="dark"] .inv-hero-num { color: #a8bfff; }
html[data-theme="dark"] .inv-hero-num span { color: #7f8ea6; }
html[data-theme="dark"] .inv-hero-cap { color: #7f8ea6; }
html[data-theme="dark"] .inv-mini {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .inv-mini b { color: #a8bfff; }
html[data-theme="dark"] .inv-mini span { color: #7f8ea6; }

html[data-theme="dark"] .inv-card {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .inv-card--link {
  background: rgba(120, 150, 220, .08);
  border-color: rgba(120, 150, 220, .24);
}
html[data-theme="dark"] .inv-card-h b { color: #eef4ff; }
html[data-theme="dark"] .inv-card-h em { color: #7f8ea6; }
html[data-theme="dark"] .inv-card-h em b { color: #a8bfff; }

html[data-theme="dark"] .inv-link {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .22);
  color: #7fb0f7;
}
html[data-theme="dark"] .inv-tip { color: #7f8ea6; }
html[data-theme="dark"] .inv-tip b { color: #dbe5f8; }
html[data-theme="dark"] .inv-tip code {
  background: rgba(120, 150, 220, .16);
  color: #a8bfff;
}
html[data-theme="dark"] .inv-steps li {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .inv-steps li b { color: #eef4ff; }
html[data-theme="dark"] .inv-steps li span { color: #7f8ea6; }
html[data-theme="dark"] .inv-steps li code {
  background: rgba(120, 150, 220, .16);
  color: #a8bfff;
}
html[data-theme="dark"] .inv-tier {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .inv-tier.is-done {
  background: rgba(34, 160, 100, .1);
  border-color: rgba(34, 160, 100, .28);
}
html[data-theme="dark"] .inv-tier-top b { color: #eef4ff; }
html[data-theme="dark"] .inv-tier-top span { color: #7f8ea6; }
html[data-theme="dark"] .inv-tier-bar { background: rgba(120, 150, 220, .16); }
html[data-theme="dark"] .inv-detail { border-top-color: rgba(120, 150, 220, .16); }
html[data-theme="dark"] .inv-table th { color: #7f8ea6; border-bottom-color: rgba(120, 150, 220, .14); }
html[data-theme="dark"] .inv-table td {
  color: #dbe5f8;
  border-bottom-color: rgba(120, 150, 220, .1);
}
html[data-theme="dark"] .inv-ok { color: #64d39b; }
html[data-theme="dark"] .inv-half { color: #f0bb66; }
html[data-theme="dark"] .inv-wait { color: #7f8ea6; }
html[data-theme="dark"] .inv-fold summary b { color: #eef4ff; }
html[data-theme="dark"] .inv-fold summary span { color: #7f8ea6; }
html[data-theme="dark"] .inv-rules li { color: #7f8ea6; }
html[data-theme="dark"] .inv-warn {
  background: rgba(240, 180, 41, .1);
  border-color: rgba(240, 180, 41, .24);
  color: #c9a86a;
}
html[data-theme="dark"] .inv-warn b { color: #f0bb66; }
html[data-theme="dark"] .inv-media-item {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(120, 150, 220, .16);
}
html[data-theme="dark"] .inv-media-item > b { color: #eef4ff; }
html[data-theme="dark"] .inv-media-item p { color: #7f8ea6; }
html[data-theme="dark"] .inv-media-item code { background: rgba(120, 150, 220, .16); }
html[data-theme="dark"] .inv-note { color: #7f8ea6; }

/* ==========================================================================
   九、响应式
   ========================================================================== */
@media (max-width: 920px) {
  .wrap.inv-main { padding-left: 0; max-width: none; }
}
@media (max-width: 640px) {
  .inv-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    text-align: center;
  }
  .inv-hero-num { font-size: 34px; }
  .inv-hero-r { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-card { padding: 14px; border-radius: 13px; }
  .inv-linkrow { flex-direction: column; }
  .inv-link { font-size: 12px; }
  .inv-copy { width: 100%; padding: 12px; }
  .inv-media { grid-template-columns: 1fr; }
}
