/* =========================================================
 * style.css · 页面组件样式（首页与编辑器画布共用）
 * 所有组件类名以 c- 前缀，主题变量由 renderer 注入 :root
 * ========================================================= */

:root {
  --ink: #16181d;
  --ink-2: #5b6068;
  --bg: #fafaf8;
  --accent: #ff4d1c;
  --line: #e4e4e0;
  --surface: #ffffff;
  --radius: 4px;
  --wrap: 1120px;
  --font: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 顶部导航为吸顶（66px 高），锚点跳转时预留高度，避免标题被导航遮住 */
[id^="sec-"] { scroll-margin-top: 76px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.c-wrap {
  width: min(var(--wrap), 92%);
  margin-inline: auto;
}

/* ---------- 按钮 ---------- */
.c-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.c-btn:hover { transform: translateY(-2px); }
.c-btn-primary { background: var(--accent); color: #fff; }
.c-btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.c-btn-ghost { border-color: var(--ink); color: var(--ink); }
.c-btn-ghost:hover { background: var(--ink); color: #fff; }
.c-btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.c-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.c-nav .c-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.c-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-brand i { color: var(--accent); font-style: normal; }
.c-brand-text { line-height: 1; }
/* Logo 固定 1:1 正方形显示 */
.c-logo-img {
  height: 38px;
  width: 38px;
  flex: none;
  object-fit: contain;
  border-radius: 6px;
}
.c-nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.c-nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; }
.c-nav-links a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- 中英文切换（导航右上角） ---------- */
.c-lang {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.c-lang-btn {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.c-lang-btn:hover { color: var(--ink); }
.c-lang-btn.is-active { color: var(--accent); font-weight: 600; }
.c-lang-sep { opacity: .35; }

/* ---------- 首屏 ---------- */
.c-hero {
  position: relative;
  padding: clamp(80px, 13vh, 140px) 0 clamp(70px, 10vh, 110px);
  overflow: hidden;
}
.c-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}
.c-hero-inner { position: relative; }
.c-eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.c-hero-title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 15em;
}
.c-hero-title .hl { color: var(--accent); }
.c-hero-sub {
  max-width: 34em;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
}
.c-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* ---------- 数据条 ---------- */
.c-stats { background: var(--ink); color: #fff; }
.c-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 50px 0;
}
.c-stat { text-align: center; }
.c-stat strong {
  display: block;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  color: var(--accent);
}
.c-stat span { font-size: 14px; color: #a2a6ad; }

/* ---------- 通用模块头 ---------- */
.c-sec-head { margin-bottom: 44px; }
.c-sec-head span,
.c-split-label span {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.c-sec-head h2,
.c-split-label h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
}
.c-mod-label { color: var(--ink-2); font-size: 14px; margin-top: 8px; }

/* ---------- 图文介绍 ---------- */
.c-about { padding: clamp(70px, 10vw, 110px) 0; background: var(--bg); }
.c-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(30px, 6vw, 80px);
}
.c-split-label { border-top: 2px solid var(--ink); padding-top: 20px; align-self: start; }
.c-split-body .c-lead { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; margin-bottom: 16px; }
.c-split-body p { color: var(--ink-2); }
/* 右侧：模块标签 + 标题 */
.c-about-label {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.c-about-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* 左侧：叠加相册（多张图片叠放，点击看大图） */
.c-album {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.c-album-item {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .5);
  transform-origin: 50% 92%;
  /* --i 越大越靠后：轻微旋转并右下偏移，形成叠放效果 */
  transform: rotate(calc(var(--i, 0) * -3deg)) translate(calc(var(--i, 0) * 12px), calc(var(--i, 0) * 9px));
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
  z-index: calc(20 - var(--i, 0));
}
.c-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}
.c-album-item:hover {
  transform: rotate(calc(var(--i, 0) * -3deg)) translate(calc(var(--i, 0) * 12px), calc(var(--i, 0) * 9px)) scale(1.03);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, .6);
}

/* 灯箱：查看大图（点击任意处或 Esc 关闭） */
.c-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(10, 12, 16, .88);
  cursor: zoom-out;
}
.c-lightbox.is-open { display: flex; }
.c-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.c-check {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.c-check li { position: relative; padding-left: 28px; }
.c-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 卡片 ---------- */
.c-cards { padding: clamp(70px, 10vw, 110px) 0; background: var(--surface); border-block: 1px solid var(--line); }

/* 产品展示（数据来自 ERP）：左侧分类栏 + 右侧产品网格 */
.c-prod-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.c-prod-layout.has-cats { grid-template-columns: 210px 1fr; gap: 44px; }
/* 右侧产品区：工具条固定，产品网格在区域内滚动（与左侧分类栏一致的内部滚动） */
.c-prod-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 120px);
}
/* 左侧分类栏：卡片式面板（标题固定，分类列表在面板内部滚动，不撑高整页） */
.c-prod-cats {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);   /* 视口内留出上下空间，超出部分内部滚动 */
  overflow: hidden;
}
.c-prod-cats-title {
  flex-shrink: 0;
  padding: 6px 12px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-2);
}
/* 分类按钮列表：唯一滚动区域（标题不动，故不会变形） */
.c-prod-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.c-prod-cat-list::-webkit-scrollbar { width: 6px; }
.c-prod-cat-list::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .35); border-radius: 999px; }
.c-prod-cat-list::-webkit-scrollbar-track { background: transparent; }
.c-prod-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;         /* 不压缩，超出时由面板内部滚动 */
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.c-prod-cat b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(128, 128, 128, .14);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.c-prod-cat:hover { color: var(--ink); background: rgba(128, 128, 128, .08); }
.c-prod-cat.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.c-prod-cat.is-active b { background: rgba(255, 255, 255, .28); color: #fff; }

/* 工具条：搜索 + 每页条数 + 翻页 */
.c-prod-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;              /* 固定在产品区顶部，不随网格滚动 */
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* 搜索框：产品名称 / 货号 / 型号（纯前端过滤，边输入边筛） */
.c-prod-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 150px;
}
.c-prod-search-ico {
  position: absolute;
  left: 11px;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-2);
  pointer-events: none;
}
.c-prod-search-input {
  font: inherit;
  font-size: 13px;
  width: 100%;
  padding: 8px 12px 8px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.c-prod-search-input::placeholder { color: var(--ink-2); opacity: .75; }
.c-prod-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
/* 搜索无结果提示（默认隐藏，由 JS 切换 is-show） */
.c-prod-empty {
  display: none;
  text-align: center;
  padding: 56px 0;
  color: var(--ink-2);
  font-size: 14px;
}
.c-prod-empty.is-show { display: block; }
.c-prod-sizes { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.c-prod-sizes-label { margin-right: 4px; }
.c-prod-size {
  min-width: 42px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.c-prod-size:hover { color: var(--ink); border-color: var(--ink); }
.c-prod-size.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-prod-pager { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.c-prod-nav {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.c-prod-nav:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.c-prod-nav:disabled { opacity: .35; cursor: not-allowed; }
.c-prod-pageinfo { font-variant-numeric: tabular-nums; }

/* 产品卡片：网格在 .c-prod-main 内滚动 */
.c-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: max-content;   /* 行高按内容，卡片大小固定、不被压缩 */
  align-content: start;          /* 行从顶部排列，不因限高被拉伸/压缩 */
  gap: 26px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  /* 内边距既避让滚动条，也给悬停上浮/投影留出空间（滚动容器会裁掉边框外的阴影，
     没有留白时卡片一动就被切边，看起来就是「悬停效果不好」） */
  padding: 8px 8px 20px 2px;
}
.c-prod-grid::-webkit-scrollbar { width: 8px; }
.c-prod-grid::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .35); border-radius: 999px; }
.c-prod-grid::-webkit-scrollbar-track { background: transparent; }

/* ---------- 产品卡片（基础结构，各 UI 样式在此基础上微调） ---------- */
.c-prod {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s,
              border-color .4s, background .4s;
}
/* 悬停：轻微上浮 + 柔和投影 + 边框淡淡染上主题色
   （比原来「整圈变橙色 + 大幅位移」更耐看，也不会在滚动容器里抖动） */
.c-prod:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 120, 120, .5);   /* 兜底：不支持 color-mix 的浏览器 */
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 38px -26px rgba(22, 24, 29, .42);
}
.c-prod.is-hidden { display: none; }
.c-prod-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;              /* 保持 1:1 方图，不被压扁 */
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
}
.c-prod-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.c-prod:hover .c-prod-media img { transform: scale(1.05); }
.c-prod-media-empty { cursor: default; }
.c-prod-body { padding: 15px 18px 18px; flex-shrink: 0; }
.c-prod-name {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s;
}
.c-prod-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 产品卡片字段行（装修器里可选：价格 / 货号 / PCS / 型号 / 规格） */
.c-prod-meta {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.5;
}
.c-prod-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;   /* 标签靠左、值靠右，参数看着更整齐 */
  gap: 10px;
  min-width: 0;
}
.c-prod-meta li > span {
  flex: none;
  color: var(--ink-2);
}
.c-prod-meta li > b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* 价格：强调显示 */
.c-prod-meta li.c-prod-price > b {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ============ 卡片 UI 样式（装修器「卡片样式」下拉切换） ============
   注意：产品区块背景是白色，因此每种样式都要自己「立」得住
   （描边 / 投影 / 底色三选一），否则白卡摆在白底上会像没样式。 */

/* 样式 1：经典卡片 —— 描边 + 浅底，悬停轻浮起、名称变主题色（默认） */
.c-prod-grid.skin-card .c-prod:hover .c-prod-name { color: var(--accent); }

/* 样式 2：极简描边 —— 纯白 + 细线，不要投影，克制干净 */
.c-prod-grid.skin-outline .c-prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.c-prod-grid.skin-outline .c-prod-media { border-bottom: 0; padding-bottom: 6px; }
.c-prod-grid.skin-outline .c-prod:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 120, 120, .6);
  box-shadow: none;
}
.c-prod-grid.skin-outline .c-prod:hover .c-prod-name { color: var(--accent); }

/* 样式 3：横向图文 —— 左图右文，一行一条，适合参数较多的产品 */
.c-prod-grid.skin-list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.c-prod-grid.skin-list .c-prod { flex-direction: row; align-items: stretch; }
.c-prod-grid.skin-list .c-prod-media {
  flex: 0 0 132px;
  width: 132px;
  aspect-ratio: auto;
  min-height: 132px;
  padding: 14px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.c-prod-grid.skin-list .c-prod-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.c-prod-grid.skin-list .c-prod-meta { margin-top: 8px; padding-top: 8px; gap: 4px; }
.c-prod-grid.skin-list .c-prod:hover .c-prod-name { color: var(--accent); }

/* 样式 4：圆形图片 —— 白色圆盘托住产品图，文字居中，适合系列款/单品 */
.c-prod-grid.skin-circle {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.c-prod-grid.skin-circle .c-prod {
  border: 0;
  background: transparent;
  overflow: visible;
}
.c-prod-grid.skin-circle .c-prod-media {
  width: 172px;
  height: 172px;
  aspect-ratio: auto;
  padding: 22px;
  margin: 4px auto 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgba(22, 24, 29, .5);
  transition: box-shadow .4s, transform .4s cubic-bezier(.16, 1, .3, 1);
}
.c-prod-grid.skin-circle .c-prod-body {
  padding: 16px 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c-prod-grid.skin-circle .c-prod-meta {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
  justify-items: center;
}
.c-prod-grid.skin-circle .c-prod-meta li { justify-content: center; gap: 6px; }
.c-prod-grid.skin-circle .c-prod:hover { transform: translateY(-4px); box-shadow: none; }
.c-prod-grid.skin-circle .c-prod:hover .c-prod-media {
  transform: scale(1.03);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 34px -24px rgba(22, 24, 29, .5);
}
.c-prod-grid.skin-circle .c-prod:hover .c-prod-name { color: var(--accent); }

/* 样式 5：底部色条 —— 卡片底部一条主题色标识线，悬停铺满 */
.c-prod-grid.skin-bar .c-prod {
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 26px -18px rgba(22, 24, 29, .4);
}
.c-prod-grid.skin-bar .c-prod-media { border-bottom: 0; }
.c-prod-grid.skin-bar .c-prod-body { padding-bottom: 22px; }
.c-prod-grid.skin-bar .c-prod::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34%; height: 3px;
  background: var(--accent);
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}
.c-prod-grid.skin-bar .c-prod:hover::after { width: 100%; }
.c-prod-grid.skin-bar .c-prod:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px -26px rgba(22, 24, 29, .48);
}
.c-prod-grid.skin-bar .c-prod:hover .c-prod-name { color: var(--accent); }

/* 样式 6：悬浮填充 —— 默认描边空心，悬停填一层极淡主题色 */
.c-prod-grid.skin-fill .c-prod {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
}
.c-prod-grid.skin-fill .c-prod-media { background: transparent; padding-bottom: 6px; }
.c-prod-grid.skin-fill .c-prod:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 77, 28, .05);   /* 兜底：不支持 color-mix 时用这一层 */
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  box-shadow: 0 20px 32px -26px rgba(22, 24, 29, .45);
}

/* 窄屏：分类栏改为顶部横向滑动 */
@media (max-width: 760px) {
  .c-prod-layout.has-cats { grid-template-columns: 1fr; gap: 18px; }
  .c-prod-cats {
    position: static;
    padding: 8px;
    max-height: none;      /* 窄屏改为横向滚动，取消内部纵向滚动限制 */
    overflow: visible;
  }
  .c-prod-cat-list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .c-prod-cats-title { display: none; }
  .c-prod-cat { padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
  /* 窄屏取消产品区内部滚动，回归整页滚动 */
  .c-prod-main { max-height: none; }
  .c-prod-grid { overflow-y: visible; padding: 0; }
  .c-prod-toolbar { margin-bottom: 18px; }
  /* 各卡片样式在窄屏下的收敛（图片缩小、单列） */
  .c-prod-grid.skin-list { grid-template-columns: 1fr; }
  .c-prod-grid.skin-list .c-prod-media { flex: 0 0 104px; width: 104px; padding: 10px; }
  .c-prod-grid.skin-circle { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .c-prod-grid.skin-circle .c-prod-media { width: 130px; height: 130px; padding: 16px; }
}

/* ---------- 图片墙 ---------- */
.c-gallery { padding: clamp(70px, 10vw, 110px) 0; background: var(--bg); }
.c-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.c-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.c-shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.c-shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- 价格 ---------- */
.c-pricing { padding: clamp(70px, 10vw, 110px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.c-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.c-price {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  background: var(--bg);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  transition: border-color .25s, transform .25s;
}
.c-price:hover { transform: translateY(-5px); }
.c-price.is-hot { border-color: var(--accent); }
.c-price-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
}
.c-price h3 { font-size: 18px; }
.c-price-num { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--accent); }
.c-price-desc { font-size: 14px; color: var(--ink-2); }

/* ---------- 流程 ---------- */
.c-steps { padding: clamp(70px, 10vw, 110px) 0; background: var(--bg); }
.c-step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.c-step-list li { position: relative; padding-top: 44px; font-weight: 500; }
.c-step-list li span {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
}
.c-step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px; left: 44px; right: -12px;
  height: 1px;
  background: var(--line);
}

/* ---------- 文本段落 ---------- */
.c-text { padding: clamp(70px, 10vw, 110px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.c-text h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.c-text p { color: var(--ink-2); max-width: 46em; margin-inline: auto; }

/* ---------- 轮播图 ---------- */
.c-slider {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.c-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.c-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-slide.active {
  opacity: 1;
  z-index: 1;
}
/* 文字遮罩 */
.c-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 70%);
  z-index: 2;
  padding: 24px 0;
  box-sizing: border-box;
}
.c-slide-overlay h2 {
  font-size: clamp(24px, 4vw, 44px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.c-slide-overlay p {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,.85);
}
/* 左右箭头 */
.c-slider-prev,
.c-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
  line-height: 1;
}
.c-slider-prev:hover,
.c-slider-next:hover {
  background: rgba(0,0,0,.6);
}
.c-slider-prev { left: 16px; }
.c-slider-next { right: 16px; }
/* 底部圆点 */
.c-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.c-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: .25s;
}
.c-slider-dot.active,
.c-slider-dot:hover {
  background: var(--accent);
  transform: scale(1.2);
}

/* --- 动画变体：fade（默认，已在上面定义） --- */

/* --- 动画变体：slide --- */
.c-slider-slide .c-slide {
  transform: translateX(100%);
}
.c-slider-slide .c-slide.active {
  transform: translateX(0);
}
.c-slider-slide .c-slide.prev {
  transform: translateX(-100%);
}

/* --- 动画变体：zoom --- */
.c-slider-zoom .c-slide {
  transform: scale(1.1);
}
.c-slider-zoom .c-slide.active {
  transform: scale(1);
}

/* --- 动画变体：flip --- */
.c-slider-flip .c-slide {
  transform: perspective(1000px) rotateY(90deg);
}
.c-slider-flip .c-slide.active {
  transform: perspective(1000px) rotateY(0);
}

/* --- 动画变体：rotate --- */
.c-slider-rotate .c-slide {
  transform: scale(0.8) rotate(15deg);
}
.c-slider-rotate .c-slide.active {
  transform: scale(1) rotate(0);
}

/* --- 动画变体：slideUp（从底部向上推入） --- */
.c-slider-slideUp .c-slide {
  transform: translateY(100%);
}
.c-slider-slideUp .c-slide.active {
  transform: translateY(0);
}
.c-slider-slideUp .c-slide.prev {
  transform: translateY(-100%);
}

/* --- 动画变体：slideDown（从顶部向下推入） --- */
.c-slider-slideDown .c-slide {
  transform: translateY(-100%);
}
.c-slider-slideDown .c-slide.active {
  transform: translateY(0);
}
.c-slider-slideDown .c-slide.prev {
  transform: translateY(100%);
}

/* --- 动画变体：slideLeft（从左侧滑入） --- */
.c-slider-slideLeft .c-slide {
  transform: translateX(-100%);
}
.c-slider-slideLeft .c-slide.active {
  transform: translateX(0);
}
.c-slider-slideLeft .c-slide.prev {
  transform: translateX(100%);
}

/* --- 动画变体：pop（弹入，带轻微回弹） --- */
.c-slider-pop .c-slide {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, 1.4, .5, 1);
}
.c-slider-pop .c-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* --- 动画变体：flipV（纵向翻转） --- */
.c-slider-flipV .c-slide {
  transform: perspective(1000px) rotateX(90deg);
}
.c-slider-flipV .c-slide.active {
  transform: perspective(1000px) rotateX(0);
}

/* --- 动画变体：wipe（横向擦除揭开） --- */
.c-slider-wipe .c-slide {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s ease;
}
.c-slider-wipe .c-slide.active {
  clip-path: inset(0 0 0 0);
}

/* --- 动画变体：blur（模糊淡入） --- */
.c-slider-blur .c-slide {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.04);
  transition: opacity .6s ease, filter .6s ease, transform .8s ease;
}
.c-slider-blur .c-slide.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* --- 无图片占位：白底黑字 --- */
.c-slide-empty {
  background: #fff;
}
.c-slide-overlay.is-empty {
  background: none;
}
.c-slide-overlay.is-empty h2 {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 32px);
}
.c-slide-overlay.is-empty p {
  color: var(--ink-2);
}

/* ---------- 联系 ---------- */
.c-contact { padding: clamp(70px, 10vw, 110px) 0; background: var(--bg); }
.c-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.c-contact-info h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; }
.c-contact-info > p { color: var(--ink-2); margin-top: 14px; }
.c-contact-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.c-contact-list li {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-size: 15px;
}
.c-contact-list span { color: var(--ink-2); font-size: 14px; min-width: 3em; }
.c-contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 18px;
}
.c-field { display: grid; gap: 8px; }
.c-field label { font-size: 14px; color: var(--ink-2); }
.c-field input,
.c-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  resize: vertical;
}
.c-field input:focus,
.c-field textarea:focus { outline: none; border-color: var(--accent); }
/* 联系表单提交反馈（成功 / 失败） */
.c-form-msg { font-size: 13px; line-height: 1.5; }
.c-form-msg.is-ok { color: #16a34a; }
.c-form-msg.is-err { color: #dc2626; }

/* ---------- 悬浮联系我们（挂件） ---------- */
/* 定位由内联样式给出（位置 + 边距），此处只负责外观与展开动效 */
.c-float {
  position: fixed;
  z-index: 90;
}
.c-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.c-float-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .55); }
.c-float-btn-ico { font-size: 17px; line-height: 1; }

/* 展开的信息卡片：绝对定位，闭合时不占据页面点击区域 */
.c-float-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 264px;
  max-width: 84vw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.c-float.is-open .c-float-card {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
/* 位于页面上方时卡片向下展开 */
.c-float[data-pos="右上"] .c-float-card,
.c-float[data-pos="左上"] .c-float-card {
  bottom: auto;
  top: calc(100% + 12px);
}
/* 位于页面左侧时卡片左对齐 */
.c-float[data-pos="左下"] .c-float-card,
.c-float[data-pos="左上"] .c-float-card,
.c-float[data-pos="左侧居中"] .c-float-card {
  left: 0;
  right: auto;
}
.c-float-card-head { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.c-float-row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}
.c-float-row span { color: var(--ink-2); flex: none; min-width: 2.4em; }
.c-float-row b { font-weight: 600; word-break: break-all; }
a.c-float-row:hover b { color: var(--accent); }
.c-float-empty { font-size: 13px; color: var(--ink-2); }
.c-float-card .c-btn { margin-top: 14px; padding: 11px 20px; font-size: 14px; }

/* ---------- 页脚 ---------- */
.c-footer { background: var(--ink); color: #a2a6ad; font-size: 14px; }
.c-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  flex-wrap: wrap;
}
.c-top:hover { color: #fff; }

/* =========================================================
 * 编辑态辅助样式（仅 .is-editing 画布内生效）
 * ========================================================= */
.is-editing .c-block { position: relative; cursor: pointer; }
.is-editing .c-block:hover { outline: 1px dashed var(--accent); outline-offset: -1px; }
.is-editing .c-block.selected { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 选中块左上角的组件名标签 */
.is-editing .c-block.selected::after {
  content: attr(data-label);
  position: absolute;
  top: 0; left: 0;
  z-index: 40;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  pointer-events: none;
}

/* 拖拽插入指示线 */
.c-drop-line {
  height: 3px;
  background: var(--accent);
  position: relative;
  margin: 0;
}
.c-drop-line::before {
  content: "";
  position: absolute;
  left: -5px; top: -3.5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* 编辑态禁用粘性定位，避免拖动时块"粘"在顶部 */
.is-editing .c-nav { position: static; }

/* 拖拽目标高亮 */
.is-editing .c-block.drag-over {
  outline: 3px dashed var(--accent);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .c-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .c-split, .c-contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .c-nav .c-wrap { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .c-nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 14px; font-size: 14px; }
  .c-footer-inner { justify-content: center; text-align: center; }
  .c-step-list li::after { display: none; }
}

/* =========================================================
 * 模块进入动画（装修器里「进入动画」，每个模块独立设置）
 * .c-anim 由 renderer.js 包在每个模块外层；.anim-ready 由 JS 加上，
 * 所以没有 JS / JS 报错时内容照常显示，不会出现空白页。
 * ========================================================= */
.anim-ready .c-anim {
  opacity: 0;
  transition: opacity .7s ease-out,
              transform .85s cubic-bezier(.16, 1, .3, 1),
              filter .7s ease-out;
}
.anim-ready .c-anim.is-in { opacity: 1; transform: none; filter: none; }

/* 各动画的起始状态（.is-in 时统一回到 opacity:1 / transform:none） */
.anim-ready .c-anim-fade      { transform: none; }
.anim-ready .c-anim-up        { transform: translateY(42px); }
.anim-ready .c-anim-down      { transform: translateY(-42px); }
.anim-ready .c-anim-left      { transform: translateX(56px); }
.anim-ready .c-anim-right     { transform: translateX(-56px); }
.anim-ready .c-anim-zoom-in   { transform: scale(.9); }
.anim-ready .c-anim-zoom-out  { transform: scale(1.08); }
.anim-ready .c-anim-blur      { filter: blur(12px); }
.anim-ready .c-anim-flip      { transform: perspective(1000px) rotateX(-26deg); transform-origin: 50% 0; }
.anim-ready .c-anim-rotate    { transform: rotate(-4deg) scale(.95); }
/* 弹入：带轻微回弹的缓动 */
.anim-ready .c-anim-pop       { transform: scale(.8); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }

/* 用户系统设置了「减少动态效果」时直接显示（前面的全局规则已关掉 transition，
   这里再把初始隐藏态还原，保证内容可见） */
@media (prefers-reduced-motion: reduce) {
  .anim-ready .c-anim { opacity: 1 !important; transform: none !important; filter: none !important; }
}
