/* ===== 登录前「EXPLORE THE WORLD」欢迎页 =====
   取代原来的「线路测速」闸门：不再显示节点延迟，改成旅游目的地展示页。
   行为与旧版一致：仅出现在 #/login（未登录打开根路径时也会出现），
   点「Enter Now」后本次页面内不再出现；?gate=1 可强制显示。 */
html.mgm-gate-open body { overflow: hidden !important; }

.mgm-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(14px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #f4fbf7 0%, #d9f0e6 42%, #a9dfd0 100%);
  color: #16352b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, sans-serif;
}
.mgm-gate * { box-sizing: border-box; }

/* 竖屏：任何屏幕都保持手机宽度一列 */
.mgm-gate-panel { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------- 顶部欢迎头图 ---------- */
.mgm-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 14px;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px 15px;
  background-color: #0f3a4d;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(15, 70, 60, .18);
}
/* 左侧压暗，保证白字在亮图上也能看清 */
.mgm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 40, 52, .72) 0%, rgba(6, 40, 52, .34) 46%, rgba(6, 40, 52, .06) 100%);
}
.mgm-hero-glow {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.mgm-hero-inner { position: relative; z-index: 1; }
.mgm-hero-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: .5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.mgm-hero-title span {
  display: block;
  color: #6fe3a8;
  font-size: 21px;
  font-weight: 700;
}
.mgm-hero-sub {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .93);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------- 目的地卡片 ---------- */
.mgm-dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.mgm-dest {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 70, 60, .1);
}
.mgm-dest-img {
  height: 92px;
  background-color: #dcefe6;
  background-size: cover;
  background-position: center;
}
.mgm-dest-body { padding: 9px 10px 11px; }
.mgm-dest-name {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 800;
  color: #123c30;
}
.mgm-dest-tag {
  margin: 0 0 7px;
  color: #6b8579;
  font-size: 10.5px;
  line-height: 1.4;
  min-height: 29px;
}
.mgm-dest-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.mgm-dest-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7f6ef;
  color: #2b6b55;
  font-size: 9.5px;
  white-space: nowrap;
}
.mgm-dest-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.mgm-dest-score {
  color: #17594a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.mgm-dest-score b { color: #f0a92b; font-weight: 800; }
.mgm-dest-score em {
  color: #8ba296;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
}
.mgm-dest-price { color: #7d968a; font-size: 9.5px; white-space: nowrap; }
.mgm-dest-price b { color: #123c30; font-size: 13px; font-weight: 800; }

/* ---------- 底部按钮 ---------- */
.mgm-gate-cta { padding: 26px 0 6px; }
.mgm-gate-btn {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 15px 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2fd08a, #12a86b);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(18, 168, 107, .34);
}
.mgm-gate-btn:active { transform: translateY(1px); opacity: .94; }

/* 更矮的小屏：压缩卡片高度，尽量一屏放得下 */
@media (max-height: 720px) {
  .mgm-hero { min-height: 156px; }
  .mgm-hero-title { font-size: 25px; }
  .mgm-hero-title span { font-size: 18px; }
  .mgm-dest-img { height: 78px; }
  .mgm-dest-tag { min-height: 0; }
  .mgm-gate-cta { padding-top: 18px; }
}
