:root {
  --ink: #281d24;
  --muted: #7d6f76;
  --paper: #fffaf6;
  --wine: #7d2948;
  --coral: #d7655c;
  --line: #4b303a24;
  /* iOS 圆角档位：卡片大圆角 / 控件中圆角 / 输入框 / 胶囊 */
  --r-card: 20px;
  --r-control: 14px;
  --r-input: 14px;
  --r-pill: 99px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
body.modal-open { overflow: hidden; }
body.modal-open #stage { pointer-events: none; }
button, input, textarea, a { font: inherit; color: inherit; }
button, .card { cursor: pointer; }
a { text-decoration: none; }
button { border: 0; background: transparent; }

.eyebrow { color: var(--wine); letter-spacing: .2em; font-size: 11px; margin: 0 0 8px; }
h1, h2, h3 { font-family: Georgia, "Songti SC", serif; font-weight: 500; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; position: relative; overflow: hidden; }
.gate-preview { position: absolute; inset: 0; filter: blur(9px); opacity: .78; background: linear-gradient(130deg, #fff9f3, #f3dedb); transform: scale(1.02); }
.gate-preview header { height: 78px; border-bottom: 1px solid var(--line); background: #fff; }
.gate-preview section { padding: 90px 9vw; background: radial-gradient(circle at 75% 30%, #f1b5c7, #0000 38%); }
.gate-preview section p { color: var(--wine); letter-spacing: .2em; font-size: 10px; }
.gate-preview h2 { margin: 10px 0; font: 500 64px/1.05 Georgia, "Songti SC", serif; }
.gate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 40px 8vw; }
.gate-cards i { display: block; height: 220px; border-radius: var(--r-card); background: #e8c9c2; }
.gate-cards i:nth-child(2) { background: #d9cce0; }
.gate-cards i:nth-child(3) { background: #c8d5c9; }
.panel {
  z-index: 2;
  width: min(430px, 100%);
  text-align: center;
  background: #fffaf6f5;
  border: 1px solid #ffffffb3;
  border-radius: var(--r-card);
  padding: 34px 36px 28px;
  box-shadow: 0 32px 90px #371b2647;
}
.gate-logo { width: 90px; height: 65px; margin: -68px auto 16px; overflow: hidden; background: #fff; border: 6px solid #fff; border-radius: var(--r-control); box-shadow: 0 15px 34px #3c1f2a33; }
.gate-logo img { width: 138px; height: 93px; margin: -14px 0 0 -24px; object-fit: cover; }
.panel h1 { margin: 0 0 6px; font-size: 31px; }
.gate-en { margin: 0 0 14px !important; font-size: 12px; letter-spacing: .18em; color: rgb(161, 146, 153); }
.panel > p { color: var(--muted); margin: 0 0 18px; font-size: 13px; line-height: 1.8; }
.panel label { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; margin: 0 0 14px; }
.panel label span { font-size: 11px; font-weight: 700; }
.panel input, .sheet input, .sheet textarea {
  width: 100%;
  height: 48px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #59374230;
  border-radius: var(--r-input);
  outline: 0;
  padding: 0 14px;
}
.sheet textarea { height: auto; padding: 12px 14px; }
.panel input:focus, .sheet input:focus, .sheet textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px #7d294814; }
.panel button[type="submit"], .sheet button[type="submit"], .fold-body > .contact-btn, .more {
  color: #fff;
  background: var(--wine);
  border-radius: var(--r-control);
  min-height: 46px;
  padding: 0 22px;
}
.panel small, .message { display: block; }
.panel small { color: #a19299; font-size: 11px; margin-top: 14px; }
.message { color: var(--coral); }

.app { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-top: calc(var(--bar, 92px) + 12px); padding-bottom: calc(var(--foot, 76px) + 16px); }
.top {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - 1120px) / 2)) 10px;
  border-bottom: 1px solid var(--line);
  background: #fffaf6e6;
  backdrop-filter: blur(18px);
}
.bar { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; white-space: nowrap; cursor: default; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.2; }
.brand small { display: block; font-size: 11px; letter-spacing: .06em; color: rgb(161, 146, 153); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 7px; margin-left: auto; min-width: 0; }
.nav-link.on { color: #fff; border-color: var(--wine); background: var(--wine); }
.mode-tabs { gap: 10px; margin-top: 14px; align-items: center; }
.mode-tabs button { font-size: 14px; min-height: 38px; }
.logo { width: 78px; height: 52px; overflow: hidden; flex: none; }
.logo img { width: 116px; height: 78px; margin: -12px 0 0 -19px; max-width: none; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  margin: 0 0 0 auto;
  padding: 0 8px 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  box-shadow: 0 12px 28px #482a3512;
}
.search span { color: var(--wine); font-size: 20px; }
.search input { flex: 1; min-width: 0; height: auto; border: 0; outline: 0; background: transparent; padding: 0; box-shadow: none; }
.search input::placeholder { color: #b09fa7; }
.quiet { color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 99px; min-height: 36px; padding: 0 12px; font-size: 12px; }
a.quiet { display: inline-grid; place-items: center; color: var(--wine); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tabs.scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs.scroll::-webkit-scrollbar { display: none; }
.tabs button {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 12px;
}
.tabs button.on { color: #fff; border-color: var(--wine); background: var(--wine); }
.result, .hero-band { margin: 18px 0 14px; }
.result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 13px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked-tag { color: var(--wine); background: #fff; border: 1px solid var(--wine); border-radius: 99px; min-height: 32px; padding: 0 10px; font-size: 12px; }
.filter-card { width: min(560px, 100%); max-height: min(78vh, 720px); overflow: auto; background: var(--paper); border-radius: var(--r-card); padding: 22px; box-shadow: 0 28px 80px #170b1047; }
.filter-card h3 { margin: 0 0 14px; font-size: 22px; }
.tag-fall { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.tag-fall button { color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; min-height: 36px; padding: 6px 12px; font-size: 13px; }
.tag-fall button.on { color: #fff; border-color: var(--wine); background: var(--wine); }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.filter-actions button { min-height: 40px; border-radius: var(--r-control); padding: 0 16px; }
.filter-actions button[data-filter-reset] { color: var(--muted); border: 1px solid var(--line); background: #fff; }
.filter-actions button[data-filter-apply] { color: #fff; background: var(--wine); }
.result span b, .result { font-variant-numeric: tabular-nums; }
.hero-band {
  padding: 28px 8px 8px;
  background:
    radial-gradient(circle at 78% 20%, #f4bbcb 0, #f0d2cc 18%, #0000 46%),
    linear-gradient(120deg, #fffaf6, #f6e8e1);
  border-radius: var(--r-card);
}
.hero-band h2 { margin: 0; letter-spacing: -.03em; font-size: clamp(22px, 6.4vw, 64px); line-height: 1.18; overflow-wrap: break-word; }
.hero-band .hero-desc, .hero-band p.meta { margin: 12px 0 0; max-width: 560px; font-size: 14px; line-height: 1.7; }
.filters { margin-bottom: 8px; }

/* 列数要和 app.js 的 columnCount 保持一致，分页才会凑满一行。 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(68, 42, 51, 0.10);
  transition: transform .22s, box-shadow .22s, background .22s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 22%);
}
.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 44px rgba(68, 42, 51, 0.16);
}
.photo { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.photo span { font-family: Georgia, "Songti SC", serif; font-size: 64px; color: #fffaf6cc; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; opacity: 0; transition: opacity .2s ease; }
.photo img.ready { opacity: 1; }
.peach { background: linear-gradient(145deg, #e8b6a5, #f0d7cd); }
.lilac { background: linear-gradient(145deg, #cfc0d8, #e9dce7); }
.sage { background: linear-gradient(145deg, #b8c8bd, #dde4d9); }
.sunset { background: linear-gradient(145deg, #e8b59e, #d8a9b7); }
.blue { background: linear-gradient(145deg, #aecbda, #d8e0e8); }
.badge, .code { position: absolute; z-index: 2; top: 10px; border-radius: 99px; font-style: normal; }
.badge { left: 10px; color: #fff; background: #2f9d62; padding: 5px 8px; font-size: 10px; font-weight: 700; }
.badge.full { background: #b85a4a; }
.badge.resting { background: #8d868a; }
.code { right: 10px; color: #fff; background: #00000073; border-radius: var(--r-pill); padding: 5px 9px; font-size: 10px; }
.mark { position: absolute; z-index: 2; left: 10px; bottom: 10px; color: #fff; background: var(--wine); border-radius: 99px; padding: 5px 8px; font-size: 10px; font-style: normal; font-weight: 700; }
.body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.card h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; margin-top: auto; padding-top: 10px; }
.price span { display: inline-flex; align-items: baseline; gap: 3px; }
.price small { color: var(--muted); font-size: 13px; }
.price b { color: var(--wine); font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.price.ask { color: var(--muted); font-size: 13px; }
.card .meta { color: var(--muted); font-size: 11px; }
.card .meta { margin: 8px 0 0; }
.facts { margin: 6px 0 0; color: var(--ink); font-size: 12px; line-height: 1.6; }
.more { display: block; margin: 18px auto; background: transparent; color: var(--wine); border: 1px solid var(--line); }
.empty { color: var(--muted); text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-card); padding: 40px 16px; }
.quiet.on { color: #fff; border-color: var(--wine); background: var(--wine); }
.guide-card .body, .report-card .body { gap: 4px; }
.guide-card .price, .report-card .price { margin-top: auto; }
#reports .grid { margin-top: 18px; }
.report-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.report-card h3 { font-size: 18px; }

footer {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2)) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fffaf6e6;
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: 11px;
}
footer img { width: 56px; height: auto; mix-blend-mode: multiply; }
footer p { margin: 0; }

#overlay { position: fixed; z-index: 30; inset: 0; pointer-events: none; }
#overlay:empty { display: none; }
.layer { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: #26161d59; pointer-events: auto; overflow-y: auto; }
.modal {
  width: min(520px, 100%);
  max-height: min(880px, calc(100vh - 40px));
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f3e9e4;
  border-radius: var(--r-card);
  box-shadow: 0 35px 100px #170b1061;
}

/* 顶部媒体区：固定不动，不随信息滚动 */
.media-card { position: relative; flex: none; padding: 16px 16px 0; z-index: 1; }
.media-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-card);
  background: #ead4ca;
  height: min(460px, 58vh);
}
.media-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  margin: 0;
  overflow: hidden;
  background: #241c16;
}
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: #241c16; }

/* 加载转圈遮罩 */
.slide-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: #241c16;
  transition: opacity .25s;
}
.slide.is-video .slide-loader { background: #17120e; }
.slide-loader.done { opacity: 0; pointer-events: none; }
.slide.is-video .slide-loader.done { opacity: 0; pointer-events: none; }
/* 未播放视频：隐藏转圈，只显示播放按钮 */
.slide.is-video:not(.playing) .slide-loader { opacity: 0; pointer-events: none; }
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff33;
  border-top-color: #fff;
  border-radius: 99px;
  animation: tuomi-spin .8s linear infinite;
}
@keyframes tuomi-spin { to { transform: rotate(360deg); } }

/* 左右翻页箭头 */
.media-card { position: relative; }
.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 99px;
  border: 0;
  background: #00000059;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.media-arrow:hover { background: #0000008a; }
.media-arrow.prev { left: 22px; }
.media-arrow.next { right: 22px; }
.media-arrow.disabled { opacity: 0; pointer-events: none; }
.slide-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #00000066;
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
}
.media-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--r-card); background: #ead4ca; }
.media-placeholder span { font-size: 64px; color: #b98a8f; font-family: Georgia, serif; }
.media-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.media-dots .dot { width: 6px; height: 6px; border-radius: 99px; background: #c9a8ae; transition: all .2s; }
.media-dots .dot.on { width: 18px; background: var(--wine); }

/* 视频播放按钮：未播放时居中显示，播放后隐藏 */
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 99px;
  background: #00000080;
  display: grid;
  place-items: center;
  z-index: 2;
  cursor: pointer;
  transition: opacity .2s, background .2s;
}
.video-play:hover { background: #000000a6; }
.play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}
.slide.is-video.playing .video-play { opacity: 0; pointer-events: none; }
.slide.is-video.playing video { object-fit: cover; }

/* 静音切换按钮：右下角 */
.video-mute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 99px;
  background: #00000066;
  color: #fff;
  font-size: 17px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.video-mute:hover { background: #0000008a; }
.video-mute .mute-icon { line-height: 1; }
.slide.is-video:not(.playing) .video-mute { opacity: 0; pointer-events: none; }

/* 下方信息区：独立上下滚动，与上方媒体区保持间距 */
.info-stack {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 18px;
  margin-top: 14px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: #f3e9e4;
  box-shadow: 0 -14px 28px #442a3314;
  scrollbar-width: none;
}
.info-stack::-webkit-scrollbar { display: none; }
.info-scrollbar {
  position: absolute;
  z-index: 3;
  right: 6px;
  width: 4px;
  border-radius: 99px;
  background: rgba(125, 41, 72, 0.28);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.info-stack.scrolling ~ .info-scrollbar,
.info-stack:hover ~ .info-scrollbar { opacity: 1; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-control); padding: 16px 18px; box-shadow: 0 10px 26px #442a3310; }
.profile-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-card h2 { margin: 0; font-size: 26px; }
.profile-card strong { color: var(--wine); font-family: Georgia, serif; white-space: nowrap; }
.profile-card .place { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.profile-card p { margin: 8px 0 0; line-height: 1.7; font-size: 13px; }
.profile-card .meta { color: var(--muted); }

.fold { display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; border: 0; border-radius: 0; min-height: 32px; padding: 0; font-size: 15px; font-weight: 600; }
.fold-caret { color: var(--muted); font-size: 13px; }
.fold-body { padding-top: 12px; color: var(--muted); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.facts-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.facts-grid dd { margin: 0; color: var(--ink); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tags span { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }

.contact-value { color: var(--ink); font-weight: 600; margin: 4px 0 12px; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border-radius: var(--r-control); color: #fff; background: var(--wine); font-weight: 600; }
.write-review { margin-top: 12px; }

.sheet, .review { margin-top: 10px; }
.review { background: #fffaf6; border: 1px solid var(--line); border-radius: var(--r-control); padding: 12px 14px; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-date { margin-left: auto; color: var(--muted); font-size: 11px; }
.review p { margin: 6px 0 0; line-height: 1.6; font-size: 13px; }
.review .empty { color: var(--muted); }
.pending { outline: 1px dashed var(--line); }
.stars button.on { color: var(--wine); }
.close {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 0;
  background: #00000059;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.close .desktop { display: inline-block; }
.close .mobile { display: none; color: var(--ink); }

@media (min-width: 720px) and (max-width: 1099px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand spacer exit" "nav nav nav"; gap: 8px; }
  .brand { grid-area: brand; }
  .nav { grid-area: nav; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .bar button.quiet { grid-area: exit; }
  .hero-band h2 { font-size: clamp(28px, 4.4vw, 40px); }
}

@media (max-width: 719px) {
  .app { width: min(100% - 20px, 1120px); padding-left: 0; padding-right: 0; }
  .hero-band { padding: 22px 14px 10px; border-radius: var(--r-card); }
  .gate-preview h2 { font-size: 42px; }
  .gate-cards { display: none; }
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand exit" "nav nav"; gap: 8px; }
  .brand { grid-area: brand; min-width: 0; }
  .brand b { display: block; font-size: 13px; white-space: nowrap; }
  .logo { width: 56px; height: 40px; }
  .logo img { width: 84px; height: 56px; margin: -8px 0 0 -14px; }
  .nav { grid-area: nav; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .bar button.quiet { grid-area: exit; }
  .mode-tabs { flex-wrap: wrap; }
  .mode-tabs .search { width: 100%; flex: 1 1 100%; margin: 0; }
  .card:hover { transform: none; }
  .card h3 { font-size: 18px; }
  .price b { font-size: 18px; }
  .badge, .code, .mark { padding: 3px 5px; font-size: 9px; }
  .layer { padding: 0; }
  .modal { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .media-card { padding: 12px 12px 0; }
  .media-track { height: min(420px, 52vh); }
  .media-arrow { display: none; }
  .info-stack { padding: 16px 12px 18px; margin-top: 12px; border-radius: var(--r-card) var(--r-card) 0 0; }
  .desktop { display: inline-block; }
  .mobile { display: none; }
  .close {
    left: auto; right: calc(12px + env(safe-area-inset-right));
    top: calc(12px + env(safe-area-inset-top));
    width: 38px; height: 38px; padding: 0;
    background: #00000059;
    border: 0;
    color: #fff;
  }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1400px) {
  .app { width: min(1600px, calc(100% - 48px)); }
  .top { padding-left: max(24px, calc((100% - 1600px) / 2)); padding-right: max(24px, calc((100% - 1600px) / 2)); }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1700px) {
  .app { width: calc(100% - 48px); }
  .top { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}

@media (pointer: coarse) {
  .card:hover { transform: none; }
}

/* ===== 全屏媒体灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(15, 9, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: grid; }
body.lb-open { overflow: hidden; }

.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}
.lb-stage img,
.lb-stage video {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-stage video { background: #000; border-radius: var(--r-control); }

.lb-close {
  position: absolute;
  z-index: 3;
  top: calc(16px + env(safe-area-inset-top));
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb-arrow.prev { left: 18px; }
.lb-arrow.next { right: 18px; }

.lb-toolbar {
  position: absolute;
  z-index: 3;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lb-btn {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-count { color: #fff; font-size: 13px; min-width: 48px; text-align: center; }

@media (max-width: 719px) {
  .lb-arrow { width: 38px; height: 38px; }
  .lb-arrow.prev { left: 8px; }
  .lb-arrow.next { right: 8px; }
  .lb-stage img, .lb-stage video { max-width: 96vw; max-height: 78vh; }
}
