@font-face {
  font-family: "Noto Serif SC";
  src: url("../assets/fonts/noto-serif-sc.woff2?v=6") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

/* 抱山书院 —— 书卷编排风：大小对比、竖排、细线、错落的图 */
:root {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --paper: #f1eee8;
  --paper-2: #e6e1d7;
  --ink: #1d1e1a;
  --ink-soft: #6b675e;
  --line: rgba(29, 30, 26, .2);
  --night: #191b18;
  --moss: #56604a;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --gut: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3 { font-weight: 500; }
figure { margin: 0; }

/* 通用小件 */
.label { font-size: 15px; font-weight: 600; letter-spacing: .4em; display: flex; align-items: center; gap: 20px; }
.label::before { content: ""; width: clamp(48px, 10vw, 180px); height: 1px; background: currentColor; flex: 0 0 auto; }
/* 大标题：细一号的宋体，字距拉开，和小标签形成对比 */
.display { font-weight: 300; font-size: clamp(56px, 7.4vw, 118px); line-height: 1.05; letter-spacing: .14em; }
.sub { font-size: 13px; letter-spacing: .5em; color: var(--ink-soft); }
/* 实心按钮：携程预订 */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 30px 15px 34px; background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .3em; border: 1px solid var(--ink); transition: background .3s, color .3s; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover svg { transform: translate(2px, -2px); }
.more { font-family: var(--serif); font-size: 14px; letter-spacing: .25em; display: inline-flex; align-items: center; gap: 14px; }
.more::after { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.more:hover::after { width: 40px; }
.todo { color: #a0703f; }
.head { display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 56px); padding: 0 var(--gut); margin-bottom: clamp(40px, 6vw, 80px); }
.head .label { padding-bottom: 1.6em; }
.head-right { justify-content: flex-end; }
.head-note { margin-left: auto; padding-bottom: .4em; font-size: 13px; letter-spacing: .3em; color: var(--ink-soft); }
.head-right .label, .label-end { flex-direction: row-reverse; }
.label-end { justify-content: flex-end; }

/* ---------- 顶部导航：首屏上是透明白字，滚过首屏后变成米色实底 ---------- */
.rail {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: calc(72px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: env(safe-area-inset-top, 0px) var(--gut) 0; color: #fff;
  transition: background .4s, color .4s, height .4s, box-shadow .4s;
}
.rail:not(.is-solid):not(.is-open) { text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.rail.is-solid, .rail.is-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); height: calc(60px + env(safe-area-inset-top, 0px)); }
.rail-logo { font-size: 20px; font-weight: 600; letter-spacing: .4em; }
.rail-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; font-weight: 500; letter-spacing: .25em; }
.rail-links a { opacity: .92; transition: opacity .2s; }
.rail-links a:hover { opacity: 1; }
/* 和页面底部“在携程预订”同样的黑底按钮，缩小一号 */
.rail-links .rail-book { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 13px; letter-spacing: .25em; line-height: 1.4; text-shadow: none; opacity: 1; transition: background .3s, color .3s; }
.rail-links .rail-book svg { transition: transform .3s var(--ease); }
.rail-links .rail-book:hover { background: transparent; color: inherit; border-color: currentColor; }
.rail-links .rail-book:hover svg { transform: translate(2px, -2px); }
.rail-menu { display: none; width: 44px; height: 44px; position: relative; }
.rail-menu span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.rail-menu span:first-child { top: 18px; }
.rail-menu span:last-child { top: 25px; }
.rail.is-open .rail-menu span:first-child { transform: translateY(3.5px) rotate(30deg); }
.rail.is-open .rail-menu span:last-child { transform: translateY(-3.5px) rotate(-30deg); }

/* 手机上的全屏目录 */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 72px clamp(24px, 10vw, 160px) 0;
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
.rail.is-open + .menu { opacity: 1; visibility: visible; }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu span { font-weight: 300; font-size: clamp(30px, 4vw, 52px); letter-spacing: .3em; line-height: 1.3; color: var(--ink-soft); transition: color .3s, padding .4s var(--ease); }
.menu a:hover span { color: var(--ink); padding-left: .4em; }

section[id] { scroll-margin-top: 56px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroFade 1.6s ease-out; transition: opacity .4s; }
.hero-img.is-swapping { opacity: 0; }
/* 夏季萤火虫图是横图，竖屏铺满会裁掉三分之二；改成居中一条，上下渐隐到黑底里 */
[data-season="summer"] .hero { background: #050605; }
[data-season="summer"] .hero-img { left: 50%; width: min(100%, 150svh); transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
@media (max-aspect-ratio: 1/1) {
  [data-season="summer"] .hero-img { left: 0; width: 100%; transform: none; top: 24%; height: 52%; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
}
/* 只淡入不缩放：竹叶纹理很密，缓慢缩放时每帧重新取样，会一直闪 */
@keyframes heroFade { from { opacity: 0; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(-24px); filter: blur(4px); } }
.js .hero-title { animation: heroIn 1.4s var(--ease) .2s backwards; }
.js .hero-sub { animation: heroIn 1.4s var(--ease) .7s backwards; }
.js .hero-meta { animation: heroIn 1.4s var(--ease) 1s backwards; }
.js .hero-scroll, .js .hero-seasons { animation: heroIn 1.2s var(--ease) 1.5s backwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,14,.5) 0%, rgba(15,18,14,.12) 18%, rgba(15,18,14,0) 35%, rgba(15,18,14,.5) 100%); }
/* 雪景偏亮，压暗一些让白字看得清 */
[data-season="winter"] .hero-shade { background: linear-gradient(180deg, rgba(15,18,14,.45) 0%, rgba(15,18,14,.25) 45%, rgba(15,18,14,.6) 100%); }
.hero-text {
  position: absolute; top: clamp(110px, 16vh, 170px); right: clamp(28px, 9vw, 160px);
  writing-mode: vertical-rl; white-space: nowrap; text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-title { font-size: clamp(46px, 6.4vw, 96px); font-weight: 600; letter-spacing: .32em; line-height: 1.2; }
.hero-sub { font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .5em; padding-top: 4.5em; margin-left: 1.6em; }
.hero-meta { position: absolute; left: var(--gut); bottom: clamp(40px, 7vh, 76px); font-size: 14px; letter-spacing: .5em; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-scroll { position: absolute; bottom: 0; left: 50%; width: 1px; height: 64px; overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-seasons { position: absolute; right: var(--gut); bottom: clamp(36px, 7vh, 72px); display: flex; gap: 2px; }
.hero-seasons button { font-size: 14px; width: 36px; height: 36px; color: #fff; opacity: .45; transition: opacity .3s; position: relative; }
.hero-seasons button::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 1px; background: #fff; transition: width .3s, left .3s; }
.hero-seasons button:hover { opacity: .85; }
.hero-seasons button.is-active { opacity: 1; }
.hero-seasons button.is-active::after { width: 14px; left: calc(50% - 7px); }

/* ---------- 板块淡化背景：取本板块第一张图 ---------- */
.has-bg { position: relative; isolation: isolate; }
.section-bg {
  position: absolute; z-index: -1; inset: 0;
  background: center / cover no-repeat;
}
/* 不用遮罩和整体透明度（Safari 里大面积遮罩层会闪），改成上面盖一层米色：中间透出一成，上下边缘完全盖住 */
.section-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgb(241 238 232), rgb(241 238 232 / .9) 20%, rgb(241 238 232 / .9) 80%, rgb(241 238 232));
}

/* ---------- 滚动动画（html.js 由 <head> 里的脚本加上；JS 不可用或关闭动效时内容直接显示） ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .label::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--d, 0s) + .3s); }
.js .head-right.reveal .label::before { transform-origin: right; }
.js .reveal.is-in .label::before { transform: none; }
.reveal-img { overflow: hidden; }
.js .reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1) var(--d, 0s), transform 2s var(--ease) var(--d, 0s); }
.js .reveal-img.is-in img { clip-path: inset(0); transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .hero-scroll::after { animation: none; }
}

/* ---------- 书院：参考 LOOF 的版式 ---------- */
.about {
  display: grid; grid-template-columns: var(--gut) auto minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: auto auto auto; column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(100px, 12vw, 180px) 0 clamp(40px, 5vw, 80px);
}
.about::before { content: ""; grid-column: 1; grid-row: 1 / 3; justify-self: end; width: 1px; background: var(--line); }
.about-title { grid-column: 2; grid-row: 1 / 3; writing-mode: vertical-rl; font-weight: 300; font-size: clamp(40px, 4.2vw, 68px); line-height: 1.5; letter-spacing: .3em; white-space: nowrap; }
.about-body { grid-column: 3; grid-row: 1 / 3; padding-top: clamp(40px, 8vw, 120px); }
.about-body .label { margin-bottom: clamp(40px, 6vw, 80px); }
.verse { font-size: 16px; line-height: 2.6; letter-spacing: .12em; }
.about-img-a { grid-column: 4; grid-row: 2; margin-top: clamp(40px, 6vw, 100px); }
.about-img-a img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-img-b { grid-column: 1 / 4; grid-row: 3; width: min(520px, 80%); margin-top: clamp(-120px, -6vw, -40px); position: relative; }
.about-img-b img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 公共空间：参考 MA 的大字与小号英文 ---------- */
.spaces { padding: clamp(24px, 3vw, 48px) 0 clamp(40px, 5vw, 80px); }
/* 抱山：通栏山石大图 + 竖排“抱山”，下面是文字和两张细节 */
.rock { position: relative; padding-bottom: clamp(80px, 10vw, 140px); }
.rock-hero { position: relative; height: min(92vh, 880px); min-height: 480px; overflow: hidden; }
.rock-hero img { width: 100%; height: 100%; object-fit: cover; }
.rock-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(15,14,12,.55), rgba(15,14,12,0) 45%), linear-gradient(0deg, rgba(15,14,12,.35), rgba(15,14,12,0) 40%); }
.rock-title { position: absolute; z-index: 1; right: var(--gut); top: clamp(80px, 12vh, 140px); writing-mode: vertical-rl; color: #fff; font-size: clamp(72px, 9vw, 150px); font-weight: 300; line-height: 1; letter-spacing: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.rock-body { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding: 0 var(--gut); }
.rock-bg, .book-bg { position: absolute; left: 0; width: 100%; object-fit: cover; opacity: .14; filter: grayscale(.3) blur(2px); pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent); }
.rock-bg { top: 10%; height: 90%; }
.rock-a { grid-column: 7 / 13; grid-row: 1; margin-top: clamp(-180px, -10vw, -60px); position: relative; z-index: 1; }
.rock-a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rock-b { grid-column: 2 / 5; grid-row: 1 / 3; margin-top: clamp(100px, 12vw, 220px); position: relative; }
.rock-b img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rock-text { grid-column: 7 / 11; grid-row: 2; position: relative; padding-top: clamp(56px, 7vw, 100px); font-size: 14px; line-height: 2.4; letter-spacing: .18em; }
.rock-text .sub, .book-text .sub { display: inline-block; margin-bottom: 14px; font-size: 12px; }

/* 书：和“夜”同样的错落拼贴，换成浅色底 */
.book { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 150px) 0 clamp(24px, 3vw, 48px); }
.book-bg { top: 0; height: 75%; }
.collage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 16px; }
.collage figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); }
.c-a { grid-column: 1 / 6; grid-row: 1; position: relative; }
.c-a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.c-a figcaption { padding-left: var(--gut); }
.c-b { grid-column: 6 / 9; grid-row: 1 / 3; margin-top: clamp(80px, 12vw, 200px); }
.c-b img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.c-c { grid-column: 10 / 13; grid-row: 1; margin-top: -24px; padding-right: var(--gut); }
.c-c img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.c-c figcaption { text-align: right; }
.c-char { grid-column: 2 / 5; grid-row: 2; z-index: 2; font-size: clamp(90px, 11vw, 180px); font-weight: 300; line-height: 1; margin-top: clamp(16px, 2vw, 32px); position: relative; }
.c-char span { position: absolute; left: 0; top: 100%; transform: scaleY(-1); opacity: .1; filter: blur(3px); -webkit-mask-image: linear-gradient(transparent 30%, #000); mask-image: linear-gradient(transparent 30%, #000); }
.book-text { position: relative; max-width: 460px; margin: clamp(48px, 6vw, 80px) auto 0; font-size: 14px; line-height: 2.4; letter-spacing: .18em; }

.gallery-wrap { padding-left: var(--gut); }
/* 横向滑动，按张对齐；右侧伸出页面边缘 */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-left: 0; }
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: 0 0 auto; height: clamp(240px, 32vw, 460px); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; }
.gallery img { height: 100%; width: auto; max-width: none; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.g-hint { margin-top: 14px; font-size: 12px; letter-spacing: .15em; color: var(--ink-soft); }
.gallery-ctrl { display: flex; align-items: center; gap: 18px; margin: 22px var(--gut) 0 0; }
.g-count { font-variant-numeric: lining-nums; font-size: 13px; letter-spacing: .15em; color: var(--ink-soft); min-width: 64px; }
.g-count b { font-weight: 400; color: var(--ink); }
.g-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.g-bar i { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); transition: left .15s, width .15s; }
.gallery-ctrl button { font-size: 20px; width: 44px; height: 44px; transition: opacity .3s; }
.gallery-ctrl button:disabled { opacity: .25; cursor: default; }


/* ---------- 夜：参考 BYAKU 的暗色拼贴 ---------- */
/* 上下两头从纸色渐变到夜色，和前后的浅色板块接上 */
.night { --fade: clamp(220px, 24vw, 420px); position: relative; overflow: hidden; color: #eae6dd; padding: calc(var(--fade) + 20px) 0 calc(var(--fade) + 20px);
  background: linear-gradient(rgb(241,238,232) calc(var(--fade) * 0.0000), rgb(241,238,232) calc(var(--fade) * 0.0625), rgb(238,235,229) calc(var(--fade) * 0.1250), rgb(230,228,222) calc(var(--fade) * 0.1875), rgb(219,216,210) calc(var(--fade) * 0.2500), rgb(202,200,195) calc(var(--fade) * 0.3125), rgb(182,180,175) calc(var(--fade) * 0.3750), rgb(158,157,152) calc(var(--fade) * 0.4375), rgb(133,132,128) calc(var(--fade) * 0.5000), rgb(108,108,104) calc(var(--fade) * 0.5625), rgb(84,85,81) calc(var(--fade) * 0.6250), rgb(64,65,61) calc(var(--fade) * 0.6875), rgb(47,49,46) calc(var(--fade) * 0.7500), rgb(36,37,34) calc(var(--fade) * 0.8125), rgb(28,30,27) calc(var(--fade) * 0.8750), rgb(25,27,24) calc(var(--fade) * 0.9375), rgb(25,27,24) calc(var(--fade) * 1.0000), rgb(25,27,24) calc(100% - var(--fade) * 1.0000), rgb(25,27,24) calc(100% - var(--fade) * 0.9375), rgb(28,30,27) calc(100% - var(--fade) * 0.8750), rgb(36,37,34) calc(100% - var(--fade) * 0.8125), rgb(47,49,46) calc(100% - var(--fade) * 0.7500), rgb(64,65,61) calc(100% - var(--fade) * 0.6875), rgb(84,85,81) calc(100% - var(--fade) * 0.6250), rgb(108,108,104) calc(100% - var(--fade) * 0.5625), rgb(133,132,128) calc(100% - var(--fade) * 0.5000), rgb(158,157,152) calc(100% - var(--fade) * 0.4375), rgb(182,180,175) calc(100% - var(--fade) * 0.3750), rgb(202,200,195) calc(100% - var(--fade) * 0.3125), rgb(219,216,210) calc(100% - var(--fade) * 0.2500), rgb(230,228,222) calc(100% - var(--fade) * 0.1875), rgb(238,235,229) calc(100% - var(--fade) * 0.1250), rgb(241,238,232) calc(100% - var(--fade) * 0.0625), rgb(241,238,232) calc(100% - var(--fade) * 0.0000)); }
.night-bg { position: absolute; top: calc(var(--fade) * .6); left: 0; width: 100%; height: 62%; object-fit: cover; opacity: .22; -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); }
.night-collage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 16px; }
.n-a { grid-column: 1 / 6; grid-row: 1; position: relative; }
.n-a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.n-b { grid-column: 6 / 9; grid-row: 1 / 3; margin-top: clamp(80px, 12vw, 200px); }
.n-b img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.n-c { grid-column: 10 / 13; grid-row: 1; margin-top: -24px; }
.n-c img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.n-char { grid-column: 2 / 5; grid-row: 1; align-self: end; z-index: 2; font-size: clamp(90px, 11vw, 180px); font-weight: 300; line-height: 1; color: #fff; margin-bottom: -.4em; position: relative; }
.n-char span { position: absolute; left: 0; top: 100%; transform: scaleY(-1); opacity: .14; filter: blur(3px); -webkit-mask-image: linear-gradient(transparent 30%, #000); mask-image: linear-gradient(transparent 30%, #000); }
.night-text { position: relative; max-width: 420px; margin: clamp(48px, 6vw, 80px) auto 0; font-size: 14px; line-height: 2.4; letter-spacing: .18em; }
.night-sky { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; margin-top: clamp(64px, 8vw, 120px); }
.night-sky img { width: 100%; object-fit: cover; }
.night-sky figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .3em; color: rgba(234, 230, 221, .6); }
.ns-a { grid-column: 1 / 8; grid-row: 1; }
.ns-a img { aspect-ratio: 3 / 2; }
.ns-a figcaption { text-align: right; }
.ns-b { grid-column: 8 / 13; grid-row: 1; margin-top: clamp(60px, 9vw, 150px); }
.ns-b img { aspect-ratio: auto; height: auto; }
.ns-c { grid-column: 4 / 10; grid-row: 2; margin-top: clamp(40px, 5vw, 80px); }
.ns-c img { aspect-ratio: 3 / 2; }

/* ---------- 客房：参考 Experience of LOOF 的三张竖图 ---------- */
.rooms { padding: clamp(100px, 12vw, 180px) 0 clamp(40px, 5vw, 80px); }
.room-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 40px); padding: 0 var(--gut); }
.room-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; text-align: left; }
.rc-label { grid-column: 1; grid-row: 1; writing-mode: vertical-rl; font-size: 18px; letter-spacing: .35em; line-height: 1; }
.rc-label small { font-size: 13px; letter-spacing: .3em; color: var(--ink-soft); margin-top: 1em; }
.rc-img { grid-column: 2; grid-row: 1; overflow: hidden; }
.rc-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .9s var(--ease), filter .4s; filter: saturate(.85); }
.room-card:hover .rc-img img { transform: scale(1.04); filter: none; }
.rc-foot { grid-column: 2; grid-row: 2; display: flex; justify-content: flex-end; align-items: center; margin-top: 16px; }
.rc-foot em { font-style: normal; font-size: 13px; letter-spacing: .25em; display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); transition: color .3s; }
.rc-foot em::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.room-card.is-active .rc-foot em, .room-card:hover .rc-foot em { color: var(--ink); }
.room-card.is-active .rc-foot em::after { width: 36px; }

.room-panel {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  margin: clamp(64px, 8vw, 120px) var(--gut) 0; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line);
  transition: opacity .35s; scroll-margin-top: 40px;
}
.room-panel.is-fading { opacity: 0; }
.room-main { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.room-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.room-thumbs::-webkit-scrollbar { display: none; }
.room-thumbs button { flex: 0 0 auto; opacity: .45; transition: opacity .2s; }
.room-thumbs button.is-active, .room-thumbs button:hover { opacity: 1; }
.room-thumbs img { width: 84px; height: 56px; object-fit: cover; }
.room-info { padding-top: 8px; }
.room-info h3 { font-size: 36px; letter-spacing: .4em; line-height: 1.3; }
.room-type { font-size: 13px; letter-spacing: .4em; color: var(--ink-soft); margin: 6px 0 32px; }
.room-desc { line-height: 2.3; margin-bottom: 28px; }
.room-tags { font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- 四时：通栏四张竖图 ---------- */
.seasons { padding: clamp(80px, 10vw, 140px) 0; }
.season-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.season { position: relative; }
.season img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; }
.season figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.season figcaption b { display: block; font-size: 28px; font-weight: 400; }
.season figcaption span { display: block; font-size: 12px; letter-spacing: .15em; margin-top: 6px; opacity: .9; }

/* ---------- 周边：编号横排 ---------- */
.around { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.around-list { list-style: none; padding: 0 var(--gut); border-top: 1px solid var(--line); margin: 0 var(--gut); padding: 0; }
.around-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.around-no { font-weight: 300; font-size: 44px; line-height: 1; color: var(--ink-soft); }
.around-text h3 { font-size: 20px; letter-spacing: .25em; margin-bottom: 10px; }
.around-text p { font-size: 14px; color: var(--ink-soft); }
.around-img { aspect-ratio: 2 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.around-img img { width: 100%; height: 100%; object-fit: cover; }
.around-img.is-empty { background: var(--paper-2); font-size: 12px; letter-spacing: .2em; }

/* ---------- 联系 ---------- */
.contact-strip { height: clamp(260px, 40vw, 520px); overflow: hidden; position: relative; }
.contact-strip img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; }
.contact-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; padding: clamp(64px, 8vw, 120px) var(--gut); }
.contact-body .display { font-size: clamp(40px, 4.4vw, 76px); white-space: nowrap; }
.contact-info .label { margin-bottom: 28px; }
.contact-list { margin-bottom: 36px; }
.contact-list div { display: flex; gap: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); letter-spacing: .3em; flex: 0 0 auto; }
.contact-list .qr img { width: 132px; height: auto; background: #fff; padding: 6px; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--gut); border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .25em; color: var(--ink-soft); }

/* ---------- 大图查看 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 18, 16, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; color: #fff; font-size: 40px; font-weight: 300; width: 56px; height: 56px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .2em; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  :root { --gut: 20px; }
  .rail, .rail.is-solid, .rail.is-open { height: calc(56px + env(safe-area-inset-top, 0px)); padding-right: 10px; }
  .rail-logo { font-size: 17px; letter-spacing: .3em; }
  .rail-links { display: none; }
  .rail-menu { display: block; }

  .hero-text { right: 22px; top: 92px; }
  .hero-meta { font-size: 12px; letter-spacing: .3em; bottom: 44px; }
  .hero-scroll { display: none; } /* 手机上这条竖线会压在地点小字上 */
  .hero-seasons { flex-direction: column; bottom: 40px; right: 10px; }

  .label { font-size: 14px; letter-spacing: .3em; }
  .label::before { width: 40px; }
  .display { font-size: 52px; }
  .contact-body .display { font-size: 36px; }
  .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .head .label { padding-bottom: 0; order: -1; }
  .head-right { align-items: flex-end; }
  .head-note { align-self: flex-end; margin-left: 0; padding-bottom: 0; font-size: 12px; }

  .about { grid-template-columns: var(--gut) auto minmax(0, 1fr); column-gap: 16px; padding-top: 96px; }
  .about::before { grid-row: 1 / 2; }
  .about-title { grid-row: 1; font-size: 34px; }
  .about-body { grid-column: 2 / 4; grid-row: 2; padding-top: 36px; padding-right: var(--gut); }
  .about-body .verse { font-size: 14px; letter-spacing: .04em; }
  .about-body .label { margin-bottom: 28px; }
  .verse { font-size: 15px; line-height: 2.4; letter-spacing: .08em; }
  .about-img-a { grid-column: 2 / 4; grid-row: 3; margin: 48px 0 0 20%; }
  .about-img-b { grid-column: 1 / 4; grid-row: 4; width: 72%; margin-top: 20px; }

  .rock-hero { height: 72svh; min-height: 420px; }
  .rock-hero img { object-position: 35% 50%; }
  .rock-title { font-size: 64px; top: 88px; }
  .rock-body { column-gap: 10px; }
  .rock-a { grid-column: 3 / 13; grid-row: 1; margin-top: 40px; }
  .rock-b { grid-column: 1 / 7; grid-row: 2; margin-top: -40px; }
  .rock-text { grid-column: 1 / 13; grid-row: 3; padding-top: 40px; font-size: 14px; letter-spacing: .1em; }
  .collage { column-gap: 10px; }
  .c-a { grid-column: 1 / 9; }
  .c-c { grid-column: 9 / 13; margin-top: 40%; }
  .c-b { grid-column: 5 / 12; grid-row: 2; margin-top: 24px; }
  .c-char { grid-column: 1 / 5; font-size: 84px; padding-left: 20px; }
  .book-text { padding: 0 var(--gut); }
  .gallery button { height: 220px; }
  .gallery { gap: 8px; }

  .night-collage { column-gap: 10px; }
  .n-a { grid-column: 1 / 9; }
  .n-c { grid-column: 9 / 13; margin-top: 40%; }
  .n-b { grid-column: 4 / 11; grid-row: 2; margin-top: 24px; }
  .n-char { grid-column: 1 / 6; font-size: 84px; padding-left: 20px; }
  .night-text { padding: 0 var(--gut); }
  .night-sky { column-gap: 10px; }
  .ns-a { grid-column: 1 / 11; }
  .ns-b { grid-column: 3 / 13; grid-row: 2; margin-top: 32px; }
  .ns-c { grid-column: 1 / 9; grid-row: 3; margin-top: 32px; }
  .night-sky figcaption { padding-left: 4px; }

  .room-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); scrollbar-width: none; padding-right: var(--gut); }
  .room-cards::-webkit-scrollbar { display: none; }
  .room-card { scroll-snap-align: start; }
  .rc-label { font-size: 17px; }
  .room-panel { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .room-info h3 { font-size: 30px; }

  .season-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season img { aspect-ratio: 3 / 4; }
  .season figcaption { padding: 40px 14px 14px; }
  .season figcaption b { font-size: 22px; }
  .season figcaption span { font-size: 11px; letter-spacing: .05em; }

  .around-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .around-no { font-size: 30px; }
  .around-img { grid-column: 1 / -1; }

  .contact-body { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}
