/* Gemini 会员充值
   尺寸、字号、间距、卡片、步骤、表单、按钮全部用 pro.css（= ../styles.css，Pro 前台那一份）。
   这里只放两样：
   1. 蓝色调颜色：Gemini 自己的蓝为主、蓝紫作点缀，中性色带冷蓝；Pro 写死的紫色、天蓝、网格都在这里换掉。
   2. Pro 没有的组件：截图步骤、三张示意图、看大图、复制地址行、下载行、等待计时、进度条。
   白字落在渐变上，最浅的一段对比度也在 4.9:1 以上。 */

/* ---------- 颜色 ---------- */

:root {
  color: #131b2e;
  background: #f3f6fc;

  --canvas: #f3f6fc;
  --surface: #fafcff;
  --surface-high: #ffffff;
  --sunk: rgba(22, 56, 128, 0.05);

  --ink: #131b2e;
  --ink-soft: #33405a;
  --muted: rgba(19, 35, 72, 0.62);
  --faint: rgba(19, 35, 72, 0.4);
  --hair: rgba(19, 35, 72, 0.08);
  --edge: rgba(19, 35, 72, 0.08);

  --brand: #1f66e5;
  --brand-ink: #1650c0;
  --brand-soft: #e8f0fe;
  --spark: #4f8cf6;
  --wash: linear-gradient(100deg, #2f76f0 0%, #1f66e5 50%, #1857cf 100%);
  --wash-line: linear-gradient(90deg, #1f66e5 0%, #4f8cf6 55%, #8fc2fb 100%);

  --shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(18, 46, 110, 0.05),
    0 18px 44px -30px rgba(18, 46, 110, 0.32);
  --shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(18, 46, 110, 0.06),
    0 28px 60px -28px rgba(18, 46, 110, 0.36);
  --shadow-brand:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px -12px rgba(31, 102, 229, 0.72);
  --shadow-pill: 0 1px 2px rgba(18, 46, 110, 0.06);
  --shadow-hover: 0 1px 2px rgba(18, 46, 110, 0.06), 0 14px 28px -18px rgba(18, 46, 110, 0.42);
}

::selection {
  background: rgba(31, 102, 229, 0.18);
  color: var(--ink);
}

html {
  scrollbar-color: rgba(31, 102, 229, 0.32) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--canvas);
  border-radius: 999px;
  background: rgba(31, 102, 229, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 102, 229, 0.48);
}

input,
textarea {
  caret-color: var(--brand);
}

/* 背景：Pro 的三团粉紫光和网格换成页头一带的蓝色极光，往右上过到一点蓝紫，最远端一抹淡玫。
   底色只留在 html 上：body 再铺一层底色会把 z-index 为负的光晕盖住。 */
body {
  background: transparent;
}

.app-shell::after {
  display: none;
}

/* 页头：不透明，不做毛玻璃；吸顶后一条细线。 */
.site-header {
  background: transparent;
  transition: box-shadow 320ms var(--ease-ui);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-stuck {
  background: #f9fbff;
  box-shadow: 0 1px 0 var(--hair), 0 18px 40px -34px rgba(18, 46, 110, 0.45);
}

.primary-nav {
  background: rgba(255, 255, 255, 0.78);
}

.primary-nav button:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.primary-nav button[aria-selected="true"]:hover {
  background: var(--brand);
  color: #fff;
}

/* 当前这一步的卡片：顶边一条蓝色细渐变，是这一页的记号。 */
.card--flow {
  background:
    var(--wash-line) top left / 100% 3px no-repeat,
    var(--surface);
}

.field input,
.field textarea {
  box-shadow: inset 0 1px 2px rgba(18, 46, 110, 0.04);
}

.field input:focus,
.field textarea:focus {
  box-shadow: inset 0 1px 2px rgba(18, 46, 110, 0.03), 0 0 0 3px rgba(31, 102, 229, 0.16);
}

.btn-primary {
  background: var(--wash);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 32px -14px rgba(31, 102, 229, 0.8);
}

.btn-ghost:hover:not(:disabled),
.steps li:hover {
  box-shadow: var(--shadow-hover);
}

.plan-label {
  background: var(--wash);
}

/* 套餐名是产品名，保留大小写：「AI Pro 月付」，不走 Pro 徽章的等宽大写 */
.chip--plan,
.plan-label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.kbd {
  box-shadow: var(--shadow-pill), inset 0 -1px 0 rgba(18, 46, 110, 0.1);
}

.toast {
  box-shadow: 0 2px 6px rgba(18, 46, 110, 0.08), 0 24px 48px -20px rgba(18, 46, 110, 0.6);
}

.empty {
  background: rgba(255, 255, 255, 0.66);
}

.empty.pending::before {
  background: linear-gradient(90deg, rgba(31, 102, 229, 0.08) 0%, rgba(255, 255, 255, 0.95) 45%, rgba(31, 102, 229, 0.08) 100%);
  background-size: 200% 100%;
}

/* 步骤条：四格；当前一格是实心蓝渐变圆点（Pro 是转圈的环）。 */
#redeem-stepper {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stepper li.is-current::before {
  border: 0;
  background:
    radial-gradient(circle, #fff 0 3.5px, transparent 4.5px),
    var(--wash);
  box-shadow: 0 0 0 5px var(--brand-soft), 0 6px 14px -6px rgba(31, 102, 229, 0.7);
  transform: none;
  animation: none;
}

/* 步骤编号：Pro 是一行淡字，这里放进一枚小方块，尺寸不变。 */
.steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border-radius: 8px;
  background: var(--sunk);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- 只有 Gemini 有的组件 ---------- */

/* 步骤正文：一行路径（每段之间一个淡色 › ，读屏读成「然后」）+ 下面一行小字说明。
   › 和后面一段的头两个字粘在一起，换行时不会单独落在行首。点的按钮、菜单名用「」和中等字重。 */
.steps .path {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.steps .path span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.path__lead {
  white-space: nowrap;
}

.path__sep {
  display: inline-block;
  width: 8px;
  height: 12px;
  margin: 0 7px 0 8px;
  color: var(--faint);
  vertical-align: -1px;
}

.path b {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.steps .step-note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 步骤里的小段代码（文件夹名、地址） */
.steps code,
.copy-row code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* 下载插件：和主按钮同高的次按钮，文件大小是旁边一行淡字 */
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.steps .download-row .btn {
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  word-break: normal;
}

.download-row .btn:hover {
  text-decoration: none;
}

/* 下载插件：淡蓝底、蓝字、一圈淡蓝描边，比次按钮醒目，又不抢这张卡的主按钮「我已装好，下一步」 */
.btn-tint {
  border-color: rgba(31, 102, 229, 0.26);
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: var(--shadow-pill);
}

.btn-tint svg {
  color: var(--brand);
}

.btn-tint:hover:not(:disabled) {
  border-color: rgba(31, 102, 229, 0.4);
  background: #dae6fd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.download-row .hint {
  font-size: 13px;
}

/* chrome://extensions / edge://extensions 两行，各带复制 */
.copy-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-width: 420px;
}

.copy-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px 6px 14px;
  border-radius: 12px;
  background: var(--sunk);
}

.steps .copy-row__name {
  color: var(--muted);
  font-size: 13px;
}

/* 卡密那一行下面：上次失败的原因、回到安装步骤的文字按钮 */
.lead-after {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin: -16px 0 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

/* 「下次不再显示安装步骤」 */
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--brand);
}

/* 截图步骤：每一步是一块，上面编号、标题、说明，下面截图居中贴底；宽屏两列成 2×2，
   同一行两块等高。插件弹窗统一 200×320；付款中心那张大半是空白，框住中间「验证是您本人」那块，点开看全图。 */
.steps--tiles li {
  grid-template-rows: auto 1fr;
}

.shots {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-high);
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-pill);
  cursor: zoom-in;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.shot:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-hover);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot--tall {
  width: 200px;
  aspect-ratio: 5 / 8;
}

/* 付款中心：取原图横向 430–850、以「验证是您本人」为中心的一段，放大到框宽。
   裁切放在里面那层窗口上，按钮本身不裁，悬停时整张图才能浮到框外。 */
.shot--crop {
  position: relative;
  width: 256px;
  aspect-ratio: 4 / 5;
  overflow: visible;
  background: #fff;
}

.shot__window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* 整张图只在悬停放大时用（下面有鼠标的那段媒体查询里打开）；写两级选择器压过 .shot img */
.shot .shot__full {
  display: none;
}

.shot--crop img {
  position: absolute;
  top: -45.2%;
  left: -102.4%;
  width: 304.3%;
  max-width: none;
  height: auto;
}

.shot--crop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--edge);
  pointer-events: none;
}

@media (min-width: 1100px) {
  .steps--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 悬停放大：只给有鼠标的设备（手机、平板不受影响，点一下照样开大图）。
   停 120ms 再放大，免得鼠标划过就闪；200ms 缓出。键盘聚焦到截图按钮也一样放大。
   只用 transform，不挤动排版：截图从底边往上长；第 02 步左边的弹窗往右长，
   付款中心那格在框的右下角浮出一张整图往左上长。示意图从左边往右长。 */
@media (hover: hover) and (pointer: fine) {
  .shot,
  .sketch__frame {
    position: relative;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  }

  .shot--tall {
    transform-origin: center bottom;
  }

  .shots > .shot--tall:first-child:not(:only-child) {
    transform-origin: left bottom;
  }

  .shot--tall:hover,
  .shot--tall:focus-visible {
    z-index: 20;
    transform: scale(1.6);
    transition-delay: 120ms;
    box-shadow: inset 0 0 0 1px var(--edge), 0 2px 6px rgba(18, 46, 110, 0.08), 0 30px 60px -24px rgba(31, 58, 160, 0.45);
  }

  .shot--crop:hover,
  .shot--crop:focus-visible {
    z-index: 20;
    transform: none;
  }

  .shot--crop .shot__full {
    display: block;
    position: absolute;
    z-index: 2;
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    width: 600px;
    max-width: none;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--edge), 0 2px 6px rgba(18, 46, 110, 0.08), 0 30px 60px -24px rgba(31, 58, 160, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.43);
    transform-origin: right bottom;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }

  .shot--crop:hover .shot__full,
  .shot--crop:focus-visible .shot__full {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 200ms var(--ease-out) 120ms, transform 200ms var(--ease-out) 120ms, visibility 0s linear 120ms;
  }

  .sketch__frame {
    transform-origin: left center;
  }

  .sketch__frame:hover {
    z-index: 20;
    transform: scale(1.4);
    transition-delay: 120ms;
    box-shadow: inset 0 0 0 1px var(--edge), 0 30px 60px -24px rgba(31, 58, 160, 0.4);
  }
}

/* 示意图：一个浅色浏览器框，只画和这一步有关的那块；要点的控件外面一圈蓝 */
.steps li.has-sketch > .sketch {
  grid-column: 2;
}

.sketch {
  margin: 0;
  max-width: 400px;
}

.sketch__frame {
  overflow: hidden;
  border-radius: 12px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.sketch__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  background: var(--surface-high);
  box-shadow: inset 0 -1px 0 var(--hair);
  color: var(--muted);
}

.sketch__bar > i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: rgba(19, 35, 72, 0.14);
}

.sketch__url {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  padding: 2px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sketch__puzzle {
  flex: none;
  margin-left: 4px;
  color: var(--ink-soft);
}

.sketch__body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.sketch__body--split {
  justify-content: space-between;
}

.sketch__title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.is-ring {
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--brand);
}

.sketch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sketch__switch {
  position: relative;
  width: 30px;
  height: 16px;
  flex: none;
  border-radius: 999px;
  background: var(--brand);
}

.sketch__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.sketch__body--tools {
  flex-wrap: wrap;
}

.sketch__tool {
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 72, 0.16);
  white-space: nowrap;
}

.sketch__tool.is-ring {
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(31, 102, 229, 0.35), 0 0 0 2px var(--canvas), 0 0 0 4px var(--brand);
}

.sketch__body--menu {
  justify-content: flex-end;
  padding: 0 10px 12px;
}

.sketch__menu {
  width: min(100%, 268px);
  padding: 8px 10px 10px;
  border-radius: 0 0 10px 10px;
  background: var(--surface-high);
  box-shadow: 0 10px 22px -14px rgba(18, 46, 110, 0.45), 0 0 0 1px var(--hair);
}

.sketch__menu-head {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sketch__menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sketch__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  background: var(--wash);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.sketch__menu-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sketch__pin {
  flex: none;
  padding: 2px;
  border-radius: 6px;
  color: var(--brand);
  box-shadow: 0 0 0 2px var(--surface-high), 0 0 0 4px var(--brand);
}

.sketch figcaption {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

/* 充值进度：已等待 / 一般 两格并排，窄屏也不折 */
.wait-clock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.wait-clock__cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface-high);
  box-shadow: var(--shadow-pill);
}

.wait-clock__cell > div {
  min-width: 0;
}

.wait-clock__label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.wait-clock__value {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.wait-clock__value--time {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* 等待光晕：蓝色渐变环在转，背后一团淡蓝光 */
.wait-clock__halo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
}

.wait-clock__halo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 133, 244, 0.32), rgba(108, 123, 240, 0));
}

.wait-clock__halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--turn), rgba(31, 102, 229, 0) 0deg, #1f66e5 200deg, #4f8cf6 330deg, rgba(79, 140, 246, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  animation: spin 1.6s linear infinite;
}

.wait-clock[data-state="done"] .wait-clock__halo::before,
.wait-clock[data-state="bad"] .wait-clock__halo::before {
  display: none;
}

.wait-clock[data-state="done"] .wait-clock__halo::after,
.wait-clock[data-state="bad"] .wait-clock__halo::after {
  -webkit-mask: none;
  mask: none;
  animation: none;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.1 6.4 11.2 12.8 4.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}

.wait-clock[data-state="bad"] .wait-clock__halo::after {
  background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* 三条说明 */
.notes {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

/* 进度条：蓝色渐变；失败转红、完成转绿 */
.progress {
  height: 6px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sunk);
}

.progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--wash);
  transition: width 600ms var(--ease-out);
}

.progress[data-state="done"] > span {
  background: var(--ok);
}

.progress[data-state="bad"] > span {
  background: var(--danger);
}

/* 时间线的点：走过的绿底打钩，当前的蓝渐变实心点，后面的空心，失败的红叉 */
.timeline li.is-done .dot,
.timeline li.is-bad .dot {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  margin-left: -3px;
  background-position: center;
  background-size: 11px 11px;
  background-repeat: no-repeat;
}

.timeline li.is-done .dot {
  background-color: var(--ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.1 6.4 11.2 12.8 4.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.timeline li.is-bad .dot {
  background-color: var(--danger);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 4.6l6.8 6.8M11.4 4.6l-6.8 6.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.timeline li.is-now .dot {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  margin-left: -2px;
  background: var(--wash);
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: now-pulse 2s var(--ease-ui) infinite;
}

.timeline li.is-next .dot {
  border-color: rgba(19, 35, 72, 0.22);
}

.timeline li.is-now:not(:last-child)::after {
  background: var(--hair);
}

.timeline li.is-now strong .step-name {
  color: var(--brand-ink);
}

@keyframes now-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-soft); }
  50% { box-shadow: 0 0 0 7px rgba(232, 240, 254, 0.55); }
}

/* 看大图 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 32px;
  background: rgba(13, 22, 44, 0.72);
  animation: panel-in 240ms var(--ease-out) both;
}

.lightbox__figure {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: 100%;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.lightbox__close:focus-visible {
  outline-color: #fff;
}

html.is-locked {
  overflow: hidden;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 720px) {
  /* 触控目标不小于 44px */
  .primary-nav button {
    min-height: 44px;
  }

  .copy-btn {
    position: relative;
  }

  .copy-btn::after {
    content: "";
    position: absolute;
    inset: -9px -6px;
  }

  .text-link {
    min-height: 44px;
  }

  .lead-after {
    margin-top: -18px;
    margin-bottom: 14px;
  }

  .actions .check {
    flex: 1 1 100%;
    justify-content: center;
  }

  .download-row .btn {
    flex: 0 0 auto;
  }

  /* 地址行：名字和地址上下两行，复制按钮在右边，地址不被挤成一字一行 */
  .copy-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name btn" "code btn";
    row-gap: 0;
    padding: 8px 8px 8px 12px;
  }

  .copy-row__name {
    grid-area: name;
  }

  .copy-row code {
    grid-area: code;
  }

  .copy-row .copy-btn {
    grid-area: btn;
  }

  /* 示意图跨到编号下面，铺满这一步的宽度；截图宽度跟着屏幕收 */
  .steps li.has-sketch > .sketch {
    grid-column: 1 / -1;
  }

  .shot--tall {
    width: min(100%, 220px);
  }

  .shot--crop {
    width: min(100%, 260px);
  }

  .sketch__body {
    padding: 10px 12px;
  }

  .sketch__body--tools {
    gap: 6px;
  }

  .wait-clock__cell {
    gap: 10px;
    padding: 12px 14px;
  }

  .wait-clock__value {
    font-size: 15px;
  }

  .wait-clock__value--time {
    font-size: 18px;
  }

  .lightbox {
    padding: 68px 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wait-clock__halo::after,
  .timeline li.is-now .dot {
    animation: none;
  }
}

/* 查询页的卡密是单行输入框；Pro 那边同 id 的是多行框，高度别带过来 */
#status-code {
  min-height: 52px;
}

/* 故障公告：协议 A 接不了单时置顶在页头下面。提醒用琥珀色（语义色），不用品牌蓝。 */
.outage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px rgba(176, 106, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--warn);
}

.outage__icon {
  flex: none;
  margin-top: 1px;
}

.outage__body {
  min-width: 0;
}

.outage__title {
  margin: 0;
  color: #7a4a0c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.outage__text {
  margin: 2px 0 0;
  color: #7a4a0c;
  font-size: 14px;
  line-height: 1.6;
}

/* 故障时被禁用的主按钮下面那行原因 */
.outage-why {
  margin: 10px 0 0;
  color: #9a5b0e;
}

@media (max-width: 720px) {
  .outage {
    margin-bottom: 20px;
    padding: 14px 16px;
  }
}
