/* ============================================================
   Gift Bridge 落地页样式
   竖屏手机优先：390px 宽不横向滚动；桌面端放宽成多列布局。
   零依赖、零构建，无外网字体与统计脚本。
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-soft: #11152a;
  --card: #171c36;
  --card-edge: #262d52;
  --text: #eef0ff;
  --muted: #9aa0c3;
  --accent: #ffc857;          /* 金：招牌 / 主按钮 */
  --accent-2: #ff6b9d;        /* 粉：渐变副色 */
  --violet: #8b7bff;
  --ok: #5ad488;
  --radius: 18px;
  --page-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- 页面容器：手机单栏，桌面居中放宽为多列 ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(139, 123, 255, 0.22), transparent 60%),
    var(--bg);
  padding-bottom: 24px;
}

/* 720px 起：页面居中成带边框的卡片，但宽度先不拉大，避免窄平板被拉伸 */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(139, 123, 255, 0.14), transparent 70%),
      #06070f;
  }
  .page {
    margin: 28px auto;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    border: 1px solid #232a4d;
    border-radius: 36px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    overflow: clip;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 56px 22px 40px;
  text-align: center;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(255, 200, 87, 0.16), transparent 60%),
    radial-gradient(80% 50% at 80% 10%, rgba(255, 107, 157, 0.14), transparent 65%);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(255, 200, 87, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 30%, #cdd2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-points {
  margin-top: 26px;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-points li { white-space: nowrap; }
.hero-points li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border-radius: 14px;
  padding: 14px 20px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  color: #241a04;
  background: linear-gradient(135deg, #ffd979, var(--accent) 45%, #f0a83c);
  box-shadow: 0 10px 30px rgba(255, 200, 87, 0.28);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-edge);
  font-weight: 600;
  font-size: 15.5px;
}

.btn-block { width: 100%; }

/* ---------- 通用区块 ---------- */
.section { padding: 36px 22px 8px; }

.section-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.section-desc {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 玩法卡片 ---------- */
.card {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 18px 16px 8px;
}

.card-flagship {
  border-color: rgba(255, 200, 87, 0.55);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 200, 87, 0.10), transparent 65%),
    linear-gradient(180deg, var(--card), var(--bg-soft));
  box-shadow: 0 12px 40px rgba(255, 200, 87, 0.10);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--card-edge);
}

.card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-edge);
}

.card-name { font-size: 18px; font-weight: 800; }
.card-flagship .card-name::after {
  content: "招牌";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #241a04;
  background: linear-gradient(135deg, #ffd979, var(--accent));
  border-radius: 6px;
  padding: 1.5px 7px;
  vertical-align: 3px;
}

.card-tag { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }

.card-facts { display: grid; gap: 2px; }

.fact { padding: 10px 0 8px; }

.fact dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.fact dd {
  margin-top: 3px;
  font-size: 14px;
  color: #c9cdf0;
}

/* ---------- 试用流程 ---------- */
.section-trial {
  background: linear-gradient(180deg, transparent, rgba(139, 123, 255, 0.07) 30%, transparent);
}

.steps { list-style: none; margin-top: 22px; }

.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 26px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), rgba(139, 123, 255, 0.15));
}

.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #5e4fd8);
  box-shadow: 0 6px 18px rgba(139, 123, 255, 0.35);
}

.step-name { font-size: 16px; font-weight: 700; }
.step-desc { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- 购买区 ---------- */
.section-buy {
  text-align: center;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 107, 157, 0.08), transparent 65%);
}

.pay-cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 10px 10px;
}

.pay-card img {
  width: 100%;
  max-width: 170px;
  margin: 0 auto;
  border-radius: 10px;
}

.pay-card figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #23263b;
}

.section-buy .btn-block { margin-top: 20px; }

.buy-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 订单表单 ---------- */
.order-form { margin-top: 20px; display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }

.field-label { font-size: 14px; font-weight: 700; }
.field-label em { color: var(--accent-2); font-style: normal; }

.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input::placeholder { color: #6a6f96; }

.field input:focus { border-color: var(--violet); }

.field input[type="file"] { padding: 10px 12px; }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-edge);
  border-radius: 9px;
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
}

.field-hint { font-size: 12px; color: var(--muted); }

.form-status {
  font-size: 13.5px;
  text-align: center;
  min-height: 1.5em;
  color: var(--muted);
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--accent-2); }

/* ---------- 底部 ---------- */
.footer {
  margin-top: 36px;
  padding: 28px 22px 96px;
  border-top: 1px solid var(--card-edge);
  text-align: center;
}

.footer-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.qq-copy {
  margin-top: 6px;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.footer-hint { margin-top: 2px; font-size: 11.5px; color: #6a6f96; }

.footer-contact { margin-top: 22px; }
.footer-text { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.footer-copy { margin-top: 26px; font-size: 12px; color: #565b80; }

/* ---------- 吸底快捷入口 ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(var(--page-max) - 28px), calc(100vw - 28px));
  z-index: 10;
  animation: cta-in 0.25s ease;
}

@keyframes cta-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 入场动画（可渐进增强，无 JS 也可见） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 表格单 / 下拉 / 只读金额 ---------- */
.select-input, .readonly-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.select-input:focus { border-color: var(--violet); }
.readonly-input { color: var(--accent); font-weight: 700; }

.form-title { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: -4px; }

/* ---------- 固定套餐价 ---------- */
.price-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 10px;
  text-align: left;
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 12px 14px;
}
.price-name { font-size: 15px; font-weight: 700; }
.price-value { font-size: 20px; font-weight: 800; color: var(--accent); }
.price-desc { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* ---------- 结果卡片（授权码 / 订单号 / 对账码 / 查询结果） ---------- */
.result-card {
  margin-top: 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(90, 212, 136, 0.12), rgba(23, 28, 54, 0.9));
  border: 1px solid rgba(90, 212, 136, 0.45);
  border-radius: 14px;
  padding: 14px 14px 10px;
}
.result-title { font-size: 15px; font-weight: 800; color: var(--ok); margin-bottom: 8px; }
.result-line { font-size: 13.5px; color: #c9cdf0; margin: 5px 0; overflow-wrap: anywhere; }
.result-line code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--accent);
  user-select: all;
}
.result-line .remark {
  font-size: 22px;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.result-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.result-card .btn { margin-top: 12px; }
.query-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--card-edge);
}
.query-item:last-child { border-bottom: 0; }

/* ---------- 按钮禁用态 ---------- */
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   桌面布局（≥1024px）
   放在文件末尾，确保覆盖前面所有单栏基础样式。
   手机（<1024px）完全不受影响。
   ============================================================ */
@media (min-width: 1024px) {
  :root { --page-max: 1000px; }
  .page { border-radius: 28px; }

  /* 首屏：标题放大、按钮横向并排 */
  .hero { padding: 72px 36px 56px; }
  .hero-title { font-size: 46px; }
  .hero-sub { font-size: 17px; }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .hero-actions .btn { width: auto; min-width: 200px; }
  .hero-points { font-size: 14px; }

  /* 通用区块：标题放大，内容区留内边距 */
  .section { padding: 52px 36px 20px; }
  .section-title { font-size: 30px; }
  .section-desc { font-size: 15px; }

  /* 玩法四卡片：两列 */
  #play {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    align-content: start;
  }
  #play .section-title,
  #play .section-desc { grid-column: 1 / -1; }
  #play .card { margin-top: 20px; }

  /* 试用三步：三列卡片，去掉竖线 */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .step {
    padding: 22px 18px;
    background: linear-gradient(180deg, var(--card), var(--bg-soft));
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
  }
  .step:not(:last-child)::before { display: none; }

  /* 试用表单：限宽居中，避免拉成超宽输入框（需盖过 .order-form） */
  .order-form.trial-form {
    max-width: 520px;
    width: 100%;
    margin: 28px auto 8px;
    padding: 24px;
    background: rgba(23, 28, 54, 0.6);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
  }

  /* 底部：信息横向排开 */
  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px 56px;
    padding: 40px 36px 56px;
    text-align: left;
  }
  .footer-qq, .footer-contact { flex: 0 1 280px; }
  .footer-copy { flex: 1 1 100%; text-align: center; }

  /* 已注释掉的购买区/订单区恢复后也自动多列 */
  .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-form { max-width: 640px; margin-left: auto; margin-right: auto; }
}

