/* ============================================
   Xummer eSIM – Homepage Specific Styles
   ============================================ */

/* ══════════════════════════════════════════════
   HERO AREA (blue gradient sky)
   ══════════════════════════════════════════════ */
.hero-area {
  background: radial-gradient(circle at 10% 10%, #dcf2ff 0%, #7ecdfd 40%, #46b7fb 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hero-area::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

/* min-height handled above */

/* Clouds */
.clouds-layer {
  inset: 0;
  z-index: 2;
}

.cloud-img {
  position: absolute;
}

.cloud-left {
  top: 15%;
  left: 0;
  width: 35vw;
  max-width: 180px;
}

.cloud-mid {
  top: 17%;
  right: 22%;
  width: 15vw;
  max-width: 200px;
}

.cloud-right {
  top: 20%;
  right: 0;
  width: 40vw;
  max-width: 250px;
}

.cloud-bottom-wave {
  bottom: -3px;
  left: 0;
  z-index: 5;
  line-height: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Hero Content */
.hero {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}

@media (min-width: 992px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 150px;
  }
}

.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 30px;
  z-index: 5;
}

.title {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 76px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1.5px;
}

.title .orange {
  color: var(--orange);
}

.subtitle {
  margin: 0 0 40px 0;
  font-size: clamp(18px, 1.5vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-visual {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-art-wrapper {
  width: 100%;
  max-width: 900px;
  transform: scale(1.6) translateX(5%);
  transform-origin: center center;
  transition: transform 0.3s ease;
}

@media (max-width: 991.98px) {
  .hero-area {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
  }

  .hero-content,
  .hero-visual {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-art-wrapper {
    max-width: 450px;
    transform: scale(1.1);
    margin-bottom: 20px;
  }

  .title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .subtitle {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 25px;
  }
}

/* ── CTA Banner (Final Blue Design) ── */
.cta-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  /* Center the CTA banner */
}

/* ── 主卡片样式 ── */
.cta-card {
  /* 图3风格的活力蓝色渐变 */
  background: linear-gradient(135deg, #4FA5FF 0%, #227DF4 100%);
  border-radius: 28px;
  position: relative;
  overflow: visible;
  /* 允许小鸟突破 */
  box-shadow: 0 20px 40px rgba(34, 125, 244, 0.25);
  padding: 45px 50px;
  display: flex;
  align-items: center;
  min-height: 200px;
  margin-top: 120px;
}

/* ── 背景波浪 (图3元素) ── */
.bg-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  z-index: 1;
  pointer-events: none;
}

.bg-waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.2;
  /* 半透明白色波浪 */
}

/* ── 闪烁的星星 (图2元素) ── */
.sparkle {
  position: absolute;
  z-index: 2;
  animation: twinkle 3s infinite ease-in-out alternate;
}

.sparkle-1 {
  top: 15%;
  left: 45%;
  width: 24px;
}

.sparkle-2 {
  bottom: 20%;
  left: 35%;
  width: 16px;
  opacity: 0.8;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 25%;
  right: 35%;
  width: 20px;
  opacity: 0.9;
  animation-delay: 0.5s;
}

@keyframes twinkle {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── 左侧内容区 ── */
.cta-content {
  position: relative;
  z-index: 10;
  width: 80%;
}

.cta-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* 强调色：图2中柔和的明黄色 */
.text-highlight {
  color: #FFDE59;
  text-shadow: 0 2px 10px rgba(255, 222, 89, 0.3);
}

/* ── 按钮样式 ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background-color: #ffffff;
  color: #227DF4;
  /* 文字颜色与背景呼应 */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  color: #1766CC;
}

.btn-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #227DF4;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* ── 右侧吉祥物 (1.png) ── */
.cta-mascot {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 140%;
  /* 向上突破框架 */
  max-height: 280px;
  z-index: 10;
  filter: drop-shadow(-10px 15px 25px rgba(0, 0, 0, 0.25));
}

/* ── 响应式适配 (移动端) ── */
@media (max-width: 768px) {
  /* Removed global body padding to fix mobile edge issues */

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 110px 20px 40px 20px;
    /* 顶部留足空间 */
    margin-top: 120px;
  }

  .cta-content {
    width: 100%;
  }

  .cta-mascot {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    top: -80px;
    /* 移动端坐立在卡片顶部 */
    height: 180px;
  }

  .sparkle-1 {
    top: 10%;
    left: 10%;
  }

  .sparkle-3 {
    top: 15%;
    right: 10%;
  }
}

/* ── Destinations (Homepage Grid) ── */
.dest-card-landscape {
  height: 150px;
  border-radius: 16px;
  border: 1px solid #eaeef2 !important;
  transition: all 0.25s ease;
  width: 100%;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.dest-card-landscape:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
  border-color: transparent !important;
}

/* ── FAQ & Magazine ── */
.faq-accordion .accordion-item {
  border-color: #eaeaea !important;
  margin-bottom: 1.25rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
  border-color: #d1d1d1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-accordion .accordion-button {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: #fff;
  border-bottom: 0;
  transition: all 0.2s ease;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.1);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #f9f9fb;
  /* Light grey for the expanded question header */
  color: var(--orange);
  box-shadow: none;
}

.faq-accordion .accordion-body {
  background-color: #f9f9fb;
  /* Match the expanded header background */
  border-top: 0;
}

.faq-item {
  border-radius: 12px !important;
}

.magazine-card {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #eaeef2 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease;
  position: relative !important;
}

.magazine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: transparent !important;
}

.magazine-card .magazine-link {
  transition: color 0.25s ease !important;
}

.magazine-card:hover .magazine-title {
  color: var(--text-main) !important;
}

.magazine-card:hover .magazine-link {
  color: var(--orange) !important;
}

.magazine-img-wrapper {
  overflow: hidden;
}

.magazine-img-wrapper img {
  transition: transform 0.5s ease;
}

.magazine-card:hover .magazine-img-wrapper img {
  transform: scale(1.05);
}

/* ── Download Section ── */
.download-section {
  padding: 60px 0;
}

.download-card {
  background: #D1E8FF;
  /* 沿用你的品牌蓝色 */
  border-radius: 40px;
  /* 沿用你的卡片圆角 */
  position: relative;
  /* 关键：作为手机绝对定位的基准 */

  /* 限制最大宽度，让排版更紧凑高级 */
  max-width: 1000px;
  width: 100%;
  margin: 80px auto 40px auto;
  /* 顶部留出 80px 空间，让手机安全突破 */

  /* 上下 padding 决定卡片高度 */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.download-heading {
  font-size: clamp(32px, 3.5vw, 48px);
  color: #000;
  line-height: 1.15;
  letter-spacing: -1px;
}

.store-buttons img {
  height: 42px !important;
  transition: transform 0.2s ease;
  object-fit: contain;
}

.store-buttons a:hover img {
  transform: scale(1.03);
}

/* 桌面端：绝对定位悬浮手机 */
.phone-main-img {
  position: absolute;
  bottom: 24px;
  /* 底部不突破，与卡片底边保持 24px 间距 */
  right: 6%;
  /* 靠右排列 */
  width: 230px;
  /* 控制手机宽度，使其上方自然突破 */
  z-index: 10;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.15));
}

/* 响应式适配：iPad 及竖屏设备 */
@media (max-width: 991.98px) {
  .download-card {
    margin-top: 60px;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .download-heading {
    font-size: 32px;
  }

  /* 小屏幕恢复正常文档流，上下排列并居中 */
  .phone-main-img {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 40px auto 0 auto;
    display: block;
    width: 220px;
  }
}

/* 响应式适配：小屏幕手机 */
@media (max-width: 575.98px) {
  .phone-main-img {
    width: 190px;
  }
}

/* Extra Large Screens Scaling */
/* Content Sections Transition */
.content-white {
  position: relative;
  z-index: 8;
  background-color: #fff;
  margin-top: -2px;
  /* Pull up to hide hero boundary sub-pixel gaps */
}

@media (min-width: 2000px) {
  .hero-area .site-container {
    max-width: 1800px;
  }

  .hero-art-wrapper {
    transform: scale(1.85) translateX(8%);
  }

  .title {
    font-size: 88px;
  }

  .subtitle {
    font-size: 34px;
  }
}

/* ==========================================================================
   Orange-Theme Search Bar Redesign
   ========================================================================== */

.search-bar-wrapper {
  max-width: 580px;
  width: 100%;
  position: relative;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 992px) {
  .search-bar-wrapper {
    margin: 0 0 1.5rem 0;
  }
}

/* Overrides search button and pin icon color to brand orange */
.search-bar-wrapper .search-btn-round {
  background: var(--orange) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar-wrapper .search-btn-round:hover {
  background: var(--orange-hover) !important;
  transform: scale(1.05);
}

.search-bar-wrapper .search-btn-round svg {
  stroke: #ffffff !important;
}

.search-bar-wrapper .search-icon-left {
  color: #6a6a6a !important;
}

.search-bar-wrapper .search-bar-container:focus-within {
  border-color: rgba(255, 105, 8, 0.3) !important;
  box-shadow: 0 12px 40px rgba(255, 105, 8, 0.15) !important;
}

/* Desktop Floating Dropdown Menu */
.search-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(255, 105, 8, 0.12);
  z-index: 2100;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px !important;
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.search-dropdown-menu::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

.search-dropdown-item {
  padding: 10px 16px !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main) !important;
  cursor: pointer;
  text-align: left;
  border-radius: 10px !important;
  margin: 2px 0 !important;
  transition: all 0.2s ease;
}

.search-dropdown-item:hover {
  background: #f4f4f4 !important;
/*  background-color: #fff8f3 !important;*/
}

.search-no-results {
  font-size: 15px;
  color: #64748b;
}

/* Mobile Bottom-Sheet Overlay Modal Backdrop */
.search-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
}

/* Mobile Bottom-Sheet Overlay Modal Drawer */
.search-mobile-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
}

/* Drag Handle */
.search-mobile-drag-handle {
  width: 100%;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  touch-action: none;
  flex-shrink: 0;
}

.search-mobile-drag-bar {
  width: 40px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
}

/* Prevent body scrolling when mobile search is open */
body.search-overlay-open {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}

.search-mobile-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding: 0 16px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.search-mobile-back {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.search-mobile-back:active {
  background-color: #f1f5f9;
}

.search-mobile-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.search-mobile-search-box {
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #f8fafc;
  flex-shrink: 0;
}

.search-mobile-input-container {
  position: relative;
  width: 100%;
}

.search-mobile-input {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 0 48px 0 20px;
  font-size: 15px;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.search-mobile-input:focus {
  border-color: var(--orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 105, 8, 0.15);
}

.search-mobile-input::placeholder {
  color: #94a3b8;
}

.search-mobile-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.search-mobile-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-mobile-item {
  padding: 16px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-align: left;
}

.search-mobile-item:active {
  background-color: #fff8f3 !important;
  color: var(--orange) !important;
}

.search-mobile-no-results {
  padding: 40px 16px;
  text-align: center;
  color: #94a3b8;
}
