:root {
  color-scheme: light;
  --accent: #2f6c5f;
  --accent-deep: #173f37;
  --accent-soft: #dfece5;
  --paper: #f7f4ec;
  --paper-deep: #ebe6d9;
  --warm: #f2e2c9;
  --green: #dce9dc;
  --ink: #172622;
  --muted: #58655f;
  --line: rgba(23, 38, 34, .15);
  --white: #fffdf8;
  --shadow: 0 22px 62px rgba(19, 48, 41, .12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.72; }
body.detail--nuanshe { --accent: #8a593f; --accent-deep: #4d3023; --accent-soft: #efe0d4; --paper: #faf5ed; --paper-deep: #eee4d6; --warm: #f3dfc4; --green: #e2eadc; }
body.detail--fuxipan { --accent: #385e7a; --accent-deep: #203d51; --accent-soft: #dce8ef; --paper: #f5f5ef; --paper-deep: #e5e7df; --warm: #efe0ca; --green: #dce8df; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }

.detail-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.detail-section, .choice-group { padding-block: clamp(76px, 9vw, 118px); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; min-height: 48px; padding: 12px 18px; border-radius: 12px; background: var(--white); color: var(--accent-deep); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.detail-kicker { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.detail-section h2, .choice-group h2 { max-width: 820px; margin: 0; font-size: clamp(40px, 5.4vw, 60px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; }
.detail-section h3, .choice-group h3 { margin: 0; font-size: clamp(28px, 3vw, 34px); letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }

.detail-topbar { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; padding-top: max(10px, env(safe-area-inset-top)); color: var(--white); }
.detail-nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.detail-brand, .detail-nav__back { display: inline-flex; align-items: center; min-height: 48px; color: var(--white); font-size: 16px; font-weight: 800; text-decoration: none; }
.detail-brand { font-size: 19px; letter-spacing: .08em; }

.detail-hero { position: relative; min-height: 650px; height: min(82svh, 840px); overflow: hidden; background: var(--accent-deep); color: var(--white); }
.detail-hero__image, .detail-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-hero__image { object-fit: cover; }
.detail-hero__shade { background: linear-gradient(180deg, rgba(6, 21, 18, .18) 12%, rgba(6, 21, 18, .22) 40%, rgba(6, 21, 18, .94) 100%); }
.detail-hero__inner { position: relative; z-index: 2; display: flex; height: 100%; align-items: flex-end; padding-bottom: max(54px, env(safe-area-inset-bottom)); }
.detail-hero__copy { max-width: 900px; }
.detail-hero .detail-kicker { color: rgba(255, 255, 255, .78); }
.detail-hero h1 { margin: 0; max-width: 850px; font-size: clamp(52px, 8.2vw, 92px); font-weight: 720; letter-spacing: -.06em; line-height: 1; text-wrap: balance; }
.detail-hero__sub { max-width: 720px; margin: 24px 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.62; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.detail-hero__meta span { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; background: rgba(255, 255, 255, .11); font-size: 15px; font-weight: 780; }

.truth-strip { padding-block: 38px; background: var(--accent-deep); color: var(--white); }
.truth-strip__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.truth-card { min-width: 0; padding: 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; background: rgba(255, 255, 255, .07); }
.truth-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.truth-card p { margin: 0; color: rgba(255, 255, 255, .77); font-size: 15px; line-height: 1.65; }
.truth-card--estimate { border-color: rgba(255, 226, 151, .44); }
.truth-card--confirm { border-color: rgba(255, 176, 153, .48); }

.route-reference { padding-block: 48px; border-bottom: 1px solid var(--line); background: var(--white); }
.route-reference__inner { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; }
.route-reference h2 { margin: 0; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.25; letter-spacing: -.035em; }
.route-reference p:not(.detail-kicker) { margin: 12px 0 0; color: var(--muted); }
.route-snapshot-note {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.65;
}

.choice-group { position: relative; }
.choice-group--warm { background: var(--warm); }
.choice-group--green { background: var(--green); }
.choice-group__lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 42px; }
.choice-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.choice-card > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--accent-soft); }
.choice-card__body { display: flex; min-height: 420px; flex-direction: column; padding: 26px; }
.choice-card__route { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.choice-card__route span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 850; }
.choice-card__metrics {
  margin: -3px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
}
.choice-card__metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
}
.choice-card__recommend { margin: 18px 0 24px; color: var(--muted); }
.choice-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: auto; }
.choice-card__actions a { display: inline-flex; min-width: 0; min-height: 50px; align-items: center; justify-content: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent-deep); font-size: 15px; font-weight: 820; line-height: 1.3; text-align: center; text-decoration: none; }
.choice-card__actions a[data-link="trip"] { grid-column: 1 / -1; background: var(--accent-deep); color: var(--white); }

.detail-section--tint { background: var(--paper-deep); }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 42px; align-items: end; }
.source-line { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.source-line a { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent-deep); font-weight: 820; text-underline-offset: 4px; }
.detail-cta { width: 100%; justify-content: center; margin-top: 10px; padding: 12px 18px; border-radius: 999px; background: var(--accent-deep); color: var(--white) !important; text-decoration: none; }
.property-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 22vw, 270px); gap: 10px; margin-top: 42px; }
.property-gallery figure { position: relative; min-width: 0; overflow: hidden; margin: 0; border-radius: 20px; background: var(--accent-soft); }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery figcaption { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(13, 31, 27, .72); color: var(--white); font-size: 12px; }
.stay-notes, .caution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stay-notes article, .caution-grid article { min-width: 0; padding: 24px; border-top: 4px solid var(--accent); border-radius: 5px 5px 20px 20px; background: var(--white); }
.stay-notes h3, .caution-grid h3 { font-size: 28px; }
.stay-notes p, .caution-grid p { margin: 12px 0 0; color: var(--muted); }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.video-card { display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 12px 34px rgba(25, 44, 38, .07); }
.video-card__warning { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #fff0c9; color: #5c4317; font-size: 14px; font-weight: 850; }
.video-card__media { margin: 0 0 20px; overflow: hidden; border-radius: 18px; background: #10211b; }
.video-card__media video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 620px; background: #10211b; object-fit: contain; }
.video-card__media--portrait video { aspect-ratio: 3 / 4; }
.video-card p:not(.video-card__warning) { color: var(--muted); }
.video-card a, .copy-button, .detail-footer a { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; }
.video-card a { margin-top: auto; padding: 12px 18px; border-radius: 999px; background: var(--accent-deep); color: var(--white); font-weight: 800; text-decoration: none; }

.detail-section--rooms {
  background: var(--paper-deep);
}
.room-snapshot {
  max-width: 900px;
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 5px solid var(--accent);
  border-radius: 0 20px 20px 0;
  background: var(--white);
  color: var(--muted);
}
.room-snapshot p {
  margin: 0;
}
.room-snapshot p + p {
  margin-top: 10px;
}
.room-snapshot strong {
  color: var(--accent-deep);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.room-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(25, 44, 38, 0.07);
}
.room-card, .comparison-card {
  min-width: 0;
}
.room-card h3, .comparison-card h3 {
  overflow-wrap: anywhere;
}
.room-card h3 {
  min-height: 2.4em;
  font-size: clamp(24px, 2.5vw, 30px);
}
.room-card__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.room-card__fact strong {
  color: var(--ink);
  text-align: right;
}
.room-card__boundary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.room-card__label {
  margin: 20px 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}
.room-card__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.room-card__prices p {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.room-card__prices span,
.room-card__prices strong {
  display: block;
}
.room-card__prices span {
  color: var(--muted);
  font-size: 12px;
}
.room-card__prices strong {
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1.3;
}
.property-conclusion {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--accent-deep);
  color: var(--white);
  font-size: 19px;
}

.detail-section--comparison {
  background: var(--white);
}
.comparison-lead {
  max-width: 840px;
  margin: 20px 0 0;
  color: var(--muted);
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.comparison-card {
  padding: 24px;
  border-top: 5px solid var(--accent);
  border-radius: 5px 5px 22px 22px;
  background: var(--paper);
}
.comparison-card__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}
.comparison-card h3 {
  font-size: 28px;
}
.comparison-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}
.comparison-boundary {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 15px;
}

.detail-section--final { background: var(--accent-deep); color: var(--white); }
.detail-section--final .detail-kicker { color: rgba(255, 255, 255, .68); }
.detail-section--final .caution-grid article { border-top-color: #efbd57; background: rgba(255, 255, 255, .09); }
.detail-section--final .caution-grid p { color: rgba(255, 255, 255, .78); }
.confirm-panel { margin-top: 34px; overflow: hidden; border-radius: 26px; background: var(--white); color: var(--ink); }
.confirm-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: var(--accent-soft); }
.confirm-panel__head p { margin: 0; color: var(--accent-deep); font-weight: 800; }
.copy-button { flex: 0 0 auto; min-width: 132px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent-deep); color: var(--white); font-weight: 820; cursor: pointer; }
.merchant-copy { margin: 0; padding: 24px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #30413b; font: inherit; font-size: 16px; line-height: 1.78; user-select: text; }
.final-boundary { margin: 24px 0 0; padding: 22px; border-left: 4px solid #efbd57; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); }

.detail-footer { padding: 50px 0 max(46px, env(safe-area-inset-bottom)); background: #102a24; color: var(--white); }
.detail-footer__inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.detail-footer p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.detail-footer a { padding-inline: 16px; color: var(--white); font-weight: 780; text-underline-offset: 4px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #efbd57; outline-offset: 4px; }

@media (hover: hover) {
  .detail-nav a:hover, .detail-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .choice-card__actions a:hover, .video-card a:hover, .detail-cta:hover, .copy-button:hover { filter: brightness(1.12); }
}

@media (max-width: 760px) {
  body { font-size: 17px; line-height: 1.68; }
  .detail-shell { width: calc(100% - 30px); }
  .detail-section, .choice-group { padding-block: 76px; }
  .detail-section h2, .choice-group h2 { font-size: clamp(38px, 11vw, 46px); }
  .detail-section h3, .choice-group h3 { font-size: 28px; }
  .detail-hero { min-height: 650px; height: 82svh; }
  .detail-hero h1 { font-size: clamp(46px, 14vw, 62px); }
  .detail-hero__sub { font-size: 18px; }
  .truth-strip__grid, .route-reference__inner, .choice-grid, .gallery-head, .stay-notes, .video-grid, .caution-grid { grid-template-columns: 1fr; }
  .room-grid, .comparison-grid { grid-template-columns: 1fr; }
  .route-reference__inner { gap: 4px; }
  .route-reference h2 { font-size: 28px; }
  .choice-group__lead { font-size: 18px; }
  .choice-grid { gap: 20px; margin-top: 32px; }
  .choice-card { border-radius: 24px; }
  .choice-card__body { min-height: 0; padding: 22px; }
  .choice-card__metrics { font-size: 13px; }
  .choice-card__actions { grid-template-columns: 1fr; }
  .choice-card__actions a, .choice-card__actions a[data-link="trip"] { grid-column: auto; min-height: 52px; }
  .gallery-head { gap: 26px; }
  .property-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; margin-top: 32px; }
  .property-gallery figure { border-radius: 15px; }
  .stay-notes, .video-grid, .caution-grid { gap: 14px; }
  .room-grid, .comparison-grid { gap: 14px; }
  .room-card { padding: 22px; }
  .room-card h3 { min-height: 0; font-size: 26px; }
  .room-card__fact { align-items: flex-start; flex-direction: column; gap: 2px; }
  .room-card__fact strong { text-align: left; }
  .room-card__prices strong { font-size: 18px; }
  .property-conclusion { padding: 20px; font-size: 18px; }
  .confirm-panel__head { align-items: stretch; flex-direction: column; padding: 20px; }
  .copy-button { width: 100%; min-height: 52px; }
  .merchant-copy { padding: 20px; font-size: 15px; }
  .detail-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .detail-shell { width: calc(100% - 26px); }
  .detail-brand { font-size: 17px; }
  .detail-nav__back { font-size: 15px; }
  .detail-hero h1 { font-size: 46px; }
  .choice-card__body { padding: 20px; }
  .property-gallery { grid-auto-rows: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
