/* KEEB.CRAFT — public view page styles
   Single CSS source, no build step, mobile-first responsive.
*/

/* ============== Reset & base ============== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #0A0A0A; color: #FAFAFA; scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: #00FF94; color: #0A0A0A; }

/* ============== Layout primitives ============== */
/* 搜索框边框流动光效的角度变量(需 @property 注册才能动画化) */
@property --search-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.top-bar { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #1f1f1f; padding: 16px 24px; display: flex; align-items: center; gap: 32px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; background: #00FF94; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #0A0A0A; font-weight: 700; font-size: 18px; }
.nav { display: flex; gap: 8px; flex: 1; }
.nav-item { padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; color: #a0a0a0; transition: all 0.2s; user-select: none; }
.nav-item:hover { color: #FAFAFA; background: #1a1a1a; }
.nav-item.active { color: #0A0A0A; background: #00FF94; font-weight: 600; }
.search-wrap {
  position: relative;
  width: 240px;
  border-radius: 8px;
  padding: 2px;
  border: 2px solid transparent;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    conic-gradient(
      from var(--search-border-angle),
      transparent 0deg,
      #00FF94 40deg,
      rgba(0, 255, 148, 0.35) 90deg,
      transparent 140deg,
      transparent 360deg
    ) border-box;
  animation: search-border-flow 2.8s linear infinite;
}
@keyframes search-border-flow {
  to { --search-border-angle: 360deg; }
}
.search-wrap input { width: 100%; padding: 8px 12px 8px 36px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; color: #FAFAFA; font-size: 13px; font-family: inherit; outline: none; transition: all 0.2s; }
.search-wrap input:focus { border-color: #00FF94; background: #0f0f0f; }
.search-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #606060; pointer-events: none; }
.search-result-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #00FF94; font-family: 'JetBrains Mono', monospace; }

/* ============== Error banner ============== */
#error-banner { padding: 12px 24px; background: #2a0a0a; border-bottom: 1px solid #FF4D4D40; color: #FF4D4D; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ============== Hero ============== */
.hero { padding: 40px 24px 24px; text-align: center; max-width: 1280px; margin: 0 auto; }
.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: #00FF94; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin: 0 0 14px; }
.hero h1 .accent { color: #00FF94; font-style: italic; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.hero-hl { color: #00FF94; }
.hero-en { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.24em; color: #707070; text-transform: uppercase; margin: 0 0 14px; }
.hero-sub { font-size: clamp(15px, 1.5vw, 18px); color: #a0a0a0; max-width: 560px; margin: 0 auto; line-height: 1.5; }
.hero-meta { display: flex; justify-content: center; gap: 32px; margin-top: 24px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #707070; }
.hero-meta span strong { color: #FAFAFA; font-weight: 600; }
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 32px;
  background: none;
  border: 1px solid #00FF94;
  border-radius: 8px;
  color: #00FF94;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-cta:hover { background: #00FF94; color: #0A0A0A; box-shadow: 0 0 24px rgba(0, 255, 148, 0.35); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-action {
  background: none;
  border: 1px solid #3a3a3a;
  color: #d0d0d0;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.top-action:hover { border-color: #FAFAFA; color: #FAFAFA; }

/* ============== 联系方式弹窗(微信号 + 二维码) ============== */
.contact-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.contact-panel { position: relative; background: #141414; border: 1px solid #2a2a2a; border-radius: 12px; padding: 36px 32px; max-width: 440px; width: 100%; text-align: center; }
.contact-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: none; border: 1px solid #2a2a2a; border-radius: 50%; color: #a0a0a0; font-size: 16px; cursor: pointer; }
.contact-close:hover { color: #FAFAFA; border-color: #505050; }
.contact-panel h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.01em; }
.contact-tip { font-size: 13px; color: #909090; margin: 0 0 22px; line-height: 1.5; }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.contact-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #909090; letter-spacing: 0.1em; }
.contact-wechat { font-family: 'JetBrains Mono', monospace; font-size: 19px; color: #00FF94; font-weight: 600; }
.contact-copy { background: none; border: 1px solid #00FF94; color: #00FF94; border-radius: 6px; padding: 5px 14px; font-size: 13px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.contact-copy:hover { background: #00FF94; color: #0A0A0A; }
.contact-qr { width: 240px; height: 240px; object-fit: contain; border-radius: 8px; background: #fff; }
.guide-spec-link {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 10px 0;
  background: none;
  border: 1px dashed #3a3a3a;
  border-radius: 8px;
  color: #00FF94;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.guide-spec-link:hover { border-color: #00FF94; background: #00FF9410; }
.guide-panel { max-width: 520px; text-align: left; }
.guide-panel h3 { text-align: center; }
.guide-list { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: guide; }
.guide-list li { border-bottom: 1px solid #1f1f1f; padding: 10px 0; }
.guide-list li:last-child { border-bottom: none; }
.guide-list strong { display: block; font-size: 16px; color: #FAFAFA; margin-bottom: 5px; }
.guide-list p { margin: 0; font-size: 13px; color: #c0c0c0; line-height: 1.65; }

/* ============== Marquee ============== */
.marquee-section { padding: 32px 0; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.marquee-section + .marquee-section { border-top: none; }
.marquee-row { display: flex; align-items: stretch; gap: 24px; padding: 0 24px; max-width: 100vw; overflow: hidden; }
.marquee-label { flex-shrink: 0; width: 160px; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; position: relative; z-index: 2; }
.marquee-label-main { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: #FAFAFA; }
.marquee-label-main .accent { color: var(--row-accent, #00FF94); font-style: italic; }
.marquee-label-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #707070; margin-top: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.marquee-label-desc { font-size: 12px; color: #808080; margin-top: 8px; line-height: 1.4; max-width: 140px; }
.marquee-label-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--row-accent, #00FF94); margin-top: 12px; padding-top: 12px; border-top: 1px solid #2a2a2a; }
.marquee-viewall {
  margin-top: 12px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--row-accent, #00FF94);
  color: var(--row-accent, #00FF94);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.marquee-viewall:hover { background: var(--row-accent, #00FF94); color: #0A0A0A; }

/* 左侧品类指示滑块(绿色滑块跟随当前品类) */
#category-rail {
  position: absolute; /* 随页面滚动,top 为文档坐标 */
  left: 196px; /* 标题栏(24+160)与跑马灯轨道(24)之间的空隙 */
  width: 3px;
  display: none;
  pointer-events: none;
  z-index: 60;
}
.rail-track { position: absolute; left: 1px; top: 0; bottom: 0; width: 1px; background: #2a2a2a; }
.rail-thumb {
  position: absolute;
  left: 0;
  width: 3px;
  height: 48px;
  border-radius: 2px;
  background: #00FF94;
  box-shadow: 0 0 12px rgba(0, 255, 148, 0.7);
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-track-wrap { flex: 1; overflow: hidden; position: relative; cursor: grab; user-select: none; }
.marquee-track-wrap:active { cursor: grabbing; }
.marquee-track { display: flex; gap: 16px; padding: 8px 0; width: max-content; will-change: transform; }
.marquee-track.left { animation: scroll-left 40s linear infinite; }
.marquee-track.right { animation: scroll-right 40s linear infinite; }
.marquee-track.paused { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@keyframes scroll-right { from { transform: translateX(calc(-50% - 8px)); } to { transform: translateX(0); } }

/* ============== Product card ============== */
.product-card { width: 480px; background: #141414; border: 1px solid #1f1f1f; border-radius: 12px; overflow: hidden; flex-shrink: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-4px); border-color: var(--row-accent, #00FF94); box-shadow: 0 0 0 1px var(--row-accent, #00FF94), 0 12px 32px rgba(0, 255, 148, 0.1); }
.product-card.dimmed { opacity: 0.18; filter: grayscale(0.8); }
.product-card.highlight { border-color: var(--row-accent, #00FF94); box-shadow: 0 0 0 1px var(--row-accent, #00FF94), 0 0 24px var(--row-accent, #00FF94); }
.product-img { width: 100%; height: 280px; background: #0f0f0f; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img svg { width: 90%; height: 80%; }
.product-img-placeholder { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #404040; letter-spacing: 0.1em; text-transform: uppercase; }
.product-info { padding: 14px 16px 16px; }
.product-name { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.product-spec { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #707070; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; color: var(--row-accent, #00FF94); }
.product-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 6px; border: 1px solid #2a2a2a; border-radius: 3px; color: #707070; letter-spacing: 0.05em; }
.product-card-overlay { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 6px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.product-card:hover .product-card-overlay { opacity: 1; }

/* ============== 网格视图 (系列全部 / 搜索结果) ============== */
.grid-header { max-width: 1280px; margin: 0 auto; padding: 96px 24px 24px; display: flex; align-items: center; gap: 16px; }
.grid-back {
  background: #1a1a1a; border: 1px solid #2a2a2a; color: #FAFAFA; border-radius: 8px;
  padding: 10px 16px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all 0.2s;
}
.grid-back:hover { border-color: #00FF94; color: #00FF94; }
.grid-header h2 { font-size: clamp(24px, 3vw, 40px); margin: 0; letter-spacing: -0.02em; }
.grid-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #707070; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.grid-count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #00FF94; }
.grid-list {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.grid-list .product-card { width: 100%; }
.grid-list .product-img { height: 180px; }
.grid-more {
  display: block; margin: 0 auto 64px; background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #FAFAFA; padding: 12px 28px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; transition: all 0.2s;
}
.grid-more:hover { border-color: #00FF94; color: #00FF94; }

/* ============== 完整定制规范页 ============== */
.spec-page { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.spec-section { margin-bottom: 36px; }
.spec-section h3 { font-size: 18px; color: #00FF94; margin: 0 0 14px; letter-spacing: -0.01em; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  font-size: 14px; color: #c0c0c0; line-height: 1.7;
  padding: 4px 0 4px 18px; position: relative;
}
.spec-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.9em;
  width: 5px; height: 5px; background: #00FF94; border-radius: 1px;
}
.spec-list li.spec-sub { padding-left: 0; }
.spec-list li.spec-sub::before { display: none; }
.spec-list li.spec-sub strong { color: #FAFAFA; font-size: 14px; }

/* ============== Lightbox ============== */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox-content { max-width: 90vw; max-height: 90vh; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 8px; box-shadow: 0 0 60px rgba(0, 255, 148, 0.2); }
.lightbox-img-fallback { background: #0f0f0f; display: flex; align-items: center; justify-content: center; width: min(92vw, 1200px); height: min(78vh, 640px); }
.lightbox-img-fallback svg { width: 80%; height: 80%; }
.lightbox-info { text-align: center; }
.lightbox-info h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em; }
.lightbox-desc { font-size: 14px; color: #b0b0b0; max-width: 520px; line-height: 1.5; margin: 0 0 10px; }
.lightbox-info p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #808080; margin: 0; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #FAFAFA; font-size: 18px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #FAFAFA; font-size: 20px; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ============== Scroll hint ============== */
.scroll-hint { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, transparent, #0A0A0A); pointer-events: none; z-index: 1; }
.scroll-hint-text { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #505050; letter-spacing: 0.1em; text-transform: uppercase; z-index: 2; pointer-events: none; }

/* ============== 鼠标流光拖尾 ============== */
.cursor-trail { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 900; }

/* ============== 像素星空背景 ============== */
.pixel-stars { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ============== 开场动画 (variant 风格: 线框键盘自绘 + 按键扫描 + ZZJMOD 闪现) ============== */
#intro-layer {
  --intro-bg: #050208;
  --intro-green: #39ff14;
  --intro-pink: #ff007f;
  --intro-cyan: #00f3ff;
  position: fixed;
  inset: 0;
  z-index: 899; /* 高于页面,低于鼠标拖尾(900)与灯箱(1000) */
  background: var(--intro-bg);
  color: var(--intro-green);
  font-family: 'JetBrains Mono', monospace;
  display: none; /* 由 js/intro.js 加 .active 显示 */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#intro-layer.active { display: flex; }
#intro-layer.fade-out { opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
#intro-layer.hidden { display: none !important; }

#intro-layer .intro-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}
#intro-layer .intro-content.fade-out { opacity: 0; }

.intro-meta {
  position: absolute;
  font-size: 8px;
  color: var(--intro-cyan);
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.6;
}
.intro-meta.top-l { top: 20px; left: 20px; color: var(--intro-green); }
.intro-meta.top-r { top: 20px; right: 20px; text-align: right; }
.intro-meta.bot-l { bottom: 20px; left: 20px; }
.intro-meta.bot-r { bottom: 20px; right: 20px; text-align: right; }
.intro-meta .scan { color: var(--intro-pink); }

.intro-canvas {
  width: min(90vw, 500px);
  height: auto;
  transform: rotateX(20deg) rotateY(-5deg) rotateZ(2deg);
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.6));
  overflow: visible;
}

#intro-layer .wire {
  fill: none;
  stroke: var(--intro-green);
  stroke-width: 1px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.5s ease-out;
}
#intro-layer .wire-depth { stroke: var(--intro-cyan); opacity: 0.3; }
#intro-layer .wire-accent { stroke: var(--intro-pink); stroke-dasharray: 200; stroke-dashoffset: 200; }
#intro-layer .key-cap {
  fill: none;
  stroke: var(--intro-green);
  stroke-width: 1px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#intro-layer.animating .wire { stroke-dashoffset: 0; }
#intro-layer.animating .key-cap { opacity: 1; }

@keyframes intro-flicker {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}
.intro-meta.flicker { animation: intro-flicker 0.1s infinite alternate; }

.brand-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 14vw, 140px);
  letter-spacing: 0.04em;
  color: #FAFAFA;
  text-shadow: 0 0 24px rgba(0, 255, 148, 0.55), 0 0 80px rgba(0, 255, 148, 0.22);
  pointer-events: none;
}
.brand-flash.show { opacity: 1; }

/* 开场期间隐藏图库,结束后淡入 (由 js/intro.js 切换 class) */
body.intro-active #app { opacity: 0; }
#app { transition: opacity 0.8s ease; }

@media (prefers-reduced-motion: reduce) {
  #intro-layer { display: none !important; }
  body.intro-active #app { opacity: 1 !important; }
  .search-wrap { animation: none; }
  .marquee-track { animation: none !important; }
  .rail-thumb { transition: none; }
}

/* ============== Footer ============== */
.footer { padding: 64px 24px 32px; text-align: center; border-top: 1px solid #1a1a1a; margin-top: 64px; }
.footer-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #505050; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; }
.footer h2 .accent { color: #00FF94; font-style: italic; }
.footer-sub { font-size: 14px; color: #707070; max-width: 480px; margin: 0 auto 32px; line-height: 1.5; }
.footer-credit { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #404040; margin-top: 32px; letter-spacing: 0.05em; }

/* ============== Mobile ============== */
@media (max-width: 768px) {
  .top-bar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; padding: 6px 12px; font-size: 13px; }
  .search-wrap { width: 100%; order: 4; }
  .top-actions { order: 5; width: 100%; justify-content: flex-end; }
  .hero { padding: 32px 16px 20px; }
  .marquee-row { flex-direction: column; gap: 12px; padding: 0 16px; }
  .marquee-label { width: 100%; flex-direction: row; align-items: baseline; gap: 12px; padding: 0; flex-wrap: wrap; }
  .marquee-label-main { font-size: 32px; }
  .marquee-label-desc { max-width: none; flex: 1; min-width: 200px; }
  .marquee-label-count { border-top: none; padding-top: 0; margin-top: 0; }
  .marquee-track-wrap { width: 100%; }
  #category-rail { display: none !important; } /* 手机端列布局不适合侧边滑块 */
  .product-card { width: 400px; }
  .product-img { height: 220px; }
  .grid-header { padding: 72px 16px 16px; flex-wrap: wrap; }
  .grid-count { margin-left: 0; }
  .grid-list { padding: 0 16px 24px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .grid-list .product-img { height: 120px; }
  .grid-list .product-info { padding: 10px 12px 12px; }
  .grid-list .product-name { font-size: 14px; }
  .spec-page { padding: 0 16px 56px; }
  .spec-section h3 { font-size: 16px; }
  .spec-list li { font-size: 13px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 16px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}
