/* ------------------------------------------------------------------
   offerbox — 对外宣传单页
   浅色极简 / 单色骨架 + 一条赭红点缀 / 大留白 + 细规则线
------------------------------------------------------------------ */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #16161a;
  --ink-2: #4c4c48;
  --muted: #8c8a84;
  --line: #e2ded4;
  --line-soft: #ece9e1;
  --accent: #b3543c;
  --thumb-bg: #efede6;
  --shadow: 0 18px 50px rgba(28, 26, 20, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --pad: clamp(18px, 4.2vw, 68px);
}

html[data-theme="dark"] {
  --bg: #111110;
  --surface: #1a1a19;
  --ink: #f2f0ea;
  --ink-2: #c6c3bb;
  --muted: #8b8880;
  --line: #2f2f2b;
  --line-soft: #232320;
  --accent: #e0a458;
  --thumb-bg: #1e1e1c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: clamp(60px, 6vw, 72px);
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
  position: relative;
  flex: none;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 2.6px 2.6px 2.6px 50%;
  border-radius: 0 99px 99px 0;
  background: var(--ink);
}

.brand-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: rotate(18deg);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), opacity 0.25s, background-color 0.35s;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}

/* ---------------- 首屏 ---------------- */

.hero {
  padding: clamp(56px, 9vw, 128px) var(--pad) clamp(48px, 6vw, 84px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.eyebrow .rule {
  width: clamp(24px, 5vw, 54px);
  height: 1px;
  background: var(--line);
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 74px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 20em;
}

.hero-sub {
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  max-width: 36em;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.85;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 76px);
  margin: clamp(52px, 7vw, 96px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.hero-stats dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-stats dd span {
  font-family: var(--sans);
  font-size: 0.42em;
  margin-left: 3px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------------- 区块通用 ---------------- */

.section {
  padding: clamp(60px, 8vw, 120px) var(--pad) 0;
  scroll-margin-top: 80px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 30px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(30px, 4vw, 52px);
}

.sec-index {
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex: none;
}

.sec-title {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: none;
}

.sec-desc {
  margin: 0 0 0 auto;
  max-width: 34em;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------- 筛选与网格 ---------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line);
  color: var(--ink);
}

.chip .n {
  color: var(--muted);
  font-size: 10.5px;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.chip[aria-pressed="true"] .n {
  color: var(--bg);
  opacity: 0.55;
}

.gcount {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 26px);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 21vw, 300px), 1fr));
  gap: clamp(26px, 3.2vw, 44px) clamp(16px, 1.7vw, 24px);
}

.card {
  margin: 0;
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--thumb-bg);
  border-radius: 2px;
}

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

.card:hover .thumb img {
  transform: scale(1.035);
}

.card:focus-visible .thumb {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--line-soft), var(--thumb-bg));
}

.thumb-fallback .ft {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  color: var(--ink);
  opacity: 0.2;
  letter-spacing: 0.02em;
}

.thumb-fallback .fl {
  position: absolute;
  left: 13px;
  bottom: 10px;
  max-width: calc(100% - 26px);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #fff;
  background: rgba(20, 20, 18, 0.62);
  backdrop-filter: blur(4px);
}

.cap {
  padding-top: 11px;
}

.cap h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: var(--ink);
}

.cap .meta {
  margin: 3px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  padding: clamp(50px, 8vw, 100px) 0;
  text-align: center;
}

.empty-k {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  padding: 2px 0;
  cursor: pointer;
  transition: border-color 0.25s;
}

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

/* ---------------- 服务 ---------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 54px);
}

.service {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.service-n {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service h3 {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.45;
}

.service p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------------- 联系 ---------------- */

.contact {
  padding-bottom: clamp(60px, 8vw, 110px);
}

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}

.contact-text h3 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.contact-text > p {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  max-width: 30em;
}

.contact-list li {
  display: flex;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.contact-list span {
  flex: none;
  width: 42px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 2px;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.25s;
}

.contact-list a:hover {
  border-color: var(--ink);
}

.contact-list em {
  font-style: normal;
  color: var(--ink-2);
}

.qr {
  margin: 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  width: clamp(220px, 20vw, 260px);
}

.qr img {
  width: 100%;
  height: auto;
  display: block;
}

.qr figcaption {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------------- 页脚 ---------------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-left a {
  text-decoration: none;
}

.foot-left a:hover {
  color: var(--ink);
}

.foot-sep {
  opacity: 0.5;
}

.foot-right {
  margin: 0;
}

/* ---------------- 灯箱 ---------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: lb-in 0.32s var(--ease);
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
}

.lb-index {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lb-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: clamp(24px, 3vw, 52px);
  padding: 0 var(--pad) clamp(24px, 3vw, 44px);
  min-height: 0;
}

.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.lb-stage img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.lb-stage video {
  max-width: 100%;
  max-height: 74vh;
  background: #000;
  box-shadow: var(--shadow);
}

.lb-stage iframe {
  width: 100%;
  height: min(76vh, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
}

.lb-stage model-viewer,
.lb-stage .mv-fallback {
  width: 100%;
  height: min(72vh, 100%);
  background: var(--thumb-bg);
}

.mv-fallback {
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.lb-cap {
  align-self: end;
  padding-bottom: 6px;
}

.lb-cap h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lb-meta {
  margin: 0 0 14px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lb-desc {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.lb-open {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}

.lb-open:hover {
  border-color: var(--ink);
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 102;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.28s var(--ease);
}

.lb-nav:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lb-nav.prev {
  left: clamp(8px, 1.6vw, 22px);
}

.lb-nav.next {
  right: clamp(8px, 1.6vw, 22px);
}

.lb-nav[disabled] {
  opacity: 0.25;
  cursor: default;
}

.lb-close {
  background: transparent;
}

/* ---------------- 入场 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .sec-head {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .sec-desc {
    margin-left: 0;
    text-align: left;
    max-width: none;
    flex-basis: 100%;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-body {
    grid-template-columns: 1fr;
  }

  .qr {
    width: clamp(190px, 46vw, 230px);
  }

  .lb-inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    overflow-y: auto;
  }

  .lb-stage img,
  .lb-stage video {
    max-height: 54vh;
  }

  .lb-stage iframe,
  .lb-stage model-viewer {
    height: 54vh;
  }

  .lb-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .cap h3 {
    font-size: 12.5px;
  }

  .hero-stats {
    gap: 22px 30px;
  }

  .hero-stats dd {
    font-size: 26px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
