/* ============================================================
   JifuSkin 机肤 首页 — Apple 风格白色主题（移动端优先）
   参考方向：apple.com.cn 视觉语言（白底、留白、克制、大图大标题）
   仅参考视觉与节奏，不复制 Apple 内容与版式。
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;          /* 浅灰分区 */
  --bg-3: #fbfbfd;
  --ink: #1d1d1f;           /* 主文字（近黑） */
  --ink-2: #424245;         /* 次级标题 */
  --muted: #6e6e73;         /* 正文次要 */
  --faint: #86868b;         /* 辅助说明 */
  --line: rgba(0, 0, 0, 0.10);
  --line-2: rgba(0, 0, 0, 0.06);
  --blue: #0066cc;          /* Apple 蓝链接 */
  --blue-hover: #0077ed;
  --black: #1d1d1f;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.6vw, 26px);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0, 102, 204, 0.18); }

/* ---------- 容器 / 区块标题 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(60px, 9vw, 112px); }
.section-gray { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 102, 204, .08);
  color: #0066cc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 12px;
}
.eyebrow--solid {
  height: 36px;
  padding: 0 18px;
  gap: 8px;
  background: #0066cc;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
.eyebrow--solid::before {
  content: "\25B6";
  font-size: 11px;
  line-height: 1;
  opacity: .95;
}
.h2 {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--ink);
}
.lede { color: var(--muted); font-size: clamp(15px, 2.2vw, 19px); max-width: 60ch; margin: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 5vw, 48px);
  flex-wrap: wrap;
}

/* 蓝色文字链接（Apple 风） */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  padding: 8px 0;
  transition: color .2s, gap .2s;
}
.link-more:hover { color: var(--blue-hover); gap: 10px; }
.link-more .arrow { transition: transform .2s; }
.link-more:hover .arrow { transform: translateX(3px); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.16); }
.btn-outline:hover { background: var(--bg-2); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--black);
  color: #fff; font-size: 16px; font-weight: 700;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--faint); letter-spacing: 0.04em; }

.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }

.nav-toggle {
  display: inline-flex; margin-left: auto;
  background: transparent; border: 0; width: 42px; height: 42px;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-menu { display: none; flex-direction: column; padding: 6px var(--pad-x) 16px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,.96); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 17px; }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- 首屏 Hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 84px) clamp(36px, 5vw, 60px); text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(38px, 8.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
  font-weight: 700;
  color: var(--ink);
}
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.6vw, 21px); margin: 0 auto; max-width: 40ch; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(30px, 5vw, 48px);
  text-align: left;
}
.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,.16); }
/* 首屏入口数量由后台板块开关决定，只剩 1~2 个时不要挤在 3 列网格里 */
.service-grid[data-visible-count="1"] { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
.service-grid[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-left: auto; margin-right: auto; }
.svc-ico { font-size: 26px; line-height: 1; }
.svc-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.svc-desc { display: none; font-size: 13.5px; color: var(--muted); }
.svc-go { color: var(--blue); font-size: 15px; white-space: nowrap; }
.svc-go .arrow { display: inline-block; transition: transform .2s; }
.service-card:hover .svc-go .arrow { transform: translateX(3px); }

.hero-visual {
  position: relative;
  margin-top: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: linear-gradient(135deg, #eceff3 0%, #f6f7f9 60%, #e9ebee 100%);
  display: grid;
  place-items: center;
}
.hero-visual.has-img { background-size: cover; background-position: center; }
.hero-visual.has-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34));
}
.hero-visual-cap {
  position: relative; z-index: 1;
  color: #fff;
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  padding: 0 18px;
  text-align: center;
}
.hero-visual:not(.has-img) .hero-visual-cap { color: var(--faint); text-shadow: none; }

/* ---------- 真实买家秀 轮播 ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px var(--pad-x) 18px;
  margin-inline: calc(-1 * var(--pad-x));
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging * { pointer-events: none; }

.show-card {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 340px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.show-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.show-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9ebee;
}
.show-photo img { width: 100%; height: 100%; object-fit: cover; }
.show-photo .device {
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.94);
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  padding: 0 14px;
  text-align: center;
}
.show-photo .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.86); color: var(--ink);
  font-weight: 600;
}
.show-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.show-meta .model { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.show-meta .color { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

.carousel-nav { display: none; }

/* ---------- 3M 材料（双分组） ---------- */
.mat-group { margin-bottom: clamp(34px, 5vw, 52px); }
.mat-group:last-child { margin-bottom: 0; }
.mat-group-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--faint);
  margin: 0 0 18px;
}
.mat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.mat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mat-swatch { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; background: #e9ebee; overflow: hidden; }
.mat-swatch img { width: 100%; height: 100%; object-fit: cover; }
.mat-swatch .tex { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.mat-card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 15px 15px; }
.mat-card .meta .n { font-size: 15px; font-weight: 600; color: var(--ink); }
.mat-card .meta .c { font-size: 12.5px; color: var(--faint); }

/* ---------- 安装教程 ---------- */
.video-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef1f4, #e3e7ec);
  overflow: hidden;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover .play {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .25s var(--ease);
}
.video-card:hover .play { transform: scale(1.08); }
.video-cover .plat {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px);
}
.video-cover .dur { position: absolute; bottom: 12px; right: 12px; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }
.video-card .v-meta { padding: 15px 16px 18px; }
.video-card .v-meta h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.video-card .v-meta small { color: var(--muted); font-size: 13px; }

/* ---------- 按机型查找 ---------- */
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 26px;
  -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .2s;
}
.chip.active, .chip:hover { color: #fff; background: var(--black); border-color: var(--black); }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.model-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.model-card:hover { border-color: rgba(0,0,0,.18); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.model-ico {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-2);
  font-size: 22px;
}
.model-meta { min-width: 0; }
.model-meta .brand { display:block; overflow:hidden; font-size:12px; color:var(--faint); white-space:nowrap; text-overflow:ellipsis; }
.model-meta .name { display:block; overflow:hidden; font-size:15.5px; font-weight:600; color:var(--ink); white-space:nowrap; text-overflow:ellipsis; }
.model-meta .type { display:block; overflow:hidden; font-size:12.5px; color:var(--muted); white-space:nowrap; text-overflow:ellipsis; }

@media (max-width: 520px) {
  .model-grid { gap: 12px; }
  .model-card { gap: 10px; padding: 12px; }
  .model-ico { width: 40px; height: 40px; border-radius: 10px; font-size: 19px; }
  .model-meta .name { font-size: 14px; }
}

@media (max-width: 340px) {
  .model-grid { grid-template-columns: 1fr; }
}

/* ---------- 材料说明 / 信息卡 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.info-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.info-ico { font-size: 24px; display: block; margin-bottom: 12px; }
.info-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.info-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.note-tip {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 70ch;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-2); padding-block: 60px 34px; color: var(--muted); }
.footer-search { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.footer-search h2 { font-size: clamp(26px, 5vw, 40px); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.footer-search p { color: var(--muted); margin: 0 0 22px; }
.search-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; margin: 0 auto; }
.search-ico { font-size: 18px; color: var(--faint); }
.search-row input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 12px 0; font-size: 15px; }
.search-row .btn { padding: 11px 22px; }

.footer-top { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: clamp(34px,5vw,48px); border-top: 1px solid var(--line-2); }
.footer-brand .name { font-size: 19px; font-weight: 700; color: var(--ink); }
.footer-brand p { font-size: 14px; max-width: 42ch; margin: 12px 0 0; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.footer-col h4 { color: var(--ink); font-size: 13px; font-weight: 600; margin: 0 0 12px; letter-spacing: .02em; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 22px; margin-top: 32px; font-size: 12.5px; color: var(--faint); }

/* ---------- 灯箱 ---------- */
.lb {
  position: fixed; inset: 0; z-index: 80;
  display: none; place-items: center; padding: 20px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}
.lb.open { display: grid; }
.lb-panel {
  position: relative;
  width: min(960px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.lb-photo { aspect-ratio: 4/5; display: grid; place-items: center; position: relative; background: #e9ebee; }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; }
.lb-photo .device { font-size: clamp(24px, 5vw, 38px); font-weight: 700; color: rgba(255,255,255,.94); text-align: center; padding: 0 20px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.lb-side { padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.lb-side .tag { font-size: 12px; letter-spacing: .04em; color: var(--blue); font-weight: 600; }
.lb-side h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.lb-side .desc { color: var(--muted); font-size: 14.5px; margin: 0; }
.lb-side .rel { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.lb-side .rel a { flex: 1; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink); transition: border-color .2s, background .2s; }
.lb-side .rel a:hover { border-color: var(--blue); color: var(--blue); }
.lb-actions { margin-top: 2px; }
.lb-actions .btn { width: 100%; justify-content: center; }
.lb-rel-title { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.lb-rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-chip { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.rel-chip:hover { border-color: var(--blue); color: var(--blue); }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 22px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 22px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: calc(41% + 12px); }

/* 视频弹窗 */
.vmodal { position: fixed; inset: 0; z-index: 85; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); }
.vmodal.open { display: grid; }
.vmodal-panel { position: relative; width: min(960px, 95vw); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.vmodal-frame { aspect-ratio: 16/9; background: #000; }
.vmodal-frame iframe, .vmodal-frame img { width: 100%; height: 100%; border: 0; }
.vmodal-ext { padding: 30px; text-align: center; }
.vmodal-ext h3 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.vmodal-ext p { color: var(--muted); margin: 0 0 20px; }
.vmodal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 22px; box-shadow: var(--shadow-sm); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .service-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; padding: 28px 22px; }
  .svc-ico { font-size: 30px; }
  .svc-title { font-size: 19px; }
  .svc-desc { display: block; }
  .svc-go { margin-top: 2px; }

  .hero-visual { aspect-ratio: 21 / 9; }

  .mat-grid { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }

  .show-card { width: 320px; }

  .carousel-nav {
    display: flex; gap: 10px;
    position: absolute; top: -64px; right: var(--pad-x);
  }
  .carousel-nav button {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff;
    color: var(--ink); font-size: 20px; box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s;
  }
  .carousel-nav button:hover { border-color: rgba(0,0,0,.2); box-shadow: var(--shadow-md); }
  .carousel-nav button:disabled { opacity: .35; cursor: default; }

  .footer-top { grid-template-columns: 1.4fr 2fr; align-items: start; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .model-grid { grid-template-columns: repeat(4, 1fr); }
  .mat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
