/**
 * Oopbuy-style shopping guide — global styles
 * Amazon-inspired: white / light gray + orange accent (#FF9900)
 *
 * 【图片显示尺寸 — 与 script.js 顶部速查表对应，上传请用源图像素】
 * LOGO .header-logo img — 电脑 max-height 34px；手机 max-height 32px 完整显示（源图 132×40）
 * 电脑轮播 .hero-carousel — max-height 245px，宽约至 43.22cm，5:1（源图 1225×245）
 * 手机轮播 @768px — 宽≈100vw-边距-peek-0.8cm，高=宽×5/6+3.2cm（源图 620×754）
 * 四宫格 .quick-link-card--amazon-tile img — aspect-ratio 1/1（源图 600×600）
 * 商品卡 .product-card__media img — aspect-ratio 1/1（源图 300×300）
 * 视频 .video-box video — 封面区高度 clamp，非静图（源 MP4 建议 1280×720）
 */

:root {
  --amazon-dark: #131921;
  --amazon-nav: #232f3e;
  --amazon-bg: #eaeded;
  --amazon-white: #ffffff;
  /** Oopbuy-style accent (distinct from generic Amazon orange) */
  --oopbuy-orange: #ff4d12;
  --oopbuy-orange-dark: #e63e00;
  --accent: #ff9900;
  --accent-hover: #fa8900;
  --link-blue: #007185;
  --text: #0f1111;
  --border: #d5d9d9;
  --header-offset: 118px;
  --interactive-scale: 1.03;
  --transition: transform 0.3s ease;
  font-family: "Amazon Ember", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--amazon-bg);
  padding-top: var(--header-offset);
}

/** Home: content starts flush under fixed header (no extra gap before carousel) */
body[data-page="home"] {
  padding-top: var(--header-offset);
  margin: 0;
}

body[data-page="home"] .site-header + .home-hero-stack {
  margin-top: 0;
}

body[data-page="home"] .home-hero-stack {
  margin-top: 0;
  padding-top: 0;
}

body[data-page="home"] .home-hero-stack__align {
  padding-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

body[data-page="home"] .hero-carousel-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 3000;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  position: fixed;
  text-decoration: none;
  border-radius: 4px;
}

.rail-head--end {
  justify-content: flex-end;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
  color: #c7511f;
}

/* ----- Hover scale (all interactive modules) ----- */
.interactive-scale {
  transition: var(--transition);
  will-change: transform;
}

.interactive-scale:hover {
  transform: scale(var(--interactive-scale));
}

button.interactive-scale:hover,
a.interactive-scale:hover {
  z-index: 1;
}

/** Avoid whole-card hover-scale on feature tiles (keeps title/link text sharp) */
a.quick-link-card--amazon-tile.interactive-scale:hover,
a.quick-link-card--amazon-tile:hover {
  transform: none !important;
}

/* ----- Fixed site header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--amazon-dark);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/** Home: no shadow / no border under nav — avoids light gap above dark carousel */
body[data-page="home"] .site-header {
  box-shadow: none;
  border-bottom: none;
}

.header-upper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  overflow: visible;
}

.header-logo {
  display: flex;
  align-items: center;
  min-width: 100px;
}

/** Logo 无背景框，直接叠在顶栏深色底上（上传 PNG 透明底即可） */
.header-logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-logo img {
  /** LOGO 源图 132×40 px；此处为显示上限，非上传尺寸 */
  max-height: 34px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.header-search {
  flex: 1 1 280px;
  min-width: 200px;
}

.header-search form {
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  border: none;
  padding: 0 0.75rem;
  font-size: 1rem;
}

.header-search button {
  width: 48px;
  border: none;
  background: var(--accent);
  color: #131921;
  cursor: pointer;
  font-size: 1.1rem;
}

.header-search button:hover {
  background: var(--accent-hover);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}

.lang-select {
  background: #37475a;
  color: #ffffff;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  max-width: 140px;
}

.icon-btn {
  background: transparent;
  border: 1px solid #888;
  color: #ffffff;
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
}

.icon-btn--share {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.icon-btn.is-on {
  color: var(--accent);
  border-color: var(--accent);
}

.share-wrap {
  position: relative;
}

.share-panel {
  display: none;
  position: fixed;
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 2500;
  min-width: auto;
  max-width: min(calc(100vw - 16px), 240px);
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}

.share-panel.is-open {
  display: flex;
}

.share-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  font-size: 1.25rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.share-panel a[data-share="facebook"] {
  color: #1877f2;
}

.share-panel a[data-share="twitter"] {
  color: #000000;
}

.share-panel a[data-share="whatsapp"] {
  color: #25d366;
}

.share-panel a[data-share="reddit"] {
  color: #ff4500;
}

.share-panel a[data-share="telegram"] {
  color: #26a5e4;
}

.share-panel a[data-share="discord"],
.footer-share__icons a[data-share="discord"] {
  color: #5865f2;
}

.share-panel a[data-share="linkedin"],
.footer-share__icons a[data-share="linkedin"] {
  color: #0a66c2;
}

.share-panel a[data-share="pinterest"],
.footer-share__icons a[data-share="pinterest"] {
  color: #bd081c;
}

.share-panel a[data-share="tiktok"],
.footer-share__icons a[data-share="tiktok"] {
  color: #000000;
}

.share-panel a[data-share="line"],
.footer-share__icons a[data-share="line"] {
  color: #00b900;
}

.share-panel a:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.06);
}

.share-panel a[data-share="facebook"]:hover {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}

.share-panel a[data-share="twitter"]:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.08);
}

.share-panel a[data-share="whatsapp"]:hover {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

.share-panel a[data-share="reddit"]:hover {
  color: #ff4500;
  background: rgba(255, 69, 0, 0.12);
}

.share-panel a[data-share="telegram"]:hover {
  color: #26a5e4;
  background: rgba(38, 165, 228, 0.12);
}

.share-panel a[data-share="discord"]:hover {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
}

.share-panel a[data-share="linkedin"]:hover {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.12);
}

.share-panel a[data-share="pinterest"]:hover {
  color: #bd081c;
  background: rgba(189, 8, 28, 0.12);
}

.share-panel a[data-share="tiktok"]:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.08);
}

.share-panel a[data-share="line"]:hover {
  color: #00b900;
  background: rgba(0, 185, 0, 0.12);
}

.header-upper,
.share-wrap {
  overflow: visible;
}

/* Lower nav — full bleed dark bar (desktop + mobile) */
.header-lower {
  background: var(--amazon-nav);
  padding: 0.35rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  max-width: none;
  width: 100%;
  margin: 0;
}

.nav-all-wrap {
  position: relative;
}

.nav-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-all-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  color: var(--text);
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  padding: 0.35rem 0;
}

.nav-all-menu.is-open {
  display: block;
}

.nav-all-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-all-menu a:hover {
  background: #f3f3f3;
  text-decoration: none;
}

.header-lower > a,
.header-lower .nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
  text-shadow: none;
}

.header-lower > a:hover,
.header-lower .nav-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.header-lower > a span,
.header-lower .nav-link span {
  color: inherit;
}

/** Crisp nav text (no transform blur from scaled parents) */
.header-lower,
.nav-all-btn {
  font-family: system-ui, -apple-system, "Segoe UI", "Amazon Ember", Arial, Helvetica, sans-serif;
}

.nav-all-btn,
.header-lower .nav-link {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-lower .nav-link,
.header-lower .nav-link span,
.nav-all-btn,
.nav-all-btn span {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.header-lower .nav-link,
.nav-all-btn {
  transition: text-decoration 0.12s ease, color 0.12s ease;
}

@media (prefers-reduced-motion: reduce) {
  .header-lower .nav-link,
  .nav-all-btn {
    transition: none;
  }
}

/* ----- Main layout ----- */
.site-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem;
}

/** Homepage hero sits outside .site-main — main keeps normal padding */
body[data-page="home"] .site-main {
  padding-top: 1rem;
}

/* ----- Homepage hero stack (carousel + quad tiles, flush under header) ----- */
body[data-page="home"] .home-hero-stack {
  width: 100%;
  margin: 0;
  padding: 0;
}

/**
 * Home hero column: carousel + white quad row share one max-width and horizontal padding
 * (matches .site-main at 1rem) — eliminates left/right white “lip” vs carousel.
 */
.home-hero-stack__align {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

body[data-page="home"] .home-hero-stack .hero-carousel-wrap {
  margin-top: 0;
  margin-bottom: 0;
  max-width: none;
  width: 100%;
}

/** 电脑端：轮播与四宫格间距（carousel-wrap 有 margin-bottom:0!important，间距加在 tiles-wrap） */
@media (min-width: 769px) {
  body[data-page="home"] .home-hero-stack__tiles-wrap {
    margin-top: 0.5cm !important;
    padding-top: 0.2rem;
  }

  /* 视频：预览横屏 16:9，弹层竖屏 9:16（与手机端一致） */
  .video-box__media {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
  }

  .video-box video,
  .video-box__thumb,
  .video-box__iframe {
    object-fit: cover;
    object-position: center center;
  }

  .video-modal__inner.is-vertical {
    max-width: min(480px, 42vw, 96vw);
  }

  .video-modal__media.is-vertical {
    max-width: min(420px, 42vw);
    max-height: min(calc(100vh - 5rem), 90vh);
  }
}

.home-hero-stack__tiles-wrap {
  background: #ffffff;
  margin: 0;
  max-width: none;
  padding: 0.3rem 0 0.35rem;
  border-bottom: none;
}

/* ----- Hero carousel — 源图：电脑 1225×245 px；手机 620×754 px（见 script.js 速查表） ----- */
.hero-carousel-wrap {
  position: relative;
  max-width: 43.22cm;
  margin: 0 auto 1rem;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 8.46cm;
  /** 电脑轮播显示高度上限 245px（对应上传 1225×245，5:1） */
  max-height: 245px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8f8 45%, #eaeded 100%);
}

/** Flush under nav; height matches content strip (no extra spacer) */
body[data-page="home"] .hero-carousel {
  height: 8.46cm;
  max-height: 245px;
  border-radius: 0;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 38%, #e7e9ec 72%, #dde1e4 100%);
  box-shadow: none;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__prev,
.hero-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 72px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 1.25rem;
  color: #333;
  border-radius: 3px;
  transition: var(--transition);
}

.hero-carousel__prev:hover,
.hero-carousel__next:hover {
  background: #fff;
  transform: translateY(-50%) scale(var(--interactive-scale));
}

.hero-carousel__prev {
  left: 8px;
}

.hero-carousel__next {
  right: 8px;
}

/* Quick links grid */
.quick-links-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: -3.25rem;
  position: relative;
  z-index: 20;
  padding: 0 0.5rem;
}

/** Hero quad: Amazon department-row style inside white strip */
.quick-links-row--hero-amazon {
  margin-top: 0;
  padding: 0;
  gap: 0.35rem 0.6rem;
}

.quick-links-row--spreadsheet-band.quick-links-row--hero-amazon-inner {
  margin-top: 0.2rem;
  margin-bottom: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.quick-links-row--spreadsheet-band:not(.quick-links-row--hero-amazon-inner) {
  margin-top: 0.2rem;
  margin-bottom: 0.3rem;
}

.spreadsheet-band__heading {
  margin: 0.35rem 0 0.12rem;
  line-height: 1.2;
}

.quick-links-row--spreadsheet-band + .home-grid-section {
  margin-top: 0.15rem;
}

.rail-section--after-spreadsheet {
  margin-top: 1.5rem;
}

.quick-link-card {
  background: #fff;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
}

.quick-link-card:hover {
  text-decoration: none;
}

/** Square promo tiles (custom imagery + overlay caption) */
.quick-link-card--square {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.quick-link-card--square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-link-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.75rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 17, 17, 0.08) 28%, rgba(15, 17, 17, 0.88) 100%);
}

.quick-link-card--square .quick-link-card__big {
  color: #fff;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.quick-link-card--square .quick-link-card__small {
  color: #ffe6bc;
  font-weight: 600;
  font-size: 0.82rem;
}

.quick-link-card__big {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.35rem;
}

.quick-link-card__small {
  font-size: 0.9rem;
  color: var(--link-blue);
}

/**
 * Amazon-style feature cards (reference: title block → photo → blue link)
 * No stroke/border on the card — white panel + generous padding only.
 */
.quick-link-card--amazon-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0.2rem 0.45rem 0.15rem;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}

.quick-link-card--amazon-tile:hover {
  box-shadow: none;
  text-decoration: none;
}

/** Whole card is <a>; override global `a:hover` so title stays black / link stays blue */
a.quick-link-card--amazon-tile:hover,
a.quick-link-card--amazon-tile:focus {
  color: #0f1111;
}

.quick-link-card__module-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.18rem;
  padding: 0;
  color: #0f1111;
  letter-spacing: -0.015em;
  text-align: left;
  align-self: flex-start;
}

.quick-link-card--amazon-tile:hover .quick-link-card__module-title {
  color: #0f1111 !important;
}

.quick-link-card__visual {
  position: relative;
  width: 100%;
  margin: 0 0 0.15rem;
  border-radius: 0;
  overflow: hidden;
  background: #f3f4f6;
}

.quick-link-card__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/** Homepage + spreadsheet feature tiles — 源图 600×600 px，1:1 正方形 */
.quick-link-card--amazon-tile .quick-link-card__visual img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.quick-link-card__subline {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--link-blue);
  text-align: left;
  align-self: flex-start;
  text-decoration: none;
}

.quick-link-card--amazon-tile:hover .quick-link-card__subline {
  color: var(--link-blue);
  text-decoration: underline;
}

/* ----- Videos — 预览横屏 16:9（object-fit:cover）；弹层竖屏 9:16；电脑与手机一致 ----- */
.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.25rem 0 0.55rem;
  align-items: stretch;
}

.video-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.video-box:focus-visible {
  outline: 2px solid var(--oopbuy-orange);
  outline-offset: 2px;
}

.video-box__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  background: #111;
  overflow: hidden;
}

.video-box video,
.video-box__thumb,
.video-box__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  background: #111;
}

.video-box__iframe {
  pointer-events: none;
}

.video-box.is-autoplay .video-box__play-overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-box.is-autoplay:hover .video-box__play-overlay,
.video-box.is-autoplay:focus-within .video-box__play-overlay {
  opacity: 1;
}

.video-box__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.video-box__play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  padding-left: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.video-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.video-caption a {
  font-weight: 700;
  color: var(--link-blue);
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  touch-action: manipulation;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__inner {
  position: relative;
  max-width: min(960px, 96vw);
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal__inner.is-vertical {
  max-width: min(420px, 96vw);
  width: 100%;
}

.video-modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-modal__media.is-vertical {
  width: 100%;
  max-width: min(420px, 96vw);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 5rem);
}

.video-modal video,
.video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #000;
}

.video-modal video.is-active,
.video-modal__iframe.is-active,
.video-modal__media .video-player--modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.video-modal video.is-active,
.video-modal__media .video-player--modal {
  object-fit: cover;
  object-position: center center;
}

.video-modal video[hidden] {
  display: none !important;
}

.video-modal__media.is-vertical .video-player--modal,
.video-modal__media.is-vertical video.is-active {
  object-fit: contain;
  object-position: center center;
}

body.video-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.video-modal__toolbar.is-hidden {
  display: none;
}

.video-modal__fallback {
  margin: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  text-align: center;
  background: #1a1a1a;
  border-top: 1px solid #333;
  font-size: 0.88rem;
}

.video-modal__fallback a {
  color: #7ec8ff;
  font-weight: 700;
}

.video-modal__toolbar {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.video-modal__toolbar button {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #444;
  background: #2b2b2b;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.video-modal__toolbar button:hover {
  background: var(--oopbuy-orange);
  border-color: var(--oopbuy-orange-dark);
  color: #131921;
}

.video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ----- Product rails (homepage) ----- */
.rail-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.rail-title {
  font-size: 1.35rem;
  margin: 0;
}

.rail-page-label {
  font-size: 0.95rem;
  color: #565959;
}

.rail-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/** Overlay arrows — Amazon-style circles over product strip, full-width tracks */
.rail-body--overlay {
  display: block;
  position: relative;
  padding: 0;
}

.rail-body--amazon-arrows .rail-dual-stack,
.rail-body--amazon-arrows > .rail-track {
  width: 100%;
}

.rail-dual-stack,
.rail-quad-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rail-body--amazon-arrows .rail-quad-stack {
  width: 100%;
}

#rail-history-1 .rail-track {
  min-height: 126px;
}

.rail-prev,
.rail-next {
  flex: 0 0 40px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 1.25rem;
}

.rail-body--overlay.rail-body--amazon-arrows .rail-prev,
.rail-body--overlay.rail-body--amazon-arrows .rail-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d5d9d9;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #0f1111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.rail-body--overlay.rail-body--amazon-arrows .rail-prev:hover,
.rail-body--overlay.rail-body--amazon-arrows .rail-next:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.rail-body--overlay.rail-body--amazon-arrows .rail-prev {
  left: 6px;
}

.rail-body--overlay.rail-body--amazon-arrows .rail-next {
  right: 6px;
}

.rail-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  min-height: 148px;
}

.rail-section--dual .rail-track {
  min-height: 138px;
}

@media (max-width: 1024px) {
  .rail-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .rail-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rail-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rail-card:hover {
  text-decoration: none;
}

.rail-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.rail-card__name {
  font-size: 0.76rem;
  line-height: 1.2;
  color: #0f1111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card__price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b12704;
}

/* ----- Category tiles (homepage) ----- */
.home-category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-cat-tile {
  flex: 0 1 132px;
  max-width: 155px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.home-cat-tile:hover {
  text-decoration: none;
}

.home-cat-tile__name {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Brand rail */
#brand-rail .rail-track {
  grid-template-columns: repeat(7, 1fr);
}

.brand-rail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.brand-rail-card span {
  font-size: inherit;
  font-weight: inherit;
  color: #131921;
}

.brand-rail-card img {
  border-radius: 8px;
}

/* ----- Products page layout ----- */
.products-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.products-sidebar {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  position: sticky;
  top: calc(var(--header-offset) + 8px);
  max-height: calc(100vh - var(--header-offset) - 16px);
  overflow-y: auto;
}

.filter-block + .filter-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.filter-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: #f0f2f2;
  border-radius: 16px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f1111;
  -webkit-font-smoothing: auto;
  cursor: pointer;
}

.filter-chip:hover {
  transform: none;
}

.filter-chip.is-active {
  background: var(--amazon-nav);
  color: #fff;
  border-color: var(--amazon-nav);
}

.products-main {
  flex: 1;
  min-width: 0;
}

.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(115deg, #ffc2d4 0%, #ffb3c9 35%, #ff9ebb 70%, #ffc9dc 100%);
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(214, 63, 121, 0.35);
  box-shadow: 0 4px 14px rgba(214, 63, 121, 0.12);
}

.promo-banner p {
  margin: 0;
  font-weight: 700;
  flex: 1;
  color: #5c1538;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.btn-register {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #d81f5a, #9c1450);
  color: #fff;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(156, 20, 80, 0.35);
}

.btn-register:hover {
  filter: brightness(1.06);
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.products-toolbar input {
  flex: 1 1 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Product grid — 商品图源文件 300×300 px，格内 1:1 缩放显示 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-layout {
    flex-direction: column;
  }

  .products-sidebar {
    flex: none;
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media img {
  width: 100%;
  /** 源图 300×300 px；首页 7 列/列表 5 列/手机 2 列均为此比例 */
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card__body {
  padding: 0.5rem 0.65rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  font-weight: 400;
  color: #0f1111;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: #b12704;
  margin: 0 0 0.5rem;
}

.btn--buy {
  display: inline-block;
  text-align: center;
  padding: 0.35rem 0.5rem;
  background: var(--accent);
  color: #0f1111 !important;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: auto;
}

.btn--buy:hover {
  background: var(--accent-hover);
}

/** Compact promotional cards (Best Deals page) — square image; price + CTA one row */
.product-card--deal .product-card__media img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.product-card--deal .product-card__body {
  padding: 0.4rem 0.5rem 0.55rem;
}

.product-card--deal .product-card__title {
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.product-card__deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card--deal .product-card__price {
  font-size: 0.82rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.product-card--deal .btn--buy {
  padding: 0.28rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ff5252 0%, #e53935 50%, #c62828 100%);
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(198, 40, 40, 0.42);
}

.product-card--deal .btn--buy:hover {
  filter: brightness(1.08);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.pagination__btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pagination__num {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.pagination__num.is-current {
  background: var(--amazon-nav);
  color: #fff;
  border-color: var(--amazon-nav);
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  padding: 0 0.2rem;
  color: #565959;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

/* ----- Best deals page ----- */
.page-deals {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(255, 77, 136, 0.55), transparent 55%),
    radial-gradient(ellipse 75% 50% at 8% 18%, rgba(255, 171, 64, 0.45), transparent 50%),
    radial-gradient(ellipse 75% 50% at 92% 15%, rgba(100, 181, 246, 0.38), transparent 48%),
    radial-gradient(ellipse 55% 40% at 50% 85%, rgba(255, 213, 79, 0.2), transparent 45%),
    linear-gradient(185deg, #fff8fb 0%, #ffeef8 18%, #fff3e6 42%, #f0faf8 68%, #eaeded 100%);
}

.deals-bg-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deals-bg-icons i {
  position: absolute;
  font-size: clamp(3.25rem, 14vw, 8.5rem);
  opacity: 0.14;
  filter: blur(8px);
  color: #e91e63;
}

.deals-bg-icons i:nth-child(1) {
  top: 6%;
  left: 4%;
  transform: rotate(-14deg);
  color: #ff6d00;
}

.deals-bg-icons i:nth-child(2) {
  top: 12%;
  right: 6%;
  transform: rotate(10deg);
  color: #7c4dff;
}

.deals-bg-icons i:nth-child(3) {
  top: 42%;
  left: 2%;
  transform: rotate(6deg);
  color: #00bcd4;
}

.deals-bg-icons i:nth-child(4) {
  top: 48%;
  right: 4%;
  transform: rotate(-8deg);
  color: #ff4081;
}

.deals-bg-icons i:nth-child(5) {
  bottom: 18%;
  left: 14%;
  transform: rotate(-18deg);
  color: #ff9800;
}

.deals-bg-icons i:nth-child(6) {
  bottom: 12%;
  right: 12%;
  transform: rotate(12deg);
  color: #ab47bc;
}

.deals-bg-icons i:nth-child(7) {
  top: 28%;
  left: 38%;
  transform: rotate(-6deg) scale(1.2);
  color: #ef5350;
  opacity: 0.1;
}

.page-deals > .deals-hero,
.page-deals > .deals-countdown-wrap,
.page-deals > .deals-grid {
  position: relative;
  z-index: 1;
}

.deals-hero {
  text-align: center;
  padding: 2rem 1rem 1.35rem;
  position: relative;
}

.deals-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1rem);
  flex-wrap: wrap;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.deals-hero__title-text {
  font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #ff1744 0%, #ff6d00 38%, #ffa000 72%, #ff4081 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(255, 61, 113, 0.25));
  animation: dealsHeroPulse 2.4s ease-in-out infinite alternate;
}

.deals-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.65rem, 5vw, 2.85rem);
  color: #ff6d00;
  filter: drop-shadow(0 3px 12px rgba(255, 109, 0, 0.45));
}

.deals-hero__icon i {
  display: block;
}

@keyframes dealsHeroPulse {
  from {
    filter: drop-shadow(0 2px 10px rgba(255, 61, 113, 0.2));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 5px 22px rgba(255, 109, 0, 0.35));
    transform: scale(1.015);
  }
}

.deals-countdown-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.deals-countdown {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #c40000;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.deals-grid {
  /** Best Deals 商品图源 300×300 px；4/3/2 列响应式网格 */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Deadlinks ----- */
.deadlinks-page .form-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--amazon-nav);
  color: #fff;
}

.form-message {
  margin-top: 0.75rem;
  font-weight: 600;
}

.dead-sub {
  font-size: 0.95rem;
  color: #565959;
  margin-top: 0.25rem;
}

/* ----- Back to top (Amazon-style strip) ----- */
.back-to-top-strip {
  background: #37475a;
  text-align: center;
  padding: 0.85rem;
  margin-top: 2rem;
}

.back-to-top-strip a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.back-to-top-strip a:hover {
  text-decoration: underline;
}

/* ----- Disclaimer ----- */
.disclaimer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.disclaimer p {
  line-height: 1.55;
  color: #444;
  font-size: 0.9rem;
}

/* ----- Footer share strip ----- */
.footer-share {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-share__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.35rem;
}

.footer-share__icons a {
  color: var(--amazon-nav);
}

.footer-share__icons a[data-share="facebook"] {
  color: #1877f2;
}

.footer-share__icons a[data-share="twitter"] {
  color: #000000;
}

.footer-share__icons a[data-share="whatsapp"] {
  color: #25d366;
}

.footer-share__icons a[data-share="reddit"] {
  color: #ff4500;
}

.footer-share__icons a[data-share="telegram"] {
  color: #26a5e4;
}

.footer-share__icons a[data-share="discord"] {
  color: #5865f2;
}

.footer-share__icons a[data-share="linkedin"] {
  color: #0a66c2;
}

.footer-share__icons a[data-share="pinterest"] {
  color: #bd081c;
}

.footer-share__icons a[data-share="tiktok"] {
  color: #000000;
}

.footer-share__icons a[data-share="line"] {
  color: #00b900;
}

/* ----- Floating actions ----- */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amazon-nav);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 1.15rem;
  text-decoration: none;
}

.fab:hover {
  background: #131921;
}

/* （手机端样式见文件末尾「手机端全局」区块） */

/* ----- 首页商品网格模块 — 商品图源 300×300 px（谷歌表格 image 列） ----- */
.home-grid-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.home-product-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .home-product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-product-grid--cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/** 首页模块容器不随鼠标放大，仅单张商品卡可轻微悬浮 */
.home-grid-section.interactive-scale,
.home-grid-section.interactive-scale:hover {
  transform: none !important;
}

.home-product-grid .product-card.interactive-scale:hover {
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.12);
}

.product-grid .product-card.interactive-scale:hover {
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.12);
}

.product-card--compact .product-card__body {
  padding: 0.35rem 0.45rem 0.5rem;
}

.product-card--compact .product-card__title {
  font-size: 0.72rem;
  color: #0f1111;
}

.product-card--compact .product-card__price {
  font-size: 0.82rem;
}

.product-card--compact .btn--buy {
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
}

.product-card--see-more {
  text-decoration: none !important;
  min-height: 100%;
  border: 1px solid #c8e6f5;
  overflow: hidden;
}

.product-card--see-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 113, 133, 0.18);
  border-color: var(--link-blue);
  text-decoration: none !important;
}

.product-card__see-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 120px;
  padding: 0.85rem 0.65rem;
  background: linear-gradient(160deg, #ffffff 0%, #f0f9fc 42%, #e3f4fa 100%);
  flex: 1;
  text-align: center;
}

.product-card__see-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--link-blue);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 113, 133, 0.35);
}

.product-card--see-more:hover .product-card__see-more-icon {
  background: #00586b;
}

.product-card__see-more-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.3;
}

.product-card__see-more-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--link-blue);
}

.filter-block h2 {
  color: #0f1111;
  font-weight: 700;
}

/* 电脑端 products 侧栏：分类/品牌芯片换行展示（与手机横滑区分） */
@media (min-width: 769px) {
  .products-sidebar .filter-chips {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.35rem;
  }

  .products-sidebar .filter-chip {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}

/* =============================================================================
 * 手机端全局（Amazon 式：白底、紧凑边距、顶栏横滑、商品 2 列）
 * ============================================================================= */
@media (max-width: 768px) {
  :root {
    --header-offset: 104px;
    --page-gutter: 0.45rem;
    --hero-slide-gap: 8px;
    --hero-slide-peek: 44px;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
    background: #ffffff;
  }

  body {
    background: #ffffff;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  .header-upper,
  .header-lower {
    max-width: 100%;
    box-sizing: border-box;
  }

  body[data-page="home"] .home-hero-stack {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body[data-page="home"] {
    --page-gutter: 0.45rem;
    --hero-slide-gap: 8px;
    --hero-slide-peek: 44px;
    background: #ffffff;
    padding-top: calc(var(--header-offset) - 2px);
  }

  body[data-page="home"] .home-hero-stack__align {
    width: 100%;
    max-width: 100%;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
  }

  body[data-page="home"] .home-hero-stack {
    margin-top: -3px;
  }

  body[data-page="home"] .hero-carousel-wrap {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  /**
   * 手机端轮播 — 左缘对齐视频区；宽较内容区再窄 0.8cm
   * 显示框：高 = 宽×5/6 + 3.2cm → 上传 mobileSrc 建议 620×754 px，object-fit:cover
   */
  body[data-page="home"] .hero-carousel {
    --amazon-slide-width: calc(
      100vw - 2 * var(--page-gutter) - var(--hero-slide-peek) - 0.8cm
    );
    --amazon-slide-height: calc(var(--amazon-slide-width) * 5 / 6 + 3.2cm);
    height: auto;
    min-height: 0;
    max-height: none;
    margin-right: calc(-1 * var(--page-gutter));
    width: calc(100% + var(--page-gutter));
    box-shadow: none;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.08rem 0 0.04rem;
  }

  body[data-page="home"] .hero-carousel::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .hero-carousel-track {
    display: flex;
    gap: var(--hero-slide-gap);
    padding: 0;
    padding-right: calc(var(--hero-slide-peek) + var(--page-gutter));
    height: auto;
    align-items: stretch;
    width: max-content;
    transition: none;
  }

  body[data-page="home"] .hero-slide {
    flex: 0 0 var(--amazon-slide-width);
    width: var(--amazon-slide-width);
    max-width: var(--amazon-slide-width);
    height: var(--amazon-slide-height);
    aspect-ratio: unset;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 17, 17, 0.12);
    touch-action: pan-x;
  }

  body[data-page="home"] .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  body[data-page="home"] .hero-carousel__prev,
  body[data-page="home"] .hero-carousel__next {
    display: none !important;
  }

  /** 手机端隐藏轮播下四宫格（桌面端保留） */
  body[data-page="home"] .home-hero-stack__tiles-wrap {
    display: none !important;
  }

  .home-hero-stack__tiles-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.45rem 0.55rem;
  }

  .quick-links-row--hero-amazon {
    row-gap: calc(0.38rem + 0.2mm) !important;
    column-gap: 0.4rem !important;
  }

  .quick-links-row,
  .quick-links-row--hero-amazon,
  .quick-links-row--spreadsheet-band.quick-links-row--hero-amazon-inner,
  .quick-links-row--spreadsheet-band:not(.quick-links-row--hero-amazon-inner) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 0.18rem !important;
    column-gap: 0.4rem !important;
    margin-top: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .quick-link-card--amazon-tile {
    min-width: 0;
    padding: 0.1rem 0.28rem 0.08rem;
    height: 100%;
  }

  .quick-link-card__module-title {
    font-size: 1.14rem;
    line-height: 1.12;
    min-height: 0;
    margin-bottom: 0.1rem;
  }

  .quick-link-card__visual {
    margin-bottom: 0.1rem;
  }

  .quick-link-card__subline {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .spreadsheet-band__heading {
    margin: 0.28rem 0.45rem 0.08rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .quick-links-row--spreadsheet-band.quick-links-row--hero-amazon-inner {
    margin-top: 0.1rem !important;
    margin-bottom: 0.18rem !important;
    padding: 0.12rem 0.45rem 0.15rem !important;
    box-sizing: border-box;
  }

  .hero-carousel__prev,
  .hero-carousel__next {
    width: auto;
    height: auto;
    padding: 0.35rem;
    font-size: 1.1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 0;
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  .hero-carousel__prev:hover,
  .hero-carousel__next:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-50%);
  }

  .quick-links-row--spreadsheet-band.quick-links-row--hero-amazon-inner {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    box-sizing: border-box;
  }

  .video-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
  }

  /* 手机端 products：分类/品牌横滑 */
  .products-sidebar .filter-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.4rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-sidebar .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .products-sidebar .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-main {
    max-width: 100%;
    padding: 0.5rem var(--page-gutter) 1rem;
    background: #ffffff;
  }

  body[data-page="home"] .site-main {
    padding-top: 0.06rem;
  }

  .home-hero-stack__tiles-wrap {
    padding: 0.45rem 0.45rem 0.55rem;
  }

  #btn-favorite-site {
    display: none !important;
  }

  .header-upper {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.35rem 0.35rem max(0.45rem, env(safe-area-inset-left, 0px));
  }

  .header-logo {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
    padding-right: 0.1rem;
  }

  .header-logo.interactive-scale:hover {
    transform: none;
  }

  .header-logo img {
    /** 132×40 源图：高 32px 时宽约 106px，完整显示不裁切 */
    max-height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: left center;
  }

  .header-logo__badge {
    display: flex;
    align-items: center;
    max-width: none;
    overflow: visible;
  }

  .header-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-search form {
    height: 36px;
    overflow: hidden;
    border-radius: 4px;
    min-width: 0;
  }

  .header-search input {
    font-size: 0.82rem;
    padding: 0 0.4rem;
    min-width: 0;
  }

  .header-search button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .header-search button i {
    line-height: 1;
    display: block;
  }

  .header-tools {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.22rem;
  }

  .lang-select {
    max-width: 40px;
    min-width: 36px;
    font-size: 0.68rem;
    padding: 0 0.12rem;
    height: 36px;
    line-height: 1;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
  }

  .icon-btn--share {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .header-lower {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem;
  }

  .header-lower::-webkit-scrollbar {
    display: none;
  }

  .nav-all-wrap,
  .header-lower > .nav-link {
    flex: 0 0 auto;
  }

  .nav-all-btn,
  .header-lower .nav-link {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.35rem 0.15rem;
  }

  .home-product-grid,
  .home-product-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem;
  }

  .quick-links-row--spreadsheet-band + .home-grid-section {
    margin-top: 0.08rem;
  }

  .home-grid-section {
    padding: 0.55rem 0.4rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 4px;
  }

  .rail-title {
    font-size: 1rem;
    line-height: 1.25;
  }

  .quick-links-row {
    row-gap: 0.18rem;
    column-gap: 0.4rem;
  }

  .quick-links-row--hero-amazon {
    row-gap: calc(0.38rem + 0.2mm) !important;
  }

  .video-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0.15rem 0 0.35rem;
    align-items: stretch;
  }

  .video-box__media {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
  }

  .video-box video,
  .video-box__thumb,
  .video-box__iframe {
    object-fit: cover;
  }

  .video-modal {
    padding: 0.5rem;
  }

  .video-modal__inner {
    max-width: 100%;
  }

  .video-modal__inner.is-vertical {
    max-width: min(calc((100vh - 4rem) * 9 / 16 + 2rem), 96vw);
  }

  .video-modal__media.is-vertical {
    width: min(calc((100vh - 4rem) * 9 / 16), 92vw, 360px);
    max-height: calc(100vh - 4rem);
  }

  .products-layout {
    flex-direction: column;
    gap: 0.5rem;
  }

  .products-sidebar {
    flex: none;
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 0.35rem;
    background: #ffffff;
    border: none;
    border-radius: 0;
  }

  .filter-block {
    margin-bottom: 0.5rem;
  }

  .filter-block + .filter-block {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e7e7e7;
  }

  .filter-block h2 {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem;
  }

  .product-card__title {
    font-size: 0.76rem;
  }

  .product-card__see-more-inner {
    min-height: 100px;
    padding: 0.65rem 0.5rem;
  }

  .product-card__see-more-text {
    font-size: 0.78rem;
  }

  /** 分页条避开右下角悬浮按钮（4×40px + 间距，约 192px 高） */
  body[data-page="products"] .site-main,
  body[data-page="best-sellers"] .site-main,
  body[data-page="top-picks"] .site-main {
    padding-bottom: 12rem;
  }

  .pagination {
    justify-content: center;
    gap: 0.35rem;
    margin: 1.25rem 0 0.75rem;
    padding: 0 3.75rem 0 0.35rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pagination__btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
  }

  .pagination__nums {
    gap: 0.2rem;
    flex-wrap: nowrap;
  }

  .pagination__num {
    min-width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  .pagination__ellipsis {
    min-width: 22px;
    height: 32px;
    font-size: 0.9rem;
  }

  .fab-stack {
    right: 10px;
    bottom: 14px;
    gap: 6px;
  }

  .fab {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .disclaimer,
  .footer-share,
  .back-to-top-strip {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .promo-banner {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
  }

  .promo-banner p {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-offset: 100px;
  }
}
