/* 聆感 · 婚纱照套系选片台 —— 客户侧样式 */

:root {
  --paper: #f7f2e9;
  --paper-2: #eee5d6;
  --card: #fffdf9;
  --ink: #211d19;
  --ink-2: #4c443a;
  --muted: #8c7f6d;
  --gold: #a8865a;
  --rose: #b2606c;
  --line: #e4dacb;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 8% -6%, #fffaf1 0%, rgba(255, 250, 241, 0) 60%),
    radial-gradient(900px 500px at 100% 0%, #f3e9d8 0%, rgba(243, 233, 216, 0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lock { overflow: hidden; }

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

button { font-family: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: #e8d6b8; }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 26px);
  height: 64px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: rgba(247, 242, 233, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(228, 218, 203, .8);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.brand-cn {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .14em;
}

.brand-full {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #5c5348;
}

.search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search input {
  width: min(340px, 100%);
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .9);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

.search input::placeholder { color: #a89a86; }

.search input::-webkit-search-decoration,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration { display: none; }

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  background: #d8ccb9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%236b5b48' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 8px no-repeat;
  cursor: pointer;
}

.search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 134, 90, .12);
}

.pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .25s, color .25s, transform .2s;
}

.pick-btn:hover { background: var(--ink); color: var(--paper); }
.pick-btn:active { transform: scale(.97); }

.pick-btn b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

/* 顶栏里的「手机打开」 */

.qr-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .8);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: all .2s;
}

.qr-top:hover { border-color: var(--gold); color: var(--gold); }

.qr-top[hidden] { display: none; }

.qr-top span { font-size: 13px; line-height: 1; }

/* ---------------------------------------------------------------- 布局 */

.layout {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vh, 30px) clamp(16px, 3vw, 38px) 96px;
  align-items: start;
}

.content {
  min-width: 0;
  padding-left: clamp(16px, 1.6vw, 26px);
  border-left: 1px solid var(--line);
}

.view-tip {
  margin: 0 0 14px;
  padding: 0 2px;
  font-size: 12px;
  letter-spacing: .04em;
  color: #8c7f6d;
}

/* 左侧大类栏 */

.rail {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .18s, color .18s, box-shadow .18s;
}

.rail-item .l {
  width: 16px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #a8967e;
  transition: color .18s;
}

.rail-item .n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item .c {
  font-size: 11.5px;
  font-weight: 600;
  color: #a8967e;
  font-variant-numeric: tabular-nums;
}

.rail-item:hover { background: rgba(255, 253, 249, .9); color: var(--ink); }

.rail-item:hover .l { color: var(--rose); }

.rail-item.on {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(40, 30, 15, .16);
}

.rail-item.on .l { color: #e6b9c1; }

.rail-item.on .c { color: rgba(247, 242, 233, .58); }

.rail-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #a29483;
  font-size: 11px;
  line-height: 1.85;
}

.rail-disclaimer {
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(178, 96, 108, .18);
  border-radius: 10px;
  background: rgba(255, 253, 249, .8);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: #5f5548;
}

.rail-about {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
  transition: color .2s;
}

.rail-about::after { content: " →"; }

.rail-about:hover { color: #8f4f5b; }


/* 扫码弹窗 */

.qr-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 18, 10, .45);
  backdrop-filter: blur(4px);
}

.qr-sheet[hidden] { display: none; }

.qr-box {
  width: min(360px, 100%);
  padding: 24px 22px 20px;
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 30px 80px rgba(30, 20, 10, .35);
  animation: pop .3s var(--ease) both;
}

.qr-box h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .08em;
}

.qr-box img {
  width: 240px;
  height: 240px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.qr-url {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-all;
}

.qr-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

.qr-alt { margin: 6px 0 0; font-size: 10.5px; color: #a89a86; word-break: break-all; }

.qr-box .btn { width: 100%; margin-top: 16px; }

/* 关于样片 */

.about-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 18, 10, .45);
  backdrop-filter: blur(4px);
}

.about-sheet[hidden] { display: none; }

.about-box {
  width: min(540px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 26px 26px 20px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(30, 20, 10, .35);
  animation: pop .3s var(--ease) both;
}

.about-box h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: center;
}

.about-box ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.95;
}

.about-box li + li { margin-top: 10px; }

.about-box b { color: var(--ink); }

.about-box .btn { width: 100%; margin-top: 20px; }

/* 套系列表：一套一行 6 张 */

.suite-list {
  display: flex;
  flex-direction: column;
}

.suite-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(228, 218, 203, .8);
  animation: rise .4s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
}

.row-meta b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--rose);
  line-height: 1;
}

.row-meta .heart {
  position: static;
  margin-top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 96, 108, .45);
  border-radius: 50%;
  background: rgba(255, 253, 249, .6);
  color: var(--rose);
  font-size: 14px;
  line-height: 1;
  transition: all .22s var(--ease);
}

.row-meta .heart:hover { border-color: var(--rose); color: var(--rose); transform: scale(1.06); }

.row-meta .heart.on {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.row-shots {
  display: flex;
  align-items: stretch;
  gap: clamp(5px, .55vw, 9px);
  min-width: 0;
}

.thumb-btn {
  position: relative;
  display: block;
  flex: 0.6667 1 0%;
  min-width: 0;
  padding: 0;
  border: none;
  background: var(--paper-2);
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: zoom-in;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.thumb-btn:hover img { transform: scale(1.05); }

.thumb-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 空状态 */

.empty {
  padding: 90px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.empty b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink-2); }

/* ---------------------------------------------------------------- 套系大图 */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 2vw, 26px);
}

.modal[hidden] { display: none; }
.modal:focus { outline: none; }

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 13, 9, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade .3s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.suite-view {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1080px, 100%);
  height: min(94vh, 1000px);
  max-height: 94vh;
  animation: pop .42s var(--ease) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.sv-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #f3ece0;
  padding: 0 4px;
}

/* 套系名：图片正上方居中 */
.sv-title {
  text-align: center;
  padding: 2px 12px 0;
  color: #f3ece0;
}

.sv-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 编号做成玫红胶囊，比风格名还抢眼 */
.sv-title h2 span {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 14px 5px;
  border-radius: 999px;
  background: #c2636f;
  color: #fff;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .14em;
  vertical-align: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 3px 12px rgba(0, 0, 0, .28);
}

.sv-nav {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 236, 224, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #f3ece0;
  font-size: 16px;
  line-height: 1;
  transition: background .2s, border-color .2s;
}

.sv-nav:hover { background: rgba(255, 255, 255, .16); border-color: rgba(243, 236, 224, .6); }

/* 关闭：带文字，别让人找不到 */
.sv-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  margin-left: 2px;
  border: 1px solid rgba(243, 236, 224, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #f3ece0;
  font-size: 12.5px;
  letter-spacing: .08em;
  line-height: 1;
  transition: background .2s, border-color .2s;
}

.sv-close:hover { background: rgba(255, 255, 255, .2); border-color: rgba(243, 236, 224, .7); }

.sv-close .x { font-size: 14px; }

.sv-stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  align-self: center;
  width: 100%;
  transition: width .3s var(--ease);
}

.strip {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

.strip::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.shot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
  background: #1a1511;
}

.sv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(243, 236, 224, .88);
  color: var(--ink);
  font-size: 18px;
  opacity: .82;
  transition: opacity .2s, transform .2s;
  z-index: 3;
}

.sv-arrow:hover { opacity: 1; }
.sv-arrow[disabled] { opacity: .22; pointer-events: none; }
.sv-arrow.l { left: 10px; }
.sv-arrow.r { right: 10px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 2px;
}

.dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(243, 236, 224, .32);
  transition: all .25s;
  cursor: pointer;
}

.dots i.on { background: #f3ece0; width: 18px; border-radius: 999px; }

.sv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(250, 246, 238, .96);
  color: var(--ink);
}

.sv-foot .info {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sv-foot .info b {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--rose);
}
.sv-foot .info span { color: var(--ink-2); }
.sv-foot .info .idx { color: var(--ink); font-weight: 600; }

.pick-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 28px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(178, 96, 108, .28);
  transition: all .25s var(--ease);
}

.pick-big:hover { background: #a1555f; border-color: #a1555f; color: #fff; }

.pick-big.on { background: #7d434d; border-color: #7d434d; color: #fff; }

.sv-count {
  font-size: 11.5px;
  color: rgba(243, 236, 224, .55);
  letter-spacing: .1em;
  margin-left: 2px;
}

.sv-orig {
  font-size: 11px;
  color: rgba(243, 236, 224, .45);
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(243, 236, 224, .25);
}

.sv-orig:hover { color: #f3ece0; }

/* ---------------------------------------------------------------- 已选抽屉 */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(30, 22, 12, .34);
  backdrop-filter: blur(2px);
  animation: fade .25s ease both;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(40, 30, 15, .2);
  transform: translateX(103%);
  transition: transform .42s var(--ease);
}

.panel.open { transform: none; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .08em;
}

.panel-head h2 span { color: var(--rose); margin-left: 4px; }

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  transition: all .2s;
}

.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.p-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 12px;
  transition: background .2s;
}

.p-item:hover { background: rgba(255, 253, 249, .9); }

.p-item img {
  width: 52px;
  height: 69px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper-2);
}

.p-item .t { flex: 1; min-width: 0; }
.p-item .t b { display: block; font-family: var(--serif); font-size: 13.5px; letter-spacing: .1em; }
.p-item .t span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-rm {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #a3957f;
  font-size: 13px;
  transition: all .2s;
}

.p-rm:hover { background: #f0e3dd; color: var(--rose); }

.panel-empty {
  padding: 70px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.panel-empty b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
}

.panel-foot {
  display: flex;
  gap: 10px;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* 已选套系：鼠标停封面时浮出这套的 6 张 */

.hover-preview {
  position: fixed;
  z-index: 96;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(40, 30, 15, .32);
  pointer-events: none;
  animation: fade .15s ease both;
}

.hover-preview[hidden] { display: none; }

.hp-title {
  margin: 0 0 9px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

.hp-title b {
  margin-right: 4px;
  font-size: 13.5px;
  letter-spacing: .1em;
  color: var(--rose);
}

.hp-shots {
  display: flex;
  gap: 6px;
  height: clamp(96px, 11vw, 140px);
}

.hp-shots img {
  height: 100%;
  width: auto;
  border-radius: 7px;
  background: var(--paper-2);
  display: block;
}

.btn {
  flex: 1;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .1em;
  transition: all .22s;
}

.btn:hover { background: #3a3128; border-color: #3a3128; }

.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* 提示 */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  transform: translate(-50%, 12px);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(33, 29, 25, .94);
  color: #f7f2e9;
  font-size: 12.5px;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 移动端已选悬浮条 */

.fab {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .06em;
  box-shadow: 0 12px 30px rgba(40, 30, 15, .28);
}

.fab b { font-family: var(--serif); }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 6px;
  }

  .qr-top { display: none; }
  .view-tip { font-size: 11.5px; margin-bottom: 10px; }
  .content { padding-left: 0; border-left: 0; }

  .rail {
    position: static;
    min-width: 0;
    max-height: none;
    overflow: visible;
    gap: 0;
  }

  .rail-foot {
    display: block;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    font-size: 10.5px;
  }
  .rail-disclaimer { display: none; }
  .rail-about {
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 10.5px;
    color: #a89a86;
  }

  .rail-nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 12px;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar { display: none; }

  .rail-item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .75);
    font-size: 12.5px;
  }

  .rail-item .l, .rail-item .c { display: none; }
  .rail-item.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}

@media (max-width: 720px) {
  .topbar { height: 58px; gap: 10px; }
  .brand-full { display: none; }
  .search input { height: 34px; font-size: 12.5px; padding: 0 13px; }
  .pick-btn { height: 34px; padding: 0 12px; font-size: 12px; }
  .pick-btn .lbl:first-child { display: none; }

  .suite-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 12px 0; }
  .row-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 0;
  }
  .row-meta b { font-size: 18px; }
  .row-meta .heart { margin-top: 0; width: 28px; height: 28px; font-size: 13px; }
  .row-shots { gap: 4px; }
  .thumb-btn { border-radius: 6px; }

  .fab { display: block; }

  .modal { padding: 0; align-items: stretch; }
  .suite-view { width: 100%; max-height: 100%; height: 100%; gap: 0; }
  .sv-head { padding: 12px 12px 8px; }
  .sv-close { width: 38px; padding: 0; justify-content: center; margin-left: 0; }
  .sv-close .lbl { display: none; }
  .sv-stage { height: auto; flex: 1; }
  .strip { border-radius: 0; }
  .shot img { border-radius: 4px; max-height: 100%; }
  .sv-arrow { display: none; }
  .dots { padding: 10px 0; }
  .sv-foot {
    border-radius: 16px 16px 0 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .sv-foot .info .t { display: none; }

  .panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 76vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(103%);
  }
  .panel::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 999px;
    background: var(--line);
  }
  .panel.open { transform: none; }
  .panel-head { padding-top: 22px; }
}

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