/* ==========================================================================
   LUNA LIVE 移動端 —— 樣式表
   設計基準：390 x 844（iPhone 14），所有尺寸按 390 寬度下實測值還原
   僅用於本地預覽，不含任何後端邏輯
   ========================================================================== */

:root {
  --red: #0b0b0d;          /* 頂欄底色（黑底，讓彩色 logo 看得清） */
  --red-hi: #c341f3;       /* 強調色：取自 logo 的品紅（tab 下劃線、角標） */
  --bar: #141417;          /* 二級欄 / 操作欄 */
  --chat: #101012;         /* 聊天區 */
  --rail: #1c1c20;         /* 房間左側工具欄 */
  --card: #17171a;         /* 卡片圖片佔位底色 */
  --pill: #26262b;         /* 篩選膠囊底色 */
  --text: #f8f8f8;
  --dim: rgba(248, 248, 248, .5);
  --faint: rgba(248, 248, 248, .12);
  --green: #61922f;
  --gold: #feb601;
  --header-h: 54px;
  --tabs-h: 42px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: #000; }

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* 手機上滿寬；桌面上居中成一列手機寬度，方便預覽 */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #000;
  overflow-x: hidden;
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
}

/* ---------- 通用圖標 ---------- */
.ic { width: 20px; height: 20px; display: block; fill: currentColor; flex: none; }
.ic--16 { width: 16px; height: 16px; }
.ic--11 { width: 11px; height: 11px; }
.ic--14 { width: 14px; height: 14px; }

/* ==========================================================================
   頂部導航
   ========================================================================== */
.hdr {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--red);
  display: flex;
  align-items: center;
  padding: 0 6px 0 4px;
}
.hdr__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: var(--header-h);
  color: rgba(255, 255, 255, .95);
}
.hdr__logo {
  height: 42px;
  width: 116px;
  margin-left: 4px;
  color: #fff;
  fill: #fff;
}
.hdr__logo use { fill: #fff; }

.hdr__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: #fff;
}
.hdr__mark { width: 26px; height: 26px; flex: none; display: block; }
.hdr__mark svg { width: 100%; height: 100%; display: block; }
.hdr__logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.hdr__brand {
  margin-left: 6px;
}
.hdr__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1;
  white-space: nowrap;
}
.hdr__spacer { flex: 1; }

.btn-signup {
  height: 31px;
  line-height: 29px;
  padding: 0 12px;
  border-radius: 32px;
  background: #f1f1f1;
  color: #414141;
  font-size: 13px;
  white-space: nowrap;
  margin-right: 4px;
}

/* ---------- 性別 tab ---------- */
.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 55;
  height: var(--tabs-h);
  background: var(--bar);
  display: flex;
  align-items: stretch;
  padding-left: 12px;
  overflow: hidden;
}
.tabs__scroll {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.tabs__scroll::-webkit-scrollbar { display: none; }
.tabs__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}
.tabs__link:first-child { padding-left: 0; }
.tabs__link.is-active { color: #fff; }
.tabs__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--red-hi);
}
.tabs__link:first-child.is-active::after { left: 0; right: 0; }
.tabs__magic {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

/* ==========================================================================
   首頁：充值橫幅
   ========================================================================== */
.promo-wrap { padding: 14px 12px 0; }
.promo {
  position: relative;
  height: 105px;
  border-radius: 4px;
  background: linear-gradient(90deg, #170020 0%, #5f1476 100%);
  display: flex;
  padding: 0 12px;
  overflow: hidden;
}
.promo__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .75);
  z-index: 2;
}
.promo__inner { display: flex; align-items: center; margin: 10px 0; max-width: 100%; }
.promo__icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: url(../assets/img/gift.svg) center / contain no-repeat;
  flex: none;
}
.promo__title { font-size: 15px; font-weight: 700; color: #fff; }
.promo__desc { font-size: 12px; font-weight: 500; color: #fff; margin-top: 4px; }
.promo__desc b { color: #ffd429; font-weight: 700; }
.promo__btn {
  display: inline-block;
  height: 29px;
  line-height: 29px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 32px;
  background: var(--gold);
  color: #3c2800;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 篩選膠囊行 ---------- */
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 80px;
  background: var(--pill);
  border: 2px solid var(--pill);
  color: var(--text);
  font-size: 13px;
  line-height: 17px;
  white-space: nowrap;
  flex: none;
}
.chip--icon { padding: 0 14px 0 10px; }
.chip--flag { padding: 0 6px; }
.chip .ic { width: 16px; height: 16px; }
.chip__ic {
  width: 16px;
  height: 16px;
  background: center / contain no-repeat;
  flex: none;
}
.chip__flag { width: 20px; height: 20px; border-radius: 50%; background: center / cover no-repeat; }
.chips__div { width: 1px; height: 18px; background: rgba(255, 255, 255, .16); flex: none; }

/* ==========================================================================
   區塊 + 卡片
   ========================================================================== */
.sections { display: flex; flex-direction: column; gap: 24px; padding-bottom: 28px; margin-top: 24px; }
.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 9px;
}
.sec__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
.sec__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: center / cover no-repeat;
  flex: none;
}
.sec__all { font-size: 13px; color: var(--dim); padding-left: 12px; }

.slider {
  display: flex;
  gap: 8px;
  padding: 0 8px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider::-webkit-scrollbar { display: none; }

/* 卡片：4:3 縮略圖，模糊鋪底 + 原圖 contain（與原站一致） */
.card {
  position: relative;
  flex: 0 0 calc(50% - 9px);
  padding: 4px;
  display: block;
}
.card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card);
  overflow: hidden;
}
.card__blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) brightness(.72);
  transform: scale(1.15);
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .72) 100%);
  pointer-events: none;
}
.card__badges {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
}
.badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, .55);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  flex: none;
}
.badge--mobile { background-image: url(../assets/img/badge-mobile.svg); }
.badge--toy { background-image: url(../assets/img/badge-toy.svg); }
.badge--vr {
  width: auto;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  background-color: #2f6bd8;
  border-radius: 4px;
  background-image: none;
}
.badge__push { margin-left: auto; }
.badge--new {
  width: 34px;
  height: 16px;
  border-radius: 3px;
  background-color: #ffc107;
  background-image: url(../assets/img/badge-new.svg);
  background-size: 34px 16px;
}
.card__show {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--red-hi);
  color: #f8f8f8;
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
  white-space: nowrap;
}
.card__topic {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 26px;
  z-index: 2;
  font-size: 11px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.flag {
  width: 17px;
  height: 11px;
  border-radius: 2px;
  background: center / contain no-repeat;
  flex: none;
}

/* ==========================================================================
   分類頁
   ========================================================================== */
.cat-head { padding: 18px 12px 0; }
.cat-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}
.cat-title .verify { width: 16px; height: 16px; fill: #3b82f6; flex: none; }
.cat-desc {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 18px;
  color: rgba(248, 248, 248, .4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-filters {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-filters::-webkit-scrollbar { display: none; }
.cat-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 80px;
  background: #2a2b2d;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.cat-filter .ic { width: 16px; height: 16px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 4px 0;
}
.grid .card { flex: none; }

/* ==========================================================================
   房間頁
   ========================================================================== */
.room { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.room__bar {
  height: 42px;
  background: var(--bar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  flex: none;
}
.room__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #444 center / cover no-repeat;
  position: relative;
  flex: none;
}
.room__avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43c463;
  border: 1.5px solid var(--bar);
}
.room__user { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.room__user .ic { color: rgba(255, 255, 255, .7); }
.room__tabs { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 14px; color: rgba(255, 255, 255, .6); }
.room__tabs b { color: #fff; font-weight: 400; }
.room__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; }

.room__stage { position: relative; flex: none; background: #000; }
.room__poster-link { display: block; width: 100%; }
.room__poster-link img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.room__live {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--red-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.room__live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.room__actions {
  height: 60px;
  background: var(--bar);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  flex: none;
}
.like {
  display: flex;
  align-items: center;
  gap: 8px;
}
.like__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  transition: transform .12s ease;
}
.like__btn .ic { width: 22px; height: 22px; }
.like.is-on .like__btn { background: var(--red-hi); color: #fff; }
.like__num { font-size: 13px; color: #fff; }
.btn-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 32px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  position: relative;
}
.btn-tip .dot-red {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f03b3b;
  border: 2px solid var(--bar);
}
.btn-private {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 32px;
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.btn-private .ic { color: var(--gold); }

.room__main { position: relative; flex: 1; min-height: 0; display: flex; background: var(--chat); }

.rail {
  width: 48px;
  flex: none;
  background: var(--rail);
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}
.rail__item {
  position: relative;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, .72);
}
.rail__item .ic { width: 20px; height: 20px; }
.rail__item small { font-size: 10px; color: rgba(255, 255, 255, .6); }
.rail__item.is-active { color: #fff; }
.rail__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--red-hi);
}
.rail__item--fav { color: #ff5d7a; }

.chatpane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
}
.chat__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 8px 0 16px;
  border-radius: 20px;
  background: #141414;
}
.chat__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
}
.chat__field input::placeholder { color: rgba(255, 255, 255, .45); }
.chat__emoji { color: rgba(255, 255, 255, .7); padding: 4px; }
.chat__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.chat__send .ic { width: 20px; height: 20px; }

.chat__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 10px;
  font-size: 12px;
  line-height: 1.6;
}
.chat__list::-webkit-scrollbar { width: 0; }
.msg { display: flex; gap: 4px; padding: 2px 0; color: #e9e9e9; word-break: break-word; }
.msg__user { color: #cfcfcf; flex: none; }
.msg__user.is-mod { color: #7fd1ff; }
.msg--event { align-items: center; color: rgba(255, 255, 255, .55); font-style: italic; }
.msg--event .ic { color: var(--gold); }
.msg--tip { justify-content: center; color: rgba(255, 255, 255, .8); }
.msg--tip b { color: #ffd429; }
.msg--tip .u { color: #b8ff6b; }

/* ==========================================================================
   菜單 / 抽屜
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 90;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(88vw, 380px);
  background: #2f3032;
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  padding: 14px 16px 28px;
}
.drawer.is-open { transform: none; }
.drawer__card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 14px 14px 6px;
}
.btn-join {
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 32px;
  background: #43a047;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.drawer__feats { margin: 14px 0 4px; }
.drawer__feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  font-size: 14px;
  color: #e6e6e6;
}
.drawer__feat .ic { color: #b9b9b9; }
.btn-login {
  display: block;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 15px;
  margin-top: 12px;
}
.drawer__links { margin-top: 18px; }
.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  font-size: 15px;
  color: #fff;
}
.drawer__link .ic { color: #cfcfcf; }
.drawer__sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 12px 0; }
.drawer__lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  font-size: 15px;
  color: #fff;
}
.drawer__lang .ic { color: #cfcfcf; }
.drawer__lang .chev { margin-left: auto; color: rgba(255, 255, 255, .55); }

/* 獨立的菜單頁（手機直接打開時用） */
.page-menu { background: #2f3032; min-height: 100dvh; padding: 14px 16px 28px; }

/* ==========================================================================
   頁腳
   ========================================================================== */
.foot {
  background: #212223;
  padding: 14px 0 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.foot__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 12px 14px; }
.foot__langs a { font-size: 12px; color: rgba(255, 255, 255, .6); }
.foot__cols { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.foot__col { min-width: 150px; padding: 6px 0; }
.foot__col h4 { margin: 6px 0 6px; font-size: 12px; color: #fff; font-weight: 600; letter-spacing: .4px; }
.foot__col li { padding: 3px 0; }
.foot__legal { padding: 12px; font-size: 11px; line-height: 1.65; color: rgba(255, 255, 255, .38); }
.foot__copy { padding: 8px 12px 0; font-size: 11px; color: rgba(255, 255, 255, .35); }

/* ==========================================================================
   預覽臺（preview.html）
   ========================================================================== */
.stage {
  min-height: 100dvh;
  background: radial-gradient(1200px 600px at 50% -10%, #2a1013 0%, #0b0b0c 55%, #000 100%);
  color: #fff;
  padding: 28px 20px 56px;
  font-size: 14px;
}
.stage__head { max-width: 1180px; margin: 0 auto 22px; }
.stage__title { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.stage__sub { margin: 0; color: rgba(255, 255, 255, .55); font-size: 13px; line-height: 1.6; }
.stage__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  max-width: 1780px;
  margin: 26px auto 0;
}
.phone { width: 390px; flex: none; }
.phone__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 4px;
}
.phone__label b { font-size: 14px; font-weight: 600; }
.phone__label span { font-size: 12px; color: rgba(255, 255, 255, .45); }
.phone__frame {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 34px;
  padding: 10px;
  background: #17181a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 26px 60px rgba(0, 0, 0, .6);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}
.phone__screen iframe { width: 390px; height: 824px; border: 0; display: block; }
.phone__open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .stage__phones { gap: 20px; }
  .phone, .phone__frame { width: 100%; max-width: 390px; }
}

/* ==========================================================================
   安裝引導彈窗（仿 netshowtv.online 的 APK guide，去掉福利/奖励内容）
   所有 CTA 點擊後先彈這個，彈窗裡的按鈕才真正下載
   ========================================================================== */
.guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.guide-backdrop.is-open { opacity: 1; visibility: visible; }

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 3001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5vh 12px 4vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.guide-modal.is-open { opacity: 1; visibility: visible; }

.guide-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #121016;
  border: 1px solid rgba(195, 65, 243, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .78);
  transform: translateY(14px);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.guide-modal.is-open .guide-sheet { transform: translateY(0); }

.guide-close {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
}
.guide-close svg { width: 15px; height: 15px; }

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* 右侧留出关闭按钮的位置，避免文字被盖住 */
  padding: 18px 52px 10px 20px;
}
.guide-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.guide-verified {
  font-size: 12px;
  font-weight: 600;
  color: #35d07f;
  white-space: nowrap;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 14px 14px;
}
.guide-step {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: #1a1620;
  border: 1px solid rgba(255, 255, 255, .07);
}
.guide-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #c341f3 0%, #7b2ff7 100%);
  color: #fff;
}
.guide-icon svg { width: 23px; height: 23px; }
.guide-body { min-width: 0; }
.guide-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.guide-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a79fb2;
}
.guide-body strong { color: #ddd6e6; font-weight: 600; }
.guide-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(254, 182, 1, .1);
  border-left: 3px solid var(--gold);
  color: #e8c46a;
  font-size: 12.5px;
  line-height: 1.45;
}

.guide-foot {
  padding: 18px 20px 22px;
  text-align: center;
  background: linear-gradient(180deg, #121016 0%, #20081f 100%);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.guide-foot h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.guide-foot p {
  margin: 0 auto 16px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.55;
  color: #a79fb2;
}
.guide-cta {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c341f3 0%, #7b2ff7 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 26px rgba(195, 65, 243, .28);
}
.guide-cta:active { transform: translateY(1px); }
body.has-guide { overflow: hidden; }

@media (max-width: 380px) {
  .guide-title { font-size: 17px; }
  .guide-verified { font-size: 11px; }
  .guide-foot h3 { font-size: 19px; }
  .guide-body h3 { font-size: 14px; }
}
