/* Variables */
:root {
  --bg-body: #f3f3f3;
  --bg-footer: #000;
  --text-main: #111;
  --text-light: #888;
  --accent: #00d0ff;
  --modal-bg: rgba(12, 18, 28, 0.92);
}

/* Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  height: 100%;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  background: var(--bg-body);
  overflow-y: scroll;
  font-family: system-ui, Arial, sans-serif;
}

/* Top Nav */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255,255,255,0.96);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.nav-left { font-weight: bold; height: 100%;}
.nav-center { font-size: 13px; color: var(--text-light); }
.hamburger {
  width: 18px; height: 2px; background: #111; position: relative; cursor: pointer;
}
.hamburger:before, .hamburger:after {
  content: ""; width: 18px; height: 2px; background: #111; position: absolute; left: 0;
}
.hamburger:before { top: -6px; }
.hamburger:after { top: 6px; }

/* Scroll Hint Arrow */
.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  opacity: 0.55;
  animation: bounce 1.6s infinite;
  z-index: 300;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Page Sections */
.page {
  height: 100vh;
  scroll-snap-align: start;
  padding: 72px 16px 35px;
  display: flex; align-items: center; justify-content: center;
}

/* Page Inner (Mobile: vertical) */
.page-inner {
  width: 92%; max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Images */
.page-image {
  width: 100%; height: 180px; background: #ddd;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
}

/* Text */
.page-title { font-size: 22px; font-weight: 600; }
.page-tagline { font-size: 13px; color: var(--text-light); }
.page-points { padding-left: 18px; font-size: 14px; display: flex; gap: 4px; flex-direction: column; }

.details-btn {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff; cursor: pointer;
}

/* Contact/Footer */
footer.page {
  background: var(--bg-footer);
  color: #fff;
}
footer .page-tagline { color: #aaa;}
footer .page-points { color: #ccc; }

/* Footer container – mobile: vertical, desktop: horizontal */
.footer-container {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* 默认竖屏模式 */
  gap: 22px;
}

/* 左右分支 */
.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 链接颜色 */
footer a {
  color: #fff;
  text-decoration: underline;
}

.allright {color: #6f706f; bottom: 3px; position:fixed; font-size: 8px;}

/* 横屏 / 桌面模式：左右排列 */
@media (min-width: 768px) and (orientation: landscape),
       (min-width: 900px) {     /* 桌面也触发 */

  .footer-container {
    flex-direction: row;       /* 左右排 */
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-left {
    width: 48%;
  }

  .footer-right {
    width: 48%;
    text-align: left;         /* 信息靠右对齐更专业 */
  }
}
.footer-actions {
  margin: 10px 0 20px;
  display: flex;
  gap: 12px;
}

.footer-btn {
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s;
  display: inline-block;
}

.footer-btn.call {
  background: #0a84ff;
  color: white;
}

.footer-btn.whatsapp {
  background: #25d366;
  color: white;
}
.footer-btn.nav {
  background: #ff6600;
  color: #fff;
  cursor: pointer;
}


.footer-btn:hover {
  opacity: 0.8;
}


/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 18px; right: 16px;
  width: 56px; height: 56px;
  border-radius: 50%; background: #25d366;
  color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 300;
}
.hidden { opacity: 0; pointer-events: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 18px; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 300;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 1100;
}
.modal-overlay.active { display: flex; }

.modal-content {
  width: 90%; max-width: 480px;
  background: var(--modal-bg);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px rgba(0,208,255,0.28);
}
.modal-title { margin-bottom: 10px; font-size: 18px; color: #0ad9f5;}
.modal-body { color: #d0dbff; line-height: 1.5; }
.modal-close {
  position: absolute; top: 10px; right: 16px;
  font-size: 22px; cursor: pointer; color: #ccc;
}

/* Desktop: left-right layout */
@media (min-width: 768px) {
  .page-inner {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  .page-image { width: 45%; height: 260px; }
  .page-text { width: 50%; }
}
/* ------------------------------ */
/*  NAV MENU - DESKTOP VERSION    */
/* ------------------------------ */

.nav-menu-desktop {
  display: none;
  gap: 20px;
  align-items: right;
}

.nav-menu-desktop a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 14px;
}

.nav-menu-desktop a:hover {
  color: var(--accent);
}


/* ------------------------------ */
/*  SIDE MENU (MOBILE)            */
/* ------------------------------ */

.side-menu {
  position: fixed;
  top: 0; right: -260px;
  width: 260px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  transition: right 0.35s ease;
  z-index: 2000;
}

.side-menu-inner {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-menu-inner a {
  text-decoration: none;
  font-size: 16px;
  color: #111;
  font-weight: 500;
}

.side-menu-inner a:hover {
  color: var(--accent);
}

/* Background overlay */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  z-index: 1990;
}

/* When active */
.side-menu.active {
  right: 0;
}

.side-menu-overlay.active {
  display: block;
}


/* ------------------------------ */
/*  RESPONSIVE: DESKTOP MODE      */
/* ------------------------------ */

@media (min-width: 768px) {
  
  /* hamburger disappears */
  #hamburger {
    display: none;
  }

  /* show desktop menu */
  .nav-menu-desktop {
    display: flex;
  }

  /* center label hidden on desktop */
  .nav-center {
    display: none;
  }
}

.map-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-box iframe {
  width: 100%;
  height: 220px;
  border: 0;
}


/* Desktop / horizontal layout */
@media (min-width: 768px) {
  .map-box iframe {
    height: 250px;
  }
}
