/* 富樂旅遊｜新疆冬季自由行 — 雪國編輯風：夜藍墨色 + 暖紙白 + 絲路杏色 */
:root {
  --ink: #13233a;
  --ink-2: #2b3d57;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --snow: #ffffff;
  --glacier: #d7e5ee;
  --glacier-deep: #4f7d99;
  --apricot: #c4622d;
  --apricot-dark: #9f4a1d;
  --text: #1d2430;
  --muted: #5f6877;
  --line: #ddd5c8;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 1px 2px rgb(19 35 58 / .06), 0 12px 32px -12px rgb(19 35 58 / .25);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font: 500 .75rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--apricot); margin-bottom: 1rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--gutter); background: rgb(247 244 238 / .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 900 1.1rem var(--serif); border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 900 1.1rem var(--serif); color: var(--ink); letter-spacing: .08em; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .12em; }
.site-head nav { display: flex; gap: clamp(.6rem, 2vw, 1.8rem); }
.site-head nav a { text-decoration: none; font-size: .92rem; color: var(--ink-2); padding: .3rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-head nav a:hover, .site-head nav a[aria-current] { border-color: var(--apricot); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .75rem 1.4rem; background: var(--apricot); color: #fff; text-decoration: none; font-weight: 500; border-radius: var(--radius);
  border: 1px solid var(--apricot); transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--apricot-dark); transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-visible, .region:focus-visible, .card:focus-visible { outline: 3px solid var(--glacier-deep); outline-offset: 3px; }
.btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.btn.ghost:hover { background: rgb(255 255 255 / .12); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(19 35 58 / .1) 30%, rgb(19 35 58 / .88) 100%), linear-gradient(90deg, rgb(19 35 58 / .55), transparent 60%); }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 7.5rem; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 5.5vw, 5.6rem); font-weight: 900; letter-spacing: .04em; line-height: 1.12; margin-bottom: 1.2rem; }
.hero .lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 34em; color: rgb(255 255 255 / .9); }
.hero .eyebrow { color: #f2b88f; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-stats { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgb(255 255 255 / .25); }
.hero-stats li { padding: 1rem var(--gutter); font-size: .85rem; color: rgb(255 255 255 / .8); border-right: 1px solid rgb(255 255 255 / .18); }
.hero-stats b { display: block; font: 900 1.5rem var(--serif); color: #fff; }

/* ---------- regions ---------- */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ink); }
.region { position: relative; min-height: 260px; padding: 1.4rem; border: 0; text-align: left; color: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end;
  background-color: var(--ink-2); background-position: center; background-size: cover; font: inherit; transition: filter .3s; }
.region:hover { filter: brightness(1.08); }
.region b { font: 900 1.5rem var(--serif); }
.region span { font-size: .85rem; opacity: .88; line-height: 1.6; }
.region em { font-style: normal; font-size: .75rem; letter-spacing: .15em; margin-top: .6rem; color: #f2b88f; }

/* ---------- blocks ---------- */
.block { padding: clamp(3.5rem, 6vw, 6.5rem) var(--gutter); max-width: 1280px; margin: 0 auto; }
.block.narrow { max-width: 900px; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.block-head { max-width: 640px; margin-bottom: 2.5rem; }
.block-head p:last-child { color: var(--muted); }

/* featured */
.feat { display: grid; grid-template-columns: 220px 1fr 260px; gap: clamp(1rem, 3vw, 2.5rem); padding: 2rem 0; border-top: 1px solid var(--line); align-items: start; }
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); transition: transform .5s var(--ease); }
.feat-img { overflow: hidden; border-radius: var(--radius); }
.feat:hover .feat-img img { transform: scale(1.04); }
.feat-no { font: 900 .9rem var(--serif); color: var(--apricot); margin: 0; }
.feat h3 { font-size: 1.6rem; font-weight: 900; margin: .2rem 0 .2rem; }
.feat h3 a { text-decoration: none; }
.mini-route { margin: 1rem 0 0; padding-left: 1.4rem; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.mini-route li::marker { color: var(--apricot); font-weight: 700; }
.feat-price { background: var(--snow); padding: 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.feat-price .label { font-size: .8rem; color: var(--muted); margin: 0; }
.feat-price .btn { width: 100%; text-align: center; margin-top: .6rem; }
.price { display: block; font: 900 2rem/1.2 var(--serif); color: var(--apricot-dark); margin: .2rem 0 .4rem; }
.price small { font: 500 .8rem var(--sans); color: var(--muted); margin: 0 .2rem; }
.price.ask { font-size: 1.15rem; color: var(--glacier-deep); }
.card-sub { color: var(--muted); font-size: .88rem; margin: 0; }

/* filters + grid */
.filters { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: .88rem; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--snow); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.result-count { font-size: .85rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.5rem; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--snow); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgb(19 35 58 / .06); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--glacier); }
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.card:hover figure img { transform: scale(1.05); }
.card-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.card-meta span { font-size: .72rem; padding: .1rem .5rem; background: var(--paper-2); color: var(--ink-2); border-radius: 2px; }
.card-meta span:first-child { background: var(--ink); color: #fff; }
.card h3 { font-size: 1.25rem; margin: 0 0 .1rem; }
.card-route { font-size: .82rem; color: var(--muted); line-height: 1.6; margin: .6rem 0 .8rem; flex: 1; }
.card .price { font-size: 1.4rem; margin: 0; }

/* why */
.why { background: var(--ink); color: #fff; max-width: none; }
.why h2 { color: #fff; }
.why-list { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1280px; }
.why .block-head, .why-more { max-width: 1280px; margin-left: auto; margin-right: auto; }
.why-list li { border-top: 2px solid var(--apricot); padding-top: 1rem; }
.why-list b { font: 600 1.2rem var(--serif); display: block; margin-bottom: .4rem; }
.why-list p { color: rgb(255 255 255 / .78); font-size: .92rem; }
.why-more a { color: #f2b88f; }

/* contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.contact-list, .foot-contact { list-style: none; margin: 0; padding: 0; }
.contact-list li { font: 600 1.3rem var(--serif); padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list li span, .foot-contact li span { display: inline-block; min-width: 4.5em; font: 500 .8rem var(--sans); color: var(--muted); letter-spacing: .1em; }

/* ---------- tour page ---------- */
.tour-hero { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter); max-width: 1280px; margin: 0 auto; }
.tour-cover img { width: 100%; max-height: 78vh; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--shadow); }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tour-intro h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 900; margin-bottom: .2rem; }
.tour-intro h1 span { font-size: .5em; margin-left: .4em; color: var(--apricot); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: .8rem .6rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .72rem; color: var(--muted); letter-spacing: .12em; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.intro-price { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.route { list-style: none; padding: 0; margin: 1.8rem 0 0; font-size: .9rem; color: var(--ink-2); }
.route li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.route a { display: inline-block; min-width: 2.6em; font-weight: 700; color: var(--apricot); text-decoration: none; }
.toc { position: sticky; top: 57px; z-index: 10; display: flex; gap: 1.6rem; overflow-x: auto; padding: .7rem var(--gutter); background: var(--ink); scrollbar-width: none; }
.toc a { color: rgb(255 255 255 / .82); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.toc a:hover { color: #fff; }
.features h3 { margin-top: 1.8rem; color: var(--apricot-dark); }
.ticks, .crosses { list-style: none; padding: 0; }
.ticks li, .crosses li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7rem; height: 2px; background: var(--apricot); }
.crosses li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.days { list-style: none; padding: 0; margin: 0; }
.day { display: grid; grid-template-columns: 88px 1fr; gap: 1.2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.day-no { font: 500 .75rem var(--sans); letter-spacing: .2em; color: var(--muted); text-align: center; position: sticky; top: 120px; align-self: start; }
.day-no b { display: block; font: 900 3rem/1 var(--serif); color: var(--ink); letter-spacing: 0; }
.day h3 { font-size: 1.25rem; }
.theme { font-family: var(--serif); color: var(--apricot-dark); font-weight: 600; }
.day-meta { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.day-meta li, .hotel { font-size: .85rem; background: var(--snow); padding: .3rem .7rem; border-radius: var(--radius); }
.day-meta span, .hotel span { color: var(--apricot); font-weight: 700; margin-right: .5rem; }
.hotel { line-height: 1.7; }
.day-body > p { font-size: .96rem; }
details { margin-top: .8rem; background: var(--snow); border-radius: var(--radius); padding: .2rem 1rem; }
summary { cursor: pointer; padding: .6rem 0; font-weight: 500; color: var(--glacier-deep); }
details ul { padding-left: 1.2rem; font-size: .9rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; background: var(--snow); font-variant-numeric: tabular-nums; }
.prices caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: .5rem; }
.prices th, .prices td { padding: .8rem 1rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prices th:first-child { text-align: left; font-weight: 500; }
.prices thead th { background: var(--ink); color: #fff; font-weight: 500; font-size: .88rem; }
.prices thead small { display: block; font-size: .7rem; opacity: .7; }
.prices td b { color: var(--apricot-dark); font-size: 1.1rem; }
.prices tbody tr:hover { background: var(--paper); }
.ask-box { background: var(--snow); padding: 1.6rem; border-left: 4px solid var(--glacier-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.notes h3 { margin-top: 1.6rem; }
.notes ul { padding-left: 1.2rem; font-size: .92rem; }
.gallery { columns: 4 200px; column-gap: 12px; }
.shot { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }
.shot img { width: 100%; border-radius: var(--radius); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgb(10 18 30 / .9); }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.lightbox .close { position: fixed; top: 12px; right: 16px; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem var(--gutter) 4rem; max-width: 1280px; margin: 0 auto; }
.pn { text-decoration: none; font-family: var(--serif); font-weight: 600; }
.pn small { display: block; font: .75rem var(--sans); color: var(--muted); }
.pn.next { text-align: right; margin-left: auto; }

/* ---------- guide ---------- */
.guide-head { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1rem; max-width: 900px; margin: 0 auto; }
.guide-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 900; }
.guide-body { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.guide-sec { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 1rem; }
.guide-sec h2 { font-size: 1.4rem; }
.guide-sec ul { margin: 0; }
.guide-back { text-align: center; padding: 2rem 0 4rem; }

/* ---------- footer ---------- */
.site-foot { background: #0d1a2c; color: rgb(255 255 255 / .75); padding: 3rem var(--gutter) 2rem; font-size: .9rem; }
.foot-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-foot b { color: #fff; font: 600 1.1rem var(--serif); }
.foot-contact li { padding: .2rem 0; }
.fine { max-width: 1280px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .78rem; color: rgb(255 255 255 / .5); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 140px 1fr; }
  .feat-price { grid-column: 1 / -1; }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .tour-hero { grid-template-columns: 1fr; }
  .tour-cover img { max-height: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-head { flex-wrap: wrap; }
  .site-head nav { width: 100%; justify-content: space-between; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 9rem var(--gutter) 2rem; }
  .hero-stats { position: relative; grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(2) { border-right: 0; }
  .regions { grid-template-columns: 1fr 1fr; }
  .region { min-height: 180px; padding: 1rem; }
  .region span { display: none; }
  .feat { grid-template-columns: 1fr; }
  .feat-img img { aspect-ratio: 16 / 9; }
  .why-list, .contact, .two-col, .foot-inner { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .day { grid-template-columns: 1fr; gap: .4rem; }
  .day-no { position: static; text-align: left; }
  .day-no b { display: inline; font-size: 2rem; margin-left: .3rem; }
  .guide-sec { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
