/* 公共跳转页 / 密码页 / 首页样式 */
:root {
  --bg: #f4f5fa; --surface: #fff; --surface-3: #f1f3f9;
  --border: #e4e7f0; --text: #14161f; --text-2: #4b5266; --muted: #838ba0;
  --primary: #6366f1; --rose: #f43f5e; --emerald: #10b981;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --shadow-lg: 0 20px 50px rgba(20, 22, 31, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14; --surface: #151824; --surface-3: #202536;
    --border: #262c3d; --text: #eef1f8; --text-2: #b3bacd; --muted: #7c869f;
    --primary: #818cf8; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(880px 520px at 10% -8%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(760px 460px at 104% 6%, rgba(168,85,247,.18), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px;
  padding: 36px 32px; box-shadow: var(--shadow-lg); text-align: center;
  animation: rise .34s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mark {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 18px;
  background: var(--gradient); display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(99,102,241,.32);
}
.mark svg { width: 27px; height: 27px; color: #fff; }
.mark.warn { background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 12px 28px rgba(244,63,94,.3); }
h1 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.01em; }
p.desc { color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 1.65; }
.code {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--primary); background: rgba(99,102,241,.12);
  padding: 4px 12px; border-radius: 8px; margin-bottom: 20px;
}
form { display: flex; flex-direction: column; gap: 12px; }
.pw-input {
  position: relative;
}
.pw-input svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
input[type="password"], input[type="text"] {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--text); outline: none;
  transition: border-color .16s, box-shadow .16s;
  text-align: center; letter-spacing: .08em;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(99,102,241,.14); }
button {
  height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--gradient); color: #fff; font-family: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(99,102,241,.28); transition: filter .16s, transform .16s;
}
button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.err {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--rose); font-size: 13px; background: rgba(244,63,94,.1);
  padding: 9px 12px; border-radius: 10px; margin-bottom: 4px;
}
.err svg { width: 15px; height: 15px; flex: none; }
.foot { margin-top: 26px; font-size: 12px; color: var(--muted); }
.foot a { color: var(--primary); text-decoration: none; }
.home-actions { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.home-actions a {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 20px;
  border-radius: 12px; font-size: 14px; font-weight: 550; text-decoration: none;
  transition: all .16s;
}
.home-actions .primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(99,102,241,.26); }
.home-actions .ghost { border: 1px solid var(--border); color: var(--text-2); }
.home-actions a:hover { transform: translateY(-1px); }
.feats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.feats span {
  font-size: 12px; color: var(--text-2); background: var(--surface-3);
  border: 1px solid var(--border); padding: 4px 11px; border-radius: 20px;
}

/* 中间跳转提示页 */
.countdown {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
  background: var(--surface-3); padding: 7px 14px; border-radius: 10px;
}
.countdown span {
  font-size: 17px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums; min-width: 14px; display: inline-block; text-align: center;
}
.jump-btn {
  display: block; height: 46px; line-height: 46px; border-radius: 12px;
  background: var(--gradient); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(99,102,241,.28); transition: filter .16s, transform .16s;
}
.jump-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
#jump-url { word-break: break-all; color: var(--muted); font-size: 12px; }
