/* ============================================================
   雅垄 App 下载站 — 页面样式
   ============================================================ */

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--header-h);
}

.top__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(20, 26, 29, 0.14);
}

.brand b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.brand em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  line-height: 1.4;
}

.top__link {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.top__link:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

/* ---------------- 首屏 ---------------- */
.hero {
  padding: 48px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}

.eyebrow b {
  padding: 2px 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero__sub {
  margin-top: 18px;
  max-width: 26em;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------------- 下载入口 ---------------- */
.dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.dlbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 196px;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dlbtn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.dlbtn b {
  display: block;
  font-weight: 500;
}

.dlbtn small {
  display: block;
  margin-top: -1px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
}

/* 内测中：禁用态，不伪装成可点 */
.dlbtn--off {
  background: #fff;
  color: var(--ink);
  border: 1px dashed var(--line-2);
  cursor: default;
}

.dlbtn--off small {
  color: var(--ink-3);
}

.dlbtn--off:hover {
  transform: none;
}

.dlbtn--ready {
  background: var(--accent);
}

.dlbtn--ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(15, 124, 99, 0.7);
}

.dl__note {
  margin-top: 14px;
  max-width: 30em;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

.dl__note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(15, 124, 99, 0.3);
}

/* ---------------- 状态 ---------------- */
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-2);
}

.status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C08A2A;
}

.status .is-on i {
  background: var(--accent);
}

/* ---------------- 设备 ---------------- */
.phone {
  position: relative;
  justify-self: center;
}

.phone__glow {
  position: absolute;
  inset: -8% -14% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 124, 99, 0.16), rgba(15, 124, 99, 0) 62%);
  filter: blur(18px);
}

.device {
  position: relative;
  width: 356px;
  height: 700px;
  padding: 11px;
  border-radius: 46px;
  background: #0E1417;
  box-shadow: var(--sh-4);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0B1113;
}

.screen__map {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.screen__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.82);
}

.screen__chips {
  position: absolute;
  inset: 12px 12px auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen__chips span {
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: rgba(10, 16, 18, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.82);
}

.pin {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.pin::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.pin--alt {
  background: rgba(232, 178, 92, 0.94);
}

.pin--alt::after {
  background: #7A4A0C;
}

.sheet {
  position: relative;
  z-index: 4;
  margin-top: -18px;
  padding: 16px 18px 20px;
  background: #fff;
  border-radius: 22px 22px 0 0;
}

.sheet__handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: var(--line);
}

.sheet h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sheet p {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.sheet__kpis {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sheet__kpis div {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.sheet__kpis small {
  display: block;
  margin-top: 1px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.sheet__btn {
  display: grid;
  place-items: center;
  height: 42px;
  margin-top: 14px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------------- 提示条 ---------------- */
.tipband {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--warn-ink);
}

.tipband svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}

/* ---------------- 四件事 ---------------- */
.four {
  padding: 24px 0 20px;
}

.four h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.four__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.f {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.f:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.f__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.f h3 {
  margin: 10px 0 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.four__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.four__more a {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.four__more a:hover {
  border-color: rgba(15, 124, 99, 0.4);
  color: var(--accent);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 64px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 2;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.footer__row + .footer__row {
  margin-top: 6px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer a {
  border-bottom: 1px solid var(--line-2);
}

.site-footer a:hover {
  color: var(--ink-2);
}

/* ---------------- 404 ---------------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 60px 0;
  text-align: center;
}

.notfound__code {
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.notfound h1 {
  margin-top: 16px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.notfound p {
  margin-top: 12px;
  max-width: 26em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}

.notfound__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 手机上先给下载入口，设备图退到按钮之后 */
  .phone {
    order: 2;
    margin-top: 6px;
  }

  .device {
    width: 252px;
    height: 470px;
    padding: 8px;
    border-radius: 36px;
  }

  .screen {
    border-radius: 28px;
  }

  .sheet {
    padding: 12px 14px 16px;
    border-radius: 18px 18px 0 0;
  }

  .sheet__kpis {
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .sheet__btn {
    height: 38px;
    margin-top: 12px;
  }

  .tipband {
    margin-top: 20px;
  }

  .four__grid {
    grid-template-columns: 1fr 1fr;
  }

  .four h2 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 24px;
  }

  .four__grid {
    grid-template-columns: 1fr;
  }

  /* 窄屏下载入口改为整行，避免「App Store 下载」折行 */
  .dl {
    flex-direction: column;
  }

  .dlbtn {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .notfound__code {
    font-size: 54px;
  }
}

/* ============================================================
   实拍验真页
   ============================================================ */
.vf-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

.vf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: clamp(24px, 4vw, 40px);
}

.vf-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.vf-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}

.vf-seal__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  transition: border-color 0.3s;
}

.vf-seal__icon {
  width: 24px;
  height: 24px;
  display: none;
}

.vf-card[data-state="loading"] .vf-seal__icon--qr,
.vf-card[data-state="empty"] .vf-seal__icon--qr {
  display: block;
}

.vf-card[data-state="ok"] .vf-seal__icon--ok {
  display: block;
}

.vf-card[data-state="bad"] .vf-seal__icon--bad {
  display: block;
}

.vf-card[data-state="bad"] .vf-seal {
  background: var(--danger-soft);
  color: var(--danger);
}

.vf-card[data-state="bad"] .vf-seal__ring {
  border-color: var(--danger-line);
}

.vf-card[data-state="loading"] .vf-seal__ring {
  animation: vf-pulse 1.6s ease-in-out infinite;
}

@keyframes vf-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.55;
  }
}

.vf-card__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.vf-card__sub {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 36em;
}

.vf-scan {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1.75;
}

.vf-scan[hidden] {
  display: none;
}

.vf-scan__icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  display: none;
}

.vf-scan__icon--ok {
  display: block;
}

.vf-card[data-state="bad"] .vf-scan {
  background: var(--danger-soft);
  color: var(--danger-ink);
}

.vf-card[data-state="bad"] .vf-scan__icon--ok {
  display: none;
}

.vf-card[data-state="bad"] .vf-scan__icon--bad {
  display: block;
}

.vf-webview {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  font-size: 13.5px;
  line-height: 1.8;
}

.vf-webview[hidden] {
  display: none;
}

.vf-webview__how {
  margin-top: 4px;
  color: #8b6a26;
}

.vf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.vf-actions .btn[hidden] {
  display: none;
}

.vf-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.vf-fallback {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-2);
  background: var(--bg-2);
}

.vf-fallback[hidden] {
  display: none;
}

.vf-fallback__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.vf-fallback__text {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.vf-fallback__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vf-linkbtn {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* 三个步骤 */
.vf-what {
  margin-top: 56px;
}

.vf-what__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.vf-step {
  padding: 22px 26px 4px 0;
  border-right: 1px solid var(--line);
}

.vf-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.vf-step:not(:first-child) {
  padding-left: 26px;
}

.vf-step__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.vf-step__title {
  margin: 10px 0 8px;
  font-size: 15.5px;
  font-weight: 600;
}

.vf-step__desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.vf-what .btn-row {
  margin-top: 24px;
}

/* 问答 */
.vf-faq {
  margin-top: 48px;
}

.faq {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq p {
  padding: 0 2px 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 62ch;
}

@media (max-width: 720px) {
  .vf-wrap {
    padding-top: 32px;
  }

  .vf-card__head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vf-steps {
    grid-template-columns: 1fr;
  }

  .vf-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .vf-step:not(:first-child) {
    padding-left: 0;
  }
}

/* 顶栏品牌链接 */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vf-note--warn {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  font-size: 13px;
}

/* 验真页顶栏与卡片同宽 */
.page-verify .top__inner {
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .vf-actions .btn {
    width: 100%;
  }
}
