/* ==========================================================================
   desktop.css —— 电脑端拦截引导页
   风格与网站端同源：暖奶油底 + 白色大圆角卡 + 深棕红标题。
   ========================================================================== */

:root {
  --heading: #6b4fa8;
  --ink: #2a2438;
  --ink-2: #4a4560;
  --muted: #6f6a85;
  --brand: #7c5cd6;
  --tint: #f3efff;
  --primary: #7c5cd6;
  --amber: #d97706;
  --warn-soft: #fffbeb;
  --line-2: #f2effb;
  --shadow-card: 0 10px 22px rgba(107, 79, 168, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #fcfbff 0%, #f4f0ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: min(100%, 480px);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---------------------------------------------------------------- 头部 */

.app-bar {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
}

.title { text-align: center; }

.title h1 {
  margin: 0;
  color: var(--heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .01em;
}

.title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- 正文 */

.body { padding: 0 24px 24px; }

.divider {
  height: 1px;
  background: var(--line-2);
  margin: 18px 0 20px;
}

/* 二维码 */
.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  margin-bottom: 16px;
}

.qr {
  width: 230px;
  height: 230px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(107, 79, 168, .10);
  background: #fff;
  padding: 0;
  line-height: 0;
}
.qr svg { width: 100%; height: 100%; display: block; }

.qr-placeholder {
  width: 230px;
  height: 230px;
  border-radius: 14px;
  background: #fbfaff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 地址条 */
.url {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid #e4dcff;
}

.url__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.url__value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url__copy {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #7c5cd6;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.url__copy:active { opacity: .88; }

/* 步骤 */
.steps { margin: 20px 0 0; padding: 0; list-style: none; }

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.steps .no {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

/* 说明块 */
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--amber);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.65;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

.foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2);
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

/* 复制成功的轻提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -12px);
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .3s cubic-bezier(.34, 1.4, .64, 1);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- 适配 */

@media (max-width: 520px) {
  body { align-items: flex-start; padding-top: 18px; }
  .qr-section { min-height: 210px; }
  .qr, .qr-placeholder { width: 205px; height: 205px; }
  .title h1 { font-size: 22px; }
}

@media (max-height: 700px) {
  .qr-section { min-height: 190px; margin-bottom: 10px; }
  .qr, .qr-placeholder { width: 190px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; }
}
