﻿:root {
  --sand: #f6efe4;
  --cream: #fffaf3;
  --paper: rgba(255, 248, 238, 0.82);
  --forest: #173c30;
  --forest-soft: #2c5b4b;
  --ink: #18211f;
  --muted: #5d675f;
  --line: rgba(24, 33, 31, 0.1);
  --gold: #f28c28;
  --gold-deep: #cd6b0f;
  --sky: #d8eef1;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(32, 40, 35, 0.12);
  color: var(--ink);
  font-family: 'Noto Sans TC', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 60, 48, 0.12), transparent 26%),
    linear-gradient(180deg, #fff8ef 0%, #f4f1ea 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.35);
  outline-offset: 3px;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(34, 41, 36, 0.08);
}

/* 漢堡按鈕在桌機隱藏 */
.menu-toggle {
  display: none;
}

/* 手機選單面板在桌機隱藏 */
.mobile-menu {
  display: none;
}

.brand,
.topbar-actions,
.main-nav,
.hero-actions,
.hero-stats,
.section-heading,
.footer-links,
.article-meta,
.feature-list,
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.feature-list {
  margin-top: 20px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.brand strong,
.stat-chip strong,
.price {
  font-family: 'Space Grotesk', sans-serif;
}

.brand strong {
  display: block;
}

.brand small,
.article-meta,
.dialog-meta,
.form-status,
.section-heading p,
.card p,
.site-footer p,
.hero p,
.article-dialog-body p {
  color: var(--muted);
}

.main-nav {
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.main-nav a,
.footer-links a,
.language-switcher button {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.language-switcher button:hover,
.language-switcher button.is-active {
  background: rgba(23, 60, 48, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.language-switcher button,
.button-primary,
.button-secondary,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button-primary,
.button-secondary {
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 16px 32px rgba(242, 140, 40, 0.24);
}

.button-primary.small {
  padding: 12px 18px;
}

.button-secondary {
  padding: 13px 22px;
  color: var(--forest);
  background: rgba(23, 60, 48, 0.06);
  border: 1px solid rgba(23, 60, 48, 0.14);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero,
.site-footer,
.card,
.slide-card,
.contact-form,
.contact-card,
.article-dialog-card,
.faq-item {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 28px;
  min-height: 76vh;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(23, 60, 48, 0.96) 0%, rgba(40, 78, 61, 0.96) 48%, rgba(17, 55, 70, 0.98) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -150px;
  right: -60px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.28), transparent 65%);
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(216, 238, 241, 0.18), transparent 60%);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f0c37c;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-family: 'Space Grotesk', sans-serif;
}

.hero h1,
.section-heading h2,
.site-footer h2,
.article-dialog-card h2,
.slide-card h2,
.card h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1,
.section-heading h2,
.site-footer h2,
.article-dialog-card h2,
.slide-card h2 {
  font-family: 'Cormorant Garamond', serif;
}

.hero h1 {
  font-size: clamp(3.6rem, 8vw, 6.6rem);
  color: #fff;
}

.hero h1 span.accent {
  color: #ffd7a6;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero-stats {
  margin-top: 36px;
}

.stat-chip {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-chip strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.2rem;
}

.stat-chip span {
  color: rgba(255, 255, 255, 0.74);
}

.hero-panel {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
}

.hero-panel-img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Hero 深色背景內的次要按鈕改為白色系，避免與背景混淆 */
.hero .button-secondary {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slide-card,
.card,
.contact-form,
.contact-card,
.article-dialog-card,
.faq-item,
.site-footer {
  border-radius: var(--radius-lg);
}

.slide-card,
.card,
.contact-form,
.contact-card,
.article-dialog-card {
  padding: 24px;
}

.slide-card {
  min-height: 280px;
  background: linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}

.slide-card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.slide-card h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.slide-card p:last-child {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
}

.slide-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.slide-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
}

.slide-dots button.is-active {
  width: 34px;
  background: var(--gold);
}

.page-section {
  padding: 48px 0;
}

.section-heading {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.site-footer h2,
.article-dialog-card h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--ink);
}

.grid-three,
.grid-four,
.contact-layout,
.form-grid,
.article-dialog-body {
  display: grid;
  gap: 18px;
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .button-primary,
.card .button-secondary {
  display: block;
  margin-top: auto;
  align-self: flex-start;
}

.card h3 {
  font-size: 2rem;
  color: var(--ink);
}

.chip,
.feature-list span,
.article-meta span,
.dialog-meta,
.faq-item summary {
  font-size: 0.92rem;
}

.feature-list span,
.article-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 60, 48, 0.08);
}

.price {
  font-size: 2rem;
  color: var(--gold-deep);
}

.destination-card {
  color: #fff;
}

.destination-card h3,
.destination-card p {
  color: inherit;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq-item p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.contact-card,
.contact-form {
  min-width: 0;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 60, 48, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
}

.form-status.is-success {
  color: var(--forest);
}

.form-status.is-error {
  color: #a23920;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 28px 30px;
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(248, 233, 213, 0.92) 0%, rgba(216, 238, 241, 0.92) 100%);
}

.article-dialog {
  width: min(920px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.article-dialog::backdrop {
  background: rgba(17, 25, 22, 0.56);
  backdrop-filter: blur(10px);
}

.article-dialog-card {
  position: relative;
  max-height: 88vh;
  overflow: auto;
}

.article-dialog-body {
  margin-top: 18px;
}

.article-dialog-body section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.article-dialog-body h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-family: 'Cormorant Garamond', serif;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(23, 60, 48, 0.08);
  font-size: 1.5rem;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.62);
  border: 1px dashed rgba(23, 60, 48, 0.18);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .contact-layout,
  .site-footer,
  .grid-three,
  .grid-four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* 手機版單欄：保留圖片面板，限制圖片高度避免過高 */
  .hero-panel {
    display: grid;
  }

  .hero-panel-img {
    max-height: 180px;
  }

  .topbar {
    border-radius: 28px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
    margin: 10px auto 28px;
  }

  /* 手機版保持橫向列：品牌在左、漢堡在右 */
  .topbar {
    position: sticky;
    top: 10px;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
  }

  /* 桌機導覽列和動作區在手機隱藏 */
  .main-nav,
  .topbar-actions {
    display: none;
  }

  /* 顯示漢堡按鈕 */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.7);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
    transition: background-color 180ms ease;
  }

  .menu-toggle:hover {
    background: rgba(23, 60, 48, 0.1);
  }

  /* 漢堡/X 圖示切換 */
  .menu-toggle .icon-close {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-hamburger {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  /* 手機選單面板：預設隱藏，不佔空間 */
  .mobile-menu {
    display: none;
  }

  .mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 16px;
    background: rgba(255, 250, 243, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  /* 手機選單連結 */
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-menu nav a {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 180ms ease;
  }

  .mobile-menu nav a:hover {
    background: rgba(23, 60, 48, 0.06);
  }

  /* 手機選單底部：語言切換 + CTA */
  .mobile-menu-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }

  .mobile-menu-footer .button-primary {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
  }

  .hero-actions,
  .hero-stats,
  .section-heading,
  .form-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .slide-card,
  .card,
  .contact-form,
  .contact-card,
  .site-footer,
  .article-dialog-card {
    padding: 20px;
  }

  .hero h1,
  .section-heading h2,
  .site-footer h2,
  .article-dialog-card h2,
  .slide-card h2 {
    line-height: 1.04;
  }
}