/* ============================================================
   Rumah Kost Bali — 站点样式
   设计基调：暖奶油底 + 近黑墨色 + 金色点缀，呼应房子本身的
   米黄墙面 / 黑色门窗框 / 大理石纹瓷砖。
   移动优先，不依赖任何 CSS 框架。
   ============================================================ */

:root {
  --ink: #17130f;
  --ink-2: #3d3630;
  --ink-3: #6d635a;
  --cream: #faf6ef;
  --sand: #f2e9db;
  --sand-2: #e7dac6;
  --line: #e3d8c7;
  --gold: #b8862f;
  --gold-2: #d9a445;
  --amber: #b45309;
  --amber-bg: #fdf3e3;
  --green: #15803d;
  --green-bg: #e8f5ec;
  --off-bg: #eee9e2;
  --white: #fff;
  --shadow-1: 0 1px 2px rgba(23, 19, 15, .06), 0 4px 14px rgba(23, 19, 15, .06);
  --shadow-2: 0 2px 6px rgba(23, 19, 15, .08), 0 18px 44px rgba(23, 19, 15, .13);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1160px;
  --mobar-h: 68px;
  --ff: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

:lang(zh-Hans) { --ff: var(--ff-zh); }

*, *::before, *::after { box-sizing: border-box; }

/* 关键：.lb / .drawer 里写了 display，会盖掉 [hidden] 的 UA 样式，
   结果灯箱在默认状态下就顶在页面上把整页压暗。这条必须放在组件规则之前。 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.02em; overflow-wrap: anywhere; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  padding: .68em 1.15em; border-radius: 999px;
  font-weight: 650; font-size: .95rem; line-height: 1.25;
  cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn-gold { --bg: linear-gradient(135deg, var(--gold-2), var(--gold)); --bd: transparent; --fg: #241a06; }
.btn-amber { --bg: linear-gradient(135deg, #d97706, var(--amber)); --bd: transparent; --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-ghost:hover { --bg: var(--white); }
.btn-outline { --bg: transparent; --fg: var(--gold); --bd: var(--gold); }
.btn-glass {
  --bg: rgba(255, 255, 255, .14); --fg: #fff; --bd: rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-lg { padding: .82em 1.5em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---------- chip / badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .7em; border-radius: 999px;
  background: var(--sand); color: var(--ink-2);
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.chip-xs { font-size: .72rem; padding: .22em .6em; background: var(--cream); border: 1px solid var(--line); }
.chip-glass {
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid #f2d9ae; }

.badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: .28em .72em; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  background: rgba(255, 255, 255, .93); box-shadow: var(--shadow-1);
}
.badge-ok { color: var(--green); }
.badge-off { color: var(--ink-3); }
.badge-soon { color: var(--amber); }
.badge-ok::before, .badge-soon::before {
  content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%;
  background: currentColor; margin-right: .42em; vertical-align: .02em;
}

/* 占位符（___）：虚线琥珀 chip，一眼看出要去后台填 */
.ph {
  display: inline-block; padding: .1em .5em; border-radius: 8px;
  border: 1px dashed var(--gold); background: #fffbf1; color: #8a6114;
  font-weight: 650; font-size: .95em;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(23, 19, 15, .05); }
.topbar-in { display: flex; align-items: center; gap: 10px; height: 62px; }

.brand { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241a06;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-txt b { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-txt i { font-style: normal; font-size: .7rem; color: var(--ink-3); letter-spacing: .02em; display: none; }

.topnav { display: none; margin-left: auto; gap: 22px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.topnav a:hover { color: var(--gold); }
.topbar-act { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.langs { display: flex; align-items: center; gap: 1px; background: var(--sand); border-radius: 999px; padding: 3px; }
.langs a {
  padding: .26em .46em; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: var(--ink-3); white-space: nowrap;
}
.langs a.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.langs a:hover { color: var(--ink); }
.topbar .btn-sm { padding: .48em .62em; }
.topbar .btn-sm span { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18, 14, 10, .9) 0%, rgba(18, 14, 10, .62) 34%, rgba(18, 14, 10, .18) 66%, rgba(18, 14, 10, .34) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(184, 134, 47, .22), transparent 60%);
}
.hero-in { position: relative; z-index: 2; color: #fff; padding-top: 96px; padding-bottom: 34px; }
.hero h1 {
  margin: 16px 0 0; font-size: clamp(1.9rem, 7.4vw, 3.9rem); font-weight: 850; letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: normal; color: var(--gold-2); display: inline-block; }
.hero-sub {
  margin-top: 16px; max-width: 46ch; font-size: clamp(.95rem, 2.6vw, 1.12rem);
  color: rgba(255, 255, 255, .9); text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin: 28px 0 0; border-radius: var(--r); overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stats > div { padding: 12px 8px; text-align: center; }
.stats dt { font-size: clamp(1.05rem, 4vw, 1.5rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stats dd { margin: 2px 0 0; font-size: .72rem; color: rgba(255, 255, 255, .78); line-height: 1.3; }

/* ---------- 公告 ---------- */
.announce { background: var(--amber-bg); border-bottom: 1px solid #f0dcbb; }
.announce-in { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; max-width: var(--wrap); margin: 0 auto; }
.announce-ico { flex: 0 0 auto; width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.announce-ico svg { width: 100%; height: 100%; }
.announce p { color: #7a4a08; font-size: .88rem; line-height: 1.6; }
.announce b { display: block; color: var(--amber); font-size: .9rem; margin-bottom: 2px; }

/* ---------- 通用 section ---------- */
.sec { padding: 66px 0; }
.sec-sand { background: var(--sand); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-h h2 { font-size: clamp(1.5rem, 5vw, 2.35rem); font-weight: 830; letter-spacing: -.03em; }
.sec-h p { margin-top: 8px; color: var(--ink-3); max-width: 52ch; font-size: .96rem; }
.sec-h-dark p { color: rgba(255, 255, 255, .66); }
.hint { font-size: .8rem; color: var(--ink-3); }
.hint-dark { color: rgba(255, 255, 255, .55); }
.avail {
  padding: .4em .9em; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--green-bg); color: var(--green);
}
.avail.is-full { background: var(--amber-bg); color: var(--amber); }

/* ---------- 信任条 ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; padding-top: 26px; padding-bottom: 26px; }
.trust-i { display: flex; flex-direction: column; gap: 1px; }
.trust-i b { font-size: .9rem; font-weight: 700; }
.trust-i i { font-style: normal; font-size: .78rem; color: var(--ink-3); line-height: 1.45; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-bottom: 8px; }
.dot-gold { background: var(--gold); }
.dot-green { background: var(--green); }
.dot-amber { background: #d97706; }
.dot-ink { background: var(--ink-2); }

/* ---------- 房间卡 ---------- */
.rooms { display: grid; grid-template-columns: 1fr; gap: 18px; }
.room {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); transition: transform .16s ease, box-shadow .2s ease;
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.room.is-off { opacity: .72; }

.room-pic { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.room-pic img { width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.room-num {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.room-pic::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 12, 9, .6), transparent);
}

/* 没照片的房间：做成一版"规格卡"，看起来是刻意的极简，不是缺图 */
.room-pic-blank {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(184, 134, 47, .18), transparent 55%),
    linear-gradient(160deg, #f6efe3, #e9dcc6);
}
.room-pic-blank::after { display: none; }
.blank-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(4.2rem, 20vw, 6.2rem); font-weight: 850; letter-spacing: -.05em;
  color: rgba(23, 19, 15, .13);
}
.blank-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: .72rem; font-weight: 650; color: var(--gold);
  background: rgba(255, 255, 255, .8); padding: .24em .6em; border-radius: 999px;
}

.room-body { padding: 16px 18px 12px; flex: 1 1 auto; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.room-head h3 { font-size: 1.12rem; font-weight: 780; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.room-rent { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rent-v { font-size: 1.3rem; font-weight: 820; color: var(--ink); letter-spacing: -.02em; }
.rent-v.ph { font-size: 1.1rem; }
.rent-per { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.room-note { margin-top: 8px; font-size: .84rem; color: var(--ink-3); line-height: 1.55; }

.room-foot { display: flex; gap: 8px; padding: 0 18px 18px; }
.room-foot .btn { flex: 1 1 0; }

.rooms-note { margin-top: 20px; font-size: .8rem; color: var(--ink-3); text-align: center; }

/* ---------- 设施 ---------- */
.facs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fac {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 2px;
}
.fac-ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(135deg, #fdf6e7, #f6e7c8);
}
.fac-ico svg { width: 22px; height: 22px; }
.fac b { font-size: .95rem; font-weight: 720; }
.fac i { font-style: normal; font-size: .8rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- 视频 ---------- */
.vwrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.vwrap img { width: 100%; height: auto; }
.vwrap video { width: 100%; height: auto; display: block; }
.vplay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(12, 9, 6, .3); border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.vplay:hover { background: rgba(12, 9, 6, .42); }
.vplay svg {
  width: 74px; height: 74px; color: #fff; padding: 20px;
  background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.vplay span {
  color: #fff; font-weight: 700; font-size: .92rem;
  background: rgba(12, 9, 6, .42); padding: .35em .95em; border-radius: 999px;
}

/* ---------- 相册 ---------- */
.mason { columns: 2; column-gap: 12px; }
.g-item {
  margin: 0 0 12px; break-inside: avoid; position: relative;
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: var(--sand); box-shadow: var(--shadow-1);
}
.g-item img { width: 100%; background-size: cover; background-position: center; }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  font-size: .76rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(15, 12, 9, .78), transparent);
}

/* ---------- 位置 ---------- */
.loc { display: grid; grid-template-columns: 1fr; gap: 18px; }
.loc-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand-2); min-height: 280px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
.loc-side { display: flex; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-flat { padding: 22px; width: 100%; }
.card-flat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.loc-full { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }
.loc-list { margin-top: 14px; display: grid; gap: 8px; }
.loc-list li {
  position: relative; padding-left: 20px; font-size: .88rem; color: var(--ink-2);
}
.loc-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.loc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.qa {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: box-shadow .18s ease;
}
.qa[open] { box-shadow: var(--shadow-1); }
.qa summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 680; font-size: .95rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { flex: 0 0 auto; width: 18px; height: 18px; position: relative; }
.qa-ico::before, .qa-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transform: translate(-50%, -50%); border-radius: 2px; transition: transform .2s ease;
}
.qa-ico::before { width: 14px; height: 2px; }
.qa-ico::after { width: 2px; height: 14px; }
.qa[open] .qa-ico::after { transform: translate(-50%, -50%) scaleY(0); }
.qa-a { padding: 0 18px 18px; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }

/* ---------- 表单 ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.form-side h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 830; letter-spacing: -.03em; }
.form-side > p { margin-top: 10px; font-size: .96rem; }
.sec-ink .form-side > p { color: rgba(255, 255, 255, .7); }
.form-points { margin-top: 22px; display: grid; gap: 10px; }
.form-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: rgba(255, 255, 255, .86); }
.tick {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: rgba(217, 164, 69, .18); color: var(--gold-2);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
}
.form-wa { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 4px; }
.form-wa span { font-size: 1.05rem; font-weight: 750; letter-spacing: .01em; }
.form-wa a { color: var(--gold-2); font-size: .88rem; font-weight: 650; }

.form { padding: 24px; box-shadow: var(--shadow-2); }
.f-row { margin-bottom: 14px; }
.f-row label { display: block; font-size: .84rem; font-weight: 680; margin-bottom: 6px; color: var(--ink-2); }
.f-row label i { color: var(--gold); font-style: normal; }
.f-row input, .f-row select, .f-row textarea {
  width: 100%; padding: .78em .9em; font: inherit; font-size: .95rem;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s ease, background .15s ease;
}
.f-row input:focus, .f-row select:focus, .f-row textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 134, 47, .13);
}
.f-row select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d635a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; background-size: 18px; padding-right: 2.4em; }
.f-row textarea { resize: vertical; min-height: 84px; }
.f-row small { display: block; margin-top: 5px; font-size: .76rem; color: var(--ink-3); }
.f-row.is-bad input { border-color: #c2410c; background: #fff7f4; }

/* honeypot：藏起来但不要 display:none（部分爬虫会跳过 display:none 的字段） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy { font-size: .76rem; color: var(--ink-3); margin: 4px 0 14px; line-height: 1.55; }
.form-err {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm);
  background: #fff4f0; border: 1px solid #f6cdbd; color: #b3400f; font-size: .85rem;
}
.form-ok {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--r);
  background: var(--green-bg); border: 1px solid #b7e0c4; color: #10592b;
  display: grid; gap: 3px; text-align: center;
}
.form-ok .ok-ico {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.form-ok b { font-size: 1rem; }
.form-ok span { font-size: .86rem; line-height: 1.55; }

/* ---------- 候补 ---------- */
.wait-sec { background: linear-gradient(180deg, var(--amber-bg), #fdf8ee); }
.wait-sec .form-side .chip { margin-bottom: 14px; }
.wait-card { border-color: #f0dcbb; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 页脚 ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 54px 0 22px; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.brand-foot .brand-mark { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.brand-foot .brand-txt b { color: #fff; }
.brand-foot .brand-txt i { color: rgba(255, 255, 255, .5); }
.foot-tag { margin-top: 14px; font-size: .85rem; max-width: 34ch; line-height: 1.6; }
.foot h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: var(--gold-2); }
.foot-langs { display: flex !important; flex-wrap: wrap; gap: 8px; }
.foot-langs a { padding: .3em .7em; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: .78rem; }
.foot-langs a.is-on { border-color: var(--gold-2); color: var(--gold-2); }
.foot-bot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .78rem;
}
.foot-admin { color: rgba(255, 255, 255, .35); }
.foot-admin:hover { color: var(--gold-2); }

/* ---------- 移动端底部条 ---------- */
.mobar {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 239, .93); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mobar .btn { flex: 1 1 0; }

/* ---------- 抽屉 ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-veil { position: absolute; inset: 0; background: rgba(15, 12, 9, .55); animation: fade .2s ease; }
.drawer-panel {
  position: absolute; inset: auto 0 0 0; max-height: 92svh; overflow-y: auto;
  background: var(--cream); border-radius: var(--r-lg) var(--r-lg) 0 0;
  animation: slideUp .26s cubic-bezier(.2, .8, .25, 1);
}
.drawer-x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-1);
}
.drawer-x svg { width: 18px; height: 18px; }
.drawer-body { padding: 0 0 26px; }

.dr-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 4px; }
.dr-gallery img {
  height: 200px; width: auto; flex: 0 0 auto; border-radius: var(--r);
  scroll-snap-align: center; background: var(--sand); cursor: zoom-in;
}
.dr-gallery-empty {
  height: 168px; border-radius: var(--r); display: grid; place-items: center;
  background: linear-gradient(160deg, #f6efe3, #e9dcc6); color: var(--ink-3); font-size: .86rem;
}
.dr-head { padding: 20px 22px 0; }
.dr-head h3 { font-size: 1.4rem; font-weight: 820; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-note { margin-top: 8px; font-size: .88rem; color: var(--ink-3); }
.dr-specs { margin: 18px 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dr-specs > div { background: var(--white); padding: 12px 14px; }
.dr-specs dt { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dr-specs dd { margin: 4px 0 0; font-weight: 700; font-size: .95rem; }
.dr-tags { margin: 16px 22px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dr-cta { margin: 22px 22px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.dr-cta .btn { flex: 1 1 190px; }
.dr-pad { padding: 0 22px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(10, 8, 5, .94); display: grid; place-items: center; padding: 40px 16px 70px; animation: fade .18s ease; }
.lb img { max-width: 100%; max-height: 82svh; border-radius: var(--r); object-fit: contain; }
.lb-x { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lb-x svg { width: 20px; height: 20px; }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .82); font-size: .86rem; padding: 0 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--mobar-h) + 20px); transform: translateX(-50%);
  z-index: 80; max-width: min(92vw, 420px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-2); animation: fade .18s ease;
  text-align: center;
}

/* ---------- 404 ---------- */
.e404 { display: grid; place-items: center; min-height: 100svh; text-align: center; }
.e404 .num { font-size: clamp(3.4rem, 18vw, 6rem); font-weight: 850; color: var(--sand-2); letter-spacing: -.05em; }
.e404 h1 { font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 800; margin-top: 6px; }
.e404-t { color: var(--ink-3); font-size: .9rem; line-height: 1.8; margin-top: 12px; }
.e404-t span { display: block; }
.e404-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 560px) {
  .facs { grid-template-columns: repeat(3, 1fr); }
  .mason { columns: 3; }
  .dr-specs { grid-template-columns: repeat(3, 1fr); }
  .dr-gallery img { height: 240px; }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .topbar-in { gap: 18px; height: 66px; }
  .brand { gap: 10px; }
  .brand-txt b { font-size: 1rem; }
  .brand-txt i { display: block; }
  .langs { gap: 2px; }
  .langs a { padding: .3em .58em; font-size: .76rem; }
  .topbar .btn-sm { padding: .5em .9em; }
  .topnav { display: flex; margin-left: auto; }
  .topbar-act { margin-left: 0; }
  .topbar .btn-sm span { display: inline; }
  .mobar { display: none; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .rooms { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .loc { grid-template-columns: 1.35fr 1fr; }
  .loc-map iframe { min-height: 420px; }
  .form-wrap { grid-template-columns: 1fr 1.15fr; gap: 44px; }
  .sec { padding: 82px 0; }
  .hero { min-height: 92svh; }
  .hero-in { padding-bottom: 52px; }
  .stats { max-width: 560px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .drawer-panel {
    inset: 0 0 0 auto; width: min(560px, 92vw); max-height: none;
    border-radius: var(--r-lg) 0 0 var(--r-lg); animation: slideIn .26s cubic-bezier(.2, .8, .25, 1);
  }
  .toast { bottom: 28px; }
}

@media (min-width: 1120px) {
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .fac { padding: 22px 20px; }
}

@keyframes slideIn { from { transform: translateX(18px); opacity: .6 } to { transform: none; opacity: 1 } }

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

@media print {
  .topbar, .mobar, .drawer, .lb, .hero-cta, .room-foot { display: none; }
}
