:root {
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --radius: 18px;
  --nav-h: 48px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 56px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-right: 12px;
  white-space: nowrap;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-link {
  font-size: 13px;
  color: var(--text);
  opacity: 0.88;
  padding: 4px 10px;
  border-radius: 980px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  opacity: 1;
  text-decoration: none;
}

.lang-btn {
  position: sticky;
  right: 0;
  z-index: 2;
  flex: none;
  margin-left: auto;
  padding: 5px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 113, 227, 0.28);
  border-radius: 980px;
  box-shadow: -10px 0 12px -10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-spacer {
  flex: none;
  min-width: 10px;
}

.lang-btn:hover {
  background: var(--blue);
  color: #fff;
}

/* 键盘可见焦点，方便无障碍操作 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 尊重系统「减弱动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  background: var(--bg);
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-wrap {
  margin: 32px auto 0;
  max-width: 520px;
  position: relative;
}

.search-slot {
  min-height: 46px;
}

.search-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

/* 搜索时（或滚过首屏后）吸附在顶部，页面下滑也能继续输入 */
.search-wrap.is-docked {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 45;
  max-width: none;
  margin: 0;
  padding: 10px 16px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  animation: searchDockIn 0.28s var(--ease);
}

@keyframes searchDockIn {
  from {
    transform: translateY(-14px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.search-wrap.is-docked .search-count {
  margin-top: 6px;
}

.search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 44px;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 980px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.search-wrap input:focus {
  background: #fff;
  border-color: var(--blue);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.search-clear.on {
  display: flex;
}

.search-count {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  animation: searchCountIn 0.28s var(--ease);
}

.search-count b {
  color: var(--blue);
  font-weight: 600;
}

/* 搜索命中的关键词高亮 */
mark.hit {
  background: #ffe9a3;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
  box-shadow: 0 0 0 1px rgba(214, 162, 0, 0.18);
}

@keyframes searchCountIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 系列概览 ---------- */
.families {
  background: var(--bg);
  padding: 8px 0 72px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.family-card {
  display: block;
  padding: 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  text-decoration: none;
}

.family-card strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
}

.family-card span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.family-card.is-custom {
  background: linear-gradient(180deg, #eaf3ff 0%, #dbeaff 100%);
}

.family-card.is-custom em {
  font-weight: 600;
}

.family-card em {
  display: inline-block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: var(--blue);
}

/* ---------- 型号区块 ---------- */
.models {
  background: var(--bg-alt);
  padding: 72px 0 88px;
}

.section-head {
  padding-top: 8px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  overflow: hidden;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

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

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.spec {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}

.spec dt {
  color: var(--text-muted);
}

.spec dd {
  margin: 0;
  color: var(--text);
}

.card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #b25000;
  background: #fff2e4;
  border-radius: 980px;
}

.spec dd.price {
  font-weight: 600;
  color: #b25000;
}

.codes {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: 980px;
  color: var(--text);
}

.code-pill b {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-pill span {
  color: var(--text-muted);
}

.card-intro {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.card-features {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.card-features li {
  margin-bottom: 4px;
}

.empty {
  padding: 56px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
}

.hidden {
  display: none !important;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- 定制展示图墙 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  display: block;
  padding: 0;
  border: none;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  overflow: hidden;
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 16px;
}

.gallery-meta strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.gallery-meta em {
  margin-left: auto;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: #b25000;
  white-space: nowrap;
}

/* ---------- 大图查看器：全屏瀑布流 ---------- */
.gs-mask {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow: hidden;
  background: radial-gradient(125% 82% at 50% -12%, #ffffff 0%, #f7f7f9 44%, #ececef 100%);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  animation: gsFade 0.32s var(--ease) both;
  transition: background 0.45s var(--ease);
}

.gs-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.44s var(--ease), opacity 0.44s var(--ease), filter 0.44s var(--ease);
}

.gs-mask.gs-zooming {
  background: rgba(250, 250, 252, 0.92);
}

.gs-mask.gs-zooming .gs-panel {
  transform: scale(1.05);
  opacity: 0;
  filter: blur(8px);
}

/* 顶部悬浮玻璃条 */
.gs-head {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 66%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.gs-head-text {
  min-width: 0;
}

.gs-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.gs-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.gs-count {
  margin-left: auto;
  flex: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 980px;
}

.gs-close {
  flex: none;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.gs-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

/* 瀑布流容器：铺满整屏，纵向滚动 */
.gs-mosaic {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.gs-mosaic::-webkit-scrollbar {
  width: 8px;
}

.gs-mosaic::-webkit-scrollbar-track {
  background: transparent;
}

.gs-mosaic::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 8px;
}

.gs-mosaic::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

/* 单张照片：位置由脚本按真实比例计算 */
.gs-tile {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.gs-mosaic.gs-ready .gs-tile {
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease);
}

.gs-tile-in {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 10px 24px rgba(0, 0, 0, 0.07);
  animation: gsPop 0.62s var(--ease) backwards;
  animation-delay: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gs-tile:hover .gs-tile-in,
.gs-tile:focus-visible .gs-tile-in {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 24px 48px rgba(0, 0, 0, 0.16);
}

.gs-tile:focus-visible {
  outline: none;
}

.gs-tile:focus-visible .gs-tile-in {
  box-shadow: inset 0 0 0 2px var(--blue), 0 24px 48px rgba(0, 0, 0, 0.16);
}

.gs-tile img {
  width: 100%;
  height: 100%;
  /* 等比缩放完整显示，不做裁切 */
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.55s var(--ease), transform 0.8s var(--ease), filter 0.4s var(--ease);
}

.gs-tile.is-loaded img {
  opacity: 1;
  transform: none;
}

.gs-tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.03);
}

.gs-tile-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gs-tile:hover .gs-tile-zoom,
.gs-tile:focus-visible .gs-tile-zoom {
  opacity: 1;
  transform: none;
}

.gs-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 38px 13px 12px;
  color: #fff;
  font-size: 12.5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.46) 46%, rgba(0, 0, 0, 0.82) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}

.gs-tile:hover .gs-tile-cap,
.gs-tile:focus-visible .gs-tile-cap {
  opacity: 1;
  transform: none;
}

.gs-tile-cap strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-tile-cap em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: #ffc48c;
  white-space: nowrap;
}

/* 放大层 */
.gs-zoom {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gs-zoom.on {
  opacity: 1;
}

.gs-zoom-bg {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(170%) brightness(1.06);
  transform: scale(1.1);
  opacity: 0.22;
  transition: opacity 0.5s var(--ease);
}

.gs-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1080px, 94vw);
}

.gs-zoom-img {
  max-width: 100%;
  max-height: min(68vh, calc(100vh - 250px));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 70px rgba(0, 0, 0, 0.22);
  cursor: zoom-out;
  transform: scale(0.9);
  opacity: 0.3;
  transition: transform 0.46s var(--ease), opacity 0.46s var(--ease);
}

.gs-zoom.on .gs-zoom-img {
  transform: scale(1);
  opacity: 1;
}

.gs-zoom-img.gs-swap {
  animation: gsSwap 0.36s var(--ease);
}

.gs-info {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  text-align: center;
  color: var(--text);
  max-width: 720px;
}

.gs-info h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gs-info .gs-price {
  font-style: normal;
  margin-left: 10px;
  color: #b25000;
}

.gs-info .gs-desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gs-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.gs-tag {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09);
  border-radius: 980px;
}

.gs-index {
  display: inline-block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 缩略图条 */
.gs-film {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 4px 2px;
  max-width: 94vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.gs-film::-webkit-scrollbar {
  display: none;
}

.gs-film-item {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.gs-film-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gs-film-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.gs-film-item.on {
  opacity: 1;
  border-color: var(--blue);
}

.gs-zclose {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background 0.2s var(--ease);
}

.gs-zclose:hover {
  background: #fff;
}

.gs-nav {
  position: absolute;
  top: calc(50% - 40px);
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.gs-nav:hover {
  background: #fff;
}

.gs-prev {
  left: 20px;
}

.gs-next {
  right: 20px;
}

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

@keyframes gsRise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gsPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gsSwap {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer a {
  color: var(--blue);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

@media (max-width: 734px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .gallery-thumb {
    height: 150px;
  }
  .gallery-meta {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
  }
  .gallery-meta em {
    margin-left: 0;
  }
  .gs-head {
    padding: 12px 14px 10px;
    gap: 10px;
  }
  .gs-head h2 {
    font-size: 17px;
  }
  .gs-head p {
    font-size: 11.5px;
  }
  .gs-count {
    padding: 4px 10px;
    font-size: 11px;
  }
  .gs-close {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .gs-tile-in {
    border-radius: 12px;
  }
  .gs-tile-cap {
    opacity: 1;
    transform: none;
    padding: 26px 10px 9px;
    font-size: 11px;
  }
  .gs-zoom {
    padding: 52px 10px 10px;
  }
  .gs-zoom-bg {
    filter: blur(42px) saturate(160%) brightness(1.05);
    opacity: 0.18;
  }
  .gs-zoom-img {
    max-height: min(62vh, calc(100vh - 226px));
    border-radius: 14px;
  }
  .gs-info h3 {
    font-size: 16px;
  }
  .gs-info .gs-desc {
    font-size: 13px;
  }
  .gs-film-item {
    width: 46px;
    height: 46px;
  }
  .gs-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
    top: calc(50% - 46px);
  }
  .gs-prev {
    left: 6px;
  }
  .gs-next {
    right: 6px;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 18px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .families,
  .models {
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .gs-tile-in,
  .gs-zoom-img {
    animation: none !important;
    transition: none !important;
  }
  .gs-tile img {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gs-mosaic.gs-ready .gs-tile {
    transition: none;
  }
  .gs-panel,
  .gs-mask {
    transition: none;
  }
}

/* ---------- 手机端炫酷菜单 ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  flex: none;
  margin-left: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s var(--ease);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.09);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.34s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars i:nth-child(1) {
  top: 0;
}

.nav-toggle-bars i:nth-child(2) {
  top: 5px;
  width: 12px;
}

.nav-toggle-bars i:nth-child(3) {
  top: 10px;
}

.nav-toggle.is-open .nav-toggle-bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.is-open .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mmenu-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
}

.mmenu.is-open {
  visibility: visible;
}

.mmenu-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.34s var(--ease);
}

.mmenu.is-open .mmenu-mask {
  opacity: 1;
}

.mmenu-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(240px, 66vw, 320px);
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px
    calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px 0 0 22px;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.22);
  transform: translateX(104%);
  opacity: 0.5;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease;
}

.mmenu.is-open .mmenu-sheet {
  transform: translateX(0);
  opacity: 1;
}

.mmenu-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.mmenu-glow-a {
  width: 190px;
  height: 190px;
  top: -70px;
  left: -60px;
  background: radial-gradient(circle at 30% 30%, #79c6ff, rgba(121, 198, 255, 0) 70%);
  animation: mmenuFloat 9s ease-in-out infinite alternate;
}

.mmenu-glow-b {
  width: 210px;
  height: 210px;
  top: 40px;
  right: -90px;
  background: radial-gradient(circle at 60% 40%, #ffd27a, rgba(255, 210, 122, 0) 70%);
  animation: mmenuFloat 11s ease-in-out infinite alternate-reverse;
}

@keyframes mmenuFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(26px, 20px, 0) scale(1.14);
  }
}

.mmenu-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mmenu-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mmenu-close {
  margin-left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.mmenu-close:active {
  transform: scale(0.92);
}

.mmenu-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.mmenu-close svg {
  width: 17px;
  height: 17px;
}

.mmenu-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mmenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(22px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.mmenu.is-open .mmenu-item {
  animation: mmenuIn 0.42s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  animation-delay: calc(var(--i) * 30ms + 60ms);
}

@keyframes mmenuIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.mmenu-item:hover {
  text-decoration: none;
  background: #fff;
}

.mmenu-item:active {
  transform: scale(0.975);
}

.mmenu-chip {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #5ac8fa, #0071e3);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.22);
}

.mmenu-item:nth-child(2) .mmenu-chip {
  background: linear-gradient(140deg, #ff7eb6, #ff2d55);
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.2);
}

.mmenu-item:nth-child(3) .mmenu-chip {
  background: linear-gradient(140deg, #ffd166, #ff9500);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.mmenu-item:nth-child(4) .mmenu-chip {
  background: linear-gradient(140deg, #c79bff, #af52de);
  box-shadow: 0 4px 12px rgba(175, 82, 222, 0.2);
}

.mmenu-item:nth-child(5) .mmenu-chip {
  background: linear-gradient(140deg, #6ee7a8, #34c759);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

.mmenu-item:nth-child(6) .mmenu-chip {
  background: linear-gradient(140deg, #7ee8fa, #34c7d9);
  box-shadow: 0 4px 12px rgba(52, 199, 217, 0.2);
}

.mmenu-item:nth-child(7) .mmenu-chip {
  background: linear-gradient(140deg, #4b4b50, #1d1d1f);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.22);
}

.mmenu-ico {
  width: 18px;
  height: 18px;
  display: block;
}

.mmenu-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mmenu-txt b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmenu-txt em {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmenu-go {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #c7c7cc;
}

.mmenu-item.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.45), 0 8px 20px rgba(0, 113, 227, 0.12);
}

.mmenu-item.is-active .mmenu-txt b {
  color: var(--blue);
}

.mmenu-item.is-active .mmenu-go {
  color: var(--blue);
}

.mmenu-lang {
  flex: none;
  margin-left: auto;
  padding: 5px 13px;
  font-size: 13px;
  font-family: inherit;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  border: 0;
  border-radius: 980px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.mmenu-lang:active {
  transform: scale(0.96);
  background: rgba(0, 113, 227, 0.18);
}

html.mmenu-lock,
html.mmenu-lock body {
  overflow: hidden;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-spacer {
    flex: 1;
  }
}

@media (min-width: 861px) {
  .mmenu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mmenu-glow {
    animation: none;
  }
  .mmenu.is-open .mmenu-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
