:root {
  --bg: #f4efe6;
  --bg-alt: #ede5d9;
  --card: rgba(255, 255, 255, 0.62);
  --card-strong: rgba(255, 255, 255, 0.78);
  --text: #2d2a26;
  --muted: #6f675f;
  --line: rgba(74, 63, 54, 0.1);
  --accent: #7a8f73;
  --accent-2: #c98f86;
  --accent-3: #9aa8c0;
  --shadow: 0 22px 50px rgba(63, 52, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(201, 143, 134, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(122, 143, 115, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}

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

.bg-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.glow-left {
  top: -9rem;
  left: -8rem;
  background: rgba(201, 143, 134, 0.2);
}

.glow-right {
  right: -10rem;
  top: 16rem;
  background: rgba(122, 143, 115, 0.16);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1.2rem clamp(1rem, 4vw, 3rem) 3rem;
}

.topbar,
.hero-content,
main,
.footer {
  max-width: 1120px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.9rem;
}

.theme-button,
.primary-link,
.secondary-link {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.theme-button {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-content {
  padding: 5.3rem 1rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-image {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 28px 70px rgba(63, 52, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.hero-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 18rem;
  padding: 1rem 1.1rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 63, 54, 0.08);
  box-shadow: 0 18px 40px rgba(63, 52, 42, 0.12);
  backdrop-filter: blur(12px);
}

.hero-caption span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.hero-caption strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.hero-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.eyebrow,
.section-title p {
  margin: 0 0 0.85rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.primary-link {
  background: linear-gradient(135deg, var(--accent), #91a98b);
  color: #fff;
  font-weight: 700;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
}

main {
  padding: 0 1rem 4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card,
.spot-card,
.food-card,
.tip-card,
.intro-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  padding: 1.2rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.01em;
}

.stat-card span {
  color: var(--muted);
}

.section-block {
  margin-top: 4.5rem;
}

.intro-block {
  margin-top: 4.8rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.category-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font: inherit;
}

.category-button.active {
  background: linear-gradient(135deg, rgba(122, 143, 115, 0.18), rgba(201, 143, 134, 0.18));
  border-color: rgba(122, 143, 115, 0.34);
}

.spot-grid,
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.spot-card,
.food-card {
  overflow: hidden;
}

.spot-image,
.food-image {
  height: 11rem;
  display: grid;
  place-items: end start;
  padding: 1rem;
  font-size: 3rem;
  background:
    linear-gradient(180deg, rgba(43, 37, 32, 0.02), rgba(43, 37, 32, 0.78)),
    var(--image);
}

.spot-image-photo {
  background-size: cover;
  background-position: center;
}

.spot-content,
.food-content {
  padding: 1rem 1rem 1.2rem;
}

.spot-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.spot-content h3,
.food-content h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.spot-content p,
.food-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.spot-detail {
  margin-top: 0.85rem !important;
}

.spot-note {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent-2);
  font-size: 0.92rem;
}

.tips-block {
  padding-bottom: 1rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.booking-block {
  margin-top: 4.8rem;
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.booking-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: rgba(122, 143, 115, 0.5);
  box-shadow: 0 0 0 4px rgba(122, 143, 115, 0.12);
}

.booking-form textarea {
  resize: vertical;
}

.booking-form .full-width {
  grid-column: 1 / -1;
}

.submit-button {
  justify-self: start;
  margin-top: 0.2rem;
}

.booking-note {
  padding: 1.2rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
}

.booking-note h3 {
  margin-top: 0;
}

.booking-note p {
  color: var(--muted);
  line-height: 1.85;
}

.booking-message {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.intro-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: var(--card-strong);
}

.intro-avatar {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.4rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.intro-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.intro-content p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.9;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

.tip-card {
  padding: 1.2rem;
}

.tip-card h3 {
  margin-top: 0;
}

.tip-card p {
  color: var(--muted);
  line-height: 1.85;
}

.footer {
  padding: 0 1rem 2rem;
  color: var(--muted);
  text-align: center;
}

body.theme-alt {
  --bg: #1d2231;
  --bg-alt: #151a25;
  --card: rgba(31, 38, 54, 0.62);
  --card-strong: rgba(31, 38, 54, 0.78);
  --text: #f1ede5;
  --muted: #c0b8ad;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d8a38e;
  --accent-2: #8fb29b;
  --accent-3: #b7c0d8;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .stats,
  .spot-grid,
  .food-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-image {
    height: 24rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    border-radius: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 3.6rem;
  }

  .theme-button,
  .primary-link,
  .secondary-link {
    width: 100%;
    text-align: center;
  }

  .intro-card {
    grid-template-columns: 1fr;
  }

  .booking-card,
  .booking-form {
    grid-template-columns: 1fr;
  }
}
