*

/* === 小藥丸公告（跑馬燈） === */
.marquee-pill{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  max-width: min(920px, 92vw);
  width: 92vw;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  overflow: hidden;           /* 關鍵：只露出 pill 內區域 */
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: auto;       /* 允許 hover 暫停 */
}

.marquee-track{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-slide 18s linear infinite;
}

.marquee-text{
  display: inline-block;
  padding-right: 2rem; /* 兩段文字之間距離 */
  font-size: 14px;
  letter-spacing: .3px;
}

.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track::before { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), transparent); }
.marquee-track::after { right: 0; background: linear-gradient(-90deg, rgba(0,0,0,.55), transparent); }

/* 跑馬燈動畫（右 → 左） */
@keyframes marquee-slide{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 因為我們放了兩份，位移 50% 可無縫循環 */
}

:root{ --nav-h:56px; --marquee-h:40px; }



.marquee-close{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%;
  border:0; background:rgba(255,255,255,.12); color:#fff;
  font-size:16px; line-height:26px; cursor:pointer;
}
.marquee-close:hover{ background:rgba(255,255,255,.22); }

/* === PWA App 安裝提示卡片 === */
#pwa-install-card {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 420px;
}

.pwa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  animation: slideUp .35s ease;
  font-family: 'Noto Sans TC', sans-serif;
}

.pwa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.pwa-texts {
  flex: 1;
  min-width: 0;
}

.pwa-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.pwa-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pwa-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #0ca678;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.pwa-btn:hover { background: #099268; }

.pwa-link {
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.pwa-hidden {
  display: none;
}

@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* === 使用者評論｜跑馬燈副卡牌 === */
.reviews-marquee{
  max-width: min(1200px, 92vw);
  margin: 2.5rem auto 3.5rem;
  position: relative;
}
.reviews-mask{
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
/* 左右遮罩，讓進出場更柔順 */
.reviews-mask::before,
.reviews-mask::after{
  content:"";
  position:absolute; top:0; bottom:0; width:60px; z-index:2;
  pointer-events:none;
}
.reviews-mask::before{ left:0; background:linear-gradient(90deg, rgba(0,0,0,.55), transparent); }
.reviews-mask::after{ right:0; background:linear-gradient(-90deg, rgba(0,0,0,.55), transparent); }

/* 滾動軌道 */
.reviews-track{
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  will-change: transform;
  animation: reviews-slide 30s linear infinite;
  padding-left: 60px; /* 留空讓卡片從遮罩後滑入 */
}

/* 副卡牌（小膠囊卡片） */
.review-card{
  display:inline-flex; align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  font-size: 14px; line-height: 1.5;
  color:#fff;
  transition: transform .25s ease, background .25s ease;
  white-space: nowrap;
}
.review-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}

/* 滑鼠移入整條暫停 */
.reviews-mask:hover .reviews-track{
  animation-play-state: paused;
}

/* 讓跑馬燈根據內容長度循環（JS 會幫忙複製一次內容）*/
@keyframes reviews-slide{
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 兩份內容 → 位移 50% 可無縫循環 */
}

/* RWD 微調字級與間距 */
@media (max-width: 768px){
  .review-card{ font-size: 13px; padding: 8px 12px; }
  .reviews-mask::before, .reviews-mask::after{ width: 44px; }
}
@media (max-width: 480px){
  .review-card{ font-size: 12.5px; padding: 7px 10px; }
  .reviews-mask::before, .reviews-mask::after{ width: 36px; }
}


/** 🔧 主標題與天氣卡整體排版微調 **/
.header-layout-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* 讓標題置中 */
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
}

/* 主標題區塊調整 */
.hero-section h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.hero-section .subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 1.6rem;
}

/* 天氣卡縮小尺寸 */
.weather-glass-card {
  width: min(90%, 520px);   /* 原本 680px 改小一號 */
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  margin-top: 0.5rem;
  transform: scale(0.92);
}

.weather-center .temp-now {
  font-size: 2.2rem; /* 原本 2.8rem → 更輕盈 */
}

.weather-icon {
  font-size: 2.4rem; /* 圖示縮小 */
}

.weather-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

/* RWD 手機版微調 */
@media (max-width: 768px) {
  .weather-glass-card {
    width: 92%;
    transform: scale(1);
    padding: 1.2rem;
  }
  .hero-section h1 { font-size: 1.6rem; }
}
/** ======================
🌈 琉急式天氣卡
====================== */
.weather-bar {
  width: min(95%, 760px);
  margin: 1.2rem auto 0.4rem auto;
  padding: 1.2rem;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(115, 196, 230, 0.32) 0%,
    rgba(74, 144, 180, 0.24) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  animation: fadeInUp 0.9s ease-out;
}

/** ======================
☀️ 上層主天氣區
====================== */
.weather-top {
  margin-bottom: 0.9rem;
}

.weather-center {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 保留 */
}

.weather-left-group {
  display: flex;
  align-items: center;
  gap: 12px;

  flex: 1;              /* 🔥 關鍵：吃掉左側空間 */
  justify-content: flex-start; /* 靠左 */
}
.weather-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 3.2rem !important;
  line-height: 1;
  animation: none;

  border-radius: 18px;
}

.weather-main-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: flex-start;  /* 🔥 關鍵 */
  text-align: left;         /* 🔥 保險 */
}

.weather-label {
  font-size: 0.95rem;     /* 放大 */
  font-weight: 700;       /* 更清楚 */
  color: rgba(255,255,255,0.85);

  letter-spacing: 0.5px;  /* 微質感 */
  margin-bottom: 4px;
}

.weather-desc {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
}

.temp-block {
  text-align: right;
}

.temp-now {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg,#fff,#7df9c1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.temp-feel {
  font-size: 0.9rem;
  opacity: 0.85;
}

/** ======================
📝 天氣預報區
====================== */
.weather-forecast-box {
  margin: 10px 0 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.weather-forecast-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 700;
}

.weather-forecast-text {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

/** ======================
📦 六宮格
====================== */
.weather-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 6px;
}

.info {
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: 0.2s;
}

.info:hover {
  transform: none;
}

.info i {
  color: #7df9c1;
  margin-bottom: 4px;
}

.info span {
  display: block;
  font-weight: 700;
}

.info small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/** ======================
🎬 動畫
====================== */
@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   基本版（先當手機基礎）
   ========================= */
.weather-bar {
  width: 92%;
  margin: 1rem auto 1.1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.weather-top {
  margin-bottom: 0.85rem;
}

.weather-center {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.weather-left-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.weather-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem !important;
  line-height: 1;
  animation: none;
}

.weather-main-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.weather-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 4px;
}

.weather-desc {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.temp-block {
  min-width: 88px;
  text-align: right;
  flex-shrink: 0;
}

.temp-now {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #63e6be);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.temp-feel {
  margin-top: 4px;
  font-size: 0.84rem;
  opacity: 0.88;
}

.weather-stats-box {
  margin-top: 0.8rem;
}

.weather-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.info {
  min-width: auto;
  min-height: 88px;
  padding: 0.55rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255,255,255,0.07);
}

.info i {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #7df9c1;
}

.info span {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.info small {
  font-size: 0.72rem;
  opacity: 0.82;
  text-align: center;
}

.weather-forecast-box {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.weather-forecast-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.weather-forecast-title i {
  font-size: 0.95rem;
  color: #dffff3;
}

.weather-forecast-title span {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.weather-forecast-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgb(255, 255, 255);
  word-break: break-word;
}

/* =========================
   平板版
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .weather-bar {
    width: min(92%, 760px);
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 20px;
  }

  .weather-center {
    align-items: center;
    gap: 1rem;
  }

  .weather-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    font-size: 2.3rem !important;
  }

  .weather-label {
    font-size: 0.98rem;
  }

  .weather-desc {
    font-size: 1.12rem;
  }

  .temp-block {
    min-width: 100px;
  }

  .temp-now {
    font-size: 2.5rem;
  }

  .temp-feel {
    font-size: 0.86rem;
  }

  .weather-right {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.55rem;
  }

  .info {
    min-height: 84px;
    padding: 0.55rem 0.3rem;
    border-radius: 12px;
  }

  .info i {
    font-size: 0.92rem;
  }

  .info span {
    font-size: 0.9rem;
  }

  .info small {
    font-size: 0.68rem;
  }

  .weather-forecast-box {
    margin-top: 0.75rem;
    padding: 0.8rem 0.95rem;
  }

  .weather-forecast-title span {
    font-size: 0.96rem;
  }

  .weather-forecast-text {
    font-size: 0.88rem;
  }
}

@media (min-width: 1025px) {
  .weather-bar {
    width: min(82%, 760px);
    margin: 1.3rem auto 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;

    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    grid-template-areas:
      "top stats"
      "forecast forecast";
    gap: 0.85rem 0.9rem;
    align-items: start;
  }

  .weather-top {
    grid-area: top;
    margin: 0;
    min-width: 0;
  }

  .weather-stats-box {
    grid-area: stats;
    margin: 0;
  }

  .weather-center {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
  }

  .weather-left-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
  }

  .weather-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    font-size: 2.1rem !important;
    border-radius: 16px;
  }

  .weather-main-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
  }

  .weather-label {
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.2;
    writing-mode: horizontal-tb; /* 防止直排 */
  }

  .weather-desc {
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0;
    word-break: keep-all;
    white-space: normal;
    writing-mode: horizontal-tb; /* 防止直排 */
  }

  .temp-block {
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
  }

  .temp-now {
    font-size: 2.25rem;
    line-height: 1;
  }

  .temp-feel {
    font-size: 0.8rem;
    margin-top: 4px;
  }

.weather-right {
  display: flex;
  flex-wrap: nowrap;      /* 一排，不換行 */
  justify-content: center;   /* ✅ 置中 */
  align-items: stretch;
  gap: 0.45rem;
}
.weather-stats-box {
  display: flex;
  justify-content: center;   /* ✅ 右側整塊置中 */
}

.weather-bar {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;       /* ✅ 上排垂直置中 */
}
.info {
  width: 62px;            /* 固定寬 */
  min-width: 62px;
  min-height: 62px;
  padding: 0.4rem 0.25rem;
  border-radius: 12px;
  flex-shrink: 0;         /* 不要被壓縮到換行 */
}

  .info i {
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
  }

  .info span {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .info small {
    font-size: 0.6rem;
  }

  .weather-forecast-box {
    grid-area: forecast;
    margin-top: 0.1rem;
    width: 100%;
    padding: 0.68rem 0.8rem;
    border-radius: 15px;
  }

  .weather-forecast-title {
    gap: 4px;
    margin-bottom: 4px;
  }

  .weather-forecast-title i {
    font-size: 0.82rem;
  }

  .weather-forecast-title span {
    font-size: 0.82rem;
  }

  .weather-forecast-text {
    font-size: 0.76rem;
    line-height: 1.45;
  }
}




/* 快捷功能標題不要被擠太近 */
.app-dashboard-enhanced {
  margin-top: 8px !important;
}

/* 手機版 */
@media (max-width: 520px) {
  .hero-cta-row {
    padding: 0 14px;
    margin-bottom: 24px;
  }

  #ticket-main-btn.app-hero-btn {
    min-height: 74px;
    border-radius: 22px;
  }

  .hero-btn-content {
    min-height: 74px;
    padding: 14px 16px;
    gap: 12px;
  }

  .hero-cta-row .hero-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.05rem !important;
  }

  .hero-cta-row .hero-texts .hero-title {
    font-size: 1rem !important;
  }

  .hero-cta-row .hero-texts .hero-sub {
    font-size: 0.78rem !important;
  }

  .hero-cta-row .ticket-options {
    grid-template-columns: 1fr !important;
  }

  .hero-cta-row .ticket-options.is-open {
    max-height: 420px;
  }
}
/* =========================
🧭 琉急式固定導覽列（新版本）
========================= */
:root {
  --nav-h: 68px; /* 導覽列固定高度 */
}

/* 導覽列主體 */
#nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 10000;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 滾動後增加陰影與深度 */
#nav-fixed.scrolled {
  background: rgba(0, 40, 80, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 導覽內容容器 */
.nav-container {
  width: min(94%, 1080px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo {
  height: 50px;
  transition: transform 0.3s ease;
}
.nav-logo:hover {
  transform: scale(1.06);
}

/* 右側選單 */
.nav-right {
  display: flex;
  gap: 2rem;
}
.nav-right a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  position: relative;
  transition: all 0.3s ease;
}

/* hover 光暈掃光 */
.nav-right a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  left: -100%;
  transition: left 0.5s ease;
}
.nav-right a:hover::before {
  left: 100%;
}
.nav-right a:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ==================================================
   使用者短評
   ================================================== */

.reviews-34-marquee {
  width: min(calc(100% - 32px), 1040px);
  margin: 34px auto;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

/* 標題 */
.reviews-34-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.reviews-34-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
}

.reviews-34-heading p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
}

.reviews-34-heading > i {
  color: rgba(104, 237, 215, 0.82);
  font-size: 22px;
}

/* 可視範圍 */
.reviews-34-mask {
  position: relative;
  overflow: hidden;
  padding: 4px 0 10px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

/* 移動軌道 */
.reviews-34-track {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: reviews34-slide 46s linear infinite;
  will-change: transform;
}

.reviews-34-track:hover {
  animation-play-state: paused;
}

/* 橫向短評卡 */
.r34-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "avatar title"
    "avatar handle"
    "quote quote";
  column-gap: 12px;
  align-content: start;

  width: 320px;
  min-height: 154px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: #243943;
  text-align: left;
  white-space: normal;
  box-shadow: 0 9px 24px rgba(0, 35, 52, 0.13);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.r34-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 13px 28px rgba(0, 35, 52, 0.18);
}

/* 頭像 */
.r34-avatar {
  grid-area: avatar;
  width: 52px;
  height: 52px;
  margin: 0;
  border: 2px solid rgba(0, 105, 148, 0.18);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 35, 52, 0.12);
}

/* 名稱 */
.r34-title {
  grid-area: title;
  align-self: end;
  margin: 2px 0 0;
  color: #173847;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

/* 帳號 */
.r34-name {
  grid-area: handle;
  align-self: start;
  margin-top: 3px;
  color: #0781ae;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

/* 評論文字 */
.r34-quote {
  grid-area: quote;
  display: block;
  margin: 13px 0 0;
  overflow: visible;
  color: #3e535d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;

  /* 顯示完整文字 */
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* 跑馬燈動畫 */
@keyframes reviews34-slide {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 手機 */
@media (max-width: 600px) {
  .reviews-34-marquee {
    width: min(calc(100% - 24px), 1040px);
    margin: 28px auto;
  }

  .reviews-34-heading {
    align-items: center;
    margin-bottom: 13px;
  }

  .reviews-34-heading h2 {
    font-size: 1.35rem;
  }

  .reviews-34-heading p {
    font-size: 11px;
  }

  .reviews-34-heading > i {
    font-size: 19px;
  }

  .reviews-34-mask {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
  }

  .reviews-34-track {
    gap: 10px;
  }

  .r34-card {
    width: 270px;
    min-height: 145px;
    padding: 15px;
    border-radius: 16px;
  }

  .r34-avatar {
    width: 48px;
    height: 48px;
  }

  .r34-title {
    font-size: 14px;
  }

  .r34-quote {
    margin-top: 11px;
    font-size: 12px;
  }
}

/* 減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
  .reviews-34-mask {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: thin;
  }

  .reviews-34-track {
    animation: none;
  }

  .r34-card {
    transition: none;
  }
}


/* 🌊 小琉球主標題：滑鼠懸停光暈動畫 */
.hero-section h1 {
  transition: all 0.76s ease;
  cursor: default;
}

.hero-section h1:hover {
  transform: scale(1.05) translateY(-4px);
  text-shadow:
    0 0 12px rgba(100, 200, 255, 0.6),
    0 0 24px rgba(0, 140, 255, 0.5),
    0 0 36px rgba(0, 255, 255, 0.35);
  animation: oceanGlow 2s ease-in-out infinite alternate;
}

/* ✨海洋光波閃爍動畫 */
@keyframes oceanGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.4))
            drop-shadow(0 0 25px rgba(0, 220, 255, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(0, 220, 255, 0.65))
            drop-shadow(0 0 40px rgba(0, 250, 255, 0.35));
  }
}
/* === 魔法游標特效 === */
#cursor-decor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* 🐢 每一個表情特效小元素 */
.magic-emoji {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  animation: appearPop 1.2s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(0,200,255,0.6));
}

/* ✨ 出現動畫（放大＋旋轉＋淡出） */
@keyframes appearPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
  }
  60% {
    opacity: 1;
    transform: scale(1) rotate(-5deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(15deg);
  }
}

/* ============================================================
   📱 iPhone & 行動裝置 尺寸縮減優化版
   ============================================================ */
@media (max-width: 480px) {
  /* 1. 導覽列縮減高度 */
  :root {
    --nav-h: 60px; /* 原本 68px 或 80px，縮減至 60px */
  }

  #nav-fixed {
    height: var(--nav-h);
  }

  /* 2. 跑馬燈 (Marquee) 減重：變得更窄且字體縮小 */
  .marquee-pill {
    top: var(--nav-h); /* 緊貼導覽列下緣 */
    padding: 5px 12px; /* 縮小上下內距 */
    background: rgba(0, 0, 0, 0.65); /* 稍微深一點增加閱讀感 */
    max-width: 95vw;
  }

  .marquee-text {
    font-size: 13px; /* 原本 14px */
    letter-spacing: 0;
  }

  /* 3. 天氣卡 (Weather Bar) 整體垂直縮減 */
  .weather-bar {
    width: 94%;
    margin: 0.6rem auto 0.8rem; /* 縮小邊距，節省頂部空間 */
    padding: 0.8rem 1rem;       /* 縮小內距 */
    border-radius: 20px;
  }

  /* 頂部目前天氣：溫度數字與圖示縮小 */
  .weather-top {
    margin-bottom: 0.6rem;
  }

  .weather-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 2.2rem !important; /* 縮小天氣 Icon */
  }

  .weather-label {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .weather-desc {
    font-size: 1rem;
  }

  .temp-now {
    font-size: 2.1rem; /* 從原本 3rem 縮減到 2.1rem */
  }

  .temp-feel {
    font-size: 0.78rem;
  }

  /* 預報區區塊縮窄 */
  .weather-forecast-box {
    margin-top: 0.5rem;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .weather-forecast-text {
    font-size: 0.82rem;
    line-height: 1.4; /* 縮小行高，節省高度 */
  }

  /* 下方六宮格 (Stats)：縮小按鈕高度 */
  .weather-right {
    gap: 0.4rem; /* 間距縮小 */
    margin-top: 6px;
  }

  .info {
    min-height: 68px; /* 原本 88px -> 大幅縮小 */
    padding: 6px 4px;
    border-radius: 12px;
  }

  .info i {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .info span {
    font-size: 0.85rem; /* 字體微調小 */
  }

  .info small {
    font-size: 0.65rem; /* 標題文字再縮小 */
  }

  /* 4. 訂票按鈕區塊微調 */
  .ticket-modern-wrap {
    margin: 10px 0 20px;
  }
}

/* 針對小螢幕 iPhone (如 iPhone SE 或 iPhone 8) 進一步微縮 */
@media (max-width: 380px) {
  .temp-now {
    font-size: 1.8rem;
  }
  .weather-right {
    grid-template-columns: repeat(3, 1fr); /* 依然維持三行 */
  }
  .info {
    min-height: 60px;
  }
}

/* ============================================================
   首頁常見問題
   ============================================================ */

.qa-section {
  width: min(100% - 32px, 1020px);
  margin: 0 auto 50px !important;
}

.qa-container {
  display: grid;
  gap: 12px;
  width: 100%;
}

/* 問答卡片 */
.qa-item {
  position: relative;
  padding: 20px 22px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 30px rgba(4, 28, 45, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.qa-item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.72);
}

.qa-item:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.19),
    rgba(255, 255, 255, 0.08)
  );
  transform: translateY(-2px);
}

/* 問題 */
.qa-question {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

/* 隱藏原本的藍色圓形問號 */
.qa-question > i {
  display: none;
}

/* 白色 Q 標記 */
.qa-question::before {
  content: "Q";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* 答案 */
.qa-answer {
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.75;
}

/* 查看更多 Q&A */
.qa-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  text-align: center;
}

.qa-footer .qa-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(4, 28, 45, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.qa-footer .qa-more-link:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.21);
  color: #fff !important;
  transform: translateY(-2px);
}

.qa-footer .qa-more-link i {
  margin: 0;
  color: #fff;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.qa-footer .qa-more-link:hover i {
  transform: translateX(3px);
}

/* ============================================================
   手機版
   ============================================================ */

@media (max-width: 600px) {
  .qa-section {
    width: min(100% - 24px, 1020px);
  }

  .qa-container {
    gap: 11px;
  }

  .qa-item {
    padding: 17px 16px;
    border-radius: 15px;
  }

  .qa-item::before {
    top: 15px;
    bottom: 15px;
  }

  .qa-question {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    font-size: 0.98rem;
  }

  .qa-question::before {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
  }

  .qa-answer {
    padding-left: 31px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .qa-footer {
    margin-top: 18px;
  }

  .qa-footer .qa-more-link {
    min-height: 44px;
    padding: 0 21px;
    font-size: 13px;
  }
}
/* ============================================================
   🏝️ 琉急式 PWA 玻璃感卡片
   ============================================================ */
.glass-pwa-card {
    display: none; /* 初始隱藏，由 JS 控制 */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    z-index: 9999999;
    
    /* 玻璃效果核心 */
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    /* 邊框與陰影 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    
    padding: 20px;
    box-sizing: border-box;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pwa-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pwa-text h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}

.pwa-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.pwa-actions {
    display: flex;
    gap: 10px;
}

.btn-main {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 14px;
    background: #0ca678; /* 您的品牌色 */
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(12, 166, 120, 0.3);
}

.btn-main:active {
    transform: scale(0.96);
    background: #098361;
}

.btn-sub {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sub:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 針對小螢幕的手持優化 */
@media (max-width: 480px) {
    .glass-pwa-card {
        bottom: 20px;
        padding: 16px;
    }
}

/* 容器寬度與對齊 */
.diving-modern-wrap.compact-mode {
  width: 100%;
  max-width: 460px; /* 手機版寬度 */
  margin: 0 auto 15px; /* 手機版維持置中 */
  padding: 0 16px;
}

/* 電腦版修正：對齊左邊 */
@media (min-width: 1024px) {
  .diving-modern-wrap.compact-mode {
    max-width: 1050px !important; /* 跟你的電腦版 Grid 容器一樣寬 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 強制內容靠左 */
  }

  .diving-banner-premium {
    width: 100%;
    max-width: 460px; /* 讓按鈕在電腦版不要變太長，維持合適寬度 */
    margin-left: 0;  /* 確保不置中，靠左對齊 */
  }
  
  .compact-mode .app-category-divider {
    width: 100%; /* 標題橫線撐滿 */
  }
}

/* 確保這個標題跟按鈕靠得很近 */
.compact-mode .app-category-divider {
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
}

/* 這裡是關鍵：如果你發現上面還是很空，請調整下面這個數值 */
.app-dashboard-enhanced {
  margin-bottom: 10px !important; /* 縮小交通天氣區塊下方的間距 */
  padding-bottom: 0 !important;
}

/* 主按鈕樣式 */
.diving-banner-premium {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  /* 海洋深邃漸層 */
  background: linear-gradient(135deg, #0084ff 0%, #0072ff 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 114, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.diving-banner-premium:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 114, 255, 0.4);
}

.diving-banner-premium:active {
  transform: scale(0.98);
}

.diving-banner-content {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  position: relative;
  z-index: 5;
}

/* 左側圖示圓圈 */
.diving-icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.2);
}

/* 文字區域 */
.diving-banner-text {
  flex-grow: 1;
  padding: 0 16px;
  text-align: left;
}

.diving-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.diving-desc {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 4px;
  line-height: 1.3;
}

/* 右側小箭頭 */
.diving-banner-arrow {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.diving-banner-premium:hover .diving-banner-arrow {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.3);
}

/* 背景動態閃光效果 */
.diving-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: divingShine 4s infinite;
}

@keyframes divingShine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* 背景小泡泡 */
.diving-bubbles span {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  bottom: -10px;
  animation: bubbleRise 5s infinite ease-in;
}

.diving-bubbles span:nth-child(1) { width: 10px; height: 10px; left: 10%; animation-duration: 4s; }
.diving-bubbles span:nth-child(2) { width: 15px; height: 15px; left: 50%; animation-duration: 6s; animation-delay: 1s; }
.diving-bubbles span:nth-child(3) { width: 8px; height: 8px; left: 85%; animation-duration: 5s; animation-delay: 2s; }

@keyframes bubbleRise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translateY(-80px); opacity: 0; }
}