:root {
  --ink: #0e1424;
  --ink-soft: #2b3348;
  --paper: #f3f4f6;
  --panel: #fff;
  --panel-solid: #fffdfa;
  --line: rgba(14, 20, 36, 0.1);
  --line-soft: rgba(14, 20, 36, 0.07);
  --muted: #6d7385;
  --accent: #1f6bff;
  --good: #0f9f6e;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(14, 20, 36, 0.04), 0 12px 28px -22px rgba(14, 20, 36, 0.5);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px calc(30px + var(--safe-b));
  overflow-x: hidden;
}

body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* 入场：内容渐显，避免首屏文字跳动 */
.shell {
  opacity: 0;
  transform: translateY(6px);
}

body.is-ready .shell {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  body.is-ready .shell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.ambient {
  display: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.card {
  border: 0;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 8px 28px -20px rgba(15, 23, 42, 0.35);
}

/* ------------------------------ 1. 身份区：可换背景的深色名片 ---------------- */

.identity {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
  padding: 22px 24px 26px;
  border-radius: 28px;
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 16px 40px -24px rgba(8, 12, 24, 0.55);
}

.identity-cover {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
}

.identity-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.22) 100%);
}

.identity-brand,
.identity-copy {
  position: relative;
  z-index: 1;
}

.identity-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.identity-copy h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: #fff;
}

.lede {
  margin: 10px 0 0;
}

.lede p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.lede p + p {
  margin-top: 2px;
}

/* ------------------------------ 2. 通用区块 ----------------------------- */

.block {
  padding: 18px 18px 20px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 28px -20px rgba(15, 23, 42, 0.28);
}

.block h2,
.block-head h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}

.hint {
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.85;
  text-align: right;
}

/* 关于 */
.about p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.about p + p {
  margin-top: 10px;
}

.icon {
  width: 19px;
  height: 19px;
  display: block;
}

.step-body h3 {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-body p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
}

/* ------------------------------ 4. 服务流程 ----------------------------- */

/* 与「常见问题」同款的折叠块：点标题展开 */
.fold > .fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.fold > .fold-head::-webkit-details-marker {
  display: none;
}

.fold > .fold-head:focus-visible {
  outline: 2px solid rgba(14, 20, 36, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.fold-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fold-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.fold[open] .fold-meta .icon {
  transform: rotate(180deg);
}

.fold[open] > .fold-head {
  margin-bottom: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .fold-meta .icon {
    transition: none;
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  animation: fold-in 0.26s ease both;
}

@keyframes fold-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps {
    animation: none;
  }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding: 7px 0 11px;
}

.step + .step {
  padding-top: 11px;
  border-top: 1px dashed var(--line-soft);
}

.step-no {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 2px;
}

/* ------------------------------ 5. 二维码 ------------------------------- */

.qr-frame {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px dashed rgba(14, 20, 36, 0.16);
}

.qr-frame img {
  width: min(72vw, 280px);
  max-height: 420px;
  object-fit: contain;
  display: block;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}

/* ------------------------------ 工位实拍 -------------------------------- */

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shot {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shot:active {
  transform: scale(0.985);
}

.shot:first-child {
  grid-column: 1 / -1;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.shot:first-child img {
  aspect-ratio: 16 / 10;
}

.shot:focus-visible {
  outline: 2px solid rgba(14, 20, 36, 0.45);
  outline-offset: 2px;
}

.shot-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(48px + var(--safe-b));
  background: rgba(14, 20, 36, 0.88);
  cursor: zoom-out;
  overscroll-behavior: none;
  touch-action: pan-y;
}

.shot-view[hidden] {
  display: none;
}

.shot-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}

.shot-view-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + var(--safe-b));
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.qr-switch {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.qr-switch button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #c9ceda;
  padding: 0;
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}

.qr-switch button.is-on {
  background: var(--ink);
  width: 18px;
  border-radius: 999px;
}

/* --------------------- 5b. 联系方式（二维码下方，可复制） --------------- */

.copy-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.copy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  /* 逐行淡入，避免整块突然出现 */
  animation: copy-in 0.34s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 悬停只做很淡的中性变化，不用彩色描边 */
.copy-item:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(14, 20, 36, 0.14);
}

.copy-item:active {
  transform: scale(0.99);
  background: rgba(14, 20, 36, 0.05);
}

/* 键盘导航才出现描边，用中性深色，不要蓝色 */
.copy-item:focus-visible {
  outline: 2px solid rgba(14, 20, 36, 0.45);
  outline-offset: 2px;
}

/* 图标 + 号码同排 */
.copy-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.copy-ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: #5c6b8a;
}

.copy-tag {
  flex: none;
  margin-left: -4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(92, 107, 138, 0.12);
  color: #5c6b8a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy-value {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.copy-item:hover .copy-value {
  color: var(--ink);
}

/* 复制成功：整行轻轻亮一下 */
.copy-item.is-copied {
  animation: copied 0.5s ease;
}

@keyframes copied {
  0% {
    background: rgba(14, 20, 36, 0.05);
  }
  100% {
    background: rgba(255, 255, 255, 0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-item,
  .copy-item.is-copied {
    animation: none;
    transition: none;
  }
}

/* ------------------------------ 6. 服务信息 ----------------------------- */

.info {
  margin: 0;
  display: grid;
  gap: 2px;
}

.info-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row dt {
  font-size: 12.5px;
  color: var(--muted);
}

.info-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ------------------------------ 7. 常见问题 ----------------------------- */

.faq {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 14px;
  font-size: 13.8px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

.faq-item summary .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 13px 13px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ------------------------------ 页脚 / 提示 ----------------------------- */

.foot {
  text-align: center;
  padding: 6px 4px 2px;
}

.foot p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.foot-meta {
  margin-top: 5px !important;
  opacity: 0.7;
}

.foot .dot {
  margin: 0 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-b));
  transform: translateX(-50%) translateY(10px);
  z-index: 40;
  max-width: 84vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 20, 36, 0.92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------------------------------ 小屏微调 -------------------------------- */

@media (max-width: 360px) {
  body {
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px calc(26px + var(--safe-b));
  }

  .identity {
    min-height: 168px;
    padding: 18px 18px 22px;
    border-radius: 24px;
  }

  .identity-copy h1 {
    font-size: 28px;
  }

  .copy-list {
    margin-top: 12px;
    padding-top: 12px;
  }

  .copy-item {
    gap: 8px;
    padding: 10px;
  }

  .info-row {
    grid-template-columns: 68px 1fr;
  }
}
