/* ============================================================
   东方神谕 East Oracle — Landing Page Styles
   简洁大方，介绍 APP + 提供下载
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --bg: #0d0b14;
  --bg-card: #161221;
  --gold: #C9A96E;
  --gold-light: #D4B87A;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --text: #FFFFFF;
  --text-dim: #9a8fa7;
  --font-cn: 'Noto Serif SC', 'Source Han Serif CN', serif;
  --font-tw: 'Noto Serif TC', 'Source Han Serif TW', serif;
  --font-en: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 960px;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--gold-light);
}

.lang-btn.active {
  color: var(--bg);
  background: var(--gold);
}

/* Chinese title font when zh-CN or zh-TW is active */
body.lang-zh-CN .hero__title,
body.lang-zh-CN .feature__title,
body.lang-zh-TW .hero__title,
body.lang-zh-TW .feature__title {
  font-family: var(--font-cn);
}

body.lang-zh-TW .hero__title,
body.lang-zh-TW .feature__title {
  font-family: var(--font-tw);
}

/* ============================================================
   Hero — APP Intro + Download
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(30, 24, 41, 0.5) 0%, var(--bg) 70%);
}

.hero__content {
  max-width: var(--max-w);
}

.hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 28px;
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.18);
}

.hero__title {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 6px;
  margin-bottom: 6px;
}

.hero__subtitle {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 17px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 40px;
}

/* Store Buttons */
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 169, 110, 0.08);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-store:hover {
  background: rgba(201, 169, 110, 0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-store__icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.btn-store__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-store__small {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-store__big {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* ============================================================
   Screenshots — Screenshot Gallery
   ============================================================ */
.screenshots {
  padding: 40px 0 60px;
  overflow: hidden;
}

.screenshots__track {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots__track::-webkit-scrollbar {
  height: 4px;
}
.screenshots__track::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.2);
  border-radius: 2px;
}
.screenshots__track::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Glow overlay on hover */
.screenshot-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(201, 169, 110, 0.15), 0 0 60px rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.35);
}

.screenshot-item:hover::after {
  opacity: 1;
}

/* Click / tap pulse effect */
.screenshot-item.pulse {
  animation: screenshot-pulse 0.5s ease-out;
}

@keyframes screenshot-pulse {
  0% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 0 8px rgba(201, 169, 110, 0.25), 0 20px 50px rgba(201, 169, 110, 0.15);
    transform: scale(0.97);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(201, 169, 110, 0.08), 0 12px 40px rgba(201, 169, 110, 0.1);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
}

/* Expanded (clicked) state — modal-like overlay */
.screenshot-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.screenshot-overlay.visible {
  opacity: 1;
}

.screenshot-overlay img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: 24px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(201, 169, 110, 0.08);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.screenshot-overlay.visible img {
  transform: scale(1);
}

.screenshot-item img {
  width: 220px;
  height: auto;
  display: block;
}

/* ============================================================
   Features — Feature Descriptions
   ============================================================ */
.features {
  padding: 60px 24px 80px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.feature {
  max-width: 240px;
}

.feature__emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.feature__icon svg {
  width: 48px;
  height: 48px;
}

.feature__title {
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--gold-dim);
  text-align: center;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
}

body.lang-zh-CN .footer__brand,
body.lang-zh-TW .footer__brand {
  font-family: var(--font-cn);
}

.footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__copyright {
  font-size: 12px;
  color: rgba(154, 143, 167, 0.5);
  letter-spacing: 0.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero__icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .hero__title {
    font-size: 38px;
    letter-spacing: 4px;
  }
  .hero__subtitle {
    font-size: 15px;
  }
  .hero__desc {
    font-size: 15px;
  }
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  .screenshot-item img {
    width: 180px;
  }
  .features {
    gap: 28px;
    padding: 40px 24px 60px;
  }
  .feature {
    max-width: 200px;
  }
  .lang-switcher {
    top: 12px;
    right: 12px;
  }
  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 30px;
    letter-spacing: 3px;
  }
  .screenshot-item img {
    width: 160px;
  }
  .btn-store {
    padding: 10px 22px;
  }
  .btn-store__big {
    font-size: 15px;
  }
}
