/* 玹翔旅遊 v9.3｜全站寬度修正：避免桌機畫面被壓成窄版 */
html,
body{
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  overflow-x:hidden;
  background:#050505;
}

body > main,
main,
#top{
  width:100%;
  max-width:none;
}

#xx-site-header,
#xx-site-footer,
#xx-site-floating{
  width:100%;
}

.wrap,
.container,
.xx-container{
  width:min(1180px, calc(100% - 40px));
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

.hero{
  width:100%;
  min-height:90vh;
  padding:90px 0 70px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:36px;
  align-items:center;
}

.hero-card,
.index-hero-card{
  width:100%;
}

.news-section,
.intro,
.faq,
.third-bind-section{
  width:100%;
}

@media(max-width:980px){
  .wrap,
  .container,
  .xx-container{
    width:min(100% - 28px, 1180px);
  }

  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:auto;
    padding:70px 0 42px;
  }
}

/* 玹翔旅遊｜Header / Logo / 手機選單修復 */
#xx-site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(212,175,55,.22);
}

#xx-site-header .xx-topbar{
  width:100%;
  margin:0;
  padding:0;
}

#xx-site-header .xx-nav-wrap{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

#xx-site-header .xx-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  flex:0 0 auto;
  min-width:190px;
}

#xx-site-header .logo-img{
  width:54px;
  height:54px;
  border-radius:16px;
  object-fit:cover;
  display:block;
  background:#111;
  border:1px solid rgba(212,175,55,.35);
}

#xx-site-header .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  white-space:nowrap;
}

#xx-site-header .brand-text strong{
  font-size:18px;
  color:#f8e7a1;
}

#xx-site-header .brand-text small{
  font-size:11px;
  color:rgba(255,255,255,.65);
  margin-top:4px;
}

#xx-site-header .xx-nav-toggle{
  display:none;
}

#xx-site-header .xx-hamburger{
  display:none;
  color:#f8e7a1;
  font-size:28px;
  cursor:pointer;
}

#xx-site-header .xx-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  max-width:920px;
}

#xx-site-header .xx-menu a,
#xx-site-header .drop-btn{
  color:rgba(255,255,255,.88);
  text-decoration:none;
  background:transparent;
  border:0;
  font:inherit;
  font-size:14px;
  font-weight:800;
  padding:9px 10px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
}

#xx-site-header .xx-menu a:hover,
#xx-site-header .drop:hover .drop-btn,
#xx-site-header .drop.active .drop-btn{
  color:#050505;
  background:linear-gradient(135deg,#f8e7a1,#d4af37);
}

#xx-site-header .drop{
  position:relative;
  display:inline-flex;
}

#xx-site-header .drop-list{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:190px;
  padding:10px;
  border-radius:18px;
  background:rgba(10,10,10,.98);
  border:1px solid rgba(212,175,55,.28);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}

#xx-site-header .drop:hover .drop-list,
#xx-site-header .drop.active .drop-list{
  display:grid;
  gap:4px;
}

#xx-site-header .drop-list a{
  display:block;
  border-radius:12px;
  padding:10px 12px;
}

@media(max-width:980px){
  #xx-site-header .xx-nav-wrap{
    min-height:72px;
  }

  #xx-site-header .xx-hamburger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border:1px solid rgba(212,175,55,.35);
    border-radius:14px;
    background:rgba(255,255,255,.06);
  }

  #xx-site-header .xx-menu{
    display:none;
    position:absolute;
    left:14px;
    right:14px;
    top:78px;
    max-width:none;
    max-height:calc(100vh - 96px);
    overflow-y:auto;
    padding:14px;
    border-radius:22px;
    background:rgba(8,8,8,.98);
    border:1px solid rgba(212,175,55,.25);
    box-shadow:0 24px 70px rgba(0,0,0,.55);
  }

  #xx-site-header .xx-nav-toggle:checked ~ .xx-menu{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  #xx-site-header .xx-menu a,
  #xx-site-header .drop-btn{
    width:100%;
    text-align:left;
    padding:13px 14px;
    font-size:15px;
  }

  #xx-site-header .drop{
    display:block;
    width:100%;
  }

  #xx-site-header .drop-list{
    position:static;
    display:none;
    min-width:0;
    margin:6px 0 8px;
    padding:8px;
    box-shadow:none;
    background:rgba(255,255,255,.045);
  }

  #xx-site-header .drop.active .drop-list{
    display:grid;
  }

  #xx-site-header .brand-text strong{
    font-size:17px;
  }

  #xx-site-header .brand-text small{
    font-size:10px;
  }
}

/* 玹翔旅遊｜Header / Logo / 手機選單修復 */
#xx-site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(212,175,55,.22);
}

#xx-site-header .xx-topbar{
  width:100%;
  margin:0;
  padding:0;
}

#xx-site-header .xx-nav-wrap{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

#xx-site-header .xx-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  flex:0 0 auto;
  min-width:190px;
}

#xx-site-header .logo-img{
  width:54px;
  height:54px;
  border-radius:16px;
  object-fit:cover;
  display:block;
  background:#111;
  border:1px solid rgba(212,175,55,.35);
}

#xx-site-header .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  white-space:nowrap;
}

#xx-site-header .brand-text strong{
  font-size:18px;
  color:#f8e7a1;
}

#xx-site-header .brand-text small{
  font-size:11px;
  color:rgba(255,255,255,.65);
  margin-top:4px;
}

#xx-site-header .xx-nav-toggle{
  display:none;
}

#xx-site-header .xx-hamburger{
  display:none;
  color:#f8e7a1;
  font-size:28px;
  cursor:pointer;
}

#xx-site-header .xx-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  max-width:920px;
}

#xx-site-header .xx-menu a,
#xx-site-header .drop-btn{
  color:rgba(255,255,255,.88);
  text-decoration:none;
  background:transparent;
  border:0;
  font:inherit;
  font-size:14px;
  font-weight:800;
  padding:9px 10px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
}

#xx-site-header .xx-menu a:hover,
#xx-site-header .drop:hover .drop-btn,
#xx-site-header .drop.active .drop-btn{
  color:#050505;
  background:linear-gradient(135deg,#f8e7a1,#d4af37);
}

#xx-site-header .drop{
  position:relative;
  display:inline-flex;
}

#xx-site-header .drop-list{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:190px;
  padding:10px;
  border-radius:18px;
  background:rgba(10,10,10,.98);
  border:1px solid rgba(212,175,55,.28);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}

#xx-site-header .drop:hover .drop-list,
#xx-site-header .drop.active .drop-list{
  display:grid;
  gap:4px;
}

#xx-site-header .drop-list a{
  display:block;
  border-radius:12px;
  padding:10px 12px;
}

@media(max-width:980px){
  #xx-site-header .xx-nav-wrap{
    min-height:72px;
  }

  #xx-site-header .xx-hamburger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border:1px solid rgba(212,175,55,.35);
    border-radius:14px;
    background:rgba(255,255,255,.06);
  }

  #xx-site-header .xx-menu{
    display:none;
    position:absolute;
    left:14px;
    right:14px;
    top:78px;
    max-width:none;
    max-height:calc(100vh - 96px);
    overflow-y:auto;
    padding:14px;
    border-radius:22px;
    background:rgba(8,8,8,.98);
    border:1px solid rgba(212,175,55,.25);
    box-shadow:0 24px 70px rgba(0,0,0,.55);
  }

  #xx-site-header .xx-nav-toggle:checked ~ .xx-menu{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  #xx-site-header .xx-menu a,
  #xx-site-header .drop-btn{
    width:100%;
    text-align:left;
    padding:13px 14px;
    font-size:15px;
  }

  #xx-site-header .drop{
    display:block;
    width:100%;
  }

  #xx-site-header .drop-list{
    position:static;
    display:none;
    min-width:0;
    margin:6px 0 8px;
    padding:8px;
    box-shadow:none;
    background:rgba(255,255,255,.045);
  }

  #xx-site-header .drop.active .drop-list{
    display:grid;
  }

  #xx-site-header .brand-text strong{
    font-size:17px;
  }

  #xx-site-header .brand-text small{
    font-size:10px;
  }
}

/* 玹翔旅遊｜booking.html 高端排版修飾 */
body:has(form) .booking-page,
body:has(form) main,
body:has(form) .page,
body:has(form) .container{
  max-width:1180px;
}

form{
  width:min(100%, 980px);
  margin:0 auto 80px;
  padding:28px;
  border:1px solid rgba(212,175,55,.28);
  border-radius:28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(212,175,55,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow:0 28px 90px rgba(0,0,0,.45);
}

form label{
  color:#f8e7a1;
  font-size:13px;
  font-weight:900;
  letter-spacing:.03em;
}

form input,
form select,
form textarea{
  width:100%;
  min-height:44px;
  box-sizing:border-box;
  border:1px solid rgba(212,175,55,.28);
  border-radius:14px;
  background:rgba(10,10,10,.72);
  color:#fff;
  padding:12px 14px;
  outline:none;
  transition:.18s ease;
}

form textarea{
  min-height:96px;
  resize:vertical;
}

form input:focus,
form select:focus,
form textarea:focus{
  border-color:#f8e7a1;
  box-shadow:0 0 0 4px rgba(212,175,55,.14);
}

form input::placeholder,
form textarea::placeholder{
  color:rgba(255,255,255,.42);
}

form button,
form [type="submit"],
form .btn,
form .button{
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#fff1a8,#d4af37);
  color:#080808;
  font-weight:950;
  padding:13px 22px;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(212,175,55,.22);
}

form button:hover,
form [type="submit"]:hover,
form .btn:hover,
form .button:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
}

form .form-row,
form .form-group,
form .field,
form .input-group,
form .booking-field,
form .xx-field{
  min-width:0;
}

form > div,
form .form-grid,
form .booking-grid,
form .grid{
  gap:14px;
}

form .addon,
form .addons,
form [class*="addon"],
form [class*="Addon"]{
  border-color:rgba(212,175,55,.22)!important;
}

.xx-return-card{
  width:min(100%, 980px);
  margin:18px auto;
  padding:22px;
  border:1px solid rgba(212,175,55,.34);
  border-radius:24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(212,175,55,.12), transparent 36%),
    rgba(255,255,255,.045);
}

.xx-return-card h3{
  color:#f8e7a1;
  font-size:20px;
  margin-bottom:16px;
}

.xx-return-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.xx-return-grid label{
  display:grid;
  gap:7px;
}

@media(max-width:760px){
  form{
    width:calc(100% - 24px);
    padding:18px;
    border-radius:22px;
  }

  .xx-return-card{
    width:calc(100% - 24px);
    padding:18px;
  }

  .xx-return-grid{
    grid-template-columns:1fr;
  }

  form input,
  form select,
  form textarea{
    font-size:16px;
  }
}

/* 玹翔旅遊｜首頁 Hero 版型急救修復 */
body,
html{
  overflow-x:hidden;
}

body{
  writing-mode:horizontal-tb !important;
}

#top.hero,
.hero{
  position:relative;
  width:100% !important;
  min-height:calc(100vh - 86px);
  display:flex;
  align-items:center;
  overflow:hidden;
}

#top .hero-grid,
.hero .hero-grid,
.wrap.hero-grid{
  width:min(1280px, calc(100% - 64px)) !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr) !important;
  gap:clamp(28px,4vw,64px) !important;
  align-items:center !important;
}

.hero-card,
.hero-content,
.hero-left,
.hero-copy{
  width:100% !important;
  max-width:720px !important;
  min-width:0 !important;
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
}

.hero h1,
.hero-title,
.hero-card h1,
#top h1{
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
  white-space:normal !important;
  word-break:keep-all !important;
  overflow-wrap:normal !important;
  max-width:720px !important;
  font-size:clamp(44px,5.2vw,86px) !important;
  line-height:1.12 !important;
  letter-spacing:-.04em !important;
}

.hero p,
.hero-card p,
.hero-copy p{
  writing-mode:horizontal-tb !important;
  white-space:normal !important;
  max-width:680px !important;
  line-height:1.9 !important;
}

.hero-visual,
.hero-right,
.hero-media,
.hero-image{
  width:100% !important;
  min-width:0 !important;
}

.hero-visual img,
.hero-right img,
.hero-media img,
.hero-image img,
.hero img{
  max-width:100% !important;
  height:auto !important;
  object-fit:cover !important;
}

@media(max-width:980px){
  #top.hero,
  .hero{
    min-height:auto;
    padding:54px 0 40px !important;
  }

  #top .hero-grid,
  .hero .hero-grid,
  .wrap.hero-grid{
    width:calc(100% - 28px) !important;
    grid-template-columns:1fr !important;
    gap:28px !important;
  }

  .hero-card,
  .hero-content,
  .hero-left,
  .hero-copy{
    max-width:none !important;
  }

  .hero h1,
  .hero-title,
  .hero-card h1,
  #top h1{
    max-width:none !important;
    font-size:clamp(36px,11vw,58px) !important;
    line-height:1.15 !important;
  }
}
