:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #15181c;
  --muted: #68717b;
  --soft: #e8edf1;
  --line: #dfe5ea;
  --gold: #3f5568;
  --gold-dark: #2f4353;
  --accent: #3f5568;
  --shadow: 0 14px 34px rgba(18, 27, 38, .08);
  --radius: 18px;
  --nav-h: 72px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-brand: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html.is-restoring-scroll body {
  visibility: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #d8dde2;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

body.load-failed {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #d8dde2;
}

body.load-failed::before {
  content: "页面加载失败，请刷新后重试";
  width: min(100%, 360px);
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; }

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(18, 27, 38, .05);
  max-width: 100%;
}

/* 桌面浏览器打开：全站统一限宽 430px 居中（与参考站一致，body 浅灰背景衬底）
   注：固定定位元素 .bottom-nav / .buy-bar / .coupon-bottom-fixed 已各自 width:min(100%,430px) 居中，
   .back-btn 用 calc((100vw - 430px)/2) 跟随，故此处无需重复处理。 */
@media (min-width: 480px) {
  .app-shell {
    max-width: 430px;
    box-shadow: 0 0 42px rgba(18, 27, 38, .10);
  }
}

.topbar {
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 247, .76);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(223, 229, 234, .42);
}

.brand {
  font-size: 18px;
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: .08em;
}

.topbar-note {
  font-size: 13px;
  color: var(--muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.search-icon,
.nav-home,
.nav-grid,
.nav-coupon,
.nav-calendar,
.nav-user {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
}

.search-icon::before {
  content: "";
  position: absolute;
  inset: 2px 5px 5px 2px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
  right: 1px;
  bottom: 3px;
  border-radius: 2px;
}

.page {
  padding: 7px 14px calc(var(--nav-h) + 24px);
}

.is-loading .rail:empty::before,
.is-loading .feature-rail:empty::before,
.is-loading .work-grid:empty::before {
  content: "正在加载作品";
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(63, 85, 104, .12);
  border-radius: 14px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(255,255,255,.56), rgba(255,255,255,.88), rgba(255,255,255,.56)),
    #eef2f5;
  background-size: 220% 100%;
  animation: soft-loading 1.15s ease-in-out infinite;
  font-size: 13px;
  font-weight: 700;
}

.is-loading .rail:empty::before,
.is-loading .feature-rail:empty::before {
  min-width: min(78vw, 360px);
}

.is-loading .work-grid:empty::before {
  grid-column: 1 / -1;
}

@keyframes soft-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hero-card {
  min-height: 142px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: default;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.44) 48%, rgba(255,255,255,.04)),
    var(--hero-image),
    linear-gradient(135deg, #ccd5dc, #f1f4f6 42%, #d5dfdf);
  background-size: cover;
  background-position: center 40%;
  box-shadow: 0 10px 26px rgba(18, 27, 38, .055);
  transition: transform .16s ease, box-shadow .16s ease, filter .18s ease, opacity .18s ease;
}

.hero-card.is-clickable {
  cursor: pointer;
}

.hero-card.is-switching {
  opacity: .82;
  filter: brightness(.96);
}

.hero-card.hero-poster-only {
  background:
    var(--hero-image),
    linear-gradient(135deg, #ccd5dc, #f1f4f6 42%, #d5dfdf);
  background-size: cover;
  background-position: center;
}

.hero-card.hero-poster-only::after {
  background: transparent;
}

.hero-card.hero-poster-only .hero-copy {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hero-card:active,
.work-card:active,
.feature-card:active,
.category-tab:active,
.buy-btn:active,
.copy-btn:active,
.nav-link:active {
  transform: scale(.985);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.08));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
}

.hero-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: inherit;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 4px rgba(18, 27, 38, .16);
}

.hero-dot.active {
  width: 24px;
}

.hero-dot.active::before {
  width: 16px;
  background: #1b2026;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 70%;
  padding: 17px 0 16px 17px;
  transition: opacity .18s ease;
}

.eyebrow {
  margin: 0 0 7px;
  color: #4b5560;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow:empty {
  display: none;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .035em;
}

.hero-copy p:not(.eyebrow) {
  margin: 7px 0 12px;
  color: #5d6872;
  font-size: 11.5px;
  line-height: 1.6;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: #1b2026;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.section-block {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.section-head h2,
.simple-head h1,
.detail-section h2,
.notice-card h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: .02em;
}

.section-head a,
.sort-btn {
  color: #1b2026;
  font-size: 13px;
}

.sort-control {
  position: relative;
  z-index: 6;
}

.sort-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 6px 2px 6px 10px;
  cursor: pointer;
}

.sort-btn i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.sort-btn[aria-expanded="true"] i {
  transform: translateY(2px) rotate(225deg);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 154px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(18, 27, 38, .14);
}

.sort-menu[hidden] {
  display: none;
}

.sort-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.sort-menu button.active {
  color: var(--gold-dark);
  background: var(--soft);
  font-weight: 800;
}

.sort-menu button:not(.active):active {
  background: var(--bg);
}

.rail,
.feature-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 47%;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 11px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.feature-rail {
  grid-auto-columns: 38%;
  gap: 9px;
}

.rail::-webkit-scrollbar,
.feature-rail::-webkit-scrollbar { display: none; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.work-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(18, 27, 38, .035);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.work-card.compact {
  scroll-snap-align: start;
}

.art {
  aspect-ratio: 3 / 4;
  position: relative;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #ddd;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-protection-enabled img,
.image-protection-enabled .art,
.image-protection-enabled .photo-poster,
.image-protection-enabled .preview-thumb,
.image-protection-enabled .detail-cover,
.image-protection-enabled .lightbox {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.image-protection-enabled img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.image-error img {
  display: none;
}

.image-error::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.08)),
    repeating-linear-gradient(-45deg, rgba(63, 85, 104, .08) 0 10px, rgba(255,255,255,.18) 10px 20px);
}

.image-error::before {
  opacity: .78;
}

.art-fallback {
  background:
    linear-gradient(135deg, rgba(63, 85, 104, .12), rgba(255, 255, 255, .78)),
    repeating-linear-gradient(-45deg, rgba(63, 85, 104, .08) 0 10px, rgba(255,255,255,.2) 10px 20px);
}

.art-fallback::before {
  opacity: .42;
}

.art span {
  position: relative;
  z-index: 3;
  margin: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(130, 94, 37, .82);
  font-size: 12px;
  font-weight: 800;
}

.art:has(img)::before {
  display: none;
}

.art::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 68%;
  right: 18%;
  bottom: 0;
  border-radius: 999px 999px 20px 20px;
  background:
    radial-gradient(circle at 50% 12%, #f0cdbb 0 16%, transparent 17%),
    linear-gradient(180deg, #fff 0 35%, #d6c6b5 36% 73%, #f3eee6 74%);
  opacity: .9;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.15));
  pointer-events: none;
}

.art-warm-window { background: linear-gradient(135deg, #efe6d7, #c9d6bd 55%, #fff7ea); }
.art-blue-room { background: linear-gradient(135deg, #e8eef4, #a8c2d6 54%, #f7efe3); }
.art-soft-green { background: linear-gradient(135deg, #e1ead8, #aabf97 55%, #f4eadc); }
.art-studio-cream { background: linear-gradient(135deg, #f2eadf, #dac7ad 58%, #fff); }
.art-city-light { background: linear-gradient(135deg, #e8ded2, #c6d1d5 58%, #faf5ea); }
.art-film-set { background: linear-gradient(135deg, #d8d0c6, #303640 58%, #f5eadc); }

.work-card-body {
  min-height: 104px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 10px 11px;
}

.work-card-body.no-tier-tags {
  min-height: 0;
  flex: 0 0 auto;
  padding-top: 8px;
  padding-bottom: 9px;
}

.work-card-body.no-tier-tags strong {
  margin-top: 3px;
}

.work-card h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: #11161b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 19px;
  margin: 6px 0 9px;
}

.tier-tags span {
  padding: 3px 6px;
  border: 1px solid rgba(27, 32, 38, .18);
  color: #1b2026;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 1;
}

.work-card strong {
  display: block;
  margin-top: auto;
  color: #1b2026;
  font-size: 15.5px;
  line-height: 1.1;
  text-align: right;
}

.empty-block {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(63, 85, 104, .22);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.74);
}

.empty-block strong {
  color: #1b2026;
  font-size: 16px;
}

.empty-block span {
  font-size: 13px;
  line-height: 1.5;
}

.rail .empty-block,
.feature-rail .empty-block {
  min-width: min(78vw, 360px);
  scroll-snap-align: start;
}

.work-grid .empty-block {
  grid-column: 1 / -1;
}

.works-loader {
  margin: 14px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 141, 156, .18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.works-loader:not(.done)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: .35; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}

.works-loader.done {
  color: rgba(83, 96, 110, .72);
  background: transparent;
  border-color: transparent;
}

.feature-card {
  position: relative;
  min-height: 165px;
  aspect-ratio: .78 / 1;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(18, 27, 38, .07);
  background: #ddd;
  transition: transform .16s ease, box-shadow .16s ease;
}

.feature-card .art {
  width: 100%;
  height: 100%;
  min-height: 165px;
  aspect-ratio: auto;
}

.feature-card .art img {
  object-position: center 30%;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 9px 13px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.18) 24%, rgba(0,0,0,.68) 100%);
}

.feature-overlay span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(27, 32, 38, .82);
  font-size: 10px;
  font-weight: 700;
}

.feature-overlay h3 {
  margin: 10px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, 430px);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 2), 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #625f59;
  font-size: 12px;
}

.nav-link.active {
  color: #1b2026;
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.nav-home::before,
.nav-grid::before,
.nav-coupon::before,
.nav-calendar::before,
.nav-user::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
}

.nav-home::before { transform: rotate(45deg); border-radius: 3px; }
.nav-grid::before { border-radius: 4px; box-shadow: 9px 0 0 -2px currentColor, 0 9px 0 -2px currentColor, 9px 9px 0 -2px currentColor; }
.nav-coupon::before { inset: 4px 2px; border-radius: 5px; }
.nav-coupon::after {
  content: "%";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.nav-calendar::before { border-radius: 5px; }
.nav-user::before { border-radius: 50% 50% 42% 42%; }

.simple-head {
  padding: 18px 2px 12px;
}

.simple-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-card,
.contact-card,
.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(28, 27, 24, .045);
}

.category-card h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.category-card p,
.contact-card span,
.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.inline-notice-link {
  display: inline-flex;
  margin-top: 10px;
  color: #1b2026;
  font-size: 13px;
  font-weight: 750;
}

.site-notice-entry {
  margin: 22px 0 4px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}

.site-notice-entry a {
  display: inline-flex;
  color: #1b2026;
  font-size: 15px;
  font-weight: 800;
}

.site-notice-entry p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.category-card span {
  color: #1b2026;
  font-size: 13px;
  white-space: nowrap;
}

.page-categories {
  height: calc(100dvh - 38px - var(--nav-h) - env(safe-area-inset-bottom));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 12px;
}

.category-head {
  flex: 0 0 auto;
}

.category-browser {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.category-tabs,
.category-content {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.category-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar,
.category-content::-webkit-scrollbar {
  display: none;
}

.category-tab {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(126, 141, 156, .18);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.58);
  text-align: left;
}

.category-tab.active {
  color: #fff;
  background: linear-gradient(145deg, #1b2026, #334657);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(18, 27, 38, .12);
}

.category-tab strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tab span {
  font-size: 11px;
  font-weight: 700;
  opacity: .82;
}

.category-content {
  min-width: 0;
  padding: 0 0 12px;
}

.category-content-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 3px 0 10px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(244,246,247,0));
}

.category-content-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.category-content-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.category-price-filter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.category-price-filter > strong {
  flex: 0 0 auto;
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.category-price-options {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.category-price-option {
  min-width: 38px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(126, 141, 156, .22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.category-price-option.active {
  color: #fff;
  border-color: #1f2d39;
  background: #1f2d39;
}

.category-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.category-work-grid .work-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 118px;
}

.category-work-grid .art {
  height: 100%;
  min-height: 118px;
  aspect-ratio: auto;
}

.category-work-grid .work-card-body {
  min-height: 118px;
  justify-content: center;
}

.category-work-grid .empty-block {
  min-height: 180px;
}

.contact-card {
  margin-bottom: 12px;
}

.contact-card {
  align-items: flex-start;
  flex-direction: column;
}

.contact-card strong {
  font-size: 16px;
}

.contact-card-copy {
  flex-direction: row;
  align-items: center;
}

.contact-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-main strong {
  overflow-wrap: anywhere;
}

.contact-extra-card {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(30, 42, 56, .05);
  overflow: hidden;
}

.contact-extra-card[hidden] {
  display: none;
}

.contact-extra-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-extra-card img {
  width: auto;
  max-width: 100%;
  max-height: 260px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(210, 218, 226, .82);
  background: #f6f8fa;
}

.contact-extra-card p[hidden],
.contact-extra-card img[hidden] {
  display: none;
}

.copy-btn {
  flex: 0 0 auto;
  min-width: 68px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: #1b2026;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease;
}

.copy-btn.copied {
  background: #2f7d4f;
}

.detail-shell {
  padding-bottom: 0;
}

.page-detail {
  padding: 0 0 86px;
}

.detail-cover {
  --detail-cover-height: 292px;
  min-height: var(--detail-cover-height);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(145deg, #eef3f8, #dfe7ef);
}

.detail-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 22, 31, 0), rgba(13, 22, 31, .22));
  z-index: 2;
}

.detail-cover.height-compact {
  --detail-cover-height: 250px;
}

.detail-cover.height-standard {
  --detail-cover-height: 292px;
}

.detail-cover.height-tall {
  --detail-cover-height: 338px;
}

.detail-cover-bg {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  object-position: var(--cover-position, center 28%);
  filter: blur(18px) saturate(1.04);
  opacity: .46;
  transform: scale(1.04);
}

.detail-cover-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

.detail-cover .art {
  width: 100%;
  height: var(--detail-cover-height);
  aspect-ratio: auto;
}

.detail-cover .art img {
  object-position: var(--cover-position, center 28%);
}

/* 活动页封面统一使用冷杉云库的 9:7 比例。 */
.page-campaign .detail-cover {
  min-height: 0;
  aspect-ratio: 9 / 7;
}

.page-campaign .detail-cover .detail-cover-trigger,
.page-campaign .detail-cover .art {
  height: 100%;
}

/* 活动页暂不显示购买档位右上角的“推荐”小标签。 */
.campaign-shell .buy-badge {
  display: none;
}

.detail-cover.mode-crop .art img {
  object-fit: cover;
}

.detail-cover.mode-fit .detail-cover-trigger,
.detail-cover.mode-blur .detail-cover-trigger {
  position: relative;
  z-index: 1;
  background: transparent;
}

.detail-cover.mode-fit .art img,
.detail-cover.mode-blur .art img {
  object-fit: contain;
}

.detail-cover.mode-fit::after {
  height: 24%;
  background: linear-gradient(180deg, rgba(13, 22, 31, 0), rgba(13, 22, 31, .08));
}

.detail-cover-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(8, 13, 20, .36);
}

.detail-cover-title h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.detail-cover-title p {
  margin: 7px 0 0;
  max-width: 94%;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-cover-unavailable {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 56px 24px 34px;
}

.detail-cover-unavailable::after {
  display: none;
}

.detail-empty-card {
  position: relative;
  z-index: 3;
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .12);
  text-align: center;
}

.detail-empty-card strong {
  font-size: 22px;
}

.detail-empty-card span {
  color: var(--muted);
  line-height: 1.65;
}

.detail-empty-card a {
  justify-self: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(18, 27, 38, .16);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .62);
}

.back-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.detail-content {
  padding: 18px 15px 0;
}

.detail-content.has-cover-title {
  padding-top: 16px;
}

.detail-content.has-cover-title .detail-title-row,
.detail-content.has-cover-title .detail-summary {
  display: none;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.detail-title-row h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .025em;
}

.detail-summary {
  margin: 13px 0 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.meta-grid div {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.preview-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 4);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.preview-grid::-webkit-scrollbar {
  display: none;
}

.preview-thumb {
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(18, 27, 38, .05);
  scroll-snap-align: start;
}

.preview-thumb .art {
  aspect-ratio: 1;
}

.preview-thumb .art span {
  display: none;
}

.poster-stack {
  display: grid;
  gap: 12px;
}

.detail-poster {
  min-height: 420px;
  padding: 26px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 18%, rgba(111,128,144,.16), transparent 26%),
    linear-gradient(160deg, #fff, #eef3f6);
  border: 1px solid var(--line);
}

.photo-poster {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #111;
}

.photo-poster img {
  width: 100%;
  height: auto;
  min-height: 360px;
  display: block;
  filter: saturate(.96);
}

.photo-poster.image-error {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.1), transparent 34%),
    linear-gradient(135deg, #25313b, #111820);
}

.photo-poster.image-error::before {
  content: "详情图暂时无法显示";
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
}

.detail-mini-notice {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.detail-mini-notice a {
  color: #1b2026;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page {
  padding-bottom: calc(var(--nav-h) + 28px);
}

.legal-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(18, 27, 38, .045);
}

.legal-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.82;
}

.legal-card p + p {
  margin-top: 8px;
}

.legal-contact {
  background: linear-gradient(180deg, #fff, #f5f8fa);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #1b2026;
  font-size: 13px;
  font-weight: 800;
}

.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  width: min(100%, 430px);
  display: grid;
  gap: 5px;
  padding: 9px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.buy-bar-note {
  grid-column: 1 / -1;
  margin: -1px 2px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.buy-bar-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 9px;
}

.buy-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 52px;
  padding: 8px 13px;
  border-radius: 13px;
  color: #fff;
  background: #1b2026;
  text-align: left;
  line-height: 1.25;
}

.buy-btn.recommended {
  background: linear-gradient(135deg, #3f5568, #273947);
}

.buy-badge {
  position: absolute;
  top: -7px;
  right: 8px;
  z-index: 1;
  padding: 3px 8px 3px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #1f3343;
  background: linear-gradient(135deg, #d9c08f, #f3e4bc);
  box-shadow: 0 7px 16px rgba(15,23,42,.18);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.buy-btn-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.buy-btn-main b,
.buy-btn-main strong {
  display: block;
  font-style: normal;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.buy-btn-main b {
  font-size: 15px;
}

.buy-btn-main strong {
  align-self: flex-end;
  padding-top: 8px;
  font-size: 16px;
  line-height: 1;
}

.buy-btn-main b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-btn em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-unavailable {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: #eef1f4;
  font-weight: 800;
}

.coupon-shell {
  padding-bottom: 78px;
}

.coupon-topbar {
  height: 46px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  padding: 0 12px;
}

.coupon-topbar strong {
  font-family: var(--font-brand);
  font-size: 18px;
  letter-spacing: .05em;
}

.coupon-back {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.coupon-page {
  padding: 8px 12px 28px;
}

.coupon-campaign {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #607282, #263441);
  box-shadow: 0 10px 26px rgba(18, 27, 38, .1);
}

.coupon-campaign > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(.78) contrast(.94);
}

.coupon-campaign-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 17, 15, .05) 15%, rgba(12, 17, 15, .88) 96%),
    linear-gradient(90deg, rgba(12, 17, 15, .38), transparent 72%);
}

.coupon-campaign-copy {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 12px 16px 11px;
}

.coupon-campaign-copy h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: .025em;
}

.coupon-campaign-copy p {
  max-width: 310px;
  margin: 5px 0 7px;
  color: rgba(255, 255, 255, .88);
  font-size: 10.5px;
  line-height: 1.5;
}

.coupon-campaign-tags {
  display: flex;
  gap: 7px;
}

.coupon-campaign-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 9.5px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.coupon-guide-card,
.coupon-visual-guide,
.coupon-code-section,
.coupon-notice,
.coupon-unavailable {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(18, 27, 38, .045);
}

.coupon-guide-card {
  padding: 15px 14px 13px;
}

.coupon-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.coupon-section-heading h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 20px;
  line-height: 1.2;
}

.coupon-section-heading em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.coupon-code-section .coupon-section-heading em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #a66b38;
  background: #fff5e9;
  font-weight: 800;
}

.coupon-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.coupon-steps li {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 11px;
  background: #f5f7f8;
}

.coupon-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
}

.coupon-steps strong,
.coupon-steps span {
  display: block;
}

.coupon-steps strong {
  font-size: 11px;
}

.coupon-steps span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.25px;
  line-height: 1.42;
}

.coupon-visual-guide {
  overflow: hidden;
}

.coupon-visual-guide summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.coupon-visual-guide summary::-webkit-details-marker {
  display: none;
}

.coupon-guide-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 900;
}

.coupon-visual-guide summary strong,
.coupon-visual-guide summary small {
  display: block;
}

.coupon-visual-guide summary strong {
  font-size: 13px;
}

.coupon-visual-guide summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.coupon-guide-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform .18s ease;
}

.coupon-visual-guide[open] .coupon-guide-arrow {
  transform: rotate(225deg) translate(-2px, 2px);
}

.coupon-visual-guide-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 13px;
  border-top: 1px solid var(--line);
}

.coupon-visual-guide-body > p {
  grid-column: 1 / -1;
  margin: 12px 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.coupon-guide-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafb;
}

.coupon-guide-step figcaption {
  order: 2;
  min-height: 65px;
  padding: 10px 7px 8px;
  border-top: 1px solid var(--line);
}

.coupon-guide-step figcaption b,
.coupon-guide-step figcaption strong {
  display: block;
}

.coupon-guide-step figcaption b {
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 8.5px;
}

.coupon-guide-step figcaption strong {
  min-height: 29px;
  font-size: 10px;
  line-height: 1.4;
}

.coupon-guide-step > button {
  order: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #e8ecef;
  cursor: zoom-in;
}

.coupon-guide-step img {
  width: 100%;
  height: auto;
  display: block;
}

.coupon-code-section {
  padding: 16px 13px 14px;
}

.coupon-code-intro {
  margin: 11px 1px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.coupon-group-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.coupon-group-tabs::-webkit-scrollbar {
  display: none;
}

.coupon-group-tabs button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8f9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.coupon-group-tabs button span {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e7edf1;
  font-size: 9px;
  text-align: center;
}

.coupon-group-tabs button.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.coupon-group-tabs button.active span {
  background: rgba(255, 255, 255, .18);
}

.coupon-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.coupon-code-list > .empty-block {
  grid-column: 1 / -1;
}

.coupon-code-item {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 8px 8px;
  overflow: hidden;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  background: linear-gradient(90deg, #fafbfb, #fff);
}

.coupon-code-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}

.coupon-code-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold-dark);
  background: #eaf0f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 900;
}

.coupon-code-item > div {
  flex: 1;
  min-width: 0;
}

.coupon-code-item small,
.coupon-code-item strong {
  display: block;
}

.coupon-code-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.coupon-code-item strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

.coupon-code-item button {
  width: 100%;
  height: 33px;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.coupon-code-item button.copied {
  background: var(--accent);
}

.coupon-notice {
  padding: 14px 15px;
  border-color: #eadbc8;
  background: #fff5e9;
  box-shadow: none;
}

.coupon-notice strong {
  font-family: var(--font-brand);
  font-size: 14px;
}

.coupon-notice p {
  margin: 6px 0 0;
  color: #725438;
  font-size: 11px;
  line-height: 1.65;
}

.coupon-unavailable {
  padding: 26px 18px;
  text-align: center;
}

.coupon-unavailable strong {
  font-family: var(--font-brand);
  font-size: 20px;
}

.coupon-unavailable p {
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.coupon-unavailable a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.coupon-bottom-action {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(223, 229, 234, .76);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.coupon-bottom-action a {
  width: 100%;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.coupon-image-viewer {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 54px 12px 20px;
  background: rgba(8, 11, 14, .92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.coupon-image-viewer.visible {
  opacity: 1;
  pointer-events: auto;
}

.coupon-image-viewer img {
  max-width: min(100%, 430px);
  max-height: calc(100dvh - 76px);
  border-radius: 13px;
  object-fit: contain;
}

.coupon-image-viewer > button {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 25px;
  cursor: pointer;
}

.coupon-toast {
  display: none;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.9);
  touch-action: none;
  overscroll-behavior: contain;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 28px;
}

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox img {
  max-width: min(92vw, 390px);
  max-height: 86vh;
  border-radius: 16px;
  object-fit: contain;
  touch-action: none;
}

@media (max-width: 360px) {
  .hero-copy h1 { font-size: 22px; }
  .rail { grid-auto-columns: 52%; }
  .feature-rail { grid-auto-columns: 42%; }
  .feature-card,
  .feature-card .art { min-height: 150px; }
  .preview-grid { grid-auto-columns: calc((100% - 16px) / 3); }
}

/* ===== 活动详情页（coupon.html） ===== */
.coupon-page {
  background: #ffffff;
  padding: 0; /* 首图顶到屏幕最上、左右不留白（内边距由 .coupon-main 负责） */
  overflow-x: hidden;
}


.coupon-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
}
.coupon-back {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #1b2026;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(18,27,38,.08);
}
.coupon-brand {
  display: flex; flex-direction: column;
  font-weight: 600; color: #1b2026;
  line-height: 1.05;
}
.coupon-brand small {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .14em;
  color: #6b7280;
  margin-top: 2px;
}

.coupon-main {
  padding: 4px 12px 110px;
}

/* ================== 活动详情页（coupon.html） ================== */

/* 顶部 banner：容器内全宽（负 margin 抵消 main 左右 padding；配合桌面限宽居中） */
.coupon-banner-top {
  position: relative;
  margin: 0 -15px;
  border-radius: 0 0 24px 24px; /* 对齐参考页 detail-cover：仅下方两角 24px */
  overflow: hidden;
  isolation: isolate;
  height: 303px;
  background-color: #c9d3c2;
  background-image: linear-gradient(145deg, rgb(238, 243, 248), rgb(223, 231, 239));
  box-shadow: none;
}

/* 首图：模糊放大底层（对齐参考页 .detail-cover-bg） */
.coupon-banner-top .coupon-banner-bg {
  position: absolute;
  inset: -18px;
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) saturate(1.04);
  transform: scale(1.04);
  opacity: .46;
  z-index: 0;
}
/* 首图：清晰前景层（对齐参考页 .detail-cover-trigger .art） */
.coupon-banner-top .coupon-banner-art {
  position: absolute;
  inset: 0;
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* 首图：底部渐暗遮罩（对齐参考页 .detail-cover::after） */
.coupon-banner-top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(rgba(13, 22, 31, 0), rgba(13, 22, 31, .22));
  z-index: 0;
  pointer-events: none;
}

/* 首图顶到屏幕最上；左右 15px 与参考页 detail-content 一致（banner 负 margin 与之配对） */
.coupon-page .coupon-main { padding-top: 0; padding-left: 15px; padding-right: 15px; }

/* 首图与「活动详情」标题的间距（参考页：首图 303 → 标题 343，即 40px） */
.coupon-banner-top + .detail-section { margin-top: 40px; }
/* banner 叠加文字（后台可维护，留空整层隐藏；字号/阴影对齐参考页 detail-cover-title） */
.coupon-banner-copy {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(8, 13, 20, .36);
}
.coupon-banner-copy h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .48px;
  line-height: 30px;
  color: #fff;
}
.coupon-banner-copy p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 20.15px;
  color: rgba(255, 255, 255, .88);
}

/* 价格卡片（独立浅色块，玻璃感保留） */
.coupon-price-cards {
  display: flex; flex-direction: column; gap: 8px;
  margin: 14px 2px 0;
}
.coupon-price-card {
  display: flex; align-items: baseline; gap: 6px;
  background: #fff;
  border: 1px solid #ece4d2;
  border-radius: 12px;
  padding: 12px 14px;
  color: #1b2026; font-weight: 600;
  box-shadow: 0 6px 18px rgba(18,27,38,.06);
}
.coupon-price-amount {
  font-size: 18px; color: #b94528;
  display: inline-flex; align-items: baseline;
}
.coupon-price-amount em {
  font-style: normal; font-size: 30px; margin: 0 2px; font-weight: 800;
}
.coupon-price-unit { font-size: 13px; color: #5b6470; }
.coupon-price-qty { font-size: 13px; color: #5b6470; margin-left: 4px; }
.coupon-price-qty em {
  font-style: normal; font-size: 20px; font-weight: 800; margin: 0 2px;
  color: #b94528;
}

/* ✓ 列表（独立浅底深字，搬到 banner 图下方） */
.coupon-bullets {
  list-style: none;
  margin: 12px 2px 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  color: #2c3340;
  font-size: 12.5px;
}
.coupon-bullets li {
  position: relative; padding-left: 18px; line-height: 1.5;
}
.coupon-bullets li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: rgba(185,69,40,.12);
  box-shadow: inset 0 0 0 2px rgba(185,69,40,.85);
}
.coupon-bullets li::after {
  content: ""; position: absolute; left: 3px; top: 7px;
  width: 6px; height: 3px;
  border-left: 2px solid #b94528;
  border-bottom: 2px solid #b94528;
  transform: rotate(-45deg);
}

/* 活动详情 banner：圆角 16px + 2:3 竖图（比例对齐参考页 poster，圆角按站点视觉风格保留） */
.coupon-banner-detail {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background-color: transparent;
}
.coupon-banner-detail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;      /* 对齐参考页 poster 的 2:3 竖图比例 */
  object-fit: cover;        /* 非 2:3 素材居中裁切填满，不拉伸变形 */
  object-position: center top;
  filter: saturate(.96);
}

/* 底部 CTA：三段式按钮 */
.coupon-bottom-fixed {
  position: fixed;
  left: 50%; right: auto; bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 10px 14px calc(8px + env(safe-area-inset-bottom, 0px)); /* 底部 8px 对齐参考页 buy-bar */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 18px rgba(18, 27, 38, .08);
  z-index: 50;
}
.coupon-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
}
/* 底部按钮下方提示文字（对齐参考页 .buy-bar-note；读站点「底部购买提示文案」，留空不显示） */
.coupon-bar-note {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.coupon-cta {
  display: flex; flex-direction: column; gap: 0;
  text-decoration: none;
  color: #fff;
  background: #1b2026;
  border-radius: 13px;
  padding: 8px 13px;
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  min-height: 52px;
  line-height: 20px;
  justify-content: center;
  align-items: stretch;
}
.coupon-cta-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 16px;
  line-height: 20px;
  width: 100%;
  color: #fff;
}
.coupon-cta-head span { font-size: 15px; font-weight: 850; line-height: 20px; }
.coupon-cta-head em {
  font-style: normal; font-size: 16px; color: #fff; font-weight: 850; line-height: 20px;
}
.coupon-cta-note {
  font-size: 10.5px; line-height: 12.6px;
  color: rgba(255,255,255,0.72); margin-top: 3px;
}
/* 右侧按钮：蓝灰渐变背景（与左侧 #1b2026 实色区分） */
.coupon-cta--right {
  background: linear-gradient(135deg, #3F5568, #273947);
}
.coupon-tip {
  text-align: center; color: #8a8475; font-size: 12px; margin: 0 0 2px;
}

/* 活动详情图下方提示文字：直接复用站内 .detail-mini-notice 样式（与参考页同源）
   注：该类含 display:block，会覆盖 [hidden] 的 display:none，需单独兜底 */
#couponDetailNote[hidden] { display: none; }

/* 主内容底部预留固定栏高度（约 130px），避免最后一张图被按钮遮挡 */
.coupon-main {
  padding: 7px 14px calc(150px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}