
:root {
  --accent: #c9855a;
  --accent-dark: #b16f45;
  --ink: #2f2a27;
  --muted: #8a807a;
  --line: #e6ded7;
  --page-bg: #fbf8f5;
  --card-bg: #ffffff;
  --footer-bg: #4a413c;
  --radius: 18px;
  --shadow: 0 18px 46px rgba(70, 52, 40, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}


.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 8rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg?v=3db0ec3a") center 60% / cover no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 21, 0.55) 0%, rgba(28, 24, 21, 0.35) 55%, rgba(251, 248, 245, 0.95) 100%);
}

.hero__inner {
  position: relative;
  color: #fff;
  max-width: 40rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

.hero__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}


.planner {
  max-width: 62rem;
  margin: -6rem auto 0;
  padding: 0 1.25rem 4.5rem;
  position: relative;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}

.card + .card { margin-top: 1.5rem; }

.card__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 700;
}

.card__subtitle {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field { text-align: left; }

.field__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.field__label--inline {
  margin: 0;
  padding-left: 0.4rem;
  color: var(--accent-dark);
  font-weight: 500;
  white-space: nowrap;
}

.field--car {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  margin-bottom: 1.1rem;
  background: #fff;
}

.field--car select {
  border: none;
  background: transparent;
  font-size: 1.02rem;
  flex: 1;
}

.field--car select:focus { outline: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.field__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f4f1;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a807a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem;
  padding-right: 2.2rem;
  cursor: pointer;
}

select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

select:disabled { opacity: 0.55; cursor: not-allowed; }

.form-error {
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #fdecea;
  color: #a3352a;
  font-size: 0.9rem;
  text-align: left;
}


.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.6rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }

.btn-primary__spark { font-size: 0.9em; }

.btn-ghost {
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }


.result__image {
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(70, 52, 40, 0.18);
  max-height: 78vh;
  width: auto;
}

.result__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.result__actions .btn-primary { width: auto; margin-top: 0; }


.featured {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
  text-align: center;
}

.featured__tag {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.featured__title {
  margin: 0.5rem 0 0.4rem;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 700;
}

.featured__subtitle {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.featured__carousel {
  position: relative;
  padding: 0 2.75rem;
}

.featured__swiper {
  height: auto;
  overflow: hidden;
}

.featured__swiper .swiper-slide {
  height: auto;
}

.featured-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 0.25rem;
}

.featured__swiper .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

.featured__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: filter 0.18s ease;
}

.featured__nav:hover { filter: brightness(1.06); }
.featured__nav--prev { left: 0; }
.featured__nav--next { right: 0; }
.featured__nav.swiper-button-disabled { opacity: 0.35; cursor: default; }
.featured__nav.swiper-button-disabled:hover { filter: none; }
.featured__nav .icon { width: 1.3em; height: 1.3em; }

.featured__pagination {
  position: static !important;
  margin-top: 1.5rem;
}

.featured__pagination .swiper-pagination-bullet {
  background: var(--line);
  opacity: 1;
}

.featured__pagination .swiper-pagination-bullet-active {
  background: var(--accent);
}

.featured__placeholder {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}


.cta {
  background: var(--footer-bg);
  color: #f3ece7;
  text-align: center;
  padding: 4rem 1.25rem 1.5rem;
}

.cta__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

.cta__text {
  margin: 0 0 2rem;
  line-height: 1.9;
  font-size: 0.95rem;
  color: rgba(243, 236, 231, 0.85);
}

.btn-light {
  display: inline-block;
  padding: 0.9rem 2.6rem;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.btn-light:hover { transform: translateY(-2px); }

.cta__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(243, 236, 231, 0.7);
}

.cta__links li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--accent);
}

.cta__disclaimer {
  max-width: 42rem;
  margin: 2.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(243, 236, 231, 0.55);
}

.cta__disclaimer-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(243, 236, 231, 0.8);
}

.cta__disclaimer p {
  margin: 0 0 0.75rem;
}

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

.cta__copyright {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(243, 236, 231, 0.5);
}


@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .planner { margin-top: -4rem; }
  .hero { min-height: 54vh; padding-bottom: 6.5rem; }
  .field--car { flex-wrap: wrap; }
  .featured__carousel { padding: 0 2.25rem; }
  .featured__nav { width: 2.1rem; height: 2.1rem; }
  .featured-page { grid-template-columns: 1fr; }
}
