/* 草兒在海邊 style.css — 全站共用樣式表
   各頁面在 <html> 加上 class（page-index / page-gallery / page-404 / page-ad）
   只屬於特定頁面的規則以 :where(.page-xxx) 限定，不增加選擇器權重。 */

/* ════════════════════════════════════════
   全站共用
   ════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26,74,107,0.92);
  backdrop-filter: blur(12px);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img {
  height: 36px;
}
/* ── Nav wave ── */
.nav-wave {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 32px;
  pointer-events: none;
  z-index: 99;
}
.nav-wave svg {
  position: absolute;
  top: 0;
  width: 300%;
  height: 100%;
}
.nav-wave .w1 {
  animation: navWave 6s linear infinite;
}
.nav-wave .w2 {
  animation: navWave 9s linear infinite reverse;
}
footer p {
  font-size: 0.82rem;
  line-height: 2;
}
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.nav-book-btn:hover {
  background: #d06830;
}

/* ════════════════════════════════════════
   index.html / grass_gallery.html / 404.shtml
   ════════════════════════════════════════ */
html:where(.page-index,.page-gallery,.page-404) {
  --sea: #3a7ca5;
  --sea-deep: #1a4a6b;
  --sea-light: #d0e8f2;
  --sand: #f5efe6;
  --sand-dark: #c8b89a;
  --grass: #5a7a52;
  --sunset: #e87b4a;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
}
html:where(.page-index,.page-gallery,.page-404), :where(.page-index,.page-gallery,.page-404) * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html:where(.page-index,.page-gallery,.page-404) {
  scroll-behavior: smooth;
}
:where(.page-index,.page-gallery,.page-404) .nav-logo {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
:where(.page-index,.page-gallery,.page-404) footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 48px 40px;
  text-align: center;
}
:where(.page-index,.page-gallery,.page-404) footer a:hover {
  color: var(--white);
}

/* ════════════════════════════════════════
   index.html / grass_gallery.html
   ════════════════════════════════════════ */
:where(.page-index,.page-gallery) .ig-link svg {
  width: 18px;
  height: 18px;
}
:where(.page-index,.page-gallery) .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
:where(.page-index,.page-gallery) .photo-item:hover img {
  transform: scale(1.08);
}
:where(.page-index,.page-gallery) .photo-item:hover::after {
  opacity: 1;
}
:where(.page-index,.page-gallery) .book-btn:hover {
  background: var(--sea);
  transform: translateY(-2px);
}
:where(.page-index,.page-gallery) .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
:where(.page-index,.page-gallery) .lightbox.active {
  display: flex;
}
:where(.page-index,.page-gallery) .lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
:where(.page-index,.page-gallery) .lightbox-close:hover {
  color: var(--white);
}
:where(.page-index,.page-gallery) .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  transition: color 0.2s;
}
:where(.page-index,.page-gallery) .lightbox-nav:hover {
  color: var(--white);
}
:where(.page-index,.page-gallery) .lightbox-prev {
  left: 12px;
}
:where(.page-index,.page-gallery) .lightbox-next {
  right: 12px;
}

/* ════════════════════════════════════════
   index.html / 404.shtml
   ════════════════════════════════════════ */
:where(.page-index,.page-404) body {
  font-family: 'Noto Serif TC', serif;
  color: var(--text);
  background: var(--sand);
  overflow-x: hidden;
}
:where(.page-index,.page-404) .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
:where(.page-index,.page-404) .nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}
:where(.page-index,.page-404) .nav-links a:hover {
  color: var(--white);
}
:where(.page-index,.page-404) .nav-book-btn {
  display: none;
  background: var(--sunset);
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}

/* ════════════════════════════════════════
   grass_gallery.html / grass_ad.html
   ════════════════════════════════════════ */
:where(.page-gallery,.page-ad) .nav-links {
  display: none;
}
:where(.page-gallery,.page-ad) footer .footer-logo {
  height: 40px;
  opacity: 0.8;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
}

/* ════════════════════════════════════════
   index.html
   ════════════════════════════════════════ */
:where(.page-index) .hero {
  height: 100vh;
  background: radial-gradient(ellipse 80% 40% at 30% 20%, rgba(120,210,230,0.18) 0%, transparent 60%), radial-gradient(ellipse 60% 30% at 70% 10%, rgba(160,230,245,0.12) 0%, transparent 55%), linear-gradient( 180deg, #0a2a4a 0%, #0e3d62 12%, #1a5f82 28%, #1e7a9e 44%, #2a9ab8 58%, #3cbccc 70%, #5ad0d8 80%, #7adde0 90%, #a8ecee 100% );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* 海面光澤層 */
:where(.page-index) .hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(180,240,255,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
:where(.page-index) .hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--sand);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}
:where(.page-index) .hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
:where(.page-index) .hero-content {
  text-align: center;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
:where(.page-index) .hero-logo {
  height: clamp(90px,18vw,160px);
  width: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}
:where(.page-index) .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 600px;
  margin-top: 32px;
}
:where(.page-index) .tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 1px;
}
:where(.page-index) section {
  padding: 80px 40px;
}
:where(.page-index) .section-label {
  font-family: 'Cormorant Garamond',serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 8px;
}
:where(.page-index) .section-title {
  font-size: clamp(1.6rem,4vw,2.4rem);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 32px;
}
:where(.page-index) .divider {
  width: 48px;
  height: 1px;
  background: var(--sea);
  margin: 16px 0 32px;
}
:where(.page-index) #section-1 {
  background: var(--sand);
  max-width: 1100px;
  margin: 0 auto;
}
:where(.page-index) .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
:where(.page-index) .about-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 20px;
}
:where(.page-index) .about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sea);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--sea);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: color 0.2s,border-color 0.2s;
}
:where(.page-index) .about-cta:hover {
  color: var(--sea-deep);
  border-color: var(--sea-deep);
}
:where(.page-index) .about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s;
}
:where(.page-index) .about-img-main:hover {
  transform: scale(1.02);
}
:where(.page-index) .about-img-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-top: 8px;
}
:where(.page-index) .about-img-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s;
}
:where(.page-index) .about-img-grid img:hover {
  transform: scale(1.03);
}
:where(.page-index) #section-2 {
  background: var(--sea-deep);
  padding: 80px 40px;
}
:where(.page-index) #section-2 .section-label {
  color: rgba(255,255,255,0.5);
}
:where(.page-index) #section-2 .section-title {
  color: var(--white);
}
:where(.page-index) .ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 32px;
  letter-spacing: 1px;
  transition: color 0.2s;
}
:where(.page-index) .ig-link:hover {
  color: var(--white);
}
:where(.page-index) .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}
:where(.page-index) .photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: rgba(255,255,255,0.05);
}
:where(.page-index) .photo-item::after {
  content: '＋';
  position: absolute;
  inset: 0;
  background: rgba(26,74,107,0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
/* SECTION 3 */
:where(.page-index) #section-3 {
  background: var(--sand);
  max-width: 1100px;
  margin: 0 auto;
}
/* ── Desktop price table (unchanged) ── */
:where(.page-index) .price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.9rem;
}
:where(.page-index) .price-table th {
  background: var(--sea-deep);
  color: var(--white);
  padding: 14px 20px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
}
:where(.page-index) .price-table td {
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--sea-light);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sea-deep);
}
:where(.page-index) .price-table tr:hover td {
  background: var(--sea-light);
}
/* ── Mobile price cards (hidden on desktop) ── */
:where(.page-index) .price-cards {
  display: none;
  gap: 12px;
  flex-direction: column;
  margin: 24px 0 32px;
}
:where(.page-index) .price-card {
  background: var(--white);
  border: 1px solid var(--sea-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
:where(.page-index) .price-card-label {
  background: var(--sea-deep);
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 16px 12px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
:where(.page-index) .price-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
:where(.page-index) .price-card-type {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
:where(.page-index) .price-card-amount {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sea-deep);
  letter-spacing: 1px;
}
:where(.page-index) .price-card-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}
:where(.page-index) .price-card.highlight {
  border-color: var(--sea);
}
:where(.page-index) .price-card.highlight .price-card-label {
  background: var(--sea);
}
:where(.page-index) .book-btn {
  display: inline-block;
  background: var(--sea-deep);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  letter-spacing: 3px;
  font-size: 0.85rem;
  transition: background 0.2s,transform 0.2s;
  margin-bottom: 28px;
}
:where(.page-index) .room-notes {
  background: rgba(58,124,165,0.06);
  border-left: 3px solid var(--sea);
  padding: 20px 24px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 32px;
  border-radius: 0;
}
:where(.page-index) .room-notes strong {
  color: var(--text);
}
:where(.page-index) .rules-title {
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 32px 0 16px;
  color: var(--sea-deep);
}
:where(.page-index) .rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
:where(.page-index) .rules-list li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  line-height: 1.7;
}
:where(.page-index) .rules-list li::before {
  content: '—';
  color: var(--sea);
  margin-right: 8px;
}
:where(.page-index) .contact-card {
  background: rgba(58,124,165,0.06);
  border-left: 3px solid var(--sea);
  border-radius: 0;
  color: var(--text-light);
  padding: 20px 24px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
:where(.page-index) .contact-group h4 {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin-bottom: 10px;
}
:where(.page-index) .contact-group p, :where(.page-index) .contact-group a {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.9;
  text-decoration: none;
  display: block;
}
:where(.page-index) .contact-group a:hover {
  color: var(--sea);
}
/* ── 設施特色 ── */
:where(.page-index) #section-5-facilities {
  background: var(--sand);
  padding: 80px 40px;
}
:where(.page-index) .facilities-inner {
  max-width: 1100px;
  margin: 0 auto;
}
:where(.page-index) .facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
:where(.page-index) .fac-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,74,107,0.07);
}
:where(.page-index) .fac-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sea-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
:where(.page-index) .fac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
:where(.page-index) .fac-emoji-bg {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
:where(.page-index) .fac-body {
  padding: 16px 18px 20px;
}
:where(.page-index) .fac-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--sea-deep);
  margin-bottom: 7px;
}
:where(.page-index) .fac-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.85;
}
/* ── Section 04 優惠內容 ── */
:where(.page-index) #section-4-offers {
  background: var(--sea-deep);
  padding: 80px 40px;
}
:where(.page-index) .offers-inner {
  max-width: 1100px;
  margin: 0 auto;
}
:where(.page-index) #section-4-offers .section-label {
  color: rgba(255,255,255,0.45);
}
:where(.page-index) #section-4-offers .section-title {
  color: var(--white);
}
:where(.page-index) #section-4-offers .divider {
  background: rgba(255,255,255,0.25);
}
:where(.page-index) .offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
/* ── 秋季 Long Stay 精選橫幅 ── */
:where(.page-index) .offer-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(232,123,74,0.20) 0%, rgba(176,123,80,0.24) 100%);
  border: 1px solid rgba(255,205,150,0.4);
  border-radius: 4px;
  padding: 30px 34px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
:where(.page-index) .offer-featured::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -6%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,210,150,0.22), transparent 70%);
  pointer-events: none;
}
:where(.page-index) .offer-featured:hover {
  border-color: rgba(255,210,150,0.65);
  background: linear-gradient(135deg, rgba(232,123,74,0.28) 0%, rgba(176,123,80,0.30) 100%);
  transform: translateY(-2px);
}
:where(.page-index) .offer-featured-left {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
:where(.page-index) .offer-featured-tag {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,216,168,0.4);
  color: #ffd8a8;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  padding: 4px 11px;
  border-radius: 2px;
  margin-bottom: 12px;
}
:where(.page-index) .offer-featured-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
}
:where(.page-index) .offer-featured-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
}
:where(.page-index) .offer-featured-desc strong {
  color: rgba(255,220,140,0.95);
  font-weight: 600;
}
:where(.page-index) .offer-featured-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sunset);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: background 0.2s, gap 0.2s;
}
:where(.page-index) .offer-featured:hover .offer-featured-cta {
  background: #d06830;
  gap: 12px;
}
:where(.page-index) .offer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
:where(.page-index) .offer-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
}
:where(.page-index) .offer-tag {
  display: inline-block;
  background: var(--sunset);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
:where(.page-index) .offer-card:nth-child(2) .offer-tag {
  background: var(--grass);
}
:where(.page-index) .offer-card:nth-child(3) .offer-tag {
  background: #6a8fb5;
}
:where(.page-index) .offer-card:nth-child(4) .offer-tag {
  background: #b07b50;
}
:where(.page-index) .offer-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.5;
}
:where(.page-index) .offer-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 2;
}
:where(.page-index) .offer-body strong {
  color: rgba(255,220,140,0.95);
  font-weight: 600;
}
:where(.page-index) .offer-body em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
}
:where(.page-index) .offers-cta {
  text-align: center;
  margin-top: 48px;
}
:where(.page-index) .offers-cta a {
  display: inline-block;
  background: var(--sunset);
  color: var(--white);
  text-decoration: none;
  padding: 14px 40px;
  letter-spacing: 3px;
  font-size: 0.85rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
:where(.page-index) .offers-cta a:hover {
  background: #d06830;
  transform: translateY(-2px);
}
:where(.page-index) #section-6 {
  background: var(--white);
  padding: 80px 40px;
}
:where(.page-index) .geo-inner {
  max-width: 1100px;
  margin: 0 auto;
}
:where(.page-index) .transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
:where(.page-index) .transport-item {
  padding: 16px 20px;
  background: var(--sand);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  border-left: 2px solid var(--sand-dark);
}
:where(.page-index) .transport-item strong {
  color: var(--sea-deep);
  display: block;
  margin-bottom: 2px;
}
:where(.page-index) .geo-note {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-top: 16px;
  padding: 12px;
  background: rgba(232,123,74,0.08);
  border-left: 2px solid var(--sunset);
}
:where(.page-index) footer .footer-logo {
  height: 40px;
  opacity: 0.8;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
:where(.page-index) .lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  animation: lbIn 0.3s ease;
}
:where(.page-index) .lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}
:where(.page-index) .lightbox-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 8px;
}
:where(.page-index) .cancel-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.83rem;
}
:where(.page-index) .cancel-table th {
  background: rgba(58,124,165,0.12);
  color: var(--sea-deep);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
}
:where(.page-index) .cancel-table td {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: var(--text-light);
}
:where(.page-index) .cancel-table tr:last-child td {
  border-bottom: none;
}
:where(.page-index) .cancel-note {
  margin-top: 1rem;
  font-size: .76rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* ════════════════════════════════════════
   grass_gallery.html
   ════════════════════════════════════════ */
:where(.page-gallery) body {
  font-family: 'Noto Serif TC', serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
:where(.page-gallery) .nav-book-btn {
  display: inline-block;
  background: var(--sunset);
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
/* ── HERO ── */
:where(.page-gallery) .hero {
  height: 52vh;
  min-height: 320px;
  background: linear-gradient(160deg, var(--sea-deep) 0%, var(--sea) 60%, #6aaccf 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
:where(.page-gallery) .hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
:where(.page-gallery) .hero-content {
  text-align: center;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
:where(.page-gallery) .hero-logo {
  height: clamp(60px, 12vw, 100px);
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
:where(.page-gallery) .hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  letter-spacing: 4px;
}
:where(.page-gallery) .hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
/* ── GALLERY SECTION ── */
:where(.page-gallery) #gallery-section {
  background: var(--white);
  padding: 80px 40px;
}
:where(.page-gallery) .gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}
:where(.page-gallery) .section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 8px;
}
:where(.page-gallery) .section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: var(--text);
}
:where(.page-gallery) .divider {
  width: 48px;
  height: 1px;
  background: var(--sea);
  margin: 16px 0 40px;
}
/* 返回按鈕樣式 (與首頁訂房按鈕相同) */
:where(.page-gallery) .book-btn {
  display: inline-block;
  background: var(--sea-deep);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  letter-spacing: 3px;
  font-size: 0.85rem;
  transition: background 0.2s,transform 0.2s;
  margin-bottom: 28px;
  border-radius: 2px;
}
/* filter bar */
:where(.page-gallery) .filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
:where(.page-gallery) .filter-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  padding: 6px 18px;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s;
}
:where(.page-gallery) .filter-btn:hover, :where(.page-gallery) .filter-btn.active {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--white);
}
/* grid */
:where(.page-gallery) .photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
:where(.page-gallery) .photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--sea-light);
  border-radius: 2px;
}
:where(.page-gallery) .photo-item::after {
  content: '＋';
  position: absolute;
  inset: 0;
  background: rgba(26,74,107,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
:where(.page-gallery) .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,30,50,0.82), transparent);
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 24px 10px 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  line-height: 1.5;
  pointer-events: none;
}
:where(.page-gallery) .photo-item:hover .photo-caption {
  transform: translateY(0);
}
/* photo number badge */
:where(.page-gallery) .photo-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(26,74,107,0.7);
  color: rgba(255,255,255,0.7);
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 10px;
  pointer-events: none;
  font-family: 'Cormorant Garamond', serif;
}
:where(.page-gallery) .lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  animation: lbIn 0.3s ease;
}
:where(.page-gallery) .lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}
:where(.page-gallery) .lightbox-counter {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-top: 8px;
}
/* ── TRAVELER JOURNAL SECTION ── */
:where(.page-gallery) #journal-section {
  background: var(--sand);
  padding: 80px 40px;
}
:where(.page-gallery) .journal-inner {
  max-width: 1200px;
  margin: 0 auto;
}
:where(.page-gallery) .journal-section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grass);
  margin-bottom: 8px;
}
:where(.page-gallery) .journal-section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: var(--text);
}
:where(.page-gallery) .journal-divider {
  width: 48px;
  height: 1px;
  background: var(--grass);
  margin: 16px 0 16px;
}
:where(.page-gallery) .journal-intro {
  color: var(--text-light);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  line-height: 2;
  margin-bottom: 36px;
}
/* IG badge */
:where(.page-gallery) .ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d06830;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 32px;
  letter-spacing: 1px;
  transition: color 0.2s;
}
:where(.page-gallery) .ig-link:hover {
  color: #d06830;
}
/* journal grid — same as photo-grid */
:where(.page-gallery) .journal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
:where(.page-gallery) .journal-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--sea-light);
  border-radius: 2px;
}
:where(.page-gallery) .journal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
:where(.page-gallery) .journal-item:hover img {
  transform: scale(1.08);
}
:where(.page-gallery) .journal-item::after {
  content: '＋';
  position: absolute;
  inset: 0;
  background: rgba(90,122,82,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
:where(.page-gallery) .journal-item:hover::after {
  opacity: 1;
}
:where(.page-gallery) .journal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,30,20,0.85), transparent);
  color: rgba(255,255,255,0.95);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  padding: 28px 10px 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  line-height: 1.6;
  pointer-events: none;
}
:where(.page-gallery) .journal-item:hover .journal-caption {
  transform: translateY(0);
}
:where(.page-gallery) .journal-caption a {
  color: rgba(255,220,180,0.95);
  text-decoration: none;
  font-weight: 600;
}
:where(.page-gallery) .journal-caption a:hover {
  text-decoration: underline;
}
/* photo number badge — grass color */
:where(.page-gallery) .journal-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(90,122,82,0.72);
  color: rgba(255,255,255,0.85);
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 10px;
  pointer-events: none;
  font-family: 'Cormorant Garamond', serif;
}
/* journal lightbox — green tint */
:where(.page-gallery) .lightbox-journal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,18,10,0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
:where(.page-gallery) .lightbox-journal.active {
  display: flex;
}
:where(.page-gallery) .lightbox-journal .lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 2px;
  animation: lbIn 0.3s ease;
}
:where(.page-gallery) .lightbox-journal .lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
:where(.page-gallery) .lightbox-journal .lightbox-close:hover {
  color: var(--white);
}
:where(.page-gallery) .lightbox-journal .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  transition: color 0.2s;
}
:where(.page-gallery) .lightbox-journal .lightbox-nav:hover {
  color: var(--white);
}
:where(.page-gallery) .lightbox-journal .lightbox-prev {
  left: 12px;
}
:where(.page-gallery) .lightbox-journal .lightbox-next {
  right: 12px;
}
:where(.page-gallery) .lightbox-journal .lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}
:where(.page-gallery) .lightbox-journal .lightbox-caption a {
  color: rgba(255,200,140,0.9);
  text-decoration: none;
}
:where(.page-gallery) .lightbox-journal .lightbox-caption a:hover {
  text-decoration: underline;
}
:where(.page-gallery) .lightbox-journal .lightbox-counter {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* ════════════════════════════════════════
   404.shtml
   ════════════════════════════════════════ */
/* ── HERO / 404 ── */
:where(.page-404) .hero-404 {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--sea-deep) 0%, var(--sea) 60%, #6aaccf 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 160px;
}
:where(.page-404) .hero-404::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--sand);
  clip-path: ellipse(55% 100% at 50% 100%);
}
/* floating wave lines */
:where(.page-404) .wave-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
:where(.page-404) .wave-bg svg {
  position: absolute;
  bottom: 80px;
  width: 200%;
  opacity: 0.12;
}
:where(.page-404) .wave-bg .wb1 {
  animation: wbMove 8s linear infinite;
}
:where(.page-404) .wave-bg .wb2 {
  animation: wbMove 12s linear infinite reverse;
  bottom: 110px;
}
:where(.page-404) .err-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  pointer-events: none;
  white-space: nowrap;
}
:where(.page-404) .hero-404-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
:where(.page-404) .err-logo {
  height: clamp(70px, 14vw, 120px);
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 32px;
  opacity: 0.9;
}
:where(.page-404) .err-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
:where(.page-404) .err-title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 20px;
}
:where(.page-404) .err-desc {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  letter-spacing: 1px;
  margin-bottom: 40px;
}
:where(.page-404) .err-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 40px;
}
:where(.page-404) .err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
:where(.page-404) .btn-primary {
  background: var(--sunset);
  color: var(--white);
  text-decoration: none;
  padding: 13px 32px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  transition: background 0.2s, transform 0.2s;
  border-radius: 2px;
}
:where(.page-404) .btn-primary:hover {
  background: #d06830;
  transform: translateY(-2px);
}
:where(.page-404) .btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 13px 32px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  transition: all 0.2s;
  border-radius: 2px;
}
:where(.page-404) .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
/* quick links */
:where(.page-404) .quick-links {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
:where(.page-404) .quick-link {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: all 0.2s;
}
:where(.page-404) .quick-link:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
/* scroll hint */
:where(.page-404) .scroll-hint {
  position: absolute;
  bottom: 135px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
:where(.page-404) .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
:where(.page-404) footer .footer-logo {
  height: 40px;
  opacity: 0.8;
  margin: 0 auto 20px;
  display: block;
  filter: brightness(0) invert(1);
}

/* ════════════════════════════════════════
   grass_ad.html
   ════════════════════════════════════════ */
html:where(.page-ad) {
  --navy: #0c2030;
  --navy-2: #12293c;
  --cream: #f7f4ef;
  --sand: #ece4d6;
  --gold: #b9925a;
  --gold-soft: #d9bd8f;
  --ink: #2a2a26;
  --line: rgba(185,146,90,0.35);
}
html:where(.page-ad), :where(.page-ad) * {
  box-sizing: border-box;
}
html:where(.page-ad), :where(.page-ad) body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
:where(.page-ad) body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans TC', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
}
:where(.page-ad) h1, :where(.page-ad) h2, :where(.page-ad) h3 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}
:where(.page-ad) .eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-soft);
}
/* ---------- HERO ---------- */
:where(.page-ad) .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(12,32,48,0.15) 0%, rgba(12,32,48,0.35) 45%, rgba(12,32,48,0.92) 100%), url('img/grass_ad01.jpg') center 38% / cover no-repeat;
}
:where(.page-ad) .hero-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 90px 28px 64px;
  text-align: center;
  color: var(--cream);
}
:where(.page-ad) .hero .eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-soft);
}
:where(.page-ad) .hero h1 {
  font-size: clamp(30px, 5.6vw, 54px);
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
:where(.page-ad) .hero h1 .accent {
  color: var(--gold-soft);
}
:where(.page-ad) .hero-sub {
  margin-top: 26px;
  font-size: 15.5px;
  font-weight: 300;
  color: rgba(247,244,239,0.88);
  max-width: 640px;
  line-height: 2;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}
/* ---------- WAVE DIVIDER ---------- */
:where(.page-ad) .wave {
  display: block;
  width: 100%;
  line-height: 0;
}
:where(.page-ad) .wave svg {
  width: 100%;
  height: auto;
  display: block;
}
/* ---------- INTRO ---------- */
:where(.page-ad) .intro {
  background: var(--cream);
  padding: 70px 24px 40px;
  text-align: center;
}
:where(.page-ad) .intro-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
:where(.page-ad) .intro p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15.5px;
  color: #4a463e;
  font-weight: 300;
}
:where(.page-ad) .intro .lede {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 400;
  line-height: 2;
}
:where(.page-ad) .tag-row {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
:where(.page-ad) .tag {
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 500;
}
/* ---------- SECTION HEADERS ---------- */
:where(.page-ad) .section {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 8px;
}
:where(.page-ad) .section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
:where(.page-ad) .section-head h2 {
  font-size: 21px;
  color: var(--navy);
  letter-spacing: 0.06em;
}
:where(.page-ad) .section-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
:where(.page-ad) .section-sub {
  font-size: 14px;
  color: #7a7468;
  font-weight: 300;
  margin: -20px 0 30px 0;
  max-width: 640px;
}
/* ---------- PRICING CARDS ---------- */
:where(.page-ad) .plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 10px;
}
:where(.page-ad) .plan {
  background: #fff;
  border: 1px solid rgba(185,146,90,0.22);
  border-radius: 4px;
  padding: 30px 22px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
:where(.page-ad) .plan.best {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(185,146,90,0.15);
}
:where(.page-ad) .plan.best::before {
  content: '激省破萬';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
:where(.page-ad) .plan-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
:where(.page-ad) .plan-days {
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
:where(.page-ad) .plan-was {
  font-size: 13px;
  color: #a39d8d;
  text-decoration: line-through;
  margin-bottom: 6px;
}
:where(.page-ad) .plan-price {
  font-family: 'Noto Serif TC', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}
:where(.page-ad) .plan-price span {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a8474;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}
:where(.page-ad) .plan-avg {
  margin-top: 10px;
  font-size: 12.5px;
  color: #8a8474;
  font-weight: 300;
}
/* ---------- SIMPLE PRICE BOXES (2, 3) ---------- */
:where(.page-ad) .price-box {
  background: #fff;
  border: 1px solid rgba(185,146,90,0.22);
  border-radius: 4px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
:where(.page-ad) .price-box .desc {
  max-width: 460px;
  font-size: 14px;
  color: #5a564c;
  font-weight: 300;
}
:where(.page-ad) .price-box .desc b {
  color: var(--navy);
  font-weight: 600;
}
:where(.page-ad) .price-figures {
  text-align: right;
}
:where(.page-ad) .price-was {
  font-size: 13px;
  color: #a39d8d;
  text-decoration: line-through;
  margin-bottom: 2px;
}
:where(.page-ad) .price-now {
  font-family: 'Noto Serif TC', serif;
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
}
:where(.page-ad) .price-now .unit {
  font-size: 12.5px;
  color: #8a8474;
  font-weight: 400;
  font-family: 'Noto Sans TC',sans-serif;
}
/* ---------- WHO / WHY LIST ---------- */
:where(.page-ad) .why-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
:where(.page-ad) .why-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: #4a463e;
  font-weight: 300;
  align-items: flex-start;
}
:where(.page-ad) .why-list li::before {
  content: '○';
  color: var(--gold);
  font-size: 9px;
  margin-top: 8px;
}
/* ---------- GALLERY STRIP ---------- */
:where(.page-ad) .strip {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}
:where(.page-ad) .strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  aspect-ratio: 4/3;
}
/* ---------- NOTES ---------- */
:where(.page-ad) .notes {
  background: var(--sand);
  margin-top: 70px;
  padding: 60px 24px 64px;
}
:where(.page-ad) .notes-inner {
  max-width: 800px;
  margin: 0 auto;
}
:where(.page-ad) .notes h2 {
  font-size: 19px;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
:where(.page-ad) .notes .eyebrow {
  display: block;
  text-align: center;
  color: var(--gold);
  margin-bottom: 14px;
}
:where(.page-ad) .notes ol {
  counter-reset: note;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 16px;
}
:where(.page-ad) .notes li {
  counter-increment: note;
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: #5a564c;
  font-weight: 300;
  line-height: 1.8;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(185,146,90,0.18);
}
:where(.page-ad) .notes li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
:where(.page-ad) .notes li::before {
  content: counter(note);
  font-family: 'Noto Serif TC', serif;
  color: var(--gold);
  font-size: 14px;
  min-width: 20px;
  font-weight: 600;
}
/* ---------- CONTACT / FOOTER ---------- */
:where(.page-ad) .contact {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  text-align: center;
  padding: 70px 24px 50px;
}
:where(.page-ad) .contact .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 16px;
  display: block;
}
:where(.page-ad) .contact h2 {
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
:where(.page-ad) .contact p.tag {
  color: rgba(247,244,239,0.65);
  font-size: 13.5px;
  font-weight: 300;
  margin-bottom: 36px;
  border: none;
  display: block;
}
:where(.page-ad) .contact-grid {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
:where(.page-ad) .contact-item {
  text-align: left;
}
:where(.page-ad) .contact-item .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
}
:where(.page-ad) .contact-item .value {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
}
:where(.page-ad) .hashtags {
  font-size: 12.5px;
  color: rgba(247,244,239,0.5);
  letter-spacing: 0.03em;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(217,189,143,0.18);
}
:where(.page-ad) .brand-mark {
  margin-top: 26px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(217,189,143,0.7);
  letter-spacing: 0.1em;
}
:where(.page-ad) .nav-logo {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
:where(.page-ad) .nav-book-btn {
  display: inline-block;
  background: #e87b4a;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
  font-family: 'Noto Serif TC', serif;
}
/* ================================================= */
/* ── FOOTER（取自 grass_gallery.html 頁尾） ── */
/* ================================================= */
:where(.page-ad) footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 48px 40px;
  text-align: center;
  font-family: 'Noto Serif TC', serif;
}
:where(.page-ad) footer a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:where(.page-ad) .contact-item .value a {
  color: inherit;
  text-decoration: none;
}
:where(.page-ad) .contact-item .value a:hover {
  color: var(--gold-soft);
}

/* ── Keyframes ── */
@keyframes navWave {
    0%{transform:translateX(0);}
    100%{transform:translateX(-33.333%);}
}

@keyframes lbIn {
    from{opacity:0;transform:scale(0.92)}
    to{opacity:1;transform:scale(1)}
}

@keyframes lbIn {
    from{opacity:0;transform:scale(0.92);}
    to{opacity:1;transform:scale(1);}
}

@keyframes wbMove {
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
}

@keyframes scrollPulse {
    0%,100%{opacity:0.3}
    50%{opacity:0.8}
}

/* ════════════════════════════════════════
   RWD（由大到小）
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  :where(.page-gallery) .journal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  :where(.page-gallery) .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  /* 強制：只要螢幕小於 900px (包含所有 iPhone 手機)，一律一排兩個 */
  /* 1. 縮小螢幕最兩側的留白 */
  :where(.page-index) #section-5-facilities {
    padding: 60px 20px !important;
  }
  /* 強制：只要螢幕小於 900px (包含所有 iPhone 手機)，一律一排兩個 */
  /* 2. 縮小卡片與卡片之間的縫隙 */
  :where(.page-index) .facilities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  :where(.page-index) .facilities-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  :where(.page-index,.page-404) .nav-links {
    display: none;
  }
  :where(.page-index,.page-404) .nav-book-btn {
    display: inline-block;
  }
  :where(.page-index,.page-gallery) .book-btn {
    display: block;
    text-align: center;
    padding: 16px;
    letter-spacing: 2px;
  }
  :where(.page-index) .offer-featured {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  :where(.page-index) .offer-featured-cta {
    width: 100%;
    justify-content: center;
  }
  :where(.page-index) #section-4-offers {
    padding: 60px 20px;
  }
  :where(.page-index) .offers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  :where(.page-index) section {
    padding: 60px 20px;
  }
  /* 縮小精選照片手機版邊界 */
  :where(.page-index) #section-2 {
    padding: 60px 20px !important;
  }
  :where(.page-index) .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  :where(.page-index) .rules-list {
    grid-template-columns: 1fr;
  }
  :where(.page-index) .contact-card {
    grid-template-columns: 1fr;
  }
  :where(.page-index) .transport-grid {
    grid-template-columns: 1fr;
  }
  :where(.page-index) .photo-grid {
    grid-template-columns: repeat(3,1fr);
  }
  /* 手機：隱藏桌面表格，改顯示卡片 */
  :where(.page-index) .price-table {
    display: none;
  }
  :where(.page-index) .price-cards {
    display: flex;
  }
  :where(.page-index) .cancel-table {
    font-size: 0.78rem;
  }
  :where(.page-index) .cancel-table th, :where(.page-index) .cancel-table td {
    padding: 8px 10px;
  }
  :where(.page-gallery) #journal-section {
    padding: 60px 16px;
  }
  :where(.page-gallery) .journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  :where(.page-gallery) #gallery-section {
    padding: 60px 16px;
  }
  :where(.page-gallery) .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  :where(.page-gallery) .lightbox-nav {
    padding: 12px;
    font-size: 2rem;
  }
  :where(.page-404) .err-num {
    font-size: clamp(6rem, 30vw, 9rem);
  }
  :where(.page-404) footer {
    padding: 40px 20px;
  }
}

@media (max-width: 760px) {
  :where(.page-ad) .plans {
    grid-template-columns: 1fr;
  }
  :where(.page-ad) .section-sub {
    margin-left: 0;
  }
  :where(.page-ad) .strip {
    grid-template-columns: 1fr 1fr;
  }
  :where(.page-ad) .strip img:first-child {
    grid-column: 1/-1;
    aspect-ratio: 16/9;
  }
  :where(.page-ad) .price-box {
    flex-direction: column;
    align-items: flex-start;
  }
  :where(.page-ad) .price-figures {
    text-align: left;
  }
  :where(.page-ad) .contact-grid {
    gap: 28px;
  }
}

@media (max-width: 540px) {
  :where(.page-index) .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :where(.page-gallery) .journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  :where(.page-gallery) .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
}