/* 光遇自助页共享设计系统（gy / lzh / csg / jc 教程页共用，改这一处全站统一） */
:root {
  --brand: #667eea;
  --brand2: #764ba2;
  --ok: #14b866;
  --bad: #ff5b6b;
  --ink: #2b2f3a;
  --muted: #8b90a0;
  --line: #eef0f5;
  --soft: #f7f8fc;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 14px 40px;
}

[v-cloak] { display: none; }

.wrap { width: 100%; max-width: 460px; }

.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(31, 38, 135, .28);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

/* 顶部标题 */
.head { text-align: center; padding: 4px 10px 14px; position: relative; }
.head.has-icon { padding: 4px 34px 14px; }
.head .title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.head .sub { margin-top: 6px; font-size: 13px; color: var(--bad); }
.head .meta { margin-top: 8px; font-size: 14px; color: var(--muted); }
.head .meta b { color: var(--bad); font-size: 18px; margin: 0 4px; }
.icon-btn {
  position: absolute; top: 0; right: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s;
}
.icon-btn:active { transform: rotate(90deg); background: var(--soft); }

/* 信息表 */
.info { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; border-top: 1px solid var(--line); }
.row:first-child { border-top: none; }
.cell { padding: 11px 12px; font-size: 14px; display: flex; align-items: center; }
.cell.k { width: 92px; flex: none; background: var(--soft); color: var(--muted); font-size: 13px; }
.cell.v { flex: 1; min-width: 0; word-break: break-all; font-weight: 500; }
.cell.half { flex: 1; }

.pill { padding: 2px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { color: var(--ok); background: rgba(20, 184, 102, .12); }
.pill.bad { color: var(--bad); background: rgba(255, 91, 107, .12); }

.copy {
  margin-left: auto; padding: 5px 14px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.copy:active { opacity: .85; }

/* 二维码 / 插图 */
.qr { text-align: center; margin: 16px 0 4px; }
.qr img { width: 260px; height: 260px; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.illus { text-align: center; margin: 6px 0 18px; }
.illus img { width: 100%; max-width: 330px; border-radius: 14px; }

/* 输入框 */
.field-label { font-size: 14px; color: var(--muted); margin: 6px 4px 8px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: .2s;
}
.input:focus { border-color: var(--brand); }

/* 列表（测身高结果 / 查询中提示） */
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list-item { padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: none; }
.list-item.tip { color: var(--brand); text-align: center; }

/* 分页器 */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.pager b { color: var(--bad); font-size: 18px; }

/* 按钮 */
.btns { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn-row { margin-top: 16px; display: flex; gap: 12px; }
.btn {
  border: none; border-radius: 26px; font-size: 15px; font-weight: 600;
  padding: 12px 20px; cursor: pointer; transition: .2s;
}
.btns .btn { width: 78%; }
.btn-row .btn { flex: 1; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 20px rgba(102, 126, 234, .35); }
.btn-danger { background: #fff; color: var(--bad); border: 1.5px solid var(--bad); }
.btn-ghost { background: var(--soft); color: var(--muted); }

/* 提示条 */
.alert {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: #f2f6ff; border-left: 4px solid var(--brand);
  color: #4a5170; font-size: 13px; line-height: 1.7; white-space: pre-wrap;
}

.foot { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); }
.foot a { color: var(--muted); }

/* 加载 / 出错 */
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { text-align: center; padding: 30px 10px; }
.err .x { font-size: 76px; line-height: 1; color: var(--bad); }
.err .msg { margin-top: 16px; font-size: 17px; font-weight: 600; line-height: 1.6; }

/* Toast */
.toast {
  position: fixed; top: 22%; left: 50%; transform: translateX(-50%);
  background: rgba(30, 34, 45, .92); color: #fff; padding: 11px 20px;
  border-radius: 24px; font-size: 14px; z-index: 999; max-width: 80%;
}
.toast-enter-active, .toast-leave-active { transition: opacity .25s, transform .25s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, -8px); }

/* Modal */
.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 24px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 340px; padding: 22px 20px 16px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.modal .mt { font-size: 17px; font-weight: 700; }
.modal .mb { margin: 12px 0 18px; font-size: 14px; color: #4a5170; line-height: 1.7; white-space: pre-wrap; }
.modal .ma { display: flex; gap: 10px; }
.modal .ma .btn { width: 100%; padding: 10px; font-size: 14px; }

/* ===================== 教程页（/jc、/jc/gm、/jc/gzzs） =====================
   原来三个教程页各自带一份 7~10KB 的内联 CSS，三套颜色还跟站内其它页不一样。
   统一收到这里：只用上面那套 --brand/--ink 变量，改主题色三个教程页跟着变。 */

/* 教程页比自助页宽一些：里面全是竖版长截图，460px 看着太挤 */
.wrap.wide { max-width: 560px; }

/* 步骤：左侧圆形序号 + 右侧内容，序号用绝对定位不占文档流 */
.step { position: relative; padding-left: 46px; margin-top: 22px; }
.step:first-child { margin-top: 4px; }
.step .no {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.step h2 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  min-height: 32px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.step p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: #4a5170; }

/* 步骤配图：统一圆角描边，宽度撑满容器 */
.shot { display: block; width: 100%; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
.shot.sm { width: 44px; height: 44px; margin: 0; border-radius: 8px; object-fit: cover; }
.cap { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }

/* 黄色警示条（原 .note）*/
.note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff8e6; border-left: 4px solid #ffcc00;
  font-size: 13px; line-height: 1.7; color: #6b5a1e;
}
.note b { color: var(--bad); }

/* 行内小链接按钮（下载官服 / 跳改密教程）*/
.tag {
  display: inline-block; margin: 10px 8px 0 0; padding: 8px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
}
/* 次要按钮：原来是 --muted 浅灰字压在 --soft 近白底上，对比度只有约 2:1，
   手机上看着像"发虚/没加载完"。改成明确底色 + 深色字，对比度约 8:1。 */
.tag.ghost { background: #e9edfb; color: #3b4468; border: 1px solid #c9d2f0; }
.tag:active { opacity: .85; }

/* 整行按钮（教程页底部「返回登录教程」用）。
   刻意不复用共享的 .btn-ghost —— 那个还被 gy/csg 弹窗的「取消」用着，
   取消按钮就是要低存在感，不能为了教程页把它一起调亮。 */
.tag.block {
  display: block; width: 100%; margin: 18px 0 0; padding: 12px;
  text-align: center; font-size: 15px; text-decoration: none;
}

/* 福利区块 */
.gift {
  margin-top: 24px; padding: 18px 16px; text-align: center;
  border-radius: 16px; border: 2px dashed var(--bad);
  background: linear-gradient(135deg, #fff1f2 0%, #ffe9ec 100%);
}
.gift h3 { font-size: 16px; color: var(--bad); }
.gift p { margin: 8px 0 14px; font-size: 13px; color: #4a5170; line-height: 1.7; }

/* 顶部返回条 */
.nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
/* 顶部返回：原来是半透明白底 + backdrop-filter 毛玻璃，压在紫色渐变上灰蒙蒙的。
   改成实心白底 + 品牌色字，边界清楚。 */
.nav a {
  font-size: 13px; font-weight: 600; color: var(--brand2); text-decoration: none;
  background: #fff; padding: 7px 16px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(31, 38, 135, .18);
}
.nav a:active { background: var(--soft); }
