@font-face {
  font-family: "Kangyue Brand";
  src: url("./assets/fonts/FZLanTYJW_Zhun.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  color-scheme: light;
  --surface: #fcfdfc;
  --surface-muted: #f4f6f4;
  --surface-soft: #eef3f0;
  --text: #1d2521;
  --text-muted: #58635d;
  --line: #dfe5e1;
  --accent: #176b4a;
  --accent-strong: #0f583b;
  --shadow: 0 10px 30px rgba(34, 71, 52, 0.12);
  --radius-card: 18px;
  --radius-control: 999px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef1ef;
}

body {
  margin: 0;
  color: var(--text);
  background: #eef1ef;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(31, 55, 43, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-button img {
  width: 118px;
  height: 46px;
  object-fit: contain;
}

.brand-button strong {
  color: var(--accent-strong);
  font-family: "Kangyue Brand", "Microsoft YaHei UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

main {
  min-height: calc(100dvh - 140px);
  padding: 20px 18px 104px;
  outline: none;
}

.page-heading {
  margin: 0 0 8px;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: 34em;
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.home-page-heading {
  margin: 4px 0 22px;
  font-size: clamp(23px, 6vw, 30px);
  text-align: center;
}

.search-trigger {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 4px 0 24px;
  padding: 0 20px;
  border: 1px solid #d9dfdb;
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(39, 63, 50, 0.09);
  text-align: left;
  cursor: pointer;
}

.search-trigger strong {
  font-size: 17px;
}

.search-trigger span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.section-heading {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.3;
}

.section-note {
  margin: -6px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.province-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
}

.province-card,
.destination-card,
.product-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-card > button,
.product-card__image > button:first-child {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-card__image > button:first-child {
  height: 100%;
}

.province-card:active,
.destination-card:active,
.product-card:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.province-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.province-card__visual img,
.destination-card img,
.product-card img,
.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.province-card__visual.is-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(23, 107, 74, 0.1), rgba(23, 107, 74, 0.02)),
    var(--surface-muted);
  border: 1px dashed #aebdb5;
  color: var(--accent-strong);
  text-align: center;
  line-height: 1.5;
}

.province-card h3,
.destination-card h3,
.product-card h3 {
  margin: 10px 0 3px;
  font-size: 18px;
  line-height: 1.35;
}

.province-card p,
.destination-card p,
.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.price-line {
  margin-top: 4px !important;
  color: var(--text) !important;
  font-size: 16px !important;
  font-weight: 700;
}

.price-line strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.back-row {
  margin-bottom: 16px;
}

.back-button,
.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}

.destination-list {
  display: grid;
  gap: 24px;
}

.province-page-heading {
  margin-bottom: 18px;
}

.destination-card img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
}

.destination-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  white-space: nowrap;
}

.destination-card__meta h3,
.destination-card__meta p {
  margin: 0;
  line-height: 1.35;
}

.destination-card__meta h3 {
  flex: 0 0 auto;
  font-size: 20px;
}

.destination-card__meta p {
  min-width: 0;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 600;
  text-align: right;
}

.destination-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  margin: 0 -18px 26px;
  background: var(--surface-muted);
}

.destination-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 34, 25, 0.78), rgba(17, 34, 25, 0.04) 68%);
}

.destination-hero__content {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: #f8fbf9;
}

.destination-hero__content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.destination-hero__content p {
  max-width: 34em;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.choice-reasons {
  margin: 0 0 30px;
}

.choice-reasons__heading {
  margin-bottom: 16px;
}

.choice-reasons__heading h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 6vw, 24px);
  line-height: 1.3;
  text-wrap: balance;
}

.choice-reasons__heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.choice-reasons__list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.choice-reason {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 17px 16px;
}

.choice-reason + .choice-reason {
  border-top: 1px solid var(--line);
}

.choice-reason > span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.choice-reason h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.choice-reason p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.product-list {
  display: grid;
  gap: 26px;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.favorite-button.is-saved {
  background: var(--accent);
  color: #f8fbf9;
  border-color: var(--accent);
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -18px 22px;
  padding: 0 18px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  scroll-snap-align: start;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  text-wrap: balance;
}

.product-title-row h1 span,
.product-title-row h1 small {
  display: block;
}

.product-title-row h1 small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.product-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.product-actions-row .price-line {
  margin: 0 !important;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}

.tag {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.detail-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.fact span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.fact strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.4;
}

.package-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.package-card + .package-card {
  margin-top: 12px;
}

.package-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.package-card strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.package-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f8fbf9;
}

.secondary-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-strong);
  white-space: nowrap;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 46dvh;
  padding: 34px;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.empty-state p {
  max-width: 24em;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  width: min(100%, 720px);
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.bottom-nav button {
  position: relative;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: var(--accent-strong);
}

.bottom-nav button.is-active::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 26px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: var(--radius-control);
  background: var(--accent);
}

.search-dialog {
  width: min(100%, 720px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: var(--surface);
}

.search-dialog::backdrop {
  background: rgba(20, 35, 27, 0.28);
}

.search-dialog__panel {
  min-height: 100%;
  padding: 14px 18px 40px;
}

.search-dialog__header {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 18px;
}

.search-dialog__header .text-button {
  justify-self: start;
}

.search-field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #aeb8b2;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
}

.search-field input::placeholder {
  color: #68756e;
}

.search-field input:focus {
  outline: 3px solid rgba(23, 107, 74, 0.2);
  border-color: var(--accent);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-result {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .province-grid {
    gap: 26px 20px;
  }

  .destination-hero {
    margin-left: -28px;
    margin-right: -28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  .province-card,
  .destination-card,
  .product-card {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }
}
