/* v2 ungu gelap — adaptasi rem 375 */

:root {
  --blue: #8b83ff;
  --text: #f5f5f7;
  --text-secondary: rgba(235, 235, 245, 0.65);
  --bg: #0f0f14;
  --bg-soft: #1a1a22;
  --divider: rgba(255, 255, 255, 0.12);
  --pad: 0.427rem;
  --bottom-bar: 1.92rem;
  --layout-max: var(--layout-max-px, 540px);
  --radius-lg: 0.427rem;
  --radius-md: 0.32rem;
  --glow: rgba(108, 99, 255, 0.45);
}

*, *::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%; touch-action: manipulation; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-bar) + env(safe-area-inset-bottom, 0));
}
.page { max-width: var(--layout-max); margin: 0 auto; min-height: 100vh; }

.site-header {
  position: sticky; top: 0; z-index: 10; height: 1.333rem;
  background: rgba(15, 15, 20, 0.9);
  backdrop-filter: blur(0.533rem); -webkit-backdrop-filter: blur(0.533rem);
  border-bottom: 0.5px solid var(--divider);
  display: flex; align-items: center; padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0);
}
.brand { display: flex; align-items: center; gap: 0.267rem; text-decoration: none; color: inherit; }
.brand-icon { width: 0.853rem; height: 0.853rem; border-radius: 0.213rem; }
.brand-name { font-size: 0.453rem; font-weight: 700; }
.brand-badge {
  margin-left: auto;
  font-size: 0.293rem;
  padding: 0.107rem 0.213rem;
  border-radius: 0.107rem;
  background: rgba(139, 131, 255, 0.25);
  color: var(--blue);
}

.hero {
  padding: 0.64rem var(--pad) 0.533rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--glow), transparent 70%);
}
.hero-app-icon {
  width: 2.987rem; height: 2.987rem; border-radius: 0.64rem; margin-bottom: 0.533rem;
  box-shadow: 0 0 0.8rem var(--glow);
}
.hero-title { font-size: 0.747rem; font-weight: 700; line-height: 0.907rem; margin-bottom: 0.213rem; }
.hero-tagline { font-size: 0.4rem; line-height: 0.533rem; color: var(--text-secondary); margin-bottom: 0.427rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.213rem 0.427rem;
  font-size: 0.347rem; color: var(--text-secondary); margin-bottom: 0.533rem;
}
.hero-meta span + span::before { content: '·'; margin-right: 0.213rem; opacity: 0.4; }

.preview-block { margin-top: 0.533rem; display: flex; flex-direction: column; gap: 0.133rem; text-align: left; }
.preview-block .section-title { margin-bottom: 0; }
.screenshots {
  display: flex; gap: 0.267rem; overflow-x: auto;
  margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.screenshot {
  flex-shrink: 0; width: 3.92rem; height: auto; border-radius: var(--radius-md);
  background: #2c2c34; display: block; scroll-snap-align: start; cursor: pointer;
}

.preview-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.95); 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;
  background: rgba(255,255,255,0.15); border-radius: 50%; color: #fff; font-size: 0.587rem;
}
.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%; width: 100%; height: 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-md); }
.preview-lightbox-nav { pointer-events: none; position: absolute; inset: 0; z-index: 1; }
.preview-lightbox-btn {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 1.067rem; height: 1.067rem; border: none; border-radius: 9999px;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
}
.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%); font-size: 0.373rem; color: #fff;
}

.hero-hint { margin-top: 0.32rem; font-size: 0.32rem; color: var(--text-secondary); text-align: center; }

.section { padding: 0.747rem var(--pad); }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: 0.587rem; font-weight: 600; line-height: 0.747rem; margin-bottom: 0.427rem; }
.features { display: flex; flex-direction: column; gap: 0.32rem; }
.feature-card {
  background: rgba(255,255,255,0.04); border: 0.5px solid var(--divider);
  border-radius: var(--radius-md); padding: 0.427rem;
}
.feature-icon { font-size: 0.64rem; margin-bottom: 0.213rem; }
.feature-card h3 { font-size: 0.427rem; font-weight: 600; margin-bottom: 0.107rem; }
.feature-card p { font-size: 0.373rem; color: var(--text-secondary); line-height: 1.45; }

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; display: flex; gap: 0.32rem; padding: 0.373rem 0;
  border-bottom: 0.5px solid var(--divider); font-size: 0.4rem; line-height: 0.533rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step); flex-shrink: 0; width: 0.747rem; height: 0.747rem;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.373rem;
  display: flex; align-items: center; justify-content: center;
}

.channels { display: flex; justify-content: space-between; padding: 0 0.64rem; }
.channel-link { display: flex; flex-direction: column; align-items: center; gap: 0.16rem; text-decoration: none; color: var(--text); font-size: 0.32rem; }
.channel-link svg { width: 1.707rem; height: 1.707rem; border-radius: 0.373rem; }

.bottom {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 100;
  width: 100%; max-width: var(--layout-max); height: var(--bottom-bar);
  padding: 0 var(--pad); padding-bottom: env(safe-area-inset-bottom, 0);
  background: #14141c; box-shadow: 0 -0.267rem 0.8rem rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.btn-get {
  width: 100%; max-width: 9.147rem; height: 1.28rem; border: none; border-radius: 9999px;
  background: linear-gradient(135deg, #6c63ff, #8b83ff); color: #fff;
  font-size: 0.427rem; font-weight: 600;
}
.btn-get:disabled { background: #3a3a44; cursor: not-allowed; }

/* 截图 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;
}

