:root {
  --nx-paper: #f4f1eb;
  --nx-ink: #161616;
  --nx-muted: #736f68;
  --nx-line: rgba(22, 22, 22, .18);
}

/* Keep the primary device matrix visible even when the entrance observer is
   skipped after an anchor jump or a restored scroll position. */
#devices .reveal-mask:has(> img[alt="奈兮诗芮门店仪器矩阵实拍"]) {
  clip-path: none !important;
}

.nx-proof-section {
  background: var(--nx-paper);
  color: var(--nx-ink);
  padding: 96px 0;
  border-top: 1px solid var(--nx-line);
}
.nx-proof-section.nx-proof-dark { background: #111; color: #f5f1e9; }
.nx-proof-inner { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.nx-kicker { font: 10px/1.4 Arial, sans-serif; letter-spacing: .48em; text-transform: uppercase; opacity: .55; }
.nx-title { margin: 18px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(34px, 5vw, 66px); font-weight: 500; letter-spacing: .12em; }
.nx-lead { max-width: 620px; margin-top: 22px; font-size: 13px; line-height: 2; letter-spacing: .08em; color: var(--nx-muted); }
.nx-proof-dark .nx-lead { color: rgba(255,255,255,.58); }
.nx-section-top { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.nx-count { flex: 0 0 auto; font: 11px/1 Arial, sans-serif; letter-spacing: .28em; opacity: .45; }
.nx-kicker:empty, .nx-lead:empty, .nx-count:empty { display: none; }
.nx-cert-proof .nx-title { margin-top: 0; }

.nx-video-reel { position: relative; overflow: hidden; margin-top: 48px; padding: 0 0 12px; -webkit-mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.nx-reel-track { display: flex; width: max-content; gap: 18px; transform: translate3d(0,0,0); transition: transform .9s cubic-bezier(.22,.7,.2,1); will-change: transform; }
.nx-doctor-card { position: relative; flex: 0 0 clamp(250px,22vw,310px); aspect-ratio: 1 / 2; overflow: hidden; background: #080808; border: 1px solid rgba(255,255,255,.18); cursor: zoom-in; }
.nx-doctor-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nx-doctor-card:hover img { transform: scale(1.018); }
.nx-doctor-card::after { content: "查看完整介绍  ↗"; position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 16px; font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.85); background: linear-gradient(transparent,rgba(0,0,0,.82)); opacity: 0; transition: opacity .35s; }
.nx-doctor-card:hover::after { opacity: 1; }

.nx-cert-reel .nx-reel-track { gap: 14px; }
.nx-cert { flex: 0 0 clamp(240px,22vw,320px); border: 1px solid var(--nx-line); background: #ebe6dc; padding: 10px; aspect-ratio: 4 / 3; cursor: zoom-in; transition: background .3s, transform .3s; }
.nx-cert:hover { background: #fff; transform: translateY(-2px); }
.nx-cert img { width: 100%; height: 100%; display: block; object-fit: contain; filter: grayscale(1) contrast(.94); opacity: .78; transition: filter .35s, opacity .35s; }
.nx-cert:hover img { filter: none; opacity: 1; }

.nx-store-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.nx-store-actions > a[href*="uri.amap.com"] { width: 146px; min-height: 42px; justify-content: center; white-space: nowrap; }
.nx-store-actions > a[href*="uri.amap.com"] > span:first-child { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.nx-route-button { width: 146px; min-height: 42px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(22,22,22,.35); background: transparent; padding: 10px 15px; color: inherit; font: inherit; font-size: 12px; letter-spacing: .12em; cursor: pointer; transition: .3s; }
.nx-route-button:hover { background: var(--nx-ink); color: var(--nx-paper); border-color: var(--nx-ink); }
.nx-route-button .nx-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; font: 16px/1 Arial,sans-serif; }

.nx-modal { position: fixed; inset: 0; z-index: 9999; display: none; background: rgba(0,0,0,.82); backdrop-filter: blur(7px); padding: 24px; }
.nx-modal.is-open { display: grid; place-items: center; }
.nx-modal-panel { display: flex; flex-direction: column; width: min(920px,100%); max-height: calc(100vh - 48px); overflow: hidden; background: var(--nx-paper); color: var(--nx-ink); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.nx-modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; background: rgba(244,241,235,.96); border-bottom: 1px solid var(--nx-line); }
.nx-modal-title { font-size: 14px; letter-spacing: .16em; }
.nx-modal-close { width: 36px; height: 36px; border: 1px solid var(--nx-line); background: transparent; cursor: pointer; font-size: 20px; }
.nx-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px; text-align: center; overscroll-behavior: contain; }
.nx-modal-body img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.nx-route-image { width: min(720px,100%) !important; }
.nx-route-tabs { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; background: var(--nx-paper); scrollbar-width: thin; }
.nx-route-tabs[hidden] { display: none !important; }
.nx-route-tab { flex: 0 0 auto; border: 1px solid var(--nx-line); background: transparent; padding: 9px 14px; font-size: 12px; letter-spacing: .1em; cursor: pointer; }
.nx-route-tab.is-active { color: var(--nx-paper); background: var(--nx-ink); border-color: var(--nx-ink); }
body.nx-modal-open { overflow: hidden; }

.nx-footer-single { grid-template-columns: 1fr !important; }
.nx-footer-story { max-width: 760px; margin: 0 auto; text-align: center; }
.nx-footer-story-title { font-size: clamp(28px,4vw,48px) !important; letter-spacing: .24em !important; }
.nx-footer-story-origin { margin-top: 12px !important; font-size: 11px !important; letter-spacing: .42em !important; }
.nx-footer-story-copy { max-width: 660px !important; margin: 34px auto 0 !important; font-size: 14px !important; line-height: 2.2 !important; }
.nx-footer-story > div { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .nx-reel-track { transition: none; }
}

@media (min-width: 801px) {
  .nx-store-meta { flex: 1 1 620px; flex-direction: column; align-items: flex-end !important; gap: 12px !important; }
}

@media (max-width: 800px) {
  .nx-proof-section { padding: 70px 0; }
  .nx-proof-inner { width: min(100% - 32px, 1280px); }
  .nx-section-top { display: block; }
  .nx-title { font-size: 31px; letter-spacing: .08em; }
  .nx-count { margin-top: 20px; }
  .nx-video-reel { margin-top: 34px; }
  .nx-reel-track { gap: 12px; }
  .nx-doctor-card { flex-basis: 74vw; }
  .nx-cert-reel .nx-reel-track { gap: 9px; }
  .nx-cert { flex-basis: 46vw; }
  .nx-cert { padding: 6px; }
  .nx-store-actions { width: 160px; justify-content: flex-start; }
  .nx-store-actions > a[href*="uri.amap.com"], .nx-route-button { width: 100%; }
  .nx-route-button { flex: 0 0 auto; justify-content: center; }
  .nx-modal { padding: 0; }
  .nx-modal-panel { width: 100%; max-height: 100vh; height: 100vh; }
  .nx-modal-body { padding: 10px; }
  .nx-route-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; overflow: visible; padding: 10px; }
  .nx-route-tab { padding: 8px 5px; font-size: 10px; line-height: 1.45; letter-spacing: .03em; white-space: normal; }
}
