/* v20 — Traveloka-inspired: biru gradien, hero + mockup, kartu layanan */

:root {
  --tvlk: #0b7fe8;
  --tvlk-dark: #006fd6;
  --tvlk-light: #4da3ff;
  --tvlk-soft: #e8f4ff;
  --text: #1a1a1a;
  --muted: #5f6368;
  --pad: 0.427rem;
  --bottom-bar: 2.4rem;
  --layout-max: var(--layout-max-px, 540px);
  --radius: 0.267rem;
  --radius-lg: 0.373rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f9ff;
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(var(--bottom-bar) + env(safe-area-inset-bottom, 0));
}
.page { max-width: var(--layout-max); margin: 0 auto; min-height: 100vh; }

/* —— Nav —— */
.tvlk-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.28rem;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(0.4rem);
  -webkit-backdrop-filter: blur(0.4rem);
  border-bottom: 1px solid rgba(11, 127, 232, 0.12);
}
.tvlk-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.213rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.427rem;
}
.tvlk-nav-brand img { width: 0.747rem; height: 0.747rem; border-radius: 0.16rem; }
.tvlk-nav-badge {
  font-size: 0.293rem;
  font-weight: 700;
  color: var(--tvlk);
  background: var(--tvlk-soft);
  padding: 0.08rem 0.24rem;
  border-radius: 999px;
}

/* —— Hero —— */
.tvlk-hero {
  position: relative;
  background: linear-gradient(145deg, var(--tvlk-dark) 0%, var(--tvlk) 45%, var(--tvlk-light) 100%);
  overflow: hidden;
}
.tvlk-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.tvlk-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.213rem;
  padding: 0.427rem var(--pad) 0.64rem;
  min-height: 5.6rem;
}
.tvlk-copy {
  flex: 1;
  min-width: 0;
  color: #fff;
  padding-bottom: 0.213rem;
}
.tvlk-eyebrow {
  display: inline-block;
  font-size: 0.293rem;
  font-weight: 600;
  letter-spacing: 0.027rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.053rem 0.24rem;
  border-radius: 999px;
  margin-bottom: 0.267rem;
}
.tvlk-copy h1 {
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.213rem;
  max-width: 6.4rem;
}
.tvlk-lead {
  font-size: 0.347rem;
  opacity: 0.92;
  line-height: 1.45;
  max-width: 5.87rem;
  margin-bottom: 0.32rem;
}
.tvlk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.733rem;
  height: 1.067rem;
  padding: 0 0.427rem;
  border: none;
  border-radius: 0.213rem;
  background: #fff;
  color: var(--tvlk-dark);
  font-size: 0.4rem;
  font-weight: 800;
  box-shadow: 0 0.107rem 0.32rem rgba(0, 40, 100, 0.25);
}
.tvlk-cta:active { transform: scale(0.98); }
.tvlk-sub {
  font-size: 0.32rem;
  opacity: 0.88;
  margin-top: 0.213rem;
}
#metaSize:not(:empty)::before { content: ' · '; }

.tvlk-phone {
  flex-shrink: 0;
  width: 2.667rem;
  margin-bottom: -0.107rem;
}
.tvlk-phone-shell {
  border-radius: 0.373rem;
  padding: 0.107rem;
  background: linear-gradient(160deg, #2a2a2e 0%, #111 100%);
  box-shadow: 0 0.213rem 0.64rem rgba(0, 0, 0, 0.35);
}
.tvlk-phone-shell img {
  display: block;
  width: 100%;
  border-radius: 0.293rem;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.tvlk-wave {
  display: block;
  width: 100%;
  height: 0.427rem;
  margin-bottom: -1px;
}

/* —— Stats —— */
.tvlk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.213rem;
  padding: 0.427rem var(--pad) 0.533rem;
  margin-top: -0.053rem;
}
.tvlk-stats div {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.32rem 0.16rem;
  box-shadow: 0 0.027rem 0.133rem rgba(11, 127, 232, 0.08);
}
.tvlk-stats strong {
  display: block;
  font-size: 0.48rem;
  font-weight: 800;
  color: var(--tvlk);
  line-height: 1.1;
}
.tvlk-stats span {
  font-size: 0.293rem;
  color: var(--muted);
}

.tvlk-section-title {
  font-size: 0.48rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.32rem;
}

/* —— Services grid —— */
.tvlk-services {
  padding: 0  var(--pad) 0.533rem;
}
.tvlk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.213rem;
}
.tvlk-grid article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.373rem;
  box-shadow: 0 0.027rem 0.107rem rgba(11, 127, 232, 0.1);
  border: 1px solid rgba(11, 127, 232, 0.08);
}
.tvlk-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.853rem;
  height: 0.853rem;
  border-radius: 0.213rem;
  background: var(--tvlk-soft);
  color: var(--tvlk);
  margin-bottom: 0.213rem;
}
.tvlk-grid h3 {
  font-size: 0.373rem;
  font-weight: 700;
  color: var(--tvlk-dark);
  margin-bottom: 0.053rem;
}
.tvlk-grid p {
  font-size: 0.32rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Gallery —— */
.tvlk-gallery {
  padding: 0 var(--pad) 0.533rem;
}
.tvlk-gallery-hint {
  font-size: 0.32rem;
  color: var(--muted);
  margin: -0.16rem 0 0.293rem;
}
.tvlk-gallery-track {
  display: flex;
  gap: 0.267rem;
  overflow-x: auto;
  margin-right: calc(-1 * var(--pad));
  padding-right: var(--pad);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.tvlk-shot {
  flex: 0 0 3.2rem;
  scroll-snap-align: start;
  text-align: center;
}
.tvlk-frame {
  border-radius: 0.32rem;
  padding: 0.107rem;
  background: linear-gradient(160deg, #3a3a3e, #1a1a1c);
  box-shadow: 0 0.107rem 0.373rem rgba(0, 0, 0, 0.12);
}
.tvlk-frame img {
  display: block;
  width: 100%;
  border-radius: 0.24rem;
  cursor: pointer;
}
.tvlk-shot figcaption {
  font-size: 0.32rem;
  color: var(--muted);
  margin-top: 0.16rem;
}

/* —— Steps —— */
.tvlk-steps {
  padding: 0 var(--pad) 0.533rem;
}
.tvlk-steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.213rem;
}
.tvlk-steps li {
  display: flex;
  gap: 0.32rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.373rem;
  box-shadow: 0 0.027rem 0.107rem rgba(11, 127, 232, 0.08);
}
.tvlk-steps li > span {
  flex-shrink: 0;
  width: 0.747rem;
  height: 0.747rem;
  border-radius: 50%;
  background: var(--tvlk);
  color: #fff;
  font-size: 0.373rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tvlk-steps b {
  display: block;
  font-size: 0.373rem;
  margin-bottom: 0.053rem;
}
.tvlk-steps p {
  font-size: 0.32rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— FAQ —— */
.tvlk-faq {
  padding: 0 var(--pad) 0.427rem;
}
.tvlk-faq details {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 0.16rem;
  border: 1px solid rgba(11, 127, 232, 0.1);
  overflow: hidden;
}
.tvlk-faq summary {
  padding: 0.373rem 0.427rem;
  font-size: 0.373rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.tvlk-faq summary::-webkit-details-marker { display: none; }
.tvlk-faq summary::after {
  content: '+';
  float: right;
  color: var(--tvlk);
  font-weight: 700;
}
.tvlk-faq details[open] summary::after { content: '−'; }
.tvlk-faq p {
  padding: 0 0.427rem 0.373rem;
  font-size: 0.347rem;
  color: var(--muted);
  line-height: 1.45;
}

.tvlk-foot {
  padding: 0.32rem var(--pad) 0.64rem;
  text-align: center;
}
.tvlk-foot > p:first-child {
  font-size: 0.293rem;
  color: #9aa0a6;
  line-height: 1.45;
  margin-bottom: 0.213rem;
}
.hint { font-size: 0.32rem; color: var(--muted); }

/* —— Lightbox —— */
.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 30, 60, 0.96);
  display: none;
  flex-direction: column;
  touch-action: none;
}
.preview-lightbox.is-open { display: flex; }
body.preview-open { overflow: hidden; }
.preview-lightbox-close {
  position: absolute;
  top: calc(0.32rem + env(safe-area-inset-top, 0));
  right: var(--pad);
  z-index: 2;
  width: 0.853rem;
  height: 0.853rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--tvlk);
  font-size: 0.587rem;
  font-weight: 700;
}
.preview-lightbox-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.preview-lightbox-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease-out;
}
.preview-lightbox-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.28rem var(--pad) var(--bottom-bar);
}
.preview-lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.preview-lightbox-nav {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.preview-lightbox-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.067rem;
  height: 1.067rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.64rem;
  line-height: 1;
}
.preview-lightbox-btn-prev { left: var(--pad); }
.preview-lightbox-btn-next { right: var(--pad); }
.preview-lightbox-pager {
  position: absolute;
  left: 50%;
  bottom: calc(1.067rem + env(safe-area-inset-bottom, 0));
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.373rem;
}

/* —— Sticky bottom —— */
.bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 100;
  width: 100%;
  max-width: var(--layout-max);
  padding: 0.26rem var(--pad);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #d0e8ff;
  box-shadow: 0 -0.053rem 0.267rem rgba(11, 127, 232, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.107rem;
}
.bottom-meta {
  font-size: 0.293rem;
  color: var(--muted);
  text-align: center;
}
.btn-get {
  width: 100%;
  max-width: 9.147rem;
  height: 1.173rem;
  border: none;
  border-radius: 0.213rem;
  background: linear-gradient(180deg, var(--tvlk-light) 0%, var(--tvlk) 100%);
  color: #fff;
  font-size: 0.427rem;
  font-weight: 800;
  box-shadow: 0 0.107rem 0.267rem rgba(11, 127, 232, 0.35);
}
.btn-get:disabled {
  background: #b0b8c4;
  box-shadow: none;
}

/* 截图 PNG 已含手机边框 — 关闭 CSS 假机壳/描边 */

.device-frame,
.tvlk-frame,
.mnt-frame,
.sky-frame,
.aur-frame,
.cor-frame,
.ind-frame,
.snd-frame,
.arc-frame,
.fus-frame,
.sh-frame,
.com-frame,
.urg-frame,
.drk-frame,
.frs-frame {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.device-frame::before {
  display: none !important;
}

.tvlk-phone-shell,
.mnt-phone-shell,
.sky-phone-shell,
.cor-phone-shell,
.aur-phone-shell {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.gallery-track .screenshot,
.gallery-track .device-frame img,
.device-frame .screenshot,
.screenshots > .screenshot,
.tvlk-frame img,
.mnt-frame img,
.sky-frame img,
.tvlk-phone-shell img,
.mnt-phone-shell img,
.sky-phone-shell img,
.cor-phone-shell img {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.preview-lightbox-slide img {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

