/* ============================================================================
   LUMA KNIT · 设计系统
   风格参考：Louis Vuitton 中国官网
   —— 纯白底 / 近黑文字 / 衬线标题 / 大写字母+字距 / 大量留白 / 细线分割 / 金色点缀
   移动端优先：>=44px 触控热区、吸底导航、侧滑菜单
   ========================================================================== */

:root {
  --c-ink: #000;
  --c-text: #1a1a1a;
  --c-sub: #6b6b6b;
  --c-mute: #9a9a9a;
  --c-line: #e3e3e3;
  --c-line-dark: #191919;
  --c-bg: #fff;
  --c-bg-soft: #f7f6f4;
  --c-bg-warm: #f2efe9;
  --c-gold: #a5872f;
  --c-gold-soft: #c9a961;
  --c-danger: #b3261e;
  --c-ok: #1f7a45;
  --c-pending: #a5872f;

  --font-serif: "Didot", "Bodoni MT", "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1440px;
  --gap: 24px;
  --sec-gap: 56px;      /* 区块纵向节奏（桌面）；手机端在 ≤860 覆盖为 28px */
  --header-h: 84px;   /* 横向导航条已移除，吸顶高度=页头主行 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 锁死手机缩放：禁文字自动放大、禁双击放大 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; padding: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

::-webkit-scrollbar { width: 8px; height: 8px; }

::-webkit-scrollbar-thumb { background: #d8d8d8; }

::-webkit-scrollbar-thumb:hover { background: #bbb; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

.hidden { display: none !important; }

.sec-title {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: .06em;
  text-align: center;
  margin: 0 0 8px;
}

.sec-head { padding: 76px 0 34px; }

.sec-head.left { text-align: left; }

.sec-head.left .sec-title{ text-align: left; }

/* ------------------------------------------------------------------ 按钮 */
/* ---------------------------------------------------------------- 按钮体系
   主按钮：实心黑（主行动）　次按钮：描边（辅助行动）
   移动端所有按钮最小高度 48px，保证触控热区
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 36px;
  border: 1px solid var(--c-line-dark);
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { background: #2b2b2b; border-color: #2b2b2b; }

.btn:active { transform: translateY(1px); }

.btn-ghost { background: #fff; color: var(--c-ink); border-color: var(--c-line); }

.btn-ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.btn-line { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }

.btn-line:hover { background: var(--c-ink); color: #fff; }

.btn-lg { height: 56px; padding: 0 48px; font-size: 13px; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* ------------------------------------------------------------------ 表单 */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-sub);
  margin-bottom: 7px;
}

.input, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  background: #fff;
  outline: none;
  transition: border-color .25s;
  border-radius: 0;
  appearance: none;
}

.input:focus, .select:focus { border-color: var(--c-ink); }

textarea.input { height: auto; padding: 12px 14px; min-height: 92px; resize: vertical; line-height: 1.7; }

.select {
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.form-tip { font-size: 12px; color: var(--c-sub); }

.form-err { font-size: 12px; color: var(--c-danger); min-height: 18px; }

/* -------------------------------------------------------------- 顶栏公告 */
/* 顶栏只承载公告：默认整条隐藏；公告开启时整条出现，文字完全居中、换行显示全 */
.topbar { display: none; background: var(--c-ink); color: #fff; font-size: 11px; letter-spacing: .12em; }
.topbar.notice-on { display: block; }
.topbar .wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 0; }
.topbar-notice { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.topbar-notice .notice-text { min-width: 0; text-align: center; line-height: 1.5; }
.topbar-notice .notice-close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.topbar-notice .notice-close:hover { color: #fff; }

/* ------------------------------------------------------------------ 页头 */
.header { background: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--c-line); }

.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 12px; }

.header-actions { display: flex; align-items: center; gap: 22px; justify-content: flex-end; }

.header-actions.left { justify-content: flex-start; }

/* LOGO：公司名（衬线大字）+ 品牌名（小字宽字距），参考 LV 字标版式 */
.logo {
  text-align: center;
  white-space: nowrap;
  padding: 0 6px;
  display: block;
}

.logo img { height: 52px; width: auto; max-width: 160px; display: inline-block; vertical-align: middle; }

.logo .logo-company {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .26em;
  text-indent: .26em;
  line-height: 1.2;
}

.logo .logo-brand {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .46em;
  text-indent: .46em;
  color: var(--c-sub);
  margin-top: 4px;
}

.logo img { max-height: 40px; margin: 0 auto; }

.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--c-text);
  border-radius: 2px;
  transition: opacity .2s;
}

.icon-btn:hover { opacity: .6; }

.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.3; }

.icon-btn > span { display: block; }

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--c-gold);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0;
}
@keyframes badge-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* 二级下拉面板：fixed 定位，避免被导航条横向滚动裁剪 */
.drop {
  position: fixed; z-index: 200; display: none;
  min-width: 158px; max-height: 68vh; overflow: auto;
  background: #fff; border: 1px solid var(--c-line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .14);
  padding: 8px 0;
}

.drop a {
  display: block; padding: 10px 18px; font-size: 13px; letter-spacing: .06em;
  color: var(--c-text); white-space: nowrap; border: none;
}

.drop a:hover { background: var(--c-bg-soft); }

.drop a.active { color: var(--c-ink); font-weight: 600; }

/* --------------------------------------------------- 移动端菜单抽屉 ------- */
.mnav {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(320px, 86vw);
  background: #fff;
  z-index: 121;
  transform: translateX(-100%);
  transition: transform .32s var(--ease);
  box-shadow: 8px 0 40px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
}

.mnav.open { transform: none; }

.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--c-line);
}

.mnav-title { font-family: var(--font-serif); font-size: 17px; letter-spacing: .12em; }

.mnav-title b { font-family: var(--font-sans); font-size: 11px; letter-spacing: .3em; color: var(--c-sub); margin-left: 6px; }

.mnav-close { font-size: 26px; line-height: 1; color: var(--c-mute); width: 44px; height: 44px; margin: -8px -8px -8px 0; }

.mnav-body { overflow-y: auto; padding: 6px 0 24px; flex: 1; -webkit-overflow-scrolling: touch; }

.mnav-body a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; font-size: 14px; letter-spacing: .08em;
  border-bottom: 1px solid #f4f4f4;
}

.mnav-body a:active { background: var(--c-bg-soft); }

.mnav-body a .new { font-size: 9px; color: var(--c-gold); letter-spacing: .14em; }

/* 抽屉内折叠分组（品类 / 面料 / 我的账户 / 客户服务）：点击展开 */
.mnav-acc { border-bottom: 1px solid #f4f4f4; }

.mnav-acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; font-size: 14px; letter-spacing: .08em; text-align: left;
  background: none; border: none; cursor: pointer; color: var(--c-text); font-family: inherit;
}

.mnav-acc-head:active { background: var(--c-bg-soft); }

.mnav-acc-head .acc-sign { color: var(--c-mute); font-size: 15px; line-height: 1; }

.mnav-acc-body { display: none; background: #fafafa; }

.mnav-acc.open .mnav-acc-body { display: block; }

.mnav-acc-body a { padding-left: 34px; font-size: 13px; }

/* ---------------------------------------------------------------- 搜索层 */
.search-panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .98);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.search-panel.open { opacity: 1; pointer-events: all; }

.search-box { width: min(720px, 84vw); }

.search-row { display: flex; gap: 14px; align-items: flex-end; }

.search-row input { flex: 1; min-width: 0; }

.search-row .btn { flex: 0 0 auto; height: 46px; padding: 0 26px; }

.search-box input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--c-ink);
  font-family: var(--font-serif);
  font-size: 30px;
  padding: 12px 0;
  outline: none;
  background: transparent;
}

.search-hint { margin-top: 18px; font-size: 12px; color: var(--c-sub); letter-spacing: .1em; }

.search-hint b { font-weight: 500; color: var(--c-text); }

.search-close { position: absolute; top: 34px; right: 44px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* ------------------------------------------------------------------ 首屏 */
.hero { position: relative; background: var(--c-bg-soft); }

.hero-slide { position: relative; display: block; overflow: hidden; }

.hero-slide img { width: 100%; height: min(78vh, 820px); object-fit: cover; transition: transform 1.2s var(--ease); }

.hero-slide:hover img { transform: scale(1.015); }

.hero-copy {
  position: absolute;
  left: 8%;
  bottom: 13%;
  color: #fff;
  max-width: 560px;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .28);
}

.hero-copy h1 { font-family: var(--font-serif); font-size: 52px; line-height: 1.15; letter-spacing: .04em; }

.hero-copy p { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; margin: 14px 0 26px; opacity: .92; }

.hero-copy .btn { background: #fff; color: #000; border-color: #fff; }

.hero-copy .btn:hover { background: transparent; color: #fff; }

.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }

.hero-dots button { width: 34px; height: 2px; background: rgba(255, 255, 255, .5); }

.hero-dots button.active { background: #fff; }

/* ---------------------------------------------------------------- 分类入口 */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 340px;
  overflow: hidden;
  background: var(--c-bg-warm);
}

.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }

.cat-card:hover img { transform: scale(1.05); }

.cat-card span {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  color: #fff;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- 商品卡片 */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }

.p-card { position: relative; overflow: hidden; }

.p-card .thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 3 / 4;
}

.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }

.p-card:hover .thumb img { transform: scale(1.04); }

.p-card .thumb img.alt { position: absolute; inset: 0; opacity: 0; }

.p-card:hover .thumb img.alt { opacity: 1; }

.p-card .quick {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 1px;
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}

.p-card:hover .quick { transform: translateY(0); }

.p-card .quick button {
  flex: 1;
  height: 44px;
  background: #000;
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .25s;
}

.p-card .quick button:hover { background: #2b2b2b; color: #fff; }

.p-card .tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  background: #000;
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.p-card .tag.grey { background: #8c8c8c; }

/* ---- 英文站：款式类型角标（现货 / 可定制）+ 详情页内联标签 ---- */
.p-card .tag.kind {
  left: auto; right: 12px;
  background: #fff; color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, .35);
  letter-spacing: .06em;
}
.p-card .tag.kind.custom { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* 详情页 / 询盘清单里的内联标签（不在 .p-card 内，不绝对定位） */
.info .tag,
.sum-item .tag,
.cc-layout .tag {
  display: inline-block;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid var(--c-line, #ddd);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 3px 8px;
  text-transform: uppercase;
  margin-right: 6px;
}
.info .tag.kind,
.sum-item .tag.kind { background: #f4f4f2; }

.p-info { padding: 15px 2px 0; }

.p-name { font-size: 13px; letter-spacing: .02em; }

.p-style { font-size: 11px; color: var(--c-mute); letter-spacing: .1em; margin-top: 4px; }

.p-price { margin-top: 8px; font-size: 14px; letter-spacing: .04em; }

.p-colors { display: flex; gap: 5px; margin-top: 10px; align-items: center; }

.p-colors i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18);
  display: block;
}

.p-colors em { font-style: normal; font-size: 11px; color: var(--c-mute); margin-left: 4px; letter-spacing: .06em; }

/* ---------------------------------------------------------------- 列表页 */
.page-head { padding: 1px 0 6px; border-bottom: none; }

   /* 面包屑行上对齐1px，无下边线 */
.crumb { font-size: 11px; letter-spacing: .12em; color: var(--c-mute); text-transform: uppercase; margin-bottom: 0; padding: 2px 0; }

.crumb a:hover { color: var(--c-ink); }

.page-head h1 { font-family: var(--font-serif); font-size: 34px; letter-spacing: .05em; }

.page-head p { color: var(--c-sub); margin-top: 10px; font-size: 13px; }

.chip {
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--c-line);
  font-size: 12px;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .25s;
  background: #fff;
}

.chip:hover { border-color: var(--c-ink); }

.chip.active { background: #000; color: #fff; border-color: #000; }

.filter-bar { display: flex; align-items: center; gap: 14px; padding: 6px 0 10px; border-bottom: none; flex-wrap: wrap; }

.filter-bar label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-sub); }

/* 定制库 / 询盘清单 两栏布局（手机单列，见下方媒体查询） */
.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 30px 0 90px; align-items: start; }

/* ★只给询盘清单页补左右内边距（老板 2026-10-18 反馈：缩略图贴死屏幕边）。
   不能用 .cc-layout 直接改：Contact 页的 .cc-layout 是嵌套在另一个 .wrap 里的，
   改公共类会让它重复内缩 40px。所以用 .iq-layout 单独挂。
   .cc-layout 的 padding 简写会把 .wrap 的 0 40px 覆盖成 0，这里显式补回 40px，
   补完缩略图左边界与面包屑完全对齐（实测差值 -40px → 0）。 */
.cc-layout.iq-layout { padding-left: 40px; padding-right: 40px; }

/* 面包屑行：左路径、右计数（同一行右对齐） */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.head-row .crumb { margin: 0; padding: 2px 0; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 筛选控件（价格输入等）：只留底边 */
.filter-bar .select {
  border: none; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent;
}

.filter-bar .select:focus { border-bottom-color: var(--c-ink); }

/* 面包屑行 / 批发行的下拉（面料、分类）：纯文字——无底线、无箭头符号，所有页统一 */
.head-row .select {
  width: auto; min-width: 0; max-width: none; height: 28px; padding: 0 2px;
  border: none; border-radius: 0; background: none;
  -webkit-appearance: none; appearance: none;
  font-size: 12px; letter-spacing: .06em; color: var(--c-text);
}

/* 下拉前的 || 筛选标识 */
.selwrap { display: inline-flex; align-items: center; gap: 5px; }

.selwrap .bars { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--c-ink); opacity: .85; flex: 0 0 auto; }

.chip-line { border: none; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent; }

.chip-line:hover { border-color: var(--c-line); border-bottom-color: var(--c-ink); }

.filter-bar label, .filter-bar .chip, .filter-bar .select { font-size: 12px; }

.empty { padding: 100px 0; text-align: center; color: var(--c-sub); }

.empty h3 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 12px; color: var(--c-text); }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 54px 0 10px; }

.pager button {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--c-line);
  font-size: 12px;
  transition: all .25s;
}

.pager button:hover { border-color: #000; }

.pager button.active { background: #000; color: #fff; border-color: #000; }

.pager button[disabled] { opacity: .3; pointer-events: none; }

/* ---------------------------------------------------------------- 详情页 */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; padding: 34px 0 70px; }

.gallery { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }

.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 760px; overflow-y: auto; }

.thumbs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; opacity: .55; cursor: pointer; transition: opacity .25s; border: 1px solid transparent; }

.thumbs img:hover { opacity: .85; }

.thumbs img.active { opacity: 1; border-color: var(--c-ink); }

.stage { position: relative; background: var(--c-bg-soft); overflow: hidden; }

.stage img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.stage .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  opacity: 0;
  transition: opacity .25s;
}

.stage:hover .arrow { opacity: 1; }

.stage .arrow.prev { left: 14px; }

.stage .arrow.next { right: 14px; }

.stage .idx { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: #fff; background: rgba(0,0,0,.4); padding: 3px 9px; letter-spacing: .1em; }

.info { padding-top: 6px; }

.info h1 { font-family: var(--font-serif); font-size: 27px; letter-spacing: .04em; line-height: 1.35; }

.info .style-no { font-size: 12px; color: var(--c-mute); letter-spacing: .16em; margin-top: 10px; text-transform: uppercase; }

.info .price { font-size: 24px; margin: 22px 0 6px; letter-spacing: .03em; }

.info hr { border: none; border-top: 1px solid var(--c-line); margin: 24px 0; }

.opt-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }

.opt-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-sub); }

.opt-label b { color: var(--c-text); font-weight: 500; text-transform: none; letter-spacing: .04em; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }

.swatch { text-align: center; width: 62px; }

.swatch .img {
  width: 58px; height: 74px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  padding: 2px;
  background: #fff;
  transition: border-color .25s;
}

.swatch:hover .img { border-color: #999; }

.swatch.active .img { border-color: var(--c-ink); border-width: 1px; box-shadow: 0 0 0 1px var(--c-ink) inset; }

.swatch span { display: block; font-size: 11px; color: var(--c-sub); margin-top: 5px; letter-spacing: .04em; }

.swatch.active span { color: var(--c-text); }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; }

.size-btn {
  min-width: 54px; height: 42px;
  border: 1px solid var(--c-line);
  font-size: 13px;
  letter-spacing: .08em;
  transition: all .2s;
  background: #fff;
}

.size-btn:hover { border-color: #000; }

.size-btn.active { background: #000; color: #fff; border-color: #000; }

.size-btn[disabled] { color: #ccc; text-decoration: line-through; pointer-events: none; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); height: 42px; }

.qty button { width: 40px; height: 100%; font-size: 15px; color: var(--c-sub); }

.qty button:hover { color: #000; }

.qty input { width: 52px; text-align: center; border: none; outline: none; height: 100%; }

.stock-tip { font-size: 12px; color: var(--c-sub); }

.stock-tip b { color: var(--c-ok); font-weight: 500; }

.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 10px; }

.accordion { border-top: 1px solid var(--c-line); margin-top: 26px; }

.acc-item { border-bottom: 1px solid var(--c-line); }

.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
}

.acc-head span.sign { font-size: 17px; color: var(--c-sub); transition: transform .3s; }

.acc-item.open .acc-head span.sign { transform: rotate(45deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }

.acc-item.open .acc-body { max-height: 620px; }

.acc-body-inner { padding: 0 0 20px; font-size: 13px; color: var(--c-sub); line-height: 1.9; }

.acc-body-inner p { margin: 0 0 8px; }

.detail-tabs { border-top: 1px solid var(--c-line); margin-top: 30px; }

.tab-panel { padding: 26px 0 80px; }

.detail-html { max-width: 860px; margin: 0 auto; font-size: 14px; line-height: 2; color: #333; }

.detail-html h3 { font-family: var(--font-serif); font-size: 20px; margin: 26px 0 10px; }

.detail-html img { width: 100%; margin: 12px 0; }

.detail-gallery { display: grid; gap: 12px; max-width: 1000px; margin: 0 auto; }

.detail-gallery img { width: 100%; }

/* ------------------------------------------------------------------ 购物车抽屉 */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}

.overlay.open { opacity: 1; pointer-events: all; }

.qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--c-line); height: 30px; }

.qty-mini button { width: 28px; height: 100%; font-size: 13px; color: var(--c-sub); }

.qty-mini span { min-width: 30px; text-align: center; font-size: 12px; }

.link-del { font-size: 11px; color: var(--c-mute); text-decoration: underline; }

.link-del:hover { color: var(--c-danger); }

.summary { border: 1px solid var(--c-line); padding: 24px 26px; position: sticky; top: calc(var(--header-h) + 20px); }

.summary h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }

.sum-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f1f1; align-items: center; }

.sum-item img { width: 60px; aspect-ratio: 3/4; object-fit: cover; cursor: zoom-in; }

.sum-item .t { font-size: 12px; line-height: 1.5; }

.sum-item .m { font-size: 11px; color: var(--c-mute); }

.sum-item .p { font-size: 12px; text-align: right; }

/* 清单行右列的 In Stock / 价格 / Remove 三项要齐边：
   共用规则给 .tag 加了 margin-right:6px，会让标签比下面两项短 6px，这里归零 */
.sum-item .tag { margin-right: 0; }

/* ------------------------------------------- 询盘清单页专属（老板 2026-10-18 指定）
   ① 区块标题一头对齐 + 上下间距 10px。
      用 .sec-head.iq-head 双类提高优先级，才能盖掉手机端 .sec-head 的 42px/22px。
   ② 客户信息表单：说明文字与输入框同一行；输入框高度在两端各自基础上 −20%
      （桌面 .input 46px → 37px；手机 48px → 38px，见 860px 媒体查询）。
      只作用于 #iq-form，Contact 页 / 后台登录 / 筛选框不受影响。 */
.sec-head.iq-head { padding: 10px 0; }

.iq-head .sec-title { margin: 0; }

#iq-form .field { display: flex; align-items: flex-start; gap: 10px; }

#iq-form .field > label { flex: 0 0 96px; margin-bottom: 0; line-height: 37px; }

#iq-form .field > .input { flex: 1 1 auto; width: auto; min-width: 0; height: 37px; padding: 0 10px; }

#iq-form .field > textarea.input { height: auto; min-height: 74px; padding: 8px 10px; }

/* ------------------------------------------------------------------ 页脚 */
.footer { border-top: 1px solid var(--c-line); margin-top: 40px; background: #fff; }

.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding: 22px 0 34px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--c-mute); letter-spacing: .06em;
}

/* ------------------------------------------------------------------ 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .42);
  z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s;
}

.modal-mask.open { opacity: 1; pointer-events: all; }

.modal {
  background: #fff; width: min(480px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 34px 36px; transform: translateY(12px); transition: transform .3s var(--ease);
}

.modal-mask.open .modal { transform: translateY(0); }

.modal h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; letter-spacing: .04em; }

.modal .sub { font-size: 12px; color: var(--c-sub); margin-bottom: 24px; }

.modal-close { position: absolute; top: 16px; right: 20px; font-size: 20px; color: var(--c-mute); }

/* ------------------------------------------------------------------ 提示 */
.toast-wrap { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }

.toast {
  background: #111; color: #fff; padding: 12px 26px; font-size: 13px; letter-spacing: .06em;
  animation: toastIn .3s var(--ease); box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.toast.err { background: var(--c-danger); }

.toast.ok { background: #1f7a45; }
@keyframes toastIn{

 from { opacity: 0; transform: translateY(-8px); }

 to { opacity: 1; transform: none; }

 }

.loading { padding: 90px 0; text-align: center; color: var(--c-mute); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

.skeleton { background: linear-gradient(90deg, #f3f3f3 25%, #eaeaea 37%, #f3f3f3 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk{

 0% { background-position: 100% 50%; }

 100% { background-position: 0 50%; }

 }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px){

  .grid-products, .cats { grid-template-columns: repeat(3, 1fr); }

  .detail { grid-template-columns: 1fr; gap: 34px; }

  .summary { position: static; }

}

/* ============================================================ 手机端 ===== */
@media (max-width: 860px){

  :root { --header-h: 66px; --sec-gap: 28px; }

   /* 无横向导航条，仅页头主行 */
  .wrap { padding: 0 16px; }

  /* 顶部公告条：手机字号略小 */
  .topbar .wrap { min-height: 30px; font-size: 10px; letter-spacing: .06em; }

  /* 页头：菜单 | LOGO | 会员·购物车 */
  .header-main {
    grid-template-columns: auto 1fr auto;
    height: auto;
    min-height: 64px;
    padding: 8px 0;
    gap: 6px;
  }

  .header-actions { gap: 4px; }

  .header-actions .icon-btn > span { display: none; }

     /* 图标按钮只留图标 */
  .header-actions .icon-btn { min-width: 44px; min-height: 44px; }

  .header-actions.left .icon-btn:nth-child(2) { display: inline-flex; }

 /* 页头搜索保留（页尾导航窄屏已移除） */
  .logo .logo-company { font-size: 20px; letter-spacing: .2em; text-indent: .2em; }

  .logo .logo-brand { font-size: 9px; letter-spacing: .4em; text-indent: .4em; margin-top: 2px; }

  /* 栅格与间距 */
  .grid-products, .cats { grid-template-columns: repeat(2, 1fr); }

  .grid-products { gap: 20px 10px; }

  .cats { gap: 2px; }

  .cat-card { height: 200px; }

  .p-info { padding: 11px 2px 0; }

  .p-name { font-size: 12.5px; line-height: 1.45; }

  .p-style { font-size: 10.5px; margin-top: 2px; }

  .p-price { font-size: 13.5px; margin-top: 5px; }

  .p-card .quick { transform: none; position: static; margin-top: 8px; }

  .p-card .quick button { height: auto; font-size: 11px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); padding: 6px; line-height: 1.6; }

  /* 首屏 */
  .hero-slide img { height: 68vh; min-height: 380px; object-position: 50% 30%; }

  .hero-copy { left: 6%; right: 6%; bottom: 9%; max-width: none; }

  .hero-copy h1 { font-size: 27px; line-height: 1.22; }

  .hero-copy p { font-size: 11px; letter-spacing: .16em; margin: 10px 0 18px; }

  .hero-copy .btn { height: 46px; padding: 0 26px; font-size: 11px; }

  .hero-dots { bottom: 16px; }

  .sec-head { padding: 42px 0 22px; }

  .sec-title { font-size: 22px; }

  /* 列表页工具栏 */
  .page-head { padding: 26px 0 16px; }

  .page-head h1 { font-size: 22px; }

  .page-head p { font-size: 12px; margin-top: 6px; }

  .chip { height: 38px; padding: 0 14px; flex: 0 0 auto; }

  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-bar > * { flex: 0 0 auto; }

  .pager { padding: 34px 0 8px; gap: 6px; }

  .pager button { min-width: 36px; height: 36px; }

  /* 详情页：图片区 + 信息区，底部吸附购买栏 */
  .detail { grid-template-columns: 1fr; gap: 22px; padding: 16px 0 130px; }

  .gallery { grid-template-columns: 1fr; gap: 10px; }

  .stage img { aspect-ratio: 3 / 4; }

  .thumbs { flex-direction: row; max-height: none; overflow-x: auto; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }

  .thumbs img { width: 58px; flex: 0 0 auto; aspect-ratio: 3/4; }

  .stage .arrow { display: none; }

              /* 手机端去掉左右方向按钮，改为在图上左右滑动 */
  .stage { touch-action: pan-y; }

  .info h1 { font-size: 21px; }

  .info .price { font-size: 22px; margin: 14px 0 4px; }

  .info hr { margin: 18px 0; }

  .swatch { width: 56px; }

  .swatch .img { width: 52px; height: 66px; }

  .size-btn { min-width: 60px; height: 46px; font-size: 14px; }

  .qty { height: 46px; }

  .qty button { width: 46px; }

  .detail-gallery { gap: 8px; }

  /* 详情页吸附购买栏 */
  .buy-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px);
    z-index: 70;
    background: #fff;
    border-top: 1px solid var(--c-line);
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
  }

  .buy-bar .bb-price { flex: 0 0 auto; font-size: 15px; letter-spacing: .02em; }

  .buy-bar .bb-price small { display: block; font-size: 10px; color: var(--c-mute); letter-spacing: .06em; }

  .buy-bar .btn { flex: 1; height: 46px; padding: 0 8px; font-size: 11px; letter-spacing: .1em; }

  .qty-mini { height: 36px; }

  .qty-mini button { width: 38px; font-size: 15px; }

  .summary { padding: 18px; }

  .sum-item { grid-template-columns: 54px 1fr auto; gap: 10px; }

  /* 手机端清单行右列：In Stock / 价格 / Remove 三项居中对齐（老板 2026-10-18 指定） */
  .sum-item .p { text-align: center; }

  /* 按钮与表单：加大触控热区 */
  .btn { height: 48px; padding: 0 22px; font-size: 12px; letter-spacing: .12em; }

  .btn-lg { height: 52px; padding: 0 26px; }

  .input, .select { height: 48px; font-size: 15px; }

  /* 询盘页表单手机端：48px 基础上 −20% = 38px；标签列略窄给输入框让位 */
  #iq-form .field > label { flex-basis: 88px; line-height: 38px; }

  #iq-form .field > .input { height: 38px; }

  .modal { padding: 24px 20px; width: 100%; }

  .modal-mask { padding: 16px 16px 0; align-items: flex-end; }

  /* 手机端规格/表单弹窗贴底：去内底距+去圆角感，从底部升起 */
  .modal { border-radius: 14px 14px 0 0; transform: translateY(100%); }
  .modal-mask.open .modal { transform: translateY(0); }

  .modal { max-height: 92vh; }

  .toast-wrap { top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); left: 16px; right: 16px; transform: none; }

  .toast { text-align: center; padding: 12px 18px; }

  /* 页脚 */
  .footer { margin-top: 24px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); font-size: 10px; }

}

/* 更小屏（iPhone SE 等） */
@media (max-width: 400px){

  :root { --header-h: 66px; }

  .logo img { height: 44px; }

  .logo .logo-company { font-size: 18px; letter-spacing: .14em; text-indent: .14em; }

  .grid-products { gap: 16px 8px; }

  .p-name { font-size: 12px; }

  .hero-copy h1 { font-size: 23px; }

  .buy-bar .btn { font-size: 10px; letter-spacing: .06em; }

  .swatch { width: 52px; }

  .swatch .img { width: 48px; height: 62px; }

}

/* 触屏设备：取消 hover 位移与缩放，避免点击后残留状态 */
@media (hover: none){

  .p-card:hover .thumb img { transform: none; }

  .p-card:hover .thumb img.alt { opacity: 0; }

  .cat-card:hover img { transform: none; }

  .hero-slide:hover img { transform: none; }

  .btn:hover { background: var(--c-ink); border-color: var(--c-ink); }

  .btn-ghost:hover { background: #fff; color: var(--c-ink); border-color: var(--c-line); }

  .btn-line:hover { background: transparent; color: var(--c-ink); }

}

/* 桌面端：详情页吸附购买栏隐藏（横向导航条已移除，三横菜单在所有设备可用） */
@media (min-width: 861px){

  .buy-bar { display: none; }

}

.muted { color: var(--c-mute); font-size: 12px; }

/* ============ 手机端(≤860)：筛选单行 / 工具条换行 / 定制库单列 ============ */
@media (max-width: 860px){

  /* 手机端：面包屑行 / 价格行 / 商品网格 三行行距收紧 */
  .page-head { padding: 1px 0 0; }

  .head-row .crumb { padding: 0; }

  .head-row .select { height: 24px; }

  .selwrap .bars { height: 10px; }

  .filter-bar { flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 2px 0 2px; scrollbar-width: none; }

  .grid-products { padding-top: 12px !important; }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-bar label { font-size: 10px; letter-spacing: .04em; }

  .filter-bar .select { width: auto; max-width: 88px; height: 30px; font-size: 12px; }

  .filter-bar .chip { padding: 4px 8px; font-size: 11px; }

  .cc-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px 0 120px; }

  /* 手机端询盘清单页（同样只挂 .iq-layout，不影响 Contact 页的嵌套 .cc-layout）：
     ① 左右 8px —— 缩略图和右列不再贴死屏幕边（老板 2026-10-18 指定 8px）
     ② 上内边距归零 —— 面包屑到 Selected Products 原本叠了 20px+10px=30px，
        看着像空了一行；归零后上方只剩标题区自己的 10px，与下方 10px 对称 */
  .cc-layout.iq-layout { padding: 0 8px 120px; }

  .cc-layout .summary { position: static; }
  .buy-actions { display: none; }   /* 手机端只留底部浮动购买栏，避免两个"加入购物车" */
  #spec-area { display: none; }     /* 颜色/尺码/数量改在弹窗里选，下层不重复显示 */
}

