*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #060d24;
  --bg-mid: #0c1840;
  --gold: #ffd54f;
  --gold-light: #ffe082;
  --gold-dark: #c9a020;
  --neon-blue: #4fc3f7;
  --neon-purple: #b388ff;
  --neon-pink: #f48fb1;
  --text: #e8eaf6;
  --text-muted: #9fa8da;
  --card-bg: rgba(12, 24, 64, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --max-w: 480px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  background-image: url("./assets/bg-mobile.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景光暈 */
.bg-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  top: 10%;
  left: -80px;
  background: radial-gradient(circle, #ff5722, transparent);
}

.bg-glow--right {
  top: 30%;
  right: -80px;
  background: radial-gradient(circle, var(--neon-blue), transparent);
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.btn-login {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #3e2723;
  background: linear-gradient(180deg, #ffe082 0%, #ffb300 45%, #ff8f00 100%);
  border: 2px solid #fff3c4;
  border-radius: 10px;
  box-shadow:
    0 4px 0 #c68400,
    0 0 24px rgba(255, 193, 7, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-login:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #c68400,
    0 0 16px rgba(255, 193, 7, 0.35);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 12px 0 20px;
}

.hero__logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.hero__logo {
  display: block;
  width: min(340px, 88vw);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.5))
    drop-shadow(0 0 40px rgba(179, 136, 255, 0.3));
  animation: logo-float 3s ease-in-out infinite;
}

.hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

.hero__tagline {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

/* ===== Download ===== */
.download {
  position: relative;
  z-index: 10;
  padding: 8px 0 20px;
}

.download__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 11;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.store-btn * {
  pointer-events: none;
}

.store-btn:active {
  transform: scale(0.97);
}

.store-btn--android:hover,
.store-btn--android:focus-visible {
  border-color: #4caf50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.35);
}

.store-btn--ios:hover,
.store-btn--ios:focus-visible {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.35);
}

.store-btn__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.store-btn__icon svg {
  width: 100%;
  height: 100%;
}

.store-btn--android .store-btn__icon {
  color: #4caf50;
}

.store-btn--ios .store-btn__icon {
  color: #fff;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn__label {
  font-size: 13px;
  font-weight: 600;
}

.store-btn__sub {
  font-size: 11px;
  color: var(--text-muted);
}

.apk-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(255, 143, 0, 0.15), rgba(255, 193, 7, 0.08));
  border: 1.5px solid rgba(255, 193, 7, 0.4);
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 11;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.apk-btn * {
  pointer-events: none;
}

.apk-btn:active {
  transform: scale(0.98);
}

.apk-btn:hover,
.apk-btn:focus-visible {
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.25);
}

.apk-btn__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--neon-blue);
}

.apk-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.apk-btn__text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.apk-btn__arrow {
  font-size: 18px;
  opacity: 0.7;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.social-link--fb {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #4267b2;
}

.social-link--yt {
  font-size: 14px;
  color: #ff0000;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  margin: 8px 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 392 / 560;
  min-height: 480px;
  background: linear-gradient(180deg, #0a1028 0%, #121a3a 100%);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carousel__date {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.carousel__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.carousel__slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.carousel__slide-inner h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.carousel__slide-inner p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.carousel__slide-inner strong {
  color: var(--gold);
  font-size: 1.2em;
}

.carousel__slide-inner--gold {
  background: linear-gradient(135deg, #1a1200, #3e2723, #1a1200);
}

.carousel__slide-inner--purple {
  background: linear-gradient(135deg, #1a0a2e, #311b92, #1a0a2e);
}

.carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel__dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ===== Nav Grid ===== */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: var(--radius);
  box-shadow:
    0 4px 0 #0a2f6b,
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.12s, box-shadow 0.12s;
}

.nav-item:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #0a2f6b,
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item__icon {
  font-size: 22px;
  line-height: 1;
}

.nav-item__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 8px 0;
}

.footer p {
  margin: 0;
  font-size: 11px;
  color: rgba(159, 168, 218, 0.6);
}

/* ===== LINE FAB ===== */
.fab-line {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: #06c755;
  border-radius: 50%;
  box-shadow:
    0 4px 16px rgba(6, 199, 85, 0.5),
    0 0 0 3px rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fab-line svg {
  width: 28px;
  height: 28px;
}

.fab-line:active {
  transform: scale(0.92);
}

.fab-line:hover {
  box-shadow:
    0 6px 24px rgba(6, 199, 85, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.2);
}
