/* 首页专属视觉体系：全宽水晶玻璃 Hero、黑曜石悬浮胶囊筛选、苹果风左右分栏 3D 笔记本卡片 */

body.gallery-home {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 540px at 82% -6%, rgba(218, 227, 246, 0.42) 0%, transparent 70%),
    radial-gradient(900px 500px at 10% 18%, rgba(235, 240, 250, 0.55) 0%, transparent 65%);
}

html[data-theme="dark"] body.gallery-home {
  background-color: var(--bg);
  background-image: radial-gradient(1100px 520px at 82% -6%, rgba(45, 58, 82, 0.22) 0%, transparent 70%);
}

/* ==========================================================================
   1. 全宽无缝水晶玻璃 Hero 区域（严格对齐效果图）
   ========================================================================== */
.gallery-hero {
  position: relative;
  width: 100%;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + 34px);
  padding-bottom: 42px;
  min-height: 416px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #EFF2F8;
  background-image:
    linear-gradient(
      90deg,
      rgba(244, 246, 251, 0.94) 0%,
      rgba(244, 246, 251, 0.86) 36%,
      rgba(244, 246, 251, 0.34) 56%,
      rgba(244, 246, 251, 0.02) 76%,
      rgba(244, 246, 251, 0) 100%
    ),
    url("hero-glass-wave.jpg");
  background-size: auto, cover;
  background-position: center, 74% center;
  background-repeat: no-repeat;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 76px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 246, 251, 0) 0%, var(--bg) 100%);
}

html[data-theme="dark"] .gallery-hero {
  background-color: #0E1014;
  background-image:
    linear-gradient(
      90deg,
      rgba(14, 16, 20, 0.96) 0%,
      rgba(14, 16, 20, 0.88) 42%,
      rgba(14, 16, 20, 0.62) 72%,
      rgba(14, 16, 20, 0.45) 100%
    ),
    url("hero-glass-wave.jpg");
}

html[data-theme="dark"] .gallery-hero::after {
  background: linear-gradient(180deg, rgba(14, 16, 20, 0) 0%, var(--bg) 100%);
}

.gallery-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.gallery-hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.gallery-hero-lead {
  margin: 12px 0 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* 4 项纯净薄线图标 + 双行短文（无沉重框线） */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text);
  font-size: 17px;
  opacity: 0.78;
  flex-shrink: 0;
}

.hero-feature-text {
  min-width: 0;
}

.hero-feature-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.hero-feature-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-muted);
}

/* Hero 双胶囊操作区：黑曜石主胶囊 + 珍珠白玻璃次胶囊 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.btn-hero-obsidian {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--obsidian-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cta-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.36);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.btn-hero-obsidian .icon--globe {
  font-size: 18px;
  opacity: 0.92;
}

.btn-hero-obsidian .icon--arrow-right {
  font-size: 14px;
  margin-left: 6px;
  transition: transform 160ms var(--ease);
}

.btn-hero-obsidian:hover {
  background: var(--obsidian-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.btn-hero-obsidian:hover .icon--arrow-right {
  transform: translateX(2px);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06), inset 0 1px 0 #FFFFFF;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

html[data-theme="dark"] .btn-hero-glass {
  background: rgba(30, 35, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .btn-hero-glass:hover {
  background: rgba(42, 49, 62, 0.88);
}

/* ==========================================================================
   2. 黑曜石悬浮胶囊筛选栏 & 玻璃工具控制组 (.catalog-toolbar)
   ========================================================================== */
.catalog-section {
  position: relative;
  padding: 18px 0 48px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    transform 120ms var(--ease);
}

.filter:active {
  transform: scale(0.97);
}

.filter.active,
.filter[aria-pressed="true"] {
  padding: 7px 18px;
  background: var(--obsidian-bg);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--cta-text);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16), inset 0 1px 0.5px rgba(255, 255, 255, 0.32);
}

.filter-count {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.72;
}

.filter.active .filter-count,
.filter[aria-pressed="true"] .filter-count {
  opacity: 0.9;
}

.catalog-controls,
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 246px;
  min-height: 40px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 #FFFFFF;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

html[data-theme="dark"] .search-field {
  background: rgba(22, 25, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.search-field:has(:focus-visible) {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--surface-subtle);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-field input:focus-visible {
  outline: none;
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 #FFFFFF;
}

html[data-theme="dark"] .view-switch {
  background: rgba(22, 25, 32, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

#viewGridBtn,
#viewListBtn,
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

#viewGridBtn.is-active,
#viewListBtn.is-active,
#viewGridBtn[aria-pressed="true"],
#viewListBtn[aria-pressed="true"],
.view-switch-btn.is-active,
.view-switch-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   3. 苹果风左右分栏 3D 笔记本玻璃卡片 (.product-list & .product-card)
   ========================================================================== */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-list[data-count="1"]:not(.is-list) {
  grid-template-columns: minmax(0, 520px);
}

.product-list[data-count="2"]:not(.is-list) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), inset 0 1px 0 #FFFFFF;
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

html[data-theme="dark"] .product-card {
  background: rgba(22, 25, 32, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.product-card:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

/* 顶部：全宽零重叠双机展示舞台 */
.card-device-peek {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(240, 243, 250, 0.72) 0%, rgba(248, 250, 253, 0.45) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

html[data-theme="dark"] .card-device-peek {
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.78) 0%, rgba(19, 22, 30, 0.56) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.card-device-peek.is-custom-skin {
  padding-top: 34px;
}

.peek-custom-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #92400E;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

html[data-theme="dark"] .peek-custom-badge {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.34);
  color: #FCD34D;
}

.peek-device-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

html[data-theme="dark"] .peek-device-badge {
  background: rgba(20, 23, 30, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.peek-laptop {
  position: relative;
  flex: 1 1 74%;
  max-width: 75%;
  margin: 0;
  transform: none;
  transition: transform 240ms var(--ease);
}

.peek-laptop-lid {
  position: relative;
  padding: 6px 6px 5px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(155deg, #272C36 0%, #111318 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.peek-laptop-cam {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #475569;
}

.peek-laptop-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #0B0D12;
}

.peek-laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0B0D12;
  transition: transform 240ms var(--ease);
}

.peek-laptop-base {
  height: 6px;
  margin-left: -3%;
  width: 106%;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(180deg, #E2E6EE 0%, #B4BCC9 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

/* 并排右侧完整手机样机（含完整圆角底栏，零遮挡、零裁切） */
.peek-phone-side {
  position: relative;
  flex: 0 0 22%;
  max-width: 88px;
  padding: 4px 3.5px 5px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2E3440 0%, #111319 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  transition: transform 240ms var(--ease);
}

.peek-phone-side-notch {
  width: 22px;
  height: 3px;
  margin: 0 auto 3px;
  border-radius: 99px;
  background: #0B0D11;
}

.peek-phone-side-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 10px;
  overflow: hidden;
  background: #0E1014;
}

.peek-phone-side-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 仅 H5 卡片：并排双机完整展示 */
.card-device-peek.is-h5-only {
  justify-content: center;
  gap: 16px;
  min-height: 214px;
}

.card-device-peek.is-h5-only .peek-phone-side {
  flex: 0 0 auto;
  width: 92px;
  max-width: 92px;
}

/* 底部卡片信息主体 */
.product-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 18px;
  flex: 1;
  min-width: 0;
}

.product-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.badge-custom-inline {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(254, 243, 199, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

html[data-theme="dark"] .badge-custom-inline {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.34);
  color: #FCD34D;
}

.product-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.product-card-tags li {
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(241, 244, 249, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

html[data-theme="dark"] .product-card-tags li {
  background: rgba(30, 35, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .product-card-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* 左下角：轻量玻璃辅助按钮 */
.btn-card-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(241, 244, 249, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: color 150ms ease, background-color 150ms ease, transform 150ms var(--ease);
}

.btn-card-live:hover {
  color: var(--text);
  background: rgba(232, 236, 244, 0.96);
}

html[data-theme="dark"] .btn-card-live {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .btn-card-live:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 右下角：大号高辨识度黑曜石主按钮（查看详情） */
.btn-card-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--obsidian-bg);
  color: var(--cta-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16), inset 0 1px 0.5px rgba(255, 255, 255, 0.34);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.btn-card-detail .icon {
  font-size: 14px;
  transition: transform 160ms var(--ease);
}

.btn-card-detail:hover {
  background: var(--obsidian-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.btn-card-detail:hover .icon {
  transform: translateX(2px);
}

/* ==========================================================================
   3B. 列表模式 (.product-list.is-list)
   ========================================================================== */
.product-list.is-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-list.is-list .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  min-height: 196px;
}

.product-list.is-list .product-card-body {
  order: 1;
  padding: 20px 26px;
}

.product-list.is-list .card-device-peek {
  order: 2;
  min-height: 196px;
  border-bottom: 0;
  border-left: 1px solid var(--border);
}

/* ==========================================================================
   4. 空态、体验指南与更新日志（同样采用柔和玻璃卡片）
   ========================================================================== */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .empty-state {
  background: var(--surface);
  border-color: var(--border);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.guide-section,
.services-section {
  padding: 40px 0 12px;
}

.guide-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card,
.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .service-card {
  background: var(--surface);
  border-color: var(--border);
}

.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.guide-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.changelog-section {
  padding: 44px 0 16px;
}

.changelog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.changelog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .changelog-card {
  background: var(--surface);
  border-color: var(--border);
}

.changelog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.changelog-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.changelog-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.noscript-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. Hover 动效与多级响应式断点
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .filter:not(.active):not([aria-pressed="true"]):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.65);
  }
  html[data-theme="dark"] .filter:not(.active):not([aria-pressed="true"]):hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09), inset 0 1px 0 #FFFFFF;
  }
  html[data-theme="dark"] .product-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
  }
  .product-card:hover .peek-laptop {
    transform: translateY(-2px);
  }
  .product-card:hover .peek-phone-side {
    transform: translateY(-3px);
  }
}

@media (max-width: 1240px) {
  .product-list,
  .product-list[data-count="2"]:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .gallery-hero {
    background-position: center, 86% center;
    min-height: 360px;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .catalog-controls,
  .search-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .search-field {
    flex: 1;
    min-width: 0;
  }
  .guide-grid,
  .service-grid,
  .changelog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    min-height: 310px;
    padding-top: calc(var(--nav-h) + 22px);
    padding-bottom: 28px;
    background-position: center, right center;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-kbd {
    display: none;
  }
  .product-list,
  .product-list[data-count="1"]:not(.is-list),
  .product-list[data-count="2"]:not(.is-list),
  .product-list.is-list,
  .product-list.is-list .product-card {
    display: flex;
    flex-direction: column;
  }
  .product-list.is-list .card-device-peek {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .product-list.is-list .product-card-body {
    order: 2;
  }
}

@media (max-width: 640px) {
  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-actions {
    gap: 10px;
  }
  .btn-hero-obsidian,
  .btn-hero-glass {
    min-height: 42px;
    font-size: 14px;
  }
  .card-device-peek {
    gap: 10px;
    padding: 14px 14px 12px;
  }
  .card-device-peek.is-custom-skin {
    padding-top: 34px;
  }
  .product-card-body {
    padding: 14px 16px 16px;
  }
  .product-card-title {
    font-size: 18.5px;
  }
  .view-switch {
    display: none;
  }
}
