﻿/* =========================================================
   NEXA LAB — 科技风产品官网
   纯静态，无外网依赖。改配色只看 :root 里的变量。
   ========================================================= */

:root {
  --bg: #f6f8fb;
  --bg-soft: #ffffff;
  --panel: rgba(15, 23, 42, 0.030);
  --panel-2: rgba(15, 23, 42, 0.055);
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --muted: #5a6b82;
  --dim: #8493a8;
  --c1: #0d9488;      /* 主色 青绿 */
  --c2: #4f46e5;      /* 副色 靛蓝 */
  --c3: #db2777;      /* 点缀 粉 */
  --grad: linear-gradient(115deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, .84, .28, 1);
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全局背景：网格 + 两团光雾 + 噪点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 12% -6%, rgba(13, 148, 136, .13), transparent 62%),
    radial-gradient(820px 620px at 88% 8%, rgba(79, 70, 229, .13), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(219, 39, 119, .07), transparent 65%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

/* height:auto 必须写：否则 HTML 里的 height 属性会让图片被拉变形 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(13, 148, 136, .18); color: #0f172a; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 15px;
}
.logo__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(13, 148, 136, .14), rgba(79, 70, 229, .14));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px rgba(94, 234, 212, .18);
}
.logo__mark svg { width: 16px; height: 16px; }

.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: var(--panel-2); }

.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(13, 148, 136, .45); }

.btn--primary {
  border: none;
  color: #ffffff;
  background: var(--grad);
  background-size: 180% 100%;
  box-shadow: 0 10px 30px -12px rgba(13, 148, 136, .5);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px -14px rgba(79, 70, 229, .5); }

.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 84px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
/* 网格子项默认 min-width:auto 会被内容撑宽，导致窄屏横向溢出 */
.hero__inner > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  color: var(--muted);
  text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .16), 0 0 14px var(--c1);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

h1 {
  margin: 26px 0 0;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 24px 0 0;
  max-width: 30em;
  color: var(--muted);
  font-size: 17px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.stat__num span { color: var(--c1); }
.stat__label { font-size: 12.5px; color: var(--dim); letter-spacing: .06em; }

/* 右侧视觉卡 */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #ffffff, #fafbfd);
  padding: 16px;
  box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-.4deg); } }
.hero__card img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -18px; bottom: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .25);
}
.hero__badge b { color: var(--c1); font-size: 14px; }

/* ---------- 跑马灯 ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(15, 23, 42, .02);
  overflow: hidden;
  padding: 15px 0;
  margin-top: 20px;
}
.marquee__track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: scroll 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 10px var(--c2);
}

/* ---------- 通用 section ---------- */
.section { padding: 104px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c1);
  text-transform: uppercase;
}
h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}
.section__desc { color: var(--muted); max-width: 34em; margin: 14px 0 0; }

/* ---------- 产品筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active {
  color: #ffffff;
  background: var(--grad);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- 产品卡 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #ffffff, #fafbfd);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  opacity: 0;
  transform: translateY(26px);
}
.card.is-in { opacity: 1; transform: none; }
.card::after {
  /* hover 高光边框 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -26px rgba(15, 23, 42, .26);
}
.card:hover::after { opacity: 1; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3fa;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  color: var(--c1);
  text-transform: uppercase;
}
.card__body { padding: 20px 20px 22px; }
.card__name { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.card__meta { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.price small { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: 3px; }
.card__more { font-size: 13px; color: var(--c1); display: flex; align-items: center; gap: 6px; }
.card__more svg { transition: transform .3s; }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- 特性 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .35s, background .35s, transform .35s var(--ease);
}
.feature:hover { border-color: rgba(13, 148, 136, .35); background: var(--panel-2); transform: translateY(-4px); }
.feature__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(13, 148, 136, .12), rgba(79, 70, 229, .12));
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
}
.feature__icon svg { width: 20px; height: 20px; stroke: var(--c1); }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- 参数表 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; background: rgba(15, 23, 42, .03); }
td:first-child { color: var(--muted); }
tr:last-child td { border-bottom: none; }
td b { color: var(--c1); font-family: var(--mono); font-weight: 600; }

/* ---------- CTA 条 ---------- */
.cta {
  position: relative;
  padding: 62px 56px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 320px at 82% 0%, rgba(79, 70, 229, .16), transparent 60%),
    radial-gradient(520px 300px at 6% 100%, rgba(13, 148, 136, .14), transparent 60%),
    rgba(15, 23, 42, .02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.cta h2 { margin: 0; }
.cta p { margin: 12px 0 0; color: var(--muted); max-width: 34em; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 104px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer__col { min-width: 150px; }
.footer__col h4 { margin: 0 0 14px; font-size: 13px; color: var(--text); letter-spacing: .04em; }
.footer__col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--c1); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* ---------- 详情弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #ffffff, #f7f9fc);
  box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .32);
  transform: translateY(18px) scale(.985);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal__media { min-height: 340px; background: #eef3fa; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 32px; }
.modal__body h3 { margin: 0; font-size: 23px; letter-spacing: -.01em; }
.modal__body .price { font-size: 24px; margin-top: 14px; display: block; }
.modal__body p { color: var(--muted); font-size: 14px; }
.modal__specs { margin: 20px 0 24px; display: grid; gap: 9px; }
.modal__specs div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.modal__specs span:first-child { color: var(--dim); flex: 0 0 auto; white-space: nowrap; }
.modal__specs span:last-child { font-family: var(--mono); color: var(--text); text-align: right; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: background .25s, transform .25s;
  z-index: 2;
}
.modal__close:hover { background: rgba(219, 39, 119, .12); transform: rotate(90deg); }

/* ---------- 滚动出现 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 130px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; max-width: min(520px, 100%); }
  .nav__inner { gap: 14px; }
  .hero__sub, .section__desc { max-width: 100%; }
  .hero__badge { left: auto; right: 12px; bottom: -14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 78px 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 42px 30px; }
  .modal__grid { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    padding: 14px 24px 22px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 15px; }
  .nav__toggle {
    display: grid; place-items: center;
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
  }
  .nav__cta, .logo + .nav__links { margin-left: 0; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .stat__num { font-size: 22px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .modal__body { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 补充规则（必须放最后，靠层叠顺序生效） ---------- */
.card.is-hidden { display: none; }

/* .reveal.is-in 会覆盖 .card:hover 的位移，这里把 hover 抬回来 */
.card.reveal.is-in:hover { transform: translateY(-6px); }

/* 键盘聚焦可见 */
.card:focus-visible,
.filter:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

/* ---------- 产品区末尾：其他面额定制条 ---------- */
.custom-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.custom-note h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.custom-note p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 620px) {
  .custom-note { padding: 20px; }
  .custom-note .btn { width: 100%; }
}

/* =========================================================
   实拍视频区块
   ========================================================= */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.video-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3fa;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
}
.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -26px rgba(15, 23, 42, .26);
}
.video-card:hover img { transform: scale(1.05); }
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .18) 0%, transparent 35%, rgba(15, 23, 42, .58) 100%);
  pointer-events: none;
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .45);
  transition: transform .3s var(--ease);
  z-index: 2;
}
.video-card:hover .video-card__play { transform: scale(1.1); }
.video-card__play svg { width: 20px; height: 20px; fill: var(--c1); margin-left: 3px; }
.video-card__time {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .58);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.video-card__title {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
}

/* ---------- 视频灯箱 ---------- */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .74);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.vmodal.is-open { opacity: 1; visibility: visible; }
.vmodal__box {
  position: relative;
  width: min(960px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .65);
  transform: translateY(14px) scale(.99);
  transition: transform .35s var(--ease);
}
.vmodal.is-open .vmodal__box { transform: none; }
.vmodal video { display: block; width: 100%; max-height: 76vh; background: #000; }
.vmodal__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}
.vmodal__empty {
  display: none;
  padding: 56px 24px;
  text-align: center;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.8;
  font-family: var(--mono);
}
.vmodal__empty b { color: #fff; }
.vmodal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(15, 23, 42, .55);
  color: #fff;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.vmodal__close:hover { background: rgba(15, 23, 42, .85); transform: rotate(90deg); }

@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-card { aspect-ratio: 16 / 11; }
}

/* =========================================================
   硬气文案块（深色面板）
   ========================================================= */
.straight-talk {
  position: relative;
  padding: 46px 48px 44px 52px;
  border-radius: 24px;
  background: #0f172a;
  color: #e8eef8;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(15, 23, 42, .55);
}
.straight-talk::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c1), var(--c2) 50%, var(--c3));
}
.straight-talk::after {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .30), transparent 70%);
  pointer-events: none;
}
.straight-talk__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: #fff;
}
.straight-talk p.straight-talk__lead {
  position: relative;
  z-index: 1;
  margin: 22px 0 20px;
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.straight-talk p.straight-talk__lead b { color: #fbbf24; }
.straight-talk p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #c3cfdf;
  max-width: 46em;
}
p.straight-talk p.straight-talk__lead b { color: #fbbf24; }
.straight-talk p b { color: #fff; }
.straight-talk__end {
  margin: 24px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #fff !important;
  font-weight: 700;
  font-size: 17px !important;
}
@media (max-width: 620px) {
  .straight-talk { padding: 32px 24px 30px 28px; }
  .straight-talk p { font-size: 14.5px; }
}

/* ---------- 首屏硬气文案 ---------- */
.hero__talk { margin: 26px 0 0; max-width: 35em; }
.hero__talk p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.hero__talk p b { color: var(--text); }
.hero__talk p.hero__talk-lead {
  margin-bottom: 16px;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}
.hero__talk p.hero__talk-lead b { color: #b45309; }
.hero__talk p.hero__talk-end {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 620px) {
  .hero__talk p { font-size: 14.5px; }
  .hero__talk p.hero__talk-lead { font-size: 16px; }
}

/* 首屏右侧：纸飞机主页截图（竖图，按原比例显示） */
.hero__card img.hero__shot {
  aspect-ratio: 900 / 1008;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 980px) {
  .hero__card img.hero__shot { max-height: 520px; object-position: top center; }
}

/* =========================================================
   全屏平铺水印（透明、倾斜、不挡点击）
   ========================================================= */
.wm-layer {
  position: fixed;
  inset: 0;
  z-index: 900;   /* 高于详情弹窗(200)和视频灯箱(210)，打开后也有水印 */
  pointer-events: none;
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 320px 180px;
}
@media (max-width: 620px) {
  .wm-layer { background-size: 250px 140px; }
}

/* =========================================================
   顶部悬浮购买提示条（滚动时一直固定在屏幕顶部）
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  box-shadow: 0 8px 26px -14px rgba(15, 23, 42, .6);
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar b { font-weight: 800; }

/* 导航、内容整体下移，给悬浮条让位 */
.nav { top: 40px; }
.hero { padding-top: 208px; }
html { scroll-padding-top: 132px; }

@media (max-width: 980px) {
  .nav__links { top: 112px; }
  .hero { padding-top: 172px; }
}
@media (max-width: 620px) {
  .topbar { font-size: 12.5px; min-height: 38px; }
}

/* =========================================================
   真实化改造：去渐变、去发光、去大圆角、压紧排版
   ========================================================= */
:root {
  --c1: #c62828;
  --c2: #8e1c1c;
  --c3: #c62828;
  --grad: linear-gradient(90deg, #c62828, #a51f1f);
  --line: #e4e7eb;
  --line-strong: #cdd2d9;
  --text: #17191d;
  --muted: #555b64;
  --dim: #8b9199;
  --radius: 6px;
}

body::before { background: #f7f8fa; }
body::after {
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: none; -webkit-mask-image: none;
  opacity: .55;
}

h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.01em; }
.grad-text {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; color: var(--text);
}
h2 { font-size: clamp(21px, 2.2vw, 27px); }
.section { padding: 58px 0; }
.section__head { margin-bottom: 26px; }
.section__tag { color: #c62828; letter-spacing: .04em; font-size: 12px; font-weight: 600; }
.section__desc { font-size: 14px; }

.btn { border-radius: 4px; padding: 10px 20px; font-size: 14px; box-shadow: none !important; }
.btn:hover { transform: none; background: #f2f3f5; border-color: var(--line-strong); }
.btn--primary { background: #c62828; color: #fff; border: none; }
.btn--primary:hover { background: #a51f1f; }
.btn--ghost { background: #fff; border: 1px solid var(--line-strong); }

.topbar { background: #17191d; box-shadow: none; font-size: 13px; font-weight: 500; letter-spacing: 0; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.card::after { display: none; }
.card:hover, .card.reveal.is-in:hover {
  transform: none; border-color: #b9c0c9; box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.card__media img, .card:hover .card__media img { transform: none; }
.card__tag {
  background: #fff; border: 1px solid var(--line-strong); color: #c62828;
  border-radius: 3px; letter-spacing: 0; font-weight: 600;
}
.card__more { color: var(--muted); }
.price { color: #c62828; font-size: 19px; }

.hero { padding-top: 158px; padding-bottom: 36px; }
.hero__card { border-radius: 6px; animation: none; box-shadow: 0 1px 10px rgba(0,0,0,.08); background: #fff; }
.hero__talk p { font-size: 14.5px; line-height: 1.85; }
.eyebrow { border-radius: 3px; }

.feature { background: #fff; border-radius: 6px; }
.feature:hover { transform: none; background: #fff; border-color: #b9c0c9; }
.feature__icon { border-radius: 6px; background: #faf0f0; border-color: #f0d6d6; }
.feature__icon svg { stroke: #c62828; }

.table-wrap { border-radius: 6px; background: #fff; }
th { background: #f3f4f6; color: var(--muted); letter-spacing: 0; }
td b { color: #c62828; }

.marquee { background: #fff; }
.marquee__item { color: var(--muted); letter-spacing: .04em; }
.footer { background: #fff; }
.wm-layer { opacity: 1; }

/* ---------- 公告条 ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 20px; padding: 12px 16px;
  background: #fdf3f3; border: 1px solid #f1d5d5; border-left: 3px solid #c62828;
  border-radius: 4px;
}
.notice p { margin: 0; font-size: 13.5px; color: #7a2a2a; line-height: 1.7; }
.notice b { color: #c62828; }
.notice__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #c62828;
  margin-top: 7px; flex: 0 0 auto; animation: pulse 2s ease-in-out infinite;
}

/* ---------- 交易须知 ---------- */
.rules { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.rules__list {
  margin: 0; padding: 22px 24px 22px 44px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; color: var(--muted); line-height: 1.9;
}
.rules__list li { margin-bottom: 8px; }
.rules__list li:last-child { margin-bottom: 0; }
.rules__list b { color: var(--text); display: inline-block; min-width: 52px; }
.faq { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.faq h3 { margin: 0 0 14px; font-size: 15px; }
.faq dt { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 12px; }
.faq dt::before { content: "Q "; color: #c62828; font-family: var(--mono); }
.faq dd { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.faq dd::before { content: "A "; color: var(--dim); font-family: var(--mono); }

@media (max-width: 980px) {
  .rules { grid-template-columns: 1fr; }
}

/* =========================================================
   去掉滚动淡入动画：内容直接显示，不做逐个弹出
   ========================================================= */
.reveal,
.reveal.is-in,
.card,
.card.is-in {
  opacity: 1 !important;
  transform: none !important;
  transition: border-color .2s, box-shadow .2s !important;
}

/* =========================================================
   进场公告弹窗（每次打开都要手动关闭）
   ========================================================= */
body.is-locked { overflow: hidden; }

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.notice-modal.is-open { opacity: 1; visibility: visible; }

.notice-modal__box {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 30px 32px 26px;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #c62828;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.notice-modal__box h3 {
  margin: 0 0 16px;
  font-size: 21px;
  letter-spacing: -.01em;
  color: #17191d;
}
.notice-modal__box p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #4a5058;
}
.notice-modal__hl {
  margin: 18px 0 20px !important;
  padding: 12px 14px;
  background: #fdf3f3;
  border-left: 3px solid #c62828;
  border-radius: 4px;
  color: #17191d !important;
  font-weight: 600;
}
.notice-modal__hl b { color: #c62828; }
.notice-modal .btn { width: 100%; }

@media (max-width: 620px) {
  .notice-modal__box { padding: 24px 20px 20px; }
  .notice-modal__box h3 { font-size: 18px; }
  .notice-modal__box p { font-size: 13.5px; }
}

/* 倒计时期间按钮禁用样式 */
.notice-modal .btn:disabled,
.notice-modal .btn:disabled:hover {
  background: #b9bec6;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

/* 去掉大标题后，首屏文案块上移留白 */
.hero__talk { margin-top: 22px; }

/* =========================================================
   纸飞机私信弹窗（扫码）
   ========================================================= */
.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;              /* 高于水印和各弹窗，保证二维码干净可扫 */
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 14, .82);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.tg-modal.is-open { opacity: 1; visibility: visible; }

.tg-modal__box {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 0 0 18px;
  background: #12151b;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.tg-modal__head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #c62828;
  border-radius: 9px 9px 0 0;
}
.tg-modal__head h3 {
  margin: 0;
  font-size: 19px;
  color: #fff;
  letter-spacing: .04em;
}
.tg-modal__head p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  font-family: var(--mono);
}
.tg-modal img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 18px auto 4px;
  border-radius: 6px;
}
.tg-modal__tip {
  margin: 6px 16px 14px;
  font-size: 13px;
  color: #9ba3b0;
  line-height: 1.7;
}
.tg-modal__tip b { color: #fff; }
.tg-modal .btn { width: calc(100% - 40px); margin: 0 auto; }
.tg-modal__x {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.tg-modal__x:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 620px) {
  .tg-modal__head h3 { font-size: 17px; }
  .tg-modal img { max-width: 300px; }
}

/* =========================================================
   红色提示条（替代原来的滚动跑马灯）
   ========================================================= */
.red-strip {
  background: #c62828;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 16px;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .red-strip { font-size: 13px; padding: 12px 12px; letter-spacing: .02em; }
}

/* =========================================================
   在线付款区块
   ========================================================= */
.pay {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.pay__left, .pay__right {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}
.pay__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pay__tiers button {
  padding: 8px 14px;
  font-size: 13.5px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
}
.pay__tiers button:hover { border-color: #c62828; color: #c62828; }
.pay__tiers button.is-active {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
  font-weight: 700;
}
.pay__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.pay__amount span { font-size: 13px; color: var(--dim); }
.pay__amount strong {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
  color: #c62828;
  letter-spacing: -.02em;
}
.pay__amount em { font-style: normal; font-size: 14px; color: #c62828; font-weight: 700; }
.pay__amount small { width: 100%; font-size: 12.5px; color: var(--dim); margin-top: 6px; }

.pay__label { font-size: 12.5px; color: var(--dim); margin-bottom: 8px; letter-spacing: .02em; }
.pay__addr {
  display: block;
  word-break: break-all;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  background: #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
}
.pay__right .btn { width: 100%; }
.pay__tip { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.pay__tip b { color: #c62828; }
.pay__ok { color: #0f7b3f !important; font-weight: 700; }

@media (max-width: 980px) {
  .pay { grid-template-columns: 1fr; }
  .pay__amount strong { font-size: 32px; }
}

/* ---------- 纸飞机弹窗：整体压缩到一屏内，不用滚动 ---------- */
.tg-modal__box {
  max-height: 92vh;
  padding-bottom: 14px;
}
.tg-modal__head {
  padding: 14px 18px 10px;
}
.tg-modal__head h3 { font-size: 17px; }
.tg-modal__head p { font-size: 12px; margin-top: 4px; }
.tg-modal img {
  width: auto;
  max-width: min(300px, 72%);
  max-height: 46vh;
  margin: 12px auto 2px;
  object-fit: contain;
}
.tg-modal__tip {
  margin: 4px 16px 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.tg-modal .btn {
  width: calc(100% - 32px);
  padding: 11px 12px;
  font-size: 14px;
}
@media (max-height: 700px) {
  .tg-modal img { max-height: 40vh; }
  .tg-modal__tip { margin-bottom: 8px; }
}

/* 导航第二个红色按钮（不懂问客服） */
.nav__cta2 { margin-left: 8px; }
@media (max-width: 1080px) {
  .nav__cta2 { display: none; }   /* 窄屏收进汉堡菜单里 */
}

/* 菜单里“不懂问客服”只在窄屏汉堡菜单出现，避免桌面重复 */
.nav__links a.nav-mobile { display: none; }
@media (max-width: 1080px) {
  .nav__links a.nav-mobile { display: block; }
}

/* =========================================================
   备用工具弹窗（没有纸机时）
   ========================================================= */
.alt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 14, .82);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.alt-modal.is-open { opacity: 1; visibility: visible; }

.alt-modal__box {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 34px 28px 22px;
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid #c62828;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.alt-modal__warn {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 700;
  color: #c62828;
}
.alt-modal__list { margin-bottom: 26px; }
.alt-modal__list span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #17191d;
  letter-spacing: .08em;
  padding: 14px 0;
  border-bottom: 1px dashed #e4e7eb;
}
.alt-modal__list span:last-child { border-bottom: none; }
.alt-modal .btn { width: 100%; }
.alt-modal__x {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: #f0f1f3;
  color: #555b64;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.alt-modal__x:hover { background: #e2e4e8; }

@media (max-width: 620px) {
  .alt-modal__box { padding: 28px 20px 18px; }
  .alt-modal__warn { font-size: 14.5px; }
  .alt-modal__list span { font-size: 21px; }
}

/* 海鸥 / 蝙蝠：红色可点击 */
.alt-modal__list a.alt-modal__item {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: .08em;
  padding: 16px 0;
  margin: 0;
  text-decoration: none;
  border-bottom: 1px dashed #e4e7eb;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.alt-modal__list a.alt-modal__item:last-child { border-bottom: none; }
.alt-modal__list a.alt-modal__item:hover {
  background: #fdf3f3;
  color: #a51f1f;
  text-decoration: underline;
}

/* =========================================================
   两个弹窗改版：套用商品详情弹窗的卡片风格
   ========================================================= */
.tg-modal__box,
.alt-modal__box {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #fff, #f7f9fc);
  box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .42);
  overflow: auto;
}

/* ---------- 纸飞机弹窗：左图右文 ---------- */
.tg-modal__box {
  width: min(760px, 100%);
  max-height: 90vh;
  padding: 0;
  text-align: left;
}
.tg-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tg-modal__media {
  background: #12151b;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}
.tg-modal__media img {
  width: auto;
  max-width: 100%;
  max-height: 56vh;
  border-radius: 8px;
  display: block;
}
.tg-modal__body {
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
}
.tg-modal__body h3 {
  margin: 10px 0 0;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--text);
  text-align: left;
}
.tg-modal__handle {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: #c62828;
}
.tg-modal__desc {
  margin: 12px 0 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.tg-modal__body .btn {
  margin-top: auto;
  width: 100%;
  font-size: 14px;
  padding: 12px 10px;
}
.tg-modal__x {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tg-modal__x:hover { background: #f0f1f3; transform: rotate(90deg); }

/* ---------- 备用工具弹窗 ---------- */
.alt-modal__box {
  width: min(520px, 100%);
  max-height: 88vh;
  padding: 30px 30px 26px;
  text-align: left;
}
.alt-modal__warn {
  margin: 10px 0 22px;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 800;
  color: #c62828;
}
.alt-modal__list { display: grid; gap: 10px; }
.alt-modal__list a.alt-modal__item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: .1em;
  padding: 18px 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  transition: all .18s;
}
.alt-modal__list a.alt-modal__item:hover {
  border-color: #c62828;
  background: #fdf3f3;
  color: #a51f1f;
  text-decoration: none;
}
.alt-modal__x {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.alt-modal__x:hover { background: #f0f1f3; transform: rotate(90deg); }
.alt-modal__box .section__tag { display: inline-block; }

/* ---------- 手机端：改成上下结构 ---------- */
@media (max-width: 760px) {
  .tg-modal__grid { grid-template-columns: 1fr; }
  .tg-modal__media {
    border-radius: 22px 22px 0 0;
    padding: 12px;
  }
  .tg-modal__media img { max-height: 34vh; }
  .tg-modal__body { padding: 20px 20px 22px; }
  .tg-modal__body h3 { font-size: 18px; }
  .tg-modal__handle { font-size: 15px; }
  .tg-modal__desc { margin: 8px 0 16px; }
  .alt-modal__box { padding: 24px 20px 20px; }
  .alt-modal__warn { font-size: 16px; }
  .alt-modal__list a.alt-modal__item { font-size: 18px; padding: 15px 0; }
}

/* 这两个弹窗不要过渡动画：避免可见性判定卡在中间态 */
.tg-modal,
.alt-modal {
  transition: none !important;
}
.tg-modal.is-open,
.alt-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}
.tg-modal:not(.is-open),
.alt-modal:not(.is-open) {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* =========================================================
   水印层级 + 弹窗磨砂
   ========================================================= */
/* 页面水印降到所有弹窗之下，弹窗一开它跟着被磨砂 */
.wm-layer { z-index: 150 !important; }

/* 各弹窗遮罩统一做磨砂）
.notice-modal { backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.modal        { backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.vmodal       { backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.tg-modal     { backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.alt-modal    { backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }

/* 图片/视频弹窗内部单独补水印，保证截图还是带水印的 */
.modal__media { position: relative; }
.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 320px 180px;
  opacity: .9;
}
.vmodal__box { position: relative; }
.vmodal__box::after {
  content: "";
  position: absolute;
  inset: 0 0 56px 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 320px 180px;
  opacity: .9;
}

/* =========================================================
   纸飞机弹窗 / 海鸥蝙蝠弹窗：磨砂背景 + 内部水印
   ========================================================= */
.tg-modal,
.alt-modal {
  background: rgba(8, 10, 14, .55) !important;   /* 不再一味压黑，让磨砂透出来 */
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

.tg-modal__box,
.alt-modal__box { position: relative; }

.tg-modal__box::after,
.alt-modal__box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 22px;
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 280px 158px;
  opacity: .85;
}

/* 内容压在正常层，水印浮在上面；关闭按钮最高 */
.tg-modal__grid,
.alt-modal__box > *:not(::after) { position: relative; z-index: 1; }
.tg-modal__x, .alt-modal__x { z-index: 5; }

/* =========================================================
   备用工具弹窗 v2：两张卡片并排 + 图标
   ========================================================= */
.alt-modal__box {
  width: min(520px, 100%);
  padding: 0 0 22px;
  text-align: left;
  overflow: hidden;
}

.alt-head {
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}
.alt-head__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  background: #fdf3f3;
  border: 1px solid #f1d5d5;
  color: #c62828;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.alt-head h3 {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.alt-head p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.alt-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 22px 4px;
}
a.alt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
a.alt-item:hover {
  border-color: #c62828;
  box-shadow: 0 14px 30px -16px rgba(198, 40, 40, .55);
  transform: translateY(-2px);
  text-decoration: none;
}
.alt-item__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fdf3f3;
  color: #c62828;
  margin-bottom: 2px;
}
.alt-item__icon svg { width: 26px; height: 26px; display: block; }
.alt-item__name {
  font-size: 18px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: .1em;
}
.alt-item__desc {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .02em;
}
a.alt-item:hover .alt-item__name { color: #a51f1f; }

.alt-foot {
  margin: 16px 22px 0;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.alt-modal__x { top: 12px; right: 12px; }

@media (max-width: 560px) {
  .alt-head { padding: 22px 18px 16px; }
  .alt-head h3 { font-size: 17px; }
  .alt-list { padding: 16px 16px 2px; gap: 10px; }
  a.alt-item { padding: 16px 8px 14px; }
  .alt-item__name { font-size: 16px; }
  .alt-item__icon { width: 40px; height: 40px; }
  .alt-item__icon svg { width: 22px; height: 22px; }
}

/* =========================================================
   海鸥下载弹窗
   ========================================================= */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 14, .55);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: none !important;
}
.dl-modal.is-open { opacity: 1 !important; visibility: visible !important; }

.dl-modal__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .45);
  padding: 0 0 18px;
}
.dl-modal__box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 22px;
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 280px 158px;
  opacity: .85;
}
.dl-head { position: relative; z-index: 3; }

.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}
.dl-head__icon {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fdf3f3;
  color: #c62828;
}
.dl-head__icon svg { width: 26px; height: 26px; }
.dl-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.dl-head p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.dl-list {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 18px 22px 0;
}
a.dl-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
a.dl-item:hover {
  border-color: #c62828;
  box-shadow: 0 14px 30px -16px rgba(198, 40, 40, .5);
  transform: translateY(-2px);
  text-decoration: none;
}
.dl-item__tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.dl-item__tag--alt {
  background: #f0f1f3;
  color: #555b64;
}
.dl-item__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.dl-item__host {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
a.dl-item--primary .dl-item__host { color: #c62828; }
.dl-item__go {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--muted);
  transition: background .18s, color .18s, transform .18s;
}
a.dl-item:hover .dl-item__go {
  background: #c62828;
  color: #fff;
  transform: translateX(2px);
}

.dl-tip {
  position: relative;
  z-index: 3;
  margin: 14px 22px 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.7;
}

.dl-modal__x {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dl-modal__x:hover { background: #f0f1f3; transform: rotate(90deg); }

@media (max-width: 520px) {
  .dl-head { padding: 20px 18px 14px; }
  .dl-head h3 { font-size: 17px; }
  .dl-list { padding: 14px 16px 0; }
  .dl-item__host { font-size: 13.5px; }
}

/* ---------- 海鸥弹窗：下一步 / 第二步 ---------- */
.dl-actions {
  position: relative;
  z-index: 3;
  padding: 16px 22px 0;
}
.dl-actions .btn { width: 100%; }

.dl-step2 {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #fff;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
}
.dl-modal__box.is-step2 .dl-step2 { display: flex; }
.dl-modal__box.is-step2 .dl-head,
.dl-modal__box.is-step2 .dl-list,
.dl-modal__box.is-step2 .dl-tip,
.dl-modal__box.is-step2 .dl-actions { visibility: hidden; }

.dl-step2__body { padding: 30px 26px; text-align: center; }
.dl-step2__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #c62828;
}
.dl-step2__body h4 {
  margin: 8px 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.dl-step2__desc {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.dl-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
  padding: 14px 16px;
  border: 1px dashed #f1d5d5;
  background: #fdf3f3;
  border-radius: 10px;
}
.dl-id__label { font-size: 12px; color: #a3595b; }
.dl-id__val {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 800;
  color: #c62828;
  word-break: break-all;
}
.dl-step2 .btn { width: 100%; margin-top: 18px; }

/* ---------- 苹果手机提示弹窗 ---------- */
.ios-list {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 18px 22px 0;
}
.ios-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
.ios-item__num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: .06em;
}
.ios-item__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .02em;
}
.ios-tip {
  position: relative;
  z-index: 3;
  margin: 14px 22px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
}
@media (max-width: 520px) {
  .ios-list { padding: 14px 16px 0; }
  .ios-item { padding: 14px 14px; }
  .ios-item__name { font-size: 15px; }
}

/* 苹果弹窗：现在购买按钮 */
.ios-actions {
  position: relative;
  z-index: 3;
  padding: 16px 22px 0;
}
.ios-actions .btn { width: 100%; }
@media (max-width: 520px) {
  .ios-actions { padding: 14px 16px 0; }
}

/* 苹果弹窗：购买链接 */
.ios-actions .btn {
  width: 100%;
  text-decoration: none;
  display: block;
  text-align: center;
}
a.ios-actions-btn:hover { text-decoration: none; }
.ios-site {
  margin: 9px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .04em;
}

/* ---------- 苹果弹窗第二步 ---------- */
.ios-step2 {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #fff;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
}
.dl-modal__box.is-ios2 .ios-step2 { display: flex; }
.dl-modal__box.is-ios2 .dl-head,
.dl-modal__box.is-ios2 .ios-list,
.dl-modal__box.is-ios2 .ios-actions,
.dl-modal__box.is-ios2 .ios-tip { visibility: hidden; }

.ios-step2__body { padding: 32px 26px; text-align: center; }
.ios-step2__label {
  display: inline-block;
  font-size: 12px;
  color: #a3595b;
  letter-spacing: .08em;
}
.ios-step2__link {
  display: block;
  margin: 10px 0 4px;
  padding: 16px 14px;
  border: 1px dashed #f1d5d5;
  background: #fdf3f3;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: #c62828;
  text-decoration: none;
  letter-spacing: .02em;
  word-break: break-all;
}
.ios-step2__link:hover { background: #fbeceb; text-decoration: none; }
.ios-step2__desc {
  margin: 14px 0 18px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}
.ios-step2 .btn { width: 100%; margin-bottom: 10px; }
.ios-step2 .btn:last-child { margin-bottom: 0; }

/* 苹果弹窗：条目补充说明 */
.ios-item__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.ios-item__sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- 苹果弹窗第三步 ---------- */
.ios-step3 {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
}
.dl-modal__box.is-ios3 .ios-step3 { display: flex; }
.dl-modal__box.is-ios3 .dl-head,
.dl-modal__box.is-ios3 .ios-list,
.dl-modal__box.is-ios3 .ios-actions,
.dl-modal__box.is-ios3 .ios-tip,
.dl-modal__box.is-ios3 .ios-step2 { visibility: hidden; }

.ios-step3__body { padding: 30px 26px; text-align: center; }
.ios-step3__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #c62828;
}
.ios-step3__body h4 {
  margin: 10px 0 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -.01em;
}
.ios-step3__desc {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.ios-step3 .btn { width: 100%; margin-bottom: 10px; }
.ios-step3 .btn:last-child { margin-bottom: 0; }

/* ---------- 苹果弹窗第四步 ---------- */
.ios-step4 {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
}
.dl-modal__box.is-ios4 .ios-step4 { display: flex; }
.dl-modal__box.is-ios4 .dl-head,
.dl-modal__box.is-ios4 .ios-list,
.dl-modal__box.is-ios4 .ios-actions,
.dl-modal__box.is-ios4 .ios-tip,
.dl-modal__box.is-ios4 .ios-step2,
.dl-modal__box.is-ios4 .ios-step3 { visibility: hidden; }

.ios-step4__body { padding: 24px 22px; text-align: left; }
.ios-step4__num {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #c62828;
}
.ios-step4__body h4 {
  margin: 8px 0 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  letter-spacing: -.01em;
}
.ios-step4__list {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}
.ios-step4__list li { margin-bottom: 2px; }
.ios-step4__list b { color: var(--text); }
.ios-step4 .btn { width: 100%; margin-bottom: 10px; }
.ios-step4 .btn:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .ios-step4__body { padding: 20px 16px; }
  .ios-step4__list { font-size: 12.5px; }
}

/* ---------- 苹果弹窗第五步 ---------- */
.dl-modal__box.is-ios5 { width: min(760px, 100%); }

.ios-step5 {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #fff;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}
.dl-modal__box.is-ios5 .ios-step5 { display: flex; }
.dl-modal__box.is-ios5 .dl-head,
.dl-modal__box.is-ios5 .ios-list,
.dl-modal__box.is-ios5 .ios-actions,
.dl-modal__box.is-ios5 .ios-tip,
.dl-modal__box.is-ios5 .ios-step2,
.dl-modal__box.is-ios5 .ios-step3,
.dl-modal__box.is-ios5 .ios-step4 { visibility: hidden; }

.ios-step5__body { padding: 22px 24px; }
.ios-step5__num {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #c62828;
  margin-bottom: 12px;
}
.ios-step5__grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
.ios-step5__methods h5 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ios-step5__methods h5 em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #c62828;
  background: #fdf3f3;
  border: 1px solid #f1d5d5;
  border-radius: 3px;
  padding: 2px 7px;
  letter-spacing: .02em;
}
.ios-step5__methods p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.ios-step5__methods p b { color: #c62828; font-family: var(--mono); }
.ios-step5__qr {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #12151b;
}
.ios-step5__qr img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.ios-step5__qr span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.ios-step5 .btn { width: 100%; }

@media (max-width: 700px) {
  .ios-step5__grid { grid-template-columns: 1fr; }
  .ios-step5__qr { max-width: 220px; margin: 0 auto; }
  .ios-step5__body { padding: 18px 16px; }
}

/* 三张系统卡：桌面三列 */
.alt-list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) {
  .alt-list { grid-template-columns: 1fr; }
}

/* 鸿蒙弹窗补充说明 */
.harmony-note {
  position: relative;
  z-index: 3;
  margin: 16px 22px 0;
  padding: 14px 16px;
  border: 1px dashed #f1d5d5;
  background: #fdf3f3;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #a3595b;
  text-align: center;
}

/* 苹果/安卓两种模式的切换 */
.dl-modal__box .and-only { display: none; }
.dl-modal__box .ios-only { display: inline; }
.dl-modal__box.is-android .and-only { display: inline; }
.dl-modal__box.is-android .ios-only { display: none; }
.dl-modal__box.is-android .ios-item--apple { display: none; }
.dl-head__icon .ios-only,
.dl-head__icon .and-only { display: block; }
.dl-modal__box.is-android .dl-head__icon .ios-only { display: none; }
.dl-modal__box.is-android .dl-head__icon .and-only { display: block; }

/* =========================================================
   弹窗按屏幕高度自适应：不出现上下滚动
   ========================================================= */
.dl-modal__box,
.tg-modal__box,
.alt-modal__box,
.notice-modal__box {
  max-height: 94vh;
}

/* 中等高度屏幕：收紧间距 */
@media (max-height: 860px) {
  .dl-head { padding: 18px 20px 14px; }
  .dl-head__icon { width: 40px; height: 40px; }
  .dl-head__icon svg { width: 22px; height: 22px; }
  .dl-head h3 { font-size: 17px; }
  .ios-list { padding: 14px 20px 0; gap: 8px; }
  .ios-item { padding: 13px 16px; }
  .ios-actions { padding: 14px 20px 0; }
  .ios-step2__body,
  .ios-step3__body,
  .ios-step4__body { padding: 22px 20px; }
  .ios-step5__body { padding: 18px 20px; }
  .ios-step5__grid { grid-template-columns: 1fr 180px; gap: 16px; }
  .ios-step5__body h5 { font-size: 14px; }
  .ios-step5__methods p { font-size: 12.5px; margin-bottom: 12px; }
}

/* 矮屏（笔记本 1366×768 / 720P）：进一步压缩 */
@media (max-height: 740px) {
  .dl-head { padding: 14px 18px 11px; }
  .dl-head__icon { width: 36px; height: 36px; }
  .dl-head__icon svg { width: 20px; height: 20px; }
  .dl-head h3 { font-size: 16px; }
  .dl-head p { font-size: 11.5px; margin-top: 3px; }
  .ios-list { padding: 12px 18px 0; gap: 7px; }
  .ios-item { padding: 11px 14px; }
  .ios-item__name { font-size: 14.5px; }
  .ios-item__sub { font-size: 11.5px; }
  .ios-actions { padding: 12px 18px 0; }
  .ios-actions .btn, .ios-step2 .btn, .ios-step3 .btn, .ios-step4 .btn, .ios-step5 .btn {
    padding: 10px 12px; font-size: 13.5px;
  }
  .ios-step2__body, .ios-step3__body, .ios-step4__body { padding: 16px 18px; }
  .ios-step3__body h4, .ios-step4__body h4 { font-size: 16px; margin: 6px 0 10px; }
  .ios-step3__desc, .ios-step4__list { font-size: 12.5px; line-height: 1.8; }
  .ios-step4__list { margin-bottom: 12px; }
  .ios-step5__body { padding: 14px 16px; }
  .ios-step5__num { margin-bottom: 8px; }
  .ios-step5__grid { grid-template-columns: 1fr 165px; gap: 14px; margin-bottom: 12px; }
  .ios-step5__methods h5 { font-size: 13.5px; margin-bottom: 4px; }
  .ios-step5__methods p { font-size: 12px; line-height: 1.75; margin-bottom: 10px; }
  .ios-step2__link { font-size: 17px; padding: 12px; }
  .tg-modal__media img { max-height: 48vh; }
}

/* 极矮屏（手机横屏）：再压一档 */
@media (max-height: 620px) {
  .dl-head { padding: 12px 16px 9px; }
  .ios-step5__grid { grid-template-columns: 1fr 140px; }
  .ios-step5__methods p { font-size: 11.5px; line-height: 1.7; }
  .ios-step4__list { font-size: 12px; line-height: 1.7; }
}

/* 每一步自己内部滚动，外层弹窗不再出现滚动条 */
.ios-step2, .ios-step3, .ios-step4, .ios-step5 { overflow: auto; }
.dl-modal__box { scrollbar-width: none; -ms-overflow-style: none; }
.dl-modal__box::-webkit-scrollbar { width: 0; height: 0; }

@media (max-height: 740px) {
  .dl-modal__box { padding-bottom: 12px; }
  .ios-step5__qr span { margin-top: 5px; font-size: 11.5px; }
}

/* =========================================================
   步骤页改为正常流布局：弹窗高度跟着当前步骤走，不出现滚动
   ========================================================= */
.ios-step2, .ios-step3, .ios-step4, .ios-step5 {
  position: static !important;
  inset: auto !important;
  overflow: visible !important;
  display: none !important;
}
.dl-modal__box.is-ios2 .ios-step2,
.dl-modal__box.is-ios3 .ios-step3,
.dl-modal__box.is-ios4 .ios-step4,
.dl-modal__box.is-ios5 .ios-step5 { display: block !important; }

.dl-modal__box.is-ios2 > .dl-head,
.dl-modal__box.is-ios2 > .ios-list,
.dl-modal__box.is-ios2 > .ios-actions,
.dl-modal__box.is-ios2 > .ios-tip,
.dl-modal__box.is-ios3 > .dl-head,
.dl-modal__box.is-ios3 > .ios-list,
.dl-modal__box.is-ios3 > .ios-actions,
.dl-modal__box.is-ios3 > .ios-tip,
.dl-modal__box.is-ios4 > .dl-head,
.dl-modal__box.is-ios4 > .ios-list,
.dl-modal__box.is-ios4 > .ios-actions,
.dl-modal__box.is-ios4 > .ios-tip,
.dl-modal__box.is-ios5 > .dl-head,
.dl-modal__box.is-ios5 > .ios-list,
.dl-modal__box.is-ios5 > .ios-actions,
.dl-modal__box.is-ios5 > .ios-tip { display: none !important; }

.ios-step2__body, .ios-step3__body, .ios-step4__body { padding: 26px 24px; }
.ios-step5__body { padding: 20px 24px; }
@media (max-height: 740px) {
  .ios-step2__body, .ios-step3__body, .ios-step4__body { padding: 18px 18px; }
  .ios-step5__body { padding: 14px 16px; }
}

/* 第三步红色警告 */
.ios-step3__warn {
  margin: 10px 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: .03em;
}
@media (max-height: 740px) {
  .ios-step3__warn { font-size: 13.5px; margin: 8px 0 12px; }
}

/* =========================================================
   教程步骤列表（mini-steps）
   ========================================================= */
.mini-steps {
  counter-reset: ms;
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  text-align: left;
}
.mini-steps li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--muted);
  counter-increment: ms;
}
.mini-steps li:last-child { margin-bottom: 0; }
.mini-steps li::before {
  content: counter(ms);
  position: absolute;
  left: 0; top: 2px;
  width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fdf3f3;
  border: 1px solid #f1d5d5;
  color: #c62828;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
}
.mini-steps li b { color: var(--text); font-weight: 700; }

@media (max-height: 740px) {
  .mini-steps { margin: 10px 0 12px; }
  .mini-steps li { font-size: 11.8px; line-height: 1.65; margin-bottom: 7px; }
  .mini-steps li::before { width: 15px; height: 15px; font-size: 9.5px; top: 1px; }
}

/* 第一步：清单说明 + 邮箱提醒 */
.ios-item { align-items: flex-start; flex-wrap: wrap; }
.ios-item__desc {
  flex: 1 0 100%;
  margin-top: 5px;
  padding-left: 30px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  text-align: left;
}
.ios-item__desc b { color: var(--text); }

.ios-note {
  position: relative;
  z-index: 3;
  margin: 14px 20px 0;
  padding: 13px 16px 14px;
  background: #fdf3f3;
  border: 1px solid #f1d5d5;
  border-left: 3px solid #c62828;
  border-radius: 6px;
  text-align: left;
}
.ios-note__tag {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #c62828;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ios-note p {
  margin: 0 0 6px;
  font-size: 12.2px;
  line-height: 1.7;
  color: #7a2a2a;
}
.ios-note p:last-child { margin-bottom: 0; }
.ios-note b { color: #c62828; }

@media (max-height: 740px) {
  .ios-note { margin: 10px 16px 0; padding: 10px 12px 11px; }
  .ios-note p { font-size: 11.5px; line-height: 1.6; }
  .ios-item__desc { font-size: 11.5px; margin-top: 3px; }
}

/* ---------- 苹果弹窗：如何下载纸飞机（第 4.5 步） ---------- */
.ios-step45 {
  position: static !important;
  display: none !important;
}
.dl-modal__box.is-ios45 .ios-step45 { display: block !important; }
.dl-modal__box.is-ios45 > .dl-head,
.dl-modal__box.is-ios45 > .ios-list,
.dl-modal__box.is-ios45 > .ios-actions,
.dl-modal__box.is-ios45 > .ios-tip,
.dl-modal__box.is-ios45 .ios-step2,
.dl-modal__box.is-ios45 .ios-step3,
.dl-modal__box.is-ios45 .ios-step4,
.dl-modal__box.is-ios45 .ios-step5 { display: none !important; }

.ios-step45__body { padding: 26px 24px; text-align: left; }
.ios-step45__body .ios-step4__num { display: block; text-align: center; }
.ios-step45__body h4 {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  letter-spacing: -.01em;
}
.ios-step45 .btn { width: 100%; margin-bottom: 10px; }
.ios-step45 .btn:last-child { margin-bottom: 0; }

@media (max-height: 740px) {
  .ios-step45__body { padding: 16px 18px; }
  .ios-step45__body h4 { font-size: 15.5px; margin: 4px 0 10px; }
  .ios-step45 .btn { margin-bottom: 8px; }
}

/* ---------- 安卓版：纸飞机网页版提示页 ---------- */
.and-step45 { display: none !important; }
.dl-modal__box.is-android.is-ios45 .and-step45 { display: block !important; }
.dl-modal__box.is-android.is-ios45 .ios-step45 { display: none !important; }

.and-step45__body { padding: 24px 22px; text-align: left; }
.and-step45__body .ios-step4__num { display: block; text-align: center; }
.and-step45__body h4 {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  letter-spacing: -.01em;
}
.and-step45__warn {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fdf3f3;
  border-left: 3px solid #c62828;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7a2a2a;
  font-weight: 700;
}
.and-step45__desc {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.and-step45__link {
  display: block;
  margin: 0 0 14px;
  padding: 12px;
  text-align: center;
  border: 1px dashed #f1d5d5;
  background: #fdf3f3;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #c62828;
  text-decoration: none;
  word-break: break-all;
}
.and-step45__link:hover { background: #fbeceb; text-decoration: none; }
.and-step45 .btn { width: 100%; margin-bottom: 10px; }
.and-step45 .btn:last-child { margin-bottom: 0; }

@media (max-height: 740px) {
  .and-step45__body { padding: 16px 18px; }
  .and-step45__body h4 { font-size: 15.5px; margin: 4px 0 10px; }
  .and-step45__warn { font-size: 11.5px; padding: 8px 10px; }
  .and-step45__link { padding: 10px; font-size: 13px; margin-bottom: 10px; }
  .and-step45 .btn { margin-bottom: 8px; }
}

/* 教程链接提示 */
.tut-link {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
  text-align: center;
}
.tut-link a {
  color: #c62828;
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tut-link a:hover { color: #a51f1f; }

@media (max-height: 740px) {
  .tut-link { font-size: 11px; margin-bottom: 9px; }
}

/* 首屏：全国面交地图 */
.hero__card img.hero__map {
  aspect-ratio: 1100 / 733;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* 公告上方的地图横幅 */
.map-banner {
  margin: 26px auto 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
.map-banner img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 620px) {
  .map-banner { margin: 18px auto 12px; }
}
