@charset "UTF-8";

/* ==========================================================================
   话费活动落地页 · B 方案（合规版）
   设计语言取自原站：背景 #f2f7fd + 双层径向渐变，卡片 #fff / 1px #dce9f8 / r25
   全部尺寸在 390 / 768 / 1440 三档验证过
   ========================================================================== */

:root {
  --site-primary: #428fe5;
  --navy: #377dce;
  --ink: #2a4b70;
  --ink-strong: #1e3b5c;
  --muted: #8798ac;
  --line: #e4ebf3;
  --radius: 25px;

  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  display: flow-root;
  background:
    radial-gradient(ellipse at 50% -12%, #d9ebff 0, transparent 47%),
    radial-gradient(ellipse at 8% 83%, #e9f4ff 0, transparent 40%),
    #f2f7fd;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p { margin: 0; }
h1 { font-size: 25px; font-weight: 650; letter-spacing: -.4px; }
h2 { font-size: 17px; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid #89afde;
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */

.topbar { width: 100%; color: #163d6c; }

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--site-primary);
  color: #fff;
  box-shadow: 0 5px 12px #4c93dd25, inset 0 1px 0 #ffffff66;
}

.site-name {
  font-size: 23px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 42px;
  max-width: 55%;
  padding: 9px 17px;
  background: #fff;
  border: 1px solid #d9e7fb;
  border-radius: 25px;
  color: #246acb;
  color: color-mix(in srgb, var(--site-primary) 76%, #12305c);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 2px 8px #2a609810;
  transition: background .18s, box-shadow .18s;
}
.more-btn:hover { background: #f7fbff; box-shadow: 0 4px 12px #2a60981a; }
.more-btn span { overflow-wrap: anywhere; }

/* ---------- 主体布局 ---------- */

.shell {
  max-width: 520px;
  margin: 66px auto;
  padding: 0 22px;
}

/* ---------- 宣传区（纯 CSS 绘制，不使用任何第三方素材） ---------- */

.banner {
  position: relative;
  overflow: hidden;
  padding: 40px 34px 36px;
  border-radius: var(--radius);
  border: 1px solid #d5e6fa;
  /* 用「白色高光 + 黑色压暗」两层叠加在主色上，颜色跟随 primaryColor，且兼容老浏览器 */
  background-image:
    linear-gradient(150deg, #ffffff26 0%, #ffffff00 45%, #0000002b 100%);
  background-color: var(--site-primary);
  color: #fff;
  box-shadow: 0 1px 2px #2c60980a, 0 18px 46px #2a60981f;
  isolation: isolate;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.banner::before {
  width: 260px; height: 260px;
  top: -108px; right: -78px;
  background: radial-gradient(circle, #ffffff3d 0, #ffffff00 68%);
}
.banner::after {
  width: 210px; height: 210px;
  bottom: -104px; left: -62px;
  background: radial-gradient(circle, #9fd0ff2e 0, #9fd0ff00 70%);
}

.banner-inner { position: relative; }

.banner-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #ffffffd9;
}

.banner-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 10px 0 4px;
  font-size: 74px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 24px #0d3d752e;
}
.banner-amount .yen { font-size: 30px; font-weight: 600; letter-spacing: 0; opacity: .92; }

.banner-unit {
  font-size: 15px;
  font-weight: 500;
  color: #ffffffd4;
  letter-spacing: .3px;
}

.banner-points {
  margin-top: 26px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #ffffffe8;
}
.banner-points li { display: flex; align-items: center; gap: 8px; }
.banner-points svg { color: #b7e6c8; }

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  margin-top: 20px;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid #dce9f8;
  background: linear-gradient(155deg, #fff 60%, #fcfdff);
  box-shadow: 0 1px 2px #2c609807, 0 16px 50px #2a60980a, 0 3px 12px #4e83b805;
}

.card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }

.mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-image: linear-gradient(145deg, #ffffff33 0%, #00000014 100%);
  background-color: var(--site-primary);
  color: #fff;
  border: 1px solid #ffffffb3;
  box-shadow: 0 5px 12px #4c93dd25, inset 0 1px 0 #ffffff66;
}

.head-text { min-width: 0; }
.head-text h1 { overflow-wrap: anywhere; }
.sub { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* 公告条 */

.notice {
  padding: 13px 15px;
  border: 1px solid #d9e8fa;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4faff, #eaf4ff);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 13px;
  line-height: 1.75;
  color: #4d6f93;
  text-align: center;
}

/* 步骤 */

.steps { margin-top: 22px; display: grid; gap: 2px; }

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 0;
}
.steps li + li { border-top: 1px dashed #e8eff8; }

.step-no {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eef5fe;
  color: var(--site-primary);
  font-size: 12.5px;
  font-weight: 700;
}

.step-body { min-width: 0; }
.step-body strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-strong); }
.step-body p { margin-top: 2px; font-size: 12.5px; line-height: 1.7; color: #7d94ae; }

/* 主按钮 */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  min-height: 53px;
  padding: 14px 20px;
  border-radius: 13px;
  background-image: linear-gradient(125deg, #ffffff26 0%, #0000001a 100%);
  background-color: var(--site-primary);
  border: 1px solid #0000000f;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  box-shadow: 0 8px 20px #468fda26, inset 0 1px 0 #ffffff30;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.cta:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 11px 24px #468fda33, inset 0 1px 0 #ffffff30; }
.cta:active { transform: translateY(0); filter: brightness(.98); }
.cta span { min-width: 0; }

.micro {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.7;
  color: #93a6bb;
  text-align: center;
  overflow-wrap: anywhere;
}

/* 分隔 */

.divider {
  height: 0;
  margin: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 二维码块 */

.qr-block { padding-top: 22px; text-align: center; }
.qr-block h2 { color: #325373; }

.qr-btn {
  display: block;
  max-width: 100%;
  margin: 14px auto 12px;
  padding: 0;
  cursor: zoom-in;
  color: var(--site-primary);
}
.qr-btn img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 8px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  box-shadow: 0 6px 18px #2a609812;
}
.qr-btn span { font-size: 12px; line-height: 1.8; }

.qr-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #7890a8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wechat-id {
  margin-top: 9px;
  font-size: 13px;
  color: #5f7a98;
}
.wechat-id b { color: var(--ink-strong); letter-spacing: .3px; }

.copy-id {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #d9e8fa;
  border-radius: 7px;
  background: #f4faff;
  color: #4d82bd;
  font-size: 11.5px;
}

.disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  color: #a3b3c5;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---------- 二维码弹层 ---------- */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #102139bb;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.qr-modal[hidden] { display: none; }

.qr-modal-body {
  width: min(420px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px #06142635;
  text-align: center;
  animation: pop-in .2s ease-out;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.qr-modal-head h2 { color: #28496c; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #9badc2;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: #f0f5fb; color: #4c7098; }

.qr-modal-body > img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.qr-modal-body > p { margin-top: 14px; font-size: 12.5px; color: #74869d; }

/* ---------- noscript ---------- */

.noscript {
  max-width: 480px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #dce9f8;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  line-height: 1.8;
  color: #5b7695;
  text-align: center;
}
.noscript a { color: var(--site-primary); font-weight: 600; }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 桌面：宣传区与卡片并排，与原站一致 */
@media (min-width: 1000px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: stretch;          /* 宣传区撑满整列高度，避免左短右长 */
    gap: 32px;
    max-width: 1240px;
    margin: 24px auto 48px;
    padding: 0 28px;
  }
  .banner {
    display: flex;
    padding: 46px 44px;
    min-height: 100%;
  }
  /* 纵向三段分布：顶部标签 / 中部金额 / 底部要点，把整列高度用满 */
  .banner-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
  }
  .banner-core { margin-top: 0; }
  .banner-amount { font-size: 104px; }
  .banner-amount .yen { font-size: 40px; }
  .banner-points {
    margin-top: 0;
    padding-top: 26px;
    border-top: 1px solid #ffffff26;
    font-size: 14.5px;
    gap: 12px;
  }
  .card { margin-top: 0; }
}

/* 平板：宣传区改成左右布局，金额在左、要点在右，避免右侧留白 */
@media (min-width: 601px) and (max-width: 999px) {
  .shell { max-width: 560px; margin: 32px auto 48px; }
  .banner { padding: 34px 30px 32px; }
  .banner-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "kicker kicker"
      "core   points";
    gap: 14px 28px;
    align-items: end;
  }
  .banner-kicker { grid-area: kicker; }
  .banner-core { grid-area: core; }
  .banner-points {
    grid-area: points;
    justify-self: end;
    align-self: end;
    margin-top: 0;
    padding-bottom: 3px;
    gap: 8px;
    font-size: 12.5px;
  }
  .banner-amount { font-size: 64px; }
}

/* 手机：宣传区通栏吸顶，卡片内缩，与原站节奏一致 */
@media (max-width: 600px) {
  .topbar-inner { padding: 8px 12px; gap: 12px; }
  .identity { gap: 9px; }
  .logo { width: 36px; height: 36px; border-radius: 11px; }
  .logo svg { width: 21px; height: 21px; }
  .site-name { font-size: 20px; }
  .more-btn { min-height: 36px; padding: 7px 12px; font-size: 12px; gap: 6px; }
  .more-btn svg { width: 17px; height: 17px; }

  .shell { max-width: 520px; margin: 0 auto 28px; padding: 0; }

  .banner {
    border: 0;
    border-radius: 0 0 22px 22px;
    padding: 30px 22px 26px;
    box-shadow: 0 10px 30px #2a60981a;
  }
  .banner-amount { font-size: 62px; margin: 6px 0 2px; }
  .banner-amount .yen { font-size: 25px; }
  .banner-kicker { font-size: 12px; letter-spacing: 1.3px; }
  .banner-unit { font-size: 13.5px; }
  .banner-points { margin-top: 20px; gap: 7px; font-size: 12.5px; }

  .card { margin: 0 12px; padding: 24px 22px; border-radius: 20px; }
  .card-head { gap: 10px; margin-bottom: 20px; }
  .mark { display: none; }
  .head-text h1 { font-size: 21px; }
  .sub { font-size: 12px; }

  .notice { padding: 11px 12px; font-size: 12px; line-height: 1.7; border-radius: 11px; }
  .steps { margin-top: 18px; }
  .steps li { padding: 10px 0; gap: 11px; }
  .step-no { width: 23px; height: 23px; font-size: 12px; }
  .step-body strong { font-size: 14px; }
  .step-body p { font-size: 12px; }

  .cta { margin-top: 20px; min-height: 50px; font-size: 15px; border-radius: 12px; }
  .micro { font-size: 11.5px; }

  .divider { margin-top: 22px; }
  .qr-block { padding-top: 18px; }
  .qr-block h2 { font-size: 16px; }
  .qr-btn img { width: 180px; height: 180px; }
  .disclaimer { margin-top: 16px; padding-top: 14px; font-size: 11px; }
}

@media (max-width: 380px) {
  .card { padding: 20px 16px; margin: 0 8px; }
  .banner-amount { font-size: 54px; }
  .qr-btn img { width: 160px; height: 160px; }
}

/* ---------- 可达性 ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
