/* =====================================================================
   XIYUE COLLECTION HOTEL · 前台样式
   设计基调：中色调商务风 · 五星酒店质感
   全部使用系统字体：国内服务器加载外部字体既慢又有授权风险。
   ===================================================================== */

/* ---------- 字体 ----------
   思源宋体（Noto Serif SC）自托管并子集化：完整简体字库 woff2 约 1.5MB，
   直接引用会拖慢首屏。这里用 pyftsubset 按站点实际用字裁剪到约 160KB/字重，
   由 tools/subset_font.py 生成。客户改文案后如出现缺字，重新跑一次该脚本即可。
   中文衬线是这套版式高级感的主要来源，系统自带的宋体在小字号下笔画发虚。 */
@font-face {
    font-family: 'Noto Serif SC';
    src: url('/fonts/noto-serif-sc-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('/fonts/noto-serif-sc-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ---------- 设计变量 ---------- */
:root {
    --ink: #20262b;
    --ink-2: #3c444c;
    --muted: #79828c;
    --line: #e7e2da;
    --line-soft: #f0ece6;
    --line-2: #ddd6cc;
    --paper: #f8f6f3;
    --card: #ffffff;
    --gold: #a8874f;
    --gold-deep: #8e7141;
    --gold-soft: #c9ae82;
    --deep: #1a1f24;
    --ok: #2f7a52;
    --ok-bg: #eef6f1;
    --warn: #b4453a;
    --warn-bg: #fbf0ee;

    --font-display: 'Noto Serif SC', Georgia, "Times New Roman", "Songti SC",
    "STSong", "STZhongsong", "SimSun", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    --wrap: 1240px;
    --header-h: 78px;
    --radius: 2px;
    --shadow-sm: 0 1px 2px rgba(32, 38, 43, .05);
    --shadow-md: 0 12px 32px rgba(32, 38, 43, .09);
    --shadow-lg: 0 26px 60px rgba(32, 38, 43, .14);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 .6em;
    letter-spacing: .005em;
}

h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 400; }
h2 { font-size: clamp(24px, 2.9vw, 38px); font-weight: 400; }
h3 { font-size: clamp(19px, 1.9vw, 24px); }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 区块小标题 */
.eyebrow {
    font-size: 11.5px;
    letter-spacing: .34em;
    text-transform: uppercase;
    /* 刻意用中性灰而不是金色：强调色用得越少越显贵，金色留给按钮与关键动作 */
    color: var(--muted);
    margin: 0 0 16px;
    font-weight: 500;
}

.lede { font-size: 16.5px; color: var(--muted); max-width: 64ch; }

.rule { width: 48px; height: 1px; background: var(--line-2); margin: 0 0 28px; border: 0; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-1px); }

.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--sm { padding: 10px 22px; font-size: 12.5px; }

.link-more {
    display: inline-block;
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 3px;
    transition: color .2s, border-color .2s;
}

.link-more:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .3s, box-shadow .3s, height .3s;
    background: linear-gradient(to bottom, rgba(12, 16, 19, .5), rgba(12, 16, 19, 0));
}

.site-header.is-solid {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 var(--line), 0 8px 26px rgba(32, 38, 43, .06);
}

.site-header .wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; color: #fff; }

/* 页头标记：首屏用白色版，滚动后页头变白改用深色版 */
.brand-mark { height: 42px; width: auto; }
.brand-mark--light { display: block; }
.brand-mark--dark { display: none; }
.is-solid .brand-mark--light { display: none; }
.is-solid .brand-mark--dark { display: block; }

/* 页脚用完整组合（含中英文名称），深色底上直接用白色版 */
.footer-logo { height: 96px; width: auto; margin-bottom: 20px; }

.brand-name {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: .18em;
    white-space: nowrap;
    transition: color .3s;
    color: #fff;
}

.is-solid .brand-name { color: var(--ink); }

.is-solid .brand,
.is-solid .nav a,
.is-solid .lang-switch,
.is-solid .nav-toggle { color: var(--ink); }

.is-solid .nav a:hover,
.is-solid .nav a.is-active { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 38px; }

.nav a {
    color: rgba(255, 255, 255, .9);
    font-size: 13.5px;
    letter-spacing: .1em;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.nav a:hover, .nav a.is-active { color: #fff; border-bottom-color: var(--gold-soft); }

.nav-side { display: flex; align-items: center; gap: 18px; }

.lang-switch {
    color: rgba(255, 255, 255, .85);
    font-size: 12.5px;
    letter-spacing: .12em;
    border: 1px solid rgba(255, 255, 255, .45);
    padding: 7px 14px;
    transition: background .2s, color .2s, border-color .2s;
}

.lang-switch:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.is-solid .lang-switch { border-color: var(--line); }
.is-solid .lang-switch:hover { background: var(--paper); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    width: 44px;
    height: 40px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

/* ---------- 首屏 ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: var(--deep);
}

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.04);
    transition: transform 9s linear;
}

.hero-slide.is-active img { transform: scale(1); }

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 16, 19, .58), rgba(12, 16, 19, .34) 45%, rgba(12, 16, 19, .72));
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 140px 28px 100px; }

.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }

.hero .eyebrow { color: var(--gold-soft); }

.hero-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 38px;
    letter-spacing: .05em;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-dots {
    position: absolute;
    bottom: 40px; left: 0; right: 0;
    z-index: 3;
    display: flex; gap: 10px; justify-content: center;
}

.hero-dots button {
    width: 40px; height: 2px;
    border: 0; padding: 0;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
    transition: background .25s;
}

.hero-dots button.is-active { background: var(--gold-soft); }

/* 内页顶部
   原来是一整块纯黑，每个内页都压着一块深色很闷。
   改成「页面大图 + 压暗层 + 居中标题」：各页有自己的意象，
   又不抢正文的注意力（内页刻意不做轮播，动效会干扰阅读，
   带表单的预订页尤其明显）。没有配图时回退到深色底，不会破版。 */
.page-head {
    position: relative;
    padding: calc(var(--header-h) + 104px) 0 92px;
    background: var(--deep);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-head-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

/* 压暗层：保证白字在任何照片上都读得清，底部再压深一点让标题更稳 */
.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
    rgba(12, 16, 19, .52) 0%,
    rgba(12, 16, 19, .38) 45%,
    rgba(12, 16, 19, .66) 100%);
}

.page-head .wrap { position: relative; z-index: 2; }

.page-head::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 174, 130, .5), transparent);
}

.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: rgba(255, 255, 255, .76); margin: 0 auto; max-width: 66ch; }
.page-head .eyebrow { color: var(--gold-soft); }

.breadcrumb {
    font-size: 12px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 20px;
}

.breadcrumb a:hover { color: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 104px 0; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--ink { background: var(--deep); color: rgba(255, 255, 255, .8); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: 72px 0; }

.section-head { margin-bottom: 54px; }
.section-head.center { text-align: center; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.split--flip .split-media { order: 2; }

.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }

.feature-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 34px;
}

.feature-list li { position: relative; padding-left: 22px; font-size: 14.5px; }

.feature-list li::before {
    content: "";
    position: absolute; left: 0; top: .78em;
    width: 10px; height: 1px;
    background: var(--line-2);
}

/* ---------- 房型卡片 ---------- */
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

.room-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line);
}

.room-card-media { position: relative; display: block; overflow: hidden; background: var(--line-soft); }

.room-card-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}

.room-card:hover .room-card-media img { transform: scale(1.05); }

/* 剩余房量角标 */
.avail-badge {
    position: absolute;
    left: 14px; top: 14px;
    z-index: 2;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 5px 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--ok);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.avail-badge.is-few { color: var(--gold-deep); }
.avail-badge.is-full { color: var(--warn); }
.avail-badge.is-unlimited { display: none; }

.room-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.room-card-body h3 { margin-bottom: 10px; }
.room-card-body h3 a { transition: color .2s; }
.room-card-body h3 a:hover { color: var(--gold); }

.room-meta {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    font-size: 12.5px; color: var(--muted);
    margin-bottom: 16px;
    letter-spacing: .02em;
}

.room-meta span { position: relative; }
.room-meta span + span::before {
    content: "·";
    position: absolute; left: -11px;
    color: var(--line-2);
}

.room-summary {
    font-size: 14.5px; color: var(--muted);
    flex: 1; margin-bottom: 22px;
}

.room-card-foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
}

.price-from {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--ink);
    line-height: 1.2;
}

.price-from small {
    display: block;
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .08em;
}

/* 房型列表上方的房态说明 */
.avail-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line-soft);
    padding: 13px 20px;
    margin-bottom: 36px;
    text-align: center;
}

.avail-note strong { color: var(--ink); font-weight: 600; }

/* ---------- 房型详情 ---------- */
.gallery { display: grid; gap: 12px; }
.gallery-main { background: var(--line-soft); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }

.gallery-thumbs button {
    padding: 0; border: 1px solid var(--line);
    background: none; cursor: pointer; overflow: hidden;
    transition: border-color .2s, opacity .2s;
    opacity: .72;
}

.gallery-thumbs button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.is-active { border-color: var(--gold); opacity: 1; }

.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0 30px; font-size: 14.5px; }

.spec-table th, .spec-table td {
    text-align: left; padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 400;
    vertical-align: top;
}

.spec-table th { width: 32%; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.spec-table td { color: var(--ink); }

.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* 房型详情页的房态条 */
.stock-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ok-bg);
    color: var(--ok);
    font-size: 13.5px;
    margin-bottom: 24px;
}

.stock-bar.is-few { background: #fbf6ec; color: var(--gold-deep); }
.stock-bar.is-full { background: var(--warn-bg); color: var(--warn); }
.stock-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- 预订表单 ---------- */
.booking-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    padding: 42px 44px 46px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: 12.5px; letter-spacing: .08em; color: var(--ink); }
.field label .req { color: var(--gold); margin-left: 3px; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    border-radius: var(--radius);
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 135, 79, .13);
}

.field textarea { min-height: 100px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .field-error { font-size: 12px; color: var(--warn); min-height: 0; }

.form-foot { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.form-msg {
    font-size: 14px;
    padding: 14px 18px;
    border: 1px solid transparent;
    display: none;
    margin-top: 18px;
}

.form-msg.is-ok { display: block; color: var(--ok); border-color: #cfe6da; background: var(--ok-bg); }
.form-msg.is-err { display: block; color: var(--warn); border-color: #eecfcb; background: var(--warn-bg); }

.privacy-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* 可售房态面板：客人选完日期后展示各房型剩余 */
.avail-panel { margin-top: 4px; }

.avail-panel-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 14px;
}

.avail-panel-head strong { color: var(--ink); font-weight: 600; }

.avail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.avail-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line-soft);
}

.avail-item .n { color: var(--ink-2); }
.avail-item .v { font-variant-numeric: tabular-nums; color: var(--ok); white-space: nowrap; }
.avail-item.is-few .v { color: var(--gold-deep); }
.avail-item.is-full .n { color: var(--muted); }
.avail-item.is-full .v { color: var(--warn); }

.avail-loading { font-size: 13px; color: var(--muted); padding: 6px 0; }

/* 联系信息 */
.info-list { list-style: none; margin: 0; padding: 0; }

.info-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex; gap: 18px;
    font-size: 15px;
}

.info-list .k { width: 96px; flex: none; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.info-list .v { color: var(--ink); }

.notice-box {
    background: var(--paper);
    border-left: 2px solid var(--gold);
    padding: 22px 26px;
    font-size: 14.5px;
}

.notice-box p { margin: 0 0 .55em; }
.notice-box p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .68); padding: 74px 0 32px; font-size: 14px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr;
    gap: 52px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 11.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.site-footer a:hover { color: var(--gold-soft); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }

.footer-bottom {
    padding-top: 26px;
    display: flex; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

/* ---------- 错误页 / 空状态 ---------- */
.error-page {
    min-height: 74vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 60px) 24px 80px;
}

.error-page .code {
    font-family: var(--font-display);
    font-size: clamp(56px, 12vw, 120px);
    color: var(--line-soft);
    line-height: 1; margin-bottom: 10px;
}

.empty {
    padding: 64px 0; text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    background: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
    .split { gap: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: block; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(26, 31, 36, .98);
        padding: 8px 28px 26px;
        display: none;
    }

    .nav.is-open { display: flex; }
    .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; color: #fff; }
    .is-solid .nav a { color: #fff; }

    .split { grid-template-columns: 1fr; gap: 32px; }
    .split--flip .split-media { order: 0; }

    .section { padding: 70px 0; }
    .page-head { padding: calc(var(--header-h) + 54px) 0 52px; }

    .booking-card { padding: 28px 22px 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .avail-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    /* 手机上只留标记，把横向空间让给导航按钮 */
    .brand-name { display: none; }
    .brand-mark { height: 36px; }
    .room-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { min-height: 82vh; }
    .hero-inner { padding: 110px 18px 84px; }
    .room-card-foot { align-items: flex-start; flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .hero-actions .btn, .detail-actions .btn { width: auto; }
}

/* 尊重系统的「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .hero-slide img { transform: none !important; }
}


/* ---------- 首屏预订条 ----------
   酒店官网的标配：把「查房态」提到第一屏。
   它直接复用已有的 /api/availability 接口，不新增后端逻辑。 */
.booking-bar {
    position: relative;
    z-index: 5;
    margin: -46px auto 0;
    max-width: 1040px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 44px rgba(20, 26, 32, .16);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.booking-bar form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr auto;
    gap: 16px;
    align-items: end;
}

.booking-bar .bb-field { display: flex; flex-direction: column; gap: 6px; }

.booking-bar label {
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.booking-bar input[type=date],
.booking-bar select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    border-radius: var(--radius);
}

.booking-bar input:focus, .booking-bar select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 135, 79, .13);
}

.booking-bar .bb-submit {
    padding: 12px 28px;
    height: 44px;
    white-space: nowrap;
}

.booking-bar .bb-avail {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--muted);
    padding-top: 4px;
}

.booking-bar .bb-avail strong { color: var(--ok); }
.booking-bar .bb-avail.is-full strong { color: var(--warn); }

@media (max-width: 900px) {
    .booking-bar { margin-top: -30px; padding: 16px; }
    .booking-bar form { grid-template-columns: 1fr 1fr; }
    .booking-bar .bb-submit { grid-column: 1 / -1; width: 100%; }
}

/* ---------- 房型分类筛选 ---------- */
.cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.cat-chip {
    padding: 9px 20px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font-size: 13.5px;
    letter-spacing: .04em;
    cursor: pointer;
    border-radius: 999px;
    transition: border-color .2s, color .2s, background .2s;
    font-family: inherit;
}

.cat-chip:hover { border-color: var(--ink-2); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.room-card.is-hidden { display: none; }

/* ---------- 图集 ---------- */
.gal-front {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.gal-cell {
    position: relative;
    padding: 0;
    border: 0;
    background: var(--line-soft);
    cursor: zoom-in;
    overflow: hidden;
    display: block;
}

.gal-cell img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .3, 1), opacity .4s;
}

.gal-cell:hover img { transform: scale(1.05); opacity: .92; }

.gal-hover {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px;
    background: linear-gradient(to top, rgba(12, 16, 19, .7), transparent);
    color: #fff;
    font-size: 13.5px;
    text-align: left;
    opacity: 0;
    transition: opacity .3s;
}

.gal-cell:hover .gal-hover { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 14, 18, .94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox-cap {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    margin: 18px 0 0;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 22px; right: 26px;
    width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 滚动淡入 ----------
   默认隐藏由 JS 添加 .reveal-init 后才生效，
   这样即使脚本没加载，内容也不会留在不可见状态。 */
.reveal-init { opacity: 0; transform: translateY(18px); }

.reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

.booking-bar .bb-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid var(--line-soft);
}

.booking-bar .bb-foot .bb-goto { white-space: nowrap; }
