/* ========= base reset ========= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #0b1220;
  min-height: 100vh;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(56, 189, 248, .22), transparent 60%),
    radial-gradient(700px 400px at 80% 20%, rgba(167, 139, 250, .18), transparent 62%),
    radial-gradient(900px 600px at 50% 90%, rgba(34, 197, 94, .10), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

/* ========= layout ========= */
.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px 28px;
}

/* ========= card ========= */
.panel {
  width: min(720px, 92vw);
  background: rgba(255, 255, 255, .88);

  /* 白色边框/描边（外描边 + 内高光） */
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow:
    0 14px 40px rgba(2, 6, 23, .10),
    0 2px 10px rgba(2, 6, 23, .06),
    inset 0 0 0 1px rgba(15, 23, 42, .06);

  border-radius: 18px;
  padding: 22px 22px 18px;

  backdrop-filter: blur(8px);
  transform: translateY(-16px);
}

/* ========= header ========= */
.head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 10px;
}

.badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, .20), rgba(168, 85, 247, .14));
  border: 1px solid rgba(15, 23, 42, .10);
  color: rgba(15, 23, 42, .65);
  font-weight: 700;
}

.title {
  font-size: 18px;
  letter-spacing: .2px;
}

.sub {
  margin-top: 2px;
  font-size: 14.5px;
  color: rgba(15, 23, 42, .64);
  line-height: 1.45;
}

/* ========= progress ========= */
.progress {
  margin-top: 10px;
  padding: 10px 4px 2px;
}

.progress-bar {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  border: 1px solid rgba(15, 23, 42, .08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59, 130, 246, .85), rgba(168, 85, 247, .80));
  transition: width 260ms ease;
}

.progress-text {
  margin-top: 8px;
  font-size: 13.8px;
  color: rgba(15, 23, 42, .70);
}

.dots { opacity: .75; }

/* ========= actions ========= */
.actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 所有按钮统一同宽、居中 */
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;

  width: 100%;
  height: 50px;
  border-radius: 14px;
  padding: 0 14px;

  font-size: 15px;
  font-weight: 650;

  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .9);
  color: rgba(2, 6, 23, .90);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);

  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, .10);
  background: rgba(255, 255, 255, 1);
}

.action:active { transform: translateY(0px); }

.action--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, .92), rgba(168, 85, 247, .88));
  border-color: rgba(59, 130, 246, .35);
  color: #fff;
}

.action--primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(168, 85, 247, .96));
}

/* “继续访问”按钮与进度条之间留出呼吸感 */
#continueBtn { margin-top: 12px; }

/* 线路按钮容器：确保始终竖排 + 固定间距 */
#links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ========= misc ========= */
.divider {
  margin: 14px 0 12px;
  height: 1px;
  background: rgba(15, 23, 42, .10);
}

.hint {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(15, 23, 42, .60);
  line-height: 1.5;
  text-align: center;
}

.foot {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, .55);
}

.muted { opacity: .75; }

/* ========= tablet+ ========= */
@media (min-width: 560px) {
  .panel {
    padding: 26px 26px 22px;
    transform: translateY(-22px);
  }
  .title { font-size: 19px; }
}

/* ========= desktop ========= */
@media (min-width: 1024px) {
  /* 卡片宽度（收敛到你最终满意的比例） */
  .panel { width: min(660px, 90vw); }

  /* 纵向“更厚实” */
  .panel {
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .head { margin-bottom: 16px; }

  .progress {
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .actions {
    margin-top: 18px;
    gap: 14px;
  }

  .divider { margin: 18px 0 16px; }
  .hint { margin-top: 14px; }
  .foot { margin-top: 18px; }

  /* 最终：PC 整体上移 + 放大（只保留这一处 transform，避免打架） */
  .panel {
    transform: translateY(-80px) scale(1.5);
    transform-origin: center top;
  }
}
