/* VisitXingyi.com — v1 */
:root {
  --pine: #1d3a2f;
  --pine-deep: #12261e;
  --mist: #f7f4ec;
  --cloud: #ffffff;
  --ink: #22302a;
  --ink-soft: #5a6b62;
  --gold: #c8842c;
  --gold-soft: #e3b268;
  --line: #e3ded1;
  --radius: 14px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .display { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.25; color: var(--pine-deep); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p { margin-bottom: 1em; }
a { color: var(--pine); }
img { max-width: 100%; height: auto; display: block; }

/* Maps */
figure.photo.map img { background: #fbf9f3; border: 1px solid var(--line); }
.gmap { position: relative; margin: 1.6rem 0 2.2rem; }
.gmap-note { font-size: .88rem; color: var(--ink-soft); margin-top: .7em; line-height: 1.55; }
.gmap iframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: var(--radius); display: block; background: #fbf9f3; }
@media (max-width: 640px) { .gmap iframe { height: 340px; } }

/* Blockquote */
blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--gold); background: rgba(200,132,44,.05); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p:last-child { margin-bottom: 0; }
blockquote .note { font-size: .88rem; color: var(--ink-soft); margin-top: .8em; }

/* Photos */
figure.photo { margin: 2.2rem 0; }
figure.photo img { width: 100%; height: auto; border-radius: var(--radius); }
figure.photo figcaption { margin-top: .75em; font-size: .93rem; color: var(--ink-soft); line-height: 1.6; }
figure.photo figcaption b { color: var(--ink); }
figure.photo.tall img { max-height: 78vh; width: auto; margin: 0 auto; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem 0; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-pair figcaption { margin-top: .6em; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: Georgia, serif; font-size: 1.25rem; color: var(--pine-deep); text-decoration: none; letter-spacing: .2px; }
.logo b { color: var(--gold); font-weight: 600; }
.logo img { height: 42px; display: block; width: auto; }
footer.site .logo img { height: 36px; }
nav.main { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--pine-deep); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(180deg, rgba(18,38,30,.42) 0%, rgba(18,38,30,.56) 60%, rgba(18,38,30,.7) 100%), url('/img/hero-wanfenglin.jpg') center 62% / cover no-repeat, linear-gradient(180deg, #35594a 0%, var(--pine) 55%, var(--pine-deep) 100%); }
.hero h1, .hero p.lead { text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero .wrap { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 7rem) 22px clamp(5rem, 11vw, 8.5rem); max-width: 860px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #e8e4d8; max-width: 42em; margin: 0 auto 1.6em; }
.hero .peaks { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold-soft); margin-bottom: 1.2em; display: block; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, #35594a, var(--pine-deep)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.8rem, 7vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero.ph-photo { background: linear-gradient(180deg, rgba(18,38,30,.5) 0%, rgba(18,38,30,.66) 100%), var(--ph-img) center 70% / cover no-repeat, linear-gradient(180deg, #35594a, var(--pine-deep)); }
.page-hero.ph-photo h1, .page-hero.ph-photo p { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #dcd8ca; max-width: 46em; margin-top: .6em; }
.page-hero .peaks { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; opacity: .55; }
.page-hero .wrap { position: relative; z-index: 2; }

/* Buttons */
.btn { display: inline-block; padding: .8em 1.7em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.65); color: #fff; margin-left: .6em; }
.btn-pine { background: var(--pine); color: #fff; }

/* Sections */
section.band { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
section.band.alt { background: var(--cloud); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; display: block; margin-bottom: .8em; }

/* Cards */
.grid { display: grid; gap: 1.3rem; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 a { text-decoration: none; }
.card .tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--mist); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: .2em .9em; margin-bottom: .9em; }
.card.tour { display: flex; flex-direction: column; }
.card.tour .price { font-family: Georgia, serif; font-size: 1.6rem; color: var(--pine-deep); margin: .4em 0 .2em; }
.card.tour .price small { font-size: .85rem; color: var(--ink-soft); font-family: inherit; }
.card.tour ul { margin: .6em 0 1.2em 1.1em; color: var(--ink-soft); font-size: .95rem; }
.card.tour .btn { margin-top: auto; align-self: flex-start; }

/* Info rows */
.facts { border-left: 3px solid var(--gold); background: var(--cloud); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 1.4rem 0; font-size: .96rem; }
.facts b { color: var(--pine-deep); }
table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; background: var(--cloud); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .75em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--pine); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Prose */
.prose { max-width: 720px; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose li { margin-bottom: .45em; }
.note { font-size: .88rem; color: var(--ink-soft); font-style: italic; }

/* CTA band */
.cta { background: var(--pine-deep); color: #e8e4d8; text-align: center; padding: clamp(2.6rem, 6vw, 4rem) 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 40em; margin: 0 auto 1.4em; }
.cta p a { color: #e8b96a; text-decoration: underline; text-decoration-color: rgba(232,185,106,.5); text-underline-offset: 2px; }
.cta p a:hover { color: #f3cd8c; }

/* Footer */
footer.site { background: #101d17; color: #9db3a7; font-size: .88rem; padding: 2.4rem 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
footer.site a { color: #cfdcd4; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* Breadcrumb-ish */
.crumb { font-size: .85rem; color: #bcd0c5; margin-bottom: 1em; }
.crumb a { color: #bcd0c5; }

@media (max-width: 640px) {
  header.site .wrap { flex-direction: column; height: auto; padding-top: .7rem; padding-bottom: .7rem; gap: .35rem; }
  nav.main { gap: .9rem; justify-content: center; }
  .btn-ghost { margin-left: 0; margin-top: .7em; }
}

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.wa-float .wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: transform .15s ease, box-shadow .15s ease; flex: none; }
.wa-float:hover .wa-btn { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0,0,0,.34); }
.wa-float .wa-label { background: #fff; color: #1c2b23; padding: .45rem .7rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.16); max-width: 0; overflow: hidden; opacity: 0; transform: translateX(6px); transition: max-width .2s ease, opacity .2s ease, transform .2s ease; white-space: nowrap; pointer-events: none; }
.wa-float .wa-label b { display: block; font-weight: 700; font-size: .82rem; }
.wa-float .wa-label small { color: #5a6b62; font-size: .72rem; }
.wa-float:hover .wa-label { max-width: 260px; opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; } .wa-float .wa-label { display: none; } .wa-float .wa-btn { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wa-float .wa-btn, .wa-float .wa-label { transition: none; } }

/* Highlighted "Ask Us" nav entry */
nav.main a.ask, footer.site nav a.ask { background:#d9a441; color:#12261e !important; padding:.3em .85em; border-radius:20px; font-weight:700; }
nav.main a.ask:hover, footer.site nav a.ask:hover { background:#e8b96a; text-decoration:none; }
nav.main a.ask[aria-current="page"], footer.site nav a.ask[aria-current="page"] { background:#c79433; }

/* Generate Xingyi */
.gx-body { background: #f7f4ec; }
.gx-body header.site, .gx-body footer.site, .gx-body .wa-float { display: none; }
.gx-installation { min-height: 100vh; background: #0f1714; color: #f7f4ec; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 1.1rem clamp(1rem, 3vw, 2.4rem) 1.4rem; gap: 1rem; }
.gx-gallery-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; text-transform: uppercase; color: rgba(247,244,236,.68); letter-spacing: .08em; }
.gx-gallery-top a { color: rgba(247,244,236,.85); text-decoration: none; }
.gx-gallery-output { min-height: 0; align-self: stretch; }
.gx-gallery-output .gx-poster { height: min(68vh, 720px); min-height: 420px; border: 0; border-radius: 0; background: #17241f; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.gx-three-mount { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 35% 20%, rgba(232,185,106,.12), transparent 32%), #111d18; }
.gx-three-mount canvas { display: block; width: 100%; height: 100%; }
.gx-three-ready .gx-poster-art { opacity: .18; mix-blend-mode: screen; z-index: 3; pointer-events: none; }
.gx-wall-label { display: grid; grid-template-columns: auto minmax(14rem, 1fr) minmax(16rem, 34rem); gap: 1rem 1.4rem; align-items: end; max-width: 1180px; width: 100%; margin: 0 auto; }
.gx-wall-label h1 { margin: 0; color: #f7f4ec; font-size: clamp(1.65rem, 3.4vw, 4.1rem); line-height: .98; max-width: 11em; }
.gx-wall-label p { margin: 0; color: rgba(247,244,236,.78); max-width: 34rem; }
.gx-wall-label .gx-keywords { margin: .7rem 0 0; }
.gx-wall-label .gx-keyword { background: rgba(247,244,236,.1); color: #f7f4ec; border-color: rgba(247,244,236,.24); }
.gx-wall-label .gx-keyword.major { background: #c8842c; color: #fff; }
.gx-wall-label .gx-generated-id { background: rgba(247,244,236,.14); color: #f7f4ec; border: 1px solid rgba(247,244,236,.28); border-radius: 0; align-self: start; }
.gx-poster-art { position: absolute; inset: 0; width: 100%; height: 100%; }
#gxMist { animation: gxMistDrift 18s ease-in-out infinite alternate; }
#gxSignals { animation: gxSignalPulse 5.5s ease-in-out infinite alternate; transform-origin: center; }
@keyframes gxMistDrift { from { transform: translateX(-24px); opacity: .54; } to { transform: translateX(34px); opacity: .9; } }
@keyframes gxSignalPulse { from { opacity: .28; } to { opacity: .82; } }
.gx-two-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.gx-view-card { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem; position: relative; overflow: hidden; }
.gx-view-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--gold); }
.gx-view-card.en::before { background: var(--pine); }
.gx-view-card p { color: var(--ink-soft); }
.gx-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.gx-chip-row span, .gx-keyword { display: inline-block; border: 1px solid var(--line); background: rgba(247,244,236,.9); color: var(--pine-deep); border-radius: 999px; padding: .22em .72em; font-size: .82rem; line-height: 1.4; }
.gx-chip-row.small span { font-size: .78rem; color: var(--ink-soft); }
.gx-workbench { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 1.4rem; align-items: start; }
.gx-controls, .gx-output { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.gx-gallery-output.gx-output { background: transparent; border: 0; border-radius: 0; padding: 0; }
.gx-controls label { display: block; margin: 1rem 0; color: var(--pine-deep); font-weight: 700; }
.gx-select, .gx-word { width: 100%; margin-top: .35rem; padding: .72rem .78rem; border: 1px solid var(--line); border-radius: 10px; background: #fbf9f3; color: var(--ink); font: inherit; }
.gx-slider { margin: 1rem 0; }
.gx-slider div { display: grid; grid-template-columns: 1fr auto 1fr; gap: .7rem; align-items: center; color: var(--ink-soft); font-size: .88rem; }
.gx-slider div span:last-child { text-align: right; }
.gx-slider output { color: var(--pine-deep); font-weight: 800; }
.gx-range { width: 100%; accent-color: var(--gold); }
.gx-button { border: 0; cursor: pointer; font: inherit; }
.gx-poster { position: relative; min-height: 520px; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: #fbf9f3; border: 1px solid var(--line); }
.gx-poster-text { position: relative; z-index: 2; padding: 2rem; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; }
.gx-generated-id { align-self: flex-start; background: var(--pine-deep); color: #fff; border-radius: 999px; padding: .25em .85em; font-size: .78rem; letter-spacing: .08em; }
.gx-poster h3 { font-size: clamp(1.8rem, 4vw, 3.2rem); max-width: 10em; margin-top: auto; color: var(--pine-deep); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.gx-poster p { max-width: 30em; color: var(--ink); }
.gx-keywords { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.gx-keyword.major { font-size: 1.05rem; background: var(--gold); color: #fff; border-color: transparent; }
.gx-keyword.medium { background: rgba(29,58,47,.08); }
.gx-recipe { background: #fbf9f3; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.gx-recipe p:last-child { margin-bottom: 0; }
.gx-archive { display: grid; gap: .7rem; margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; }
.gx-archive li { background: var(--cloud); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.gx-archive span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 900px) { .gx-wall-label { grid-template-columns: 1fr; align-items: start; } .gx-gallery-output .gx-poster { height: 56vh; } }
@media (max-width: 820px) { .gx-workbench { grid-template-columns: 1fr; } .gx-poster, .gx-poster-text { min-height: 460px; } }
@media (max-width: 640px) { .gx-installation { min-height: auto; } .gx-gallery-top { display: grid; } .gx-slider div { grid-template-columns: 1fr auto; } .gx-slider div span:last-child { grid-column: 1 / -1; text-align: left; } .gx-poster-text { padding: 1.25rem; } .gx-gallery-output .gx-poster { min-height: 360px; height: 52vh; } }
