/* ============================================================
   raid.css — 太晶坑攻略专栏样式
   视觉基因取自 _guide.html（七星最强快龙·弃世猴篇）：
   深紫渐变底 + 橙紫渐变 Banner + 编号分节 + 回合轴难度色。
   ============================================================ */

:root {
  --rk-bg1: #241a3a;
  --rk-bg2: #3a1f4d;
  --rk-card: #ffffff;
  --rk-ink: #26203a;
  --rk-sub: #6b6580;
  --rk-orange: #f08030;
  --rk-purple: #9a5cd6;
  --rk-purple-d: #6d3bd4;
  --rk-green: #2faf6a;
  --rk-amber: #f0a020;
  --rk-red: #e4393c;
  --rk-blue: #3a7bd5;
  --rk-yellow: #f5c518;
}

.rk-body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: linear-gradient(165deg, var(--rk-bg1) 0%, var(--rk-bg2) 55%, #2a1640 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--rk-ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.rk-wrap { width: 480px; max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部分区切换 ===== */
.rk-zone {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -16px 16px; padding: 11px 16px;
  background: rgba(28, 18, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; gap: 7px;
}
.rk-zone-l { font-size: 11px; color: #b6a9d6; letter-spacing: 1px; flex: 0 0 auto; }
.rk-zbtn {
  padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22); color: #d8cfee;
  background: rgba(255, 255, 255, 0.06); cursor: pointer;
  transition: 0.16s; text-decoration: none; display: inline-block;
  font-family: inherit;
}
.rk-zbtn:active { transform: scale(0.96); }
.rk-zbtn.on {
  background: linear-gradient(135deg, var(--rk-orange), var(--rk-purple));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(240, 128, 48, 0.4);
}

/* ===== 专栏首页 Hero ===== */
.rk-hero { margin: 0 -16px 18px; padding: 26px 22px 22px; color: #fff;
  background: linear-gradient(135deg, #f08030 0%, #e85d2a 35%, #9a5cd6 100%);
  position: relative; overflow: hidden; }
.rk-hero::after { content: ""; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.rk-hero > * { position: relative; z-index: 1; }
.rk-hero .tag { display: inline-block; background: rgba(0,0,0,.26);
  padding: 4px 12px; border-radius: 20px; font-size: 11px; letter-spacing: 1px; }
.rk-hero h1 { font-size: 26px; margin: 12px 0 4px; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.25); line-height: 1.25; }
.rk-hero .sub { font-size: 13.5px; opacity: .96; line-height: 1.55; }
.rk-hero .stats { display: flex; gap: 16px; margin-top: 14px; }
.rk-hero .stat b { font-size: 19px; font-weight: 800; display: block; }
.rk-hero .stat span { font-size: 10.5px; opacity: .85; }

/* ===== 筛选药丸 ===== */
.rk-cats { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.rk-cat {
  padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.1); color: #cfc4e8;
  border: 1px solid rgba(255,255,255,.16); cursor: pointer; transition: .15s;
  font-family: inherit;
}
.rk-cat.on { background: linear-gradient(135deg, var(--rk-orange), var(--rk-purple));
  color: #fff; border-color: transparent; }
.rk-cat .n { opacity: .75; font-size: 10.5px; margin-left: 3px; }
/* 0 篇的分类：先占位，弱化但不隐藏（让伙伴知道后续会有） */
.rk-cat.empty { opacity: .55; }

.rk-search {
  width: 100%; padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-size: 13.5px; margin: 0 0 16px; font-family: inherit;
}
.rk-search::placeholder { color: #9b8fc0; }
.rk-search:focus { outline: none; border-color: var(--rk-orange);
  background: rgba(255,255,255,.12); }

/* ===== 攻略卡墙 ===== */
.rk-card {
  display: flex; gap: 13px; background: var(--rk-card); border-radius: 18px;
  padding: 13px; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.26);
  cursor: pointer; transition: .16s; align-items: stretch;
}
.rk-card:active { transform: scale(.985); }
.rk-card-cover {
  flex: 0 0 76px; width: 76px; border-radius: 13px; position: relative;
  overflow: hidden; background: linear-gradient(150deg, #f08030, #9a5cd6);
  min-height: 76px;
}
.rk-card-cover.has-bg { background-image: var(--cover); background-size: cover; background-position: center; }
.rk-card-cover .cs { position: absolute; left: 6px; top: 6px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 9px; }
.rk-card-cover .ct { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 6px 6px; color: #fff; font-size: 12px; font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.6); line-height: 1.2; }
.rk-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rk-card-body h3 { font-size: 15.5px; font-weight: 800; color: var(--rk-ink);
  margin-bottom: 4px; line-height: 1.35; }
.rk-card-body .gd { font-size: 12px; color: var(--rk-sub); line-height: 1.5; margin-bottom: 7px; }
.rk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rk-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  background: #f0ecfa; color: #6d3bd4; }
.rk-tag.s7 { background: #fff2d6; color: #8a5a00; }
.rk-tag.s6 { background: #eee6fb; color: #5a2fb0; }
.rk-tag.draft { background: #eceef2; color: #6b7280; }
.rk-empty { text-align: center; color: #9b8fc0; font-size: 13px; padding: 40px 0; }

/* ============================================================
   七星坑 · 权威内容专属视觉
   七星是活动最强坑（一个坑一套专属方案），内容权威度最高，
   用独立的金色调把它和「六星/机制/前期」等常规内容区分开。
   ============================================================ */

/* 详情页 Banner：金色调（深琥珀 → 金），区别于常规的橙紫 */
.rk-banner.is-s7 {
  background: linear-gradient(135deg, #b8860b 0%, #d99a1e 30%, #f0b429 62%, #e8853a 100%);
}
.rk-banner.is-s7 .c { color: #8a5a00; }
.rk-banner.is-s7::after {
  background: radial-gradient(circle, rgba(255, 245, 200, .32), transparent 70%);
}
.rk-banner.is-s7 .tag { background: rgba(0, 0, 0, .22); }

/* 列表卡片：金色左边框 + 更亮的封面 */
.rk-card.is-s7 {
  border: 1px solid rgba(200, 150, 30, .38);
  box-shadow: 0 4px 16px rgba(160, 120, 20, .18);
}
.rk-card.is-s7 .rk-card-cover {
  background: linear-gradient(150deg, #d99a1e 0%, #f0b429 55%, #e8853a 100%);
}
.rk-card.is-s7:active { box-shadow: 0 2px 8px rgba(160, 120, 20, .22); }

/* 「权威攻略」徽章 */
.rk-authority {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: #8a5a00; background: linear-gradient(135deg, #ffe9b0, #ffd166);
  padding: 2px 8px; border-radius: 10px; margin-bottom: 5px;
}

/* 分类药丸：七星项加金色描边 */
.rk-cat[data-cat="star7"] {
  border-color: rgba(240, 180, 41, .5);
  color: #ffd98a;
}
.rk-cat[data-cat="star7"].on {
  background: linear-gradient(135deg, #d99a1e, #f0b429);
  color: #4a3200;
  border-color: transparent;
  font-weight: 700;
}


.rk-back { display: inline-block; padding: 8px 16px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.1);
  color: #d8cfee; border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  transition: .16s; font-family: inherit; }
.rk-back:active { background: rgba(255,255,255,.18); }

.rk-banner {
  margin: 0 -16px 18px; padding: 34px 22px 26px; color: #fff;
  background: linear-gradient(135deg, #f08030 0%, #e85d2a 35%, #9a5cd6 100%);
  border-radius: 0 0 30px 30px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
}
.rk-banner.has-bg::before { content: ""; position: absolute; inset: 0;
  background-image: var(--cover); background-size: cover; background-position: center 22%; opacity: .42; }
.rk-banner::after { content: ""; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.rk-banner > * { position: relative; z-index: 1; }
.rk-banner .tag { display: inline-block; background: rgba(0,0,0,.26);
  padding: 4px 12px; border-radius: 20px; font-size: 11px; letter-spacing: 1px; }
.rk-banner h1 { font-size: 29px; margin: 12px 0 4px; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.3); line-height: 1.2; }
.rk-banner .sub { font-size: 14.5px; opacity: .96; line-height: 1.5; }
.rk-banner .c { display: inline-block; margin-top: 13px; background: #fff;
  color: #e85d2a; font-weight: 800; padding: 5px 14px; border-radius: 8px; font-size: 12.5px; }
.rk-stars { display: flex; gap: 5px; margin-top: 12px; }
.rk-star { width: 19px; height: 19px; background: var(--rk-yellow);
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.rk-star.off { background: rgba(255,255,255,.25); }
.rk-badge-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rk-mini-tag { background: rgba(0,0,0,.3); padding: 3px 10px; border-radius: 14px;
  font-size: 11px; color: #fff; font-weight: 600; letter-spacing: .3px; }

.rk-sec { background: var(--rk-card); border-radius: 20px; padding: 18px 16px 16px;
  margin-bottom: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.rk-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rk-sec-n { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }
.rk-sec-t { font-size: 18px; font-weight: 800; color: var(--rk-ink); }
.rk-sec-1 { border-top: 4px solid var(--rk-orange); }
.rk-sec-1 .rk-sec-n { background: var(--rk-orange); }
.rk-sec-2 { border-top: 4px solid var(--rk-red); }
.rk-sec-2 .rk-sec-n { background: var(--rk-red); }
.rk-sec-3 { border-top: 4px solid var(--rk-purple-d); }
.rk-sec-3 .rk-sec-n { background: var(--rk-purple-d); }
.rk-sec-4 { border-top: 4px solid var(--rk-blue); }
.rk-sec-4 .rk-sec-n { background: var(--rk-blue); }

.rk-attr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rk-attr .it { background: #f6f3fb; border-radius: 12px; padding: 10px 12px; }
.rk-attr .it.full { grid-column: 1 / 3; }
.rk-attr .k { font-size: 11px; color: var(--rk-sub); letter-spacing: .5px; }
.rk-attr .v { font-size: 15px; font-weight: 700; margin-top: 3px;
  color: var(--rk-ink); line-height: 1.4; }
.rk-attr .v small { display: block; font-weight: 500; color: var(--rk-sub);
  font-size: 12px; margin-top: 2px; }
.rk-attr .it.warn { background: #fff4f4; border: 1px solid #ffd4d4; }
.rk-attr .it.warn .v { color: var(--rk-red); }

.rk-note { display: flex; gap: 10px; background: #fff8ef; border-radius: 12px;
  padding: 12px 13px; margin-bottom: 10px; border-left: 4px solid var(--rk-amber); }
.rk-note.danger { background: #fff1f1; border-left-color: var(--rk-red); }
.rk-note.info { background: #eef4fd; border-left-color: var(--rk-blue); }
.rk-note .ic { font-size: 18px; line-height: 1.3; flex: 0 0 auto; }
.rk-note .tx { font-size: 13.5px; line-height: 1.65; color: #3a3450; }
.rk-note .tx b { color: var(--rk-red); }

.rk-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px;
  color: var(--rk-sub); margin: 2px 2px 14px; }
.rk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 4px; vertical-align: middle; }
.rk-round { display: flex; gap: 12px; margin-bottom: 10px; align-items: stretch; }
.rk-rn { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; border-radius: 12px; color: #fff; font-weight: 800;
  text-align: center; padding: 6px 2px; font-size: 15px; line-height: 1.15; }
.rk-rn small { font-size: 10px; font-weight: 600; opacity: .92; margin-top: 1px; }
.rk-rn.g { background: var(--rk-green); }
.rk-rn.a { background: var(--rk-amber); }
.rk-rn.r { background: var(--rk-red); }
.rk-rc { flex: 1; background: #f6f3fb; border-radius: 12px; padding: 10px 12px;
  font-size: 13px; line-height: 1.5; }
.rk-rc .me { color: var(--rk-ink); }
.rk-rc .foe { color: #5a5470; border-top: 1px dashed #ddd6ea; padding-top: 6px; margin-top: 6px; }
.rk-round.hot .rk-rc { background: #fff1f1; border: 1px solid #ffd4d4; }
/* 回合中途的「注意」：紧贴该回合的灰底框，比整篇说明更醒目 */
.rk-rc .rn-note {
  margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed #e0c9a0;
  font-size: 12.5px; line-height: 1.6; color: #7a4a12;
}
.rk-rc b { font-weight: 800; }
.rk-ord { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px;
  border-radius: 6px; margin-right: 5px; color: #fff; vertical-align: middle; }
.rk-ord.first { background: var(--rk-yellow); color: #5a4500; }
.rk-ord.second { background: var(--rk-blue); }

.rk-intro { background: rgba(255,255,255,.1); border-radius: 14px; padding: 13px 14px;
  font-size: 12.5px; line-height: 1.7; color: #ddd4f0; margin-bottom: 16px;
  border-left: 3px solid rgba(240,128,48,.6); }
.rk-draft-note { background: rgba(255,255,255,.1); border-radius: 14px; padding: 22px 16px;
  text-align: center; color: #cfc4e8; font-size: 13px; line-height: 1.7; }
.rk-foot { text-align: center; color: #cfc6e6; font-size: 11px; margin-top: 8px;
  letter-spacing: .5px; line-height: 1.7; }

/* ===== 详情页顶栏：返回 + 分享 ===== */
.rk-topbar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
}
.rk-topbar .grow { flex: 1; }
.rk-share {
  padding: 8px 16px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(135deg, rgba(240,128,48,.9), rgba(154,92,214,.9));
  color: #fff; border: 0; cursor: pointer; transition: .16s; font-family: inherit;
}
.rk-share:active { transform: scale(.96); }

/* ===== 一键截长图 ===== */
.rk-shot {
  padding: 8px 15px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .10); color: #ffe6a8;
  border: 1px solid rgba(240, 180, 41, .45);
  cursor: pointer; transition: .16s; font-family: inherit; white-space: nowrap;
}
.rk-shot:active { transform: scale(.96); }
.rk-shot[disabled] { opacity: .55; cursor: default; transform: none; }

/* 长图预览浮层 */
.rk-shot-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(12, 7, 24, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.rk-shot-panel {
  width: 100%; max-width: 420px; max-height: 90vh;
  background: #1e1633; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.rk-shot-hd {
  padding: 14px 16px 8px; color: #fff; font-size: 13.5px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.rk-shot-hd span { font-size: 11px; color: #9b8fc0; font-weight: 500; white-space: nowrap; }
.rk-shot-tip {
  padding: 0 16px 11px; font-size: 11.5px; color: #ffd98a; line-height: 1.6;
}
.rk-shot-tip b { color: #fff; }
.rk-shot-scroll {
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 12px 12px; background: rgba(0, 0, 0, .22);
}
/* 长按唤起保存菜单：显式声明 callout，避免被外层样式或内置浏览器关掉 */
.rk-shot-scroll img {
  width: 100%; display: block; border-radius: 10px;
  -webkit-touch-callout: default; touch-action: auto;
}
.rk-shot-ft { display: flex; gap: 9px; padding: 12px 14px 14px; }
.rk-shot-ft button {
  flex: 1; padding: 11px 0; border-radius: 12px; font-size: 13px;
  font-weight: 700; border: 0; cursor: pointer; font-family: inherit;
}
.rk-shot-dl { background: linear-gradient(135deg, #f08030, #d99a1e); color: #fff; }
.rk-shot-dl:active { transform: scale(.98); }
.rk-shot-cl { background: rgba(255, 255, 255, .12); color: #d8cfee; }
.rk-shot-cl:active { background: rgba(255, 255, 255, .2); }

/* ===== 搜索框 ===== */
.rk-search-wrap { position: relative; margin: 0 0 16px; }
.rk-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #e6dff5;
  border: 0; cursor: pointer; font-size: 16px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.rk-clear:active { background: rgba(255,255,255,.3); }

/* ===== 轻提示 ===== */
.rk-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  background: rgba(0,0,0,.82); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 999;
  max-width: 82vw; text-align: center;
}
.rk-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 卡片改成 <a>：去掉下划线 ===== */
a.rk-card { text-decoration: none; color: inherit; display: flex; }

/* ============================================================
   手机适配
   ============================================================ */

@media (max-width: 560px) {
  /* 内容整体收窄一点，两侧留白，阅读更舒服 */
  .rk-wrap {
    width: 100%;
    max-width: 440px;      /* 关键：手机上不再撑满 480 */
    padding: 0 14px;
  }
  /* Banner 与卡片不再出血到屏幕边缘 */
  .rk-banner, .rk-hero, .rk-zone {
    margin-left: -14px;
    margin-right: -14px;
  }
  .rk-banner, .rk-hero {
    border-radius: 0 0 22px 22px;
    padding: 26px 18px 20px;
  }
  .rk-banner h1 { font-size: 24px; }
  .rk-hero h1 { font-size: 22px; }
  .rk-banner .sub { font-size: 13px; }
  .rk-zone { padding: 10px 14px; }

  /* 卡片：封面缩小，正文留更多余地 */
  .rk-card { padding: 11px; border-radius: 15px; gap: 11px; }
  .rk-card-cover { flex: 0 0 62px; width: 62px; min-height: 62px; }
  .rk-card-body h3 { font-size: 14.5px; }
  .rk-card-body .gd { font-size: 11.5px; }

  /* 分节卡片收窄内边距 */
  .rk-sec { padding: 15px 13px 13px; border-radius: 16px; margin-bottom: 13px; }
  .rk-sec-t { font-size: 16.5px; }

  /* 属性格：手机上仍两列，但更紧凑 */
  .rk-attr { gap: 8px; }
  .rk-attr .it { padding: 9px 10px; }
  .rk-attr .v { font-size: 14px; }

  /* 回合轴：回合标签缩窄，正文字号下调 */
  .rk-round { gap: 9px; }
  .rk-rn { flex: 0 0 44px; font-size: 14px; }
  .rk-rc { padding: 9px 10px; font-size: 12.5px; line-height: 1.55; }
  .rk-rc .rn-note { font-size: 12px; }
  .rk-note { padding: 11px 12px; }
  .rk-note .tx { font-size: 13px; }

  /* 筛选药丸更小，避免一行放不下换行太多 */
  .rk-cats { gap: 6px; }
  .rk-cat { padding: 5px 10px; font-size: 11.5px; }

  .rk-banner .c { font-size: 12px; padding: 5px 12px; }
  .rk-intro { font-size: 12px; padding: 12px; }

  /* 顶栏三个按钮（返回 / 截长图 / 分享）在窄屏也要排得下 */
  .rk-topbar { gap: 6px; }
  .rk-back, .rk-shot, .rk-share { padding: 7px 12px; font-size: 12px; }
  .rk-shot-panel { max-height: 92vh; }
}

/* 超窄屏（如 SE / 老安卓）：再缩一档 */
@media (max-width: 360px) {
  .rk-wrap { padding: 0 11px; }
  .rk-banner, .rk-hero, .rk-zone { margin-left: -11px; margin-right: -11px; }
  .rk-banner h1 { font-size: 21px; }
  .rk-card-cover { flex: 0 0 54px; width: 54px; min-height: 54px; }
  .rk-rn { flex: 0 0 40px; font-size: 13px; }
  .rk-back, .rk-shot, .rk-share { padding: 7px 10px; font-size: 11.5px; }
}

/* 大屏平板/桌面：内容加宽（电脑端先沿用手机版式，仅居中放大） */
@media (min-width: 900px) {
  .rk-wrap { width: 720px; max-width: 92vw; }
  .rk-banner, .rk-hero, .rk-zone { border-radius: 20px; margin-left: 0; margin-right: 0; }
}


/* ============================================================
   派送单访问闸（2026-10-23）
   太晶坑页公开分发，点「派送单」要输密码才进 —— 防的是「误点」，
   不是安全边界。样式沿用本页深紫玻璃质感，避免像系统弹窗那样出戏。
   ============================================================ */
.rk-gate { position: fixed; inset: 0; z-index: 9999; display: none; }
.rk-gate.open { display: block; }
.rk-gate-mask {
  position: absolute; inset: 0;
  background: rgba(14, 8, 24, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.rk-gate-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 302px; max-width: calc(100vw - 44px); box-sizing: border-box;
  padding: 20px 18px 16px;
  background: linear-gradient(165deg, #33244f 0%, #3f2153 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.52);
  color: #ece6fb;
}
.rk-gate-t { font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.rk-gate-s { font-size: 12px; color: #b6a9d6; margin-top: 7px; line-height: 1.55; }
.rk-gate-in {
  display: block; width: 100%; box-sizing: border-box; margin-top: 14px;
  padding: 11px 12px; font-size: 16px; letter-spacing: 2px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  outline: none; font-family: inherit;
  -webkit-appearance: none;
}
.rk-gate-in::placeholder { color: #9c8fbe; letter-spacing: 0; }
.rk-gate-in:focus {
  border-color: var(--rk-orange);
  box-shadow: 0 0 0 3px rgba(240, 128, 48, 0.2);
}
.rk-gate-err { min-height: 15px; font-size: 11.5px; color: #ff9b9b; margin-top: 6px; }
.rk-gate-btns { display: flex; gap: 9px; margin-top: 3px; }
.rk-gate-btn {
  flex: 1; padding: 10px; border-radius: 11px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: 0.16s;
}
.rk-gate-btn:active { transform: scale(0.97); }
.rk-gate-btn.ghost {
  background: rgba(255, 255, 255, 0.09); color: #cfc4e6;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.rk-gate-btn.go {
  background: linear-gradient(135deg, var(--rk-orange), var(--rk-purple));
  color: #fff; box-shadow: 0 4px 14px rgba(240, 128, 48, 0.35);
}
.rk-gate.shake .rk-gate-card { animation: rk-gate-shake 0.32s ease; }
@keyframes rk-gate-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 6px), -50%); }
  75% { transform: translate(calc(-50% + 6px), -50%); }
}
