/* ==========================================================================
   GRIPPRO — site.css
   Apple-storefront visual language: tight typography, generous whitespace,
   alternating light/dark bands, frosted navigation, scroll-triggered reveals.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-soft: #161617;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-invert: #f5f5f7;
  --text-invert-dim: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --line-dark: rgba(255, 255, 255, 0.14);
  --nav-h: 48px;
  --r-card: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 1120px;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Menlo", monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1320px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  /* 品牌名过长（如英文公司名）时截断省号，不能把右侧三条杠挤出屏幕 */
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo:hover { text-decoration: none; opacity: 0.72; }

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

.nav-links a {
  font-size: 13px;
  color: var(--text);
  opacity: 0.82;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.is-active { opacity: 1; font-weight: 500; }

.nav-lang {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 980px;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.nav-lang:hover { background: rgba(0, 0, 0, 0.05); }

.nav-burger {
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-plain {
  background: transparent;
  color: var(--accent);
  padding: 11px 4px;
}
.btn-plain:hover { background: transparent; text-decoration: underline; }

.btn-dark {
  background: #1d1d1f;
  color: #fff;
}
.btn-dark:hover { background: #333336; }

.btn-sm { font-size: 13px; padding: 8px 17px; }
.btn-ghost.is-on { background: var(--accent); color: #fff; }

/* 产品页 CTA 行：咨询 + AR 试戴 */
.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ar svg { flex: 0 0 auto; }
.btn-danger { background: #fff; color: #e30000; border: 1px solid #e30000; }
.btn-danger:hover { background: #e30000; color: #fff; }

.cat-filter { margin-bottom: 10px; }

.cat-bar { display: flex; flex-direction: column; gap: 14px; }

.cat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 980px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}
.chip:hover { border-color: var(--text-tertiary); transform: translateY(-1px); }
.chip.is-on {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.sub-row {
  padding-top: 2px;
}
.sub-row[hidden] { display: none; }
.chip-sub {
  font-size: 13px;
  padding: 7px 15px;
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.chip-sub:hover { border-color: var(--line); background: #fff; transform: none; }
.chip-sub.is-on {
  background: rgba(0, 113, 227, 0.09);
  border-color: rgba(0, 113, 227, 0.35);
  color: var(--accent);
}

.cat-count {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 2px 0 26px;
}

.page-head { padding: clamp(46px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); }

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 10px;
}

.h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.021em;
  margin: 0 0 22px;
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.019em;
  margin: 0 0 18px;
}

.h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.42rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 46ch;
}

/* 公司简介正文：支持多段，字号比 lede 小一档 */
[data-story-text] p {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.68;
  max-width: 62ch;
  margin: 0;
  color: var(--text-secondary);
}
[data-story-text] p + p { margin-top: 14px; }
.band-dark [data-story-text] p { color: var(--text-invert-dim); }

.body-sm { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

.gradient-text {
  background: linear-gradient(92deg, #1d1d1f 0%, #4a4a4f 42%, #8e8e93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Bands ---------- */

.band { padding: clamp(70px, 10vw, 128px) 0; }
.band-alt { background: var(--bg-alt); }
.band-dark {
  background: var(--bg-dark);
  color: var(--text-invert);
}
.band-dark .h2 { color: var(--text-invert); }
.band-dark .lede { color: var(--text-invert-dim); }
.band-dark .eyebrow { color: #2997ff; }
.band-tight { padding: clamp(48px, 6vw, 78px) 0; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(58px, 8vw, 104px) 0 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fafafc 62%, #f5f5f7 100%);
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero .h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }

.hero .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 72px);
}

/* Product stage under the hero: the glove silhouette on a soft plinth. */
.hero-stage {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: clamp(40px, 7vw, 84px);
}

.hero-halo {
  position: absolute;
  inset: -6% 8% 12%;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(0, 113, 227, 0.16) 0%,
    rgba(0, 113, 227, 0.05) 42%,
    rgba(0, 113, 227, 0) 72%
  );
  filter: blur(6px);
  pointer-events: none;
}

.glove-art {
  position: relative;
  width: 100%;
  height: auto;
  color: #1d1d1f;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.22));
}
.hero-stage .glove-art { max-width: 340px; margin: 0 auto; }

/* 主视觉点击跳转（后台选产品后启用） */
.hero-link {
  display: block;
  border-radius: 28px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hero-link:hover { transform: scale(1.012); }
.hero-link-wrap { text-align: center; margin: 22px 0 0; }
.hero-link-text {
  display: inline-block;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s;
}
.hero-link-text:hover { border-bottom-color: currentColor; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}

.feature {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-card);
  padding: 30px 26px 32px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.band:not(.band-dark) .feature {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}
.feature:hover { transform: translateY(-4px); }

/* 带图片的优势卡（如：材料厂商授权海报） */
.feature.has-img { padding-top: 14px; }
.feature-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #fff;
}
.feature-img img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: #2997ff;
}
.band:not(.band-dark) .feature-icon { color: var(--accent); }

.feature h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin: 0 0 9px;
  color: var(--text-invert);
}
.band:not(.band-dark) .feature h3 { color: var(--text); }

.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-invert-dim);
}
.band:not(.band-dark) .feature p { color: var(--text-secondary); }

/* ---------- Section head ---------- */

.sec-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 58px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Product grid ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 24px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
  text-decoration: none;
}

.pcard-media {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

/* 正方形版式改由 ::before 的百分比 padding 撑出：padding 百分比一律基于包含块宽度，
   所有内核（含 WebKit / 全系苹果设备）计算完全一致。
   不再使用「flex + aspect-ratio + 百分比 padding」组合 —— 该组合在 WebKit 下会把
   图片推出居中位置，表现为「缩略图偏右」。 */
.pcard-media::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.pcard-media img,
.pcard-media .glove-art {
  position: absolute;              /* 绝对定位 + 显式百分比尺寸，彻底避开 flex 最小尺寸干扰 */
  top: 12%;
  left: 16%;
  width: 68%;
  height: 76%;
  object-fit: contain;
}

.pcard-media img {
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.045); }

.pcard-media .glove-art {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.16));
  transition: transform 0.5s var(--ease);
}
.pcard:hover .glove-art { transform: scale(1.045); }

.pcard-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #1d1d1f;
  border-radius: 980px;
  padding: 4px 11px;
}

.pcard-body { padding: 20px 24px 26px; }

.pcard-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.pcard-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin: 0 0 4px;
}

.pcard-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.pcard-price span { color: var(--text-secondary); font-weight: 400; font-size: 13px; }

/* ---------- Product detail ---------- */

/* 详情页顶部返回条：看完产品能一眼回到上一层 */
.pd-back { margin: 0 0 18px; }
.pd-back a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.pd-back a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateX(-2px);
}
.pd-back svg { flex: 0 0 auto; }

.pd-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

/* 关键：grid 子项默认 min-width:auto，内容固有多宽就撑多宽 ——
   相册缩略图多时（如 8 张 x 70px）会把整个详情区撑到 630px，
   手机上主图超大、页面横向滚动。min-width:0 允许子项收缩回栅格宽度。 */
.pd-top > * { min-width: 0; }

.pd-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}

.pd-media {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}

/* 同 .pcard-media：块级撑高 + 绝对定位，避开 WebKit 下 flex/aspect-ratio 的居中偏差 */
.pd-media::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.pd-media img,
.pd-media .glove-art {
  position: absolute;
  top: 11%;
  left: 14%;
  width: 72%;
  height: 78%;
  object-fit: contain;
}
.pd-media img { mix-blend-mode: multiply; }
.pd-media .glove-art { filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.2)); }

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
/* 内容不溢出时整行居中；溢出时仍可横向滚动（margin auto 技巧） */
.pd-thumb:first-child { margin-left: auto; }
.pd-thumb:last-child { margin-right: auto; }
.pd-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
/* 同 .pcard-media：固定尺寸 + 绝对定位，避免 WebKit 下 flex 居中失效导致图像偏移 */
.pd-thumb img {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.18); }
/* 细节图缩略图左下角的橙色角标（内缩成小圆角标签，避免被缩略图圆角裁切） */
.pd-thumb-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  background: #f0a04b;
  color: #fff;
  font-size: 9px;
  line-height: 1.5;
  padding: 0 5px;
  letter-spacing: 0.06em;
  border-radius: 5px;
  pointer-events: none;
}
/* 主图右上角：当前查看的是细节图时亮起 */
.pd-detail-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: #f0a04b;
  color: #fff;
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 600;
  pointer-events: none;
}

/* 配色圆点：点圆圈切到对应颜色的主图 */
.pd-swatches { margin: -8px 0 26px; }
.pd-sw-label {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 10px;
  font-weight: 600;
}
.pd-sw-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-sw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sw, #ddd);
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.pd-sw:hover { transform: translateY(-2px); }
/* 白/奶油/浅灰这类浅色圆点：白底上会「消失」，用深色描边勾出轮廓 */
.pd-sw.light { border-color: rgba(0, 0, 0, 0.85); }
.pd-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--text); }

.pd-cat {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.pd-name { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.pd-tagline { font-size: 19px; color: var(--text-secondary); margin: 0 0 24px; }
.pd-price { font-size: 26px; font-weight: 500; margin: 0 0 26px; letter-spacing: -0.01em; }
.pd-price span { font-size: 14px; color: var(--text-secondary); font-weight: 400; margin-left: 8px; }

.pd-desc { font-size: 17px; line-height: 1.6; color: var(--text); margin: 0 0 32px; }

.pd-block { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 30px; }
.pd-block h3 { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 18px; font-weight: 600; }

.hl { display: flex; gap: 15px; margin-bottom: 20px; }
.hl:last-child { margin-bottom: 0; }
.hl-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.hl h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.hl p { font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 13px 12px 13px 0;
  width: 42%;
  vertical-align: top;
}
.spec-table td { padding: 13px 0; font-weight: 500; }

/* ---------- Story / numbers ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; margin-top: 48px; }
.stat-num {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #9a9aa0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-invert-dim); margin: 0; line-height: 1.45; }

/* ---------- Contact strip ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; margin-top: 34px; }
.contact-item h4 { font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 8px; font-weight: 600; }
.contact-item p { font-size: 16px; margin: 0; color: var(--text); }
/* 地址里的中文长词（华美创意园）不拆行，整词一起换行 */
.nb { white-space: nowrap; }

/* ---------- Enquire modal ---------- */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  animation: modalFade 0.24s var(--ease) both;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  overflow-x: hidden; /* 兜底：任何内容超宽都不产生横向滚动 */
  background: #fff;
  border-radius: 26px;
  padding: 32px 36px 30px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
  animation: modalPop 0.32s var(--ease) both;
}

.modal-x {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.modal-x:hover { background: #e6e6e9; color: var(--text); }

.modal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.modal-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}
.modal-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

/* 表单下方的电话/地址：桌面端并排一行，节省纵向空间 */
.modal-rows {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  align-items: start;
}
.modal-rows .mrow + .mrow { border-top: 1px solid var(--line-soft, #f0f0f3); }
.mrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
}
.mlabel {
  flex: 0 0 54px;
  padding-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.mval {
  flex: 1;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
a.mval { color: var(--accent); text-decoration: none; }
a.mval:hover { text-decoration: underline; }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 产品图点击放大：主图提示 + 全屏灯箱 ---------- */

.pd-media.is-zoomable { cursor: zoom-in; }

/* 右下角放大镜提示，让「图能点开放大」看得见 */
.pd-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  transition: transform 0.22s var(--ease), background 0.22s;
  pointer-events: none;   /* 点击穿透给主图，整块图都可点 */
}
.pd-media.is-zoomable:hover .pd-zoom-hint { transform: scale(1.08); background: #fff; }

/* 主图切换时的轻微淡出，避免生硬跳变 */
.pd-media img { transition: opacity 0.18s var(--ease); }
.pd-media img.is-swapping { opacity: 0.3; }

/* 左上角张数计数：进来就知道一共有几张图 */
.pd-count {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  pointer-events: none;
}

/* 主图两侧上一张/下一张：手机以滑动为主，箭头作为可见的翻页提示 */
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  cursor: pointer;
  z-index: 4;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s;
}
.pd-nav-prev { left: 12px; }
.pd-nav-next { right: 12px; }
.pd-nav:hover { background: #fff; }
.pd-nav-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pd-nav-next:hover { transform: translateY(-50%) translateX(2px); }
.pd-nav:active { transform: translateY(-50%) scale(0.94); }
.pd-nav[disabled] { opacity: 0; pointer-events: none; }

/* 滑到头时的回弹，让「已经到底了」有触感 */
@keyframes pdEdgeL { 0%, 100% { transform: translateX(0); } 42% { transform: translateX(-16px); } }
@keyframes pdEdgeR { 0%, 100% { transform: translateX(0); } 42% { transform: translateX(16px); } }
.pd-media.is-edge-l { animation: pdEdgeL 0.34s var(--ease); }
.pd-media.is-edge-r { animation: pdEdgeR 0.34s var(--ease); }

/* ---------- 相册缩略图条：溢出侧渐隐 + 箭头引导「后面还有图」 ---------- */

.pd-thumbs-bar {
  position: relative;
  margin-top: 14px;
}

.pd-thumbs-bar .pd-thumbs {
  margin-top: 0;
  padding: 4px 0;
  scrollbar-width: none;          /* 引导交给渐隐与箭头，滚动条本身藏掉更干净 */
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.pd-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }

.pd-thumbs-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 92px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 66%);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.pd-thumbs-fade-l {
  right: auto;
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff 66%);
}
.pd-thumbs-bar.has-more .pd-thumbs-fade:not(.pd-thumbs-fade-l) { opacity: 1; }
.pd-thumbs-bar.has-back .pd-thumbs-fade-l { opacity: 1; }

.pd-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.18s var(--ease);
}
.pd-thumbs-prev { left: -3px; }
.pd-thumbs-next { right: -3px; }
.pd-thumbs-bar.has-more .pd-thumbs-next,
.pd-thumbs-bar.has-back .pd-thumbs-prev { opacity: 1; pointer-events: auto; }
.pd-thumbs-nav:hover { transform: translateY(-50%) scale(1.08); }
.pd-thumbs-nav:active { transform: translateY(-50%) scale(0.94); }


.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 14, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: modalFade 0.22s var(--ease) both;
}
.lightbox[hidden] { display: none; }

.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  cursor: zoom-out;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  touch-action: pinch-zoom;   /* 允许双指缩放看细节 */
  animation: lbIn 0.26s var(--ease) both;
}

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

.lb-close,
.lb-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.18s, transform 0.18s;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lb-close {
  top: max(14px, env(safe-area-inset-top)); right: 14px;
  width: 40px; height: 40px;
}
.lb-nav { top: 50%; margin-top: -22px; width: 44px; height: 44px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover { transform: translateX(-2px); }
.lb-next:hover { transform: translateX(2px); }

.lb-count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .lb-stage { padding: 4vh 3vw; }
  .lb-nav { width: 38px; height: 38px; margin-top: -19px; }
  .pd-zoom-hint { width: 34px; height: 34px; right: 10px; bottom: 10px; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 42px 0 34px;
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.footer-cols h4 { font-size: 12px; color: var(--text); margin: 0 0 12px; font-weight: 600; }
.footer-cols a { display: block; color: var(--text-secondary); margin-bottom: 9px; text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Loading / empty ---------- */

.skeleton {
  background: linear-gradient(100deg, #ececf0 30%, #f6f6f8 50%, #ececf0 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--r-lg);
}
@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -60% 0; }
}

.notice {
  text-align: center;
  padding: 46px 22px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
}

/* 手机上缩略图略缩，一屏能看到更多张，减少横向滑动 */
@media (max-width: 480px) {
  .pd-thumb { width: 58px; height: 58px; border-radius: 12px; }
  .pd-thumb img { top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .pd-thumbs { gap: 8px; }
  .pd-thumbs-nav { width: 30px; height: 30px; }
  .pd-thumbs-fade { width: 68px; }
  .pd-nav { width: 34px; height: 34px; }
  .pd-nav-prev { left: 8px; }
  .pd-nav-next { right: 8px; }
  .pd-count { left: 10px; top: 10px; font-size: 12px; padding: 4px 9px; }
  .pd-zoom-hint { width: 34px; height: 34px; right: 10px; bottom: 10px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 22px; width: 100%; font-size: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
  .nav-lang { margin: 14px 22px; }
  .nav-burger { display: block; }
  .products { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 15px; }
  .pcard-body { padding: 16px 18px 20px; }
}

@media (max-width: 520px) {
  .products { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .modal { padding: 14px; }
  .modal-card { padding: 26px 20px 22px; border-radius: 22px; max-height: calc(100vh - 28px); }
  .mlabel { flex: 0 0 46px; }
  .modal-rows { grid-template-columns: 1fr; }
}

/* ---------- 留言表单（联系弹窗 & 公司介绍页） ---------- */

.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* 蜜罐：对人隐藏 */

.cform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfield-full { grid-column: 1 / -1; }
.cfield span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-secondary); }
.cfield span i { color: #c7372f; font-style: normal; }
.cfield input,
.cfield textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: var(--bg-alt, #f5f5f7);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  resize: vertical;
}
.cfield input:focus,
.cfield textarea:focus { border-color: var(--accent, #c7372f); background: #fff; }
.cfield input::placeholder,
.cfield textarea::placeholder { color: var(--text-tertiary, #9a9aa0); }

.cform-btn {
  margin-top: 20px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #c7372f);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
.cform-btn:hover { background: var(--accent-hover, #a92c25); }
.cform-btn:active { transform: scale(0.985); }
.cform-btn:disabled { opacity: 0.55; cursor: wait; }

.cform-msg { margin: 12px 0 0; font-size: 14px; line-height: 1.5; text-align: center; }
.cform-msg.ok { color: #1d7a3e; }
.cform-msg.err { color: #c7372f; }

/* 表单与电话/地址之间的分隔标题 */
.modal-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}
.modal-or::before,
.modal-or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft, #e8e8ec); }
.modal-or span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, #9a9aa0);
  white-space: nowrap;
}

.contact-item-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-item-cta .btn { margin-top: 10px; font-size: 14px; padding: 9px 20px; }

@media (max-width: 560px) {
  .cform-grid { grid-template-columns: 1fr; }
}

/* ---------- 360° 视频角标 + 播放弹层 ---------- */

.pd-360 {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #0071e3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.42);
  transition: transform 0.18s var(--ease, ease), background 0.18s var(--ease, ease);
  animation: pd360Pulse 2.4s ease-out infinite;
}
.pd-360 svg { opacity: 0.95; }
.pd-360:hover { transform: translateY(-1px); background: var(--accent-hover, #0077ed); animation: none; }

/* 呼吸光圈：让访客第一眼就注意到 */
@keyframes pd360Pulse {
  0%   { box-shadow: 0 6px 20px rgba(0, 113, 227, 0.42), 0 0 0 0 rgba(0, 113, 227, 0.45); }
  70%  { box-shadow: 0 6px 20px rgba(0, 113, 227, 0.42), 0 0 0 12px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 6px 20px rgba(0, 113, 227, 0.42), 0 0 0 0 rgba(0, 113, 227, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-360 { animation: none; }
}

.vidbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(12, 12, 14, 0.9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.vidbox[hidden] { display: none; }

.vidbox-card { position: relative; width: min(86vmin, 720px); }

.vidbox-video {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.45);
}

.vidbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease;
}
.vidbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.vidbox-tip {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 560px) {
  .pd-360 { left: 10px; bottom: 10px; padding: 8px 14px 8px 11px; font-size: 12.5px; }
  .vidbox { padding: 3vh 3vw; }
  .vidbox-card { width: 92vmin; }
  .vidbox-close { top: -44px; width: 32px; height: 32px; }
}
