/* ======================================================
   坤林石材 · 主样式
   设计语言：暖白（alabaster）+ 纯黑 + 细字重 + 大留白
   参考：意大利石材品牌式极简，无卡片框、无圆角、无阴影
   ====================================================== */
:root {
  --bg: #f6f5e8;          /* alabaster 雪花石膏白 */
  --paper: #ffffff;
  --bg-2: #efeee1;        /* 深一档暖白，用于分区 */
  --ink: #0a0a0a;
  --ink-2: #2b2a26;
  --muted: #6f6c62;
  --faint: #9c988c;
  --line: rgba(10, 10, 10, .18);
  --line-2: rgba(10, 10, 10, .09);
  --accent: #8e3b2f;      /* 赭红，仅用于极少量强调 */
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei Light", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1380px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--bg); }

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 20px 40px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease);
}
.nav.solid { padding: 13px 40px; border-bottom-color: var(--line-2); }

.brand { display: flex; align-items: baseline; gap: 10px; justify-self: start; }
.brand .mark { display: none; }
/* 页头标志：用 mask 上色，跟随文字颜色（透明首屏自动变白、滚动后变黑） */
.brand-mark {
  width: 24px; height: 24px; flex: 0 0 auto; display: block; align-self: center;
  background: currentColor;
  -webkit-mask: url("/img/logo-mark-dark.png") center / contain no-repeat;
  mask: url("/img/logo-mark-dark.png") center / contain no-repeat;
}
.foot-mark { display: block; flex: 0 0 auto; align-self: center; border-radius: 2px; }
.brand b {
  font-weight: 300; font-size: 16px; letter-spacing: .16em;
  line-height: 1;
}
.brand span span {
  display: inline-block; font-size: 9.5px; letter-spacing: .32em;
  color: var(--faint); text-transform: uppercase; margin-left: 4px;
}

/* 首页：导航压在首屏大图上，透明白字；滚动后转实心 */
.nav.over:not(.solid) { background: transparent; }
.nav.over:not(.solid) .brand b,
.nav.over:not(.solid) .brand span span,
.nav.over:not(.solid) .nav-links a,
.nav.over:not(.solid) .nav-tel { color: #fff; }
.nav.over:not(.solid) .brand span span { color: rgba(255,255,255,.6); }
.nav.over:not(.solid) .nav-links a::after { background: #fff; }
.nav.over:not(.solid) .nav-tel { border-bottom-color: rgba(255,255,255,.45); }
.nav.over:not(.solid) .burger i { background: #fff; }

.nav-links { display: flex; align-items: center; gap: 38px; justify-self: center; }
.nav-links a {
  font-size: 12px; letter-spacing: .17em; color: var(--ink-2);
  position: relative; padding: 3px 0; transition: opacity .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.on::after { width: 100%; }
.nav-links a.on { color: var(--ink); }

.nav-tel {
  justify-self: end; font-size: 12px; letter-spacing: .14em; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s;
}
.nav-tel:hover { border-color: var(--ink); }

.burger { display: none; width: 30px; height: 30px; background: none; border: 0; cursor: pointer; position: relative; justify-self: end; grid-column: 3; grid-row: 1; }
.burger i { position: absolute; left: 0; width: 22px; height: 1px; background: var(--ink); transition: .3s var(--ease); }
.burger i:nth-child(1) { top: 10px; } .burger i:nth-child(2) { top: 15px; } .burger i:nth-child(3) { top: 20px; }

/* ---------- Hero：全屏大图，文案压左下 ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,0) 62%),
              linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 22%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap);
  margin: 0 auto; padding: 0 40px 74px; color: #fff;
}
.eyebrow {
  display: block; font-size: 10.5px; letter-spacing: .38em;
  text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 24px;
}
.hero h1 {
  font-weight: 300; font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.12; letter-spacing: .02em; margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.28);
}
.hero h1 em { font-style: normal; font-weight: 200; }
.hero p.lead {
  max-width: 32em; margin: 26px 0 0; color: rgba(255,255,255,.88);
  font-size: 14.5px; line-height: 2; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* hero 底部的信息条：极细，只有一条线 */
.hero-foot {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap);
  margin: 0 auto; padding: 0 40px;
}
.hero-foot .wrap {
  display: flex; gap: 56px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.24); max-width: none;
}
.hero-foot div { padding: 0; }
.hero-foot b {
  display: block; font-weight: 300; font-size: 21px; letter-spacing: .06em;
  color: #fff; line-height: 1.2;
}
.hero-foot span { font-size: 10.5px; letter-spacing: .24em; color: rgba(255,255,255,.62); text-transform: uppercase; }

/* ---------- 按钮：1px 描边矩形，无圆角 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; border-radius: 0; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.sm { padding: 11px 22px; font-size: 10px; letter-spacing: .16em; }

/* ---------- 区块 ---------- */
section { padding: 130px 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.sec-head .l { max-width: 680px; }
.sec-no { font-size: 10.5px; letter-spacing: .34em; color: var(--faint); text-transform: uppercase; }
.sec-head h2 {
  font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.28; letter-spacing: .02em; margin: 16px 0 0;
}
.sec-head p { color: var(--muted); margin: 18px 0 0; font-size: 14px; line-height: 2; max-width: 44em; }
.sec-head .r { flex: 0 0 auto; padding-bottom: 6px; }
.link-more {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 5px; transition: border-color .3s;
}
.link-more:hover { border-color: var(--ink); }

/* ---------- 石材卡片：A 的排版骨架 + B 的卡片质感 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.card {
  display: block; position: relative;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 9px 9px 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 10, 10, .14);
  box-shadow: 0 2px 6px rgba(10, 10, 10, .04), 0 20px 40px -24px rgba(10, 10, 10, .26);
}
.card .shot {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-2); border-radius: 9px;
}
.card .shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .shot img { transform: scale(1.04); }
.card .tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; letter-spacing: .1em;
  color: var(--ink); background: rgba(255, 255, 255, .94);
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card .tag.sold { background: var(--ink); color: #fff; }

.card .info { padding: 14px 8px 15px; }
.card .line1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card .info h3 {
  font-weight: 400; font-size: 15px; letter-spacing: .03em;
  margin: 0; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .code { font-size: 10px; letter-spacing: .12em; color: var(--faint); white-space: nowrap; flex: 0 0 auto; }
.card .meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 9px;
}
.card .price { font-size: 14px; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .price small { font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.card .r { display: flex; align-items: center; gap: 9px; }
.card .stock { font-size: 10px; color: var(--faint); letter-spacing: .06em; white-space: nowrap; }
.card .go {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover .go { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateX(1px); }
.card .hover-line { display: none; }

/* ---------- 透光展示 ---------- */
.showcase { background: var(--paper); }
.video-box {
  position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden;
}
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box .play {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(0,0,0,.18); border: 0; width: 100%; transition: opacity .4s;
}
.video-box .play.hide { opacity: 0; pointer-events: none; }
.video-box .play .ring {
  width: 92px; height: 92px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 10.5px; letter-spacing: .18em;
  background: rgba(0,0,0,.18); backdrop-filter: blur(3px); transition: .4s var(--ease);
}
.video-box .play:hover .ring { background: #fff; color: var(--ink); border-color: #fff; }
.video-note {
  position: absolute; left: 24px; bottom: 22px; font-size: 10.5px; letter-spacing: .2em;
  color: rgba(255,255,255,.85); text-transform: uppercase;
}
.showcase-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 20px 0; border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line-2); }
.feature-list i { font-style: normal; color: var(--faint); font-size: 10.5px; letter-spacing: .18em; padding-top: 4px; }
.feature-list b { font-weight: 400; font-size: 14.5px; letter-spacing: .04em; display: block; }
.feature-list span { color: var(--muted); font-size: 13px; line-height: 1.85; }

/* ---------- 工艺流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 30px 34px 0; border-right: 1px solid var(--line-2); }
.step:last-child { border-right: 0; }
.step .n { font-size: 10px; letter-spacing: .26em; color: var(--faint); text-transform: uppercase; }
.step h4 { font-weight: 300; font-size: 19px; letter-spacing: .06em; margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.95; margin: 0; }

/* ---------- 关于 ---------- */
.about { display: grid; gap: 56px; }
.about-img { position: relative; aspect-ratio: 2000 / 851; overflow: hidden; background: var(--bg-2); margin: 0; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-img a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; border-top: 1px solid var(--line); padding-top: 40px; }
.about-body .stats { border-top: 0; padding-top: 0; margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.stats b { display: block; font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: .02em; }
.stats span { font-size: 10.5px; letter-spacing: .2em; color: var(--faint); display: block; margin-top: 10px; text-transform: uppercase; }

/* ---------- 联系 ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-info dl { display: grid; gap: 26px; margin: 36px 0 0; }
.contact-info dt { font-size: 10.5px; letter-spacing: .26em; color: var(--faint); text-transform: uppercase; }
.contact-info dd { margin: 7px 0 0; font-size: 15px; letter-spacing: .03em; }
.contact-info dd.big { font-size: 23px; font-weight: 300; letter-spacing: .05em; }
form.fb { display: grid; gap: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field label { display: block; font-size: 10.5px; letter-spacing: .22em; color: var(--faint); margin-bottom: 10px; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0 12px; font-size: 14.5px; color: var(--ink);
  transition: border-color .3s; border-radius: 0; font-weight: 300;
}
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom-color: var(--ink); }
.field textarea { min-height: 92px; resize: vertical; }
.form-msg { font-size: 12.5px; letter-spacing: .04em; min-height: 20px; }
.form-msg.ok { color: #3f6b3f; } .form-msg.err { color: var(--accent); }
.hint { font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }

/* ---------- 页脚 ---------- */
footer { padding: 76px 0 38px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.foot-grid h5 { font-size: 10.5px; letter-spacing: .26em; color: var(--faint); margin: 0 0 18px; font-weight: 400; text-transform: uppercase; }
.foot-grid p, .foot-grid a { color: var(--ink-2); font-size: 13px; line-height: 2.2; margin: 0; font-weight: 300; }
.foot-grid a:hover { color: var(--faint); }
.foot-bottom {
  margin-top: 56px; padding-top: 22px; padding-right: 60px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--faint); letter-spacing: .06em;
}
.qr {
  width: 108px; height: 108px; padding: 0; background: #fff; cursor: zoom-in;
  border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden;
  transition: border-color .3s;
}
.qr:hover { border-color: var(--ink); }
.qr img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px; }

/* ---------- 扫码加微信 ---------- */
.wx-box {
  display: flex; align-items: center; gap: 18px;
  margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-2);
}
.wx-box img {
  width: 104px; height: 104px; flex: 0 0 auto; display: block;
  background: #fff; padding: 4px; border: 1px solid var(--line-2); border-radius: 4px;
  cursor: zoom-in;
}
.wx-box b { display: block; font-weight: 400; font-size: 14px; letter-spacing: .04em; }
.wx-box span { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.8; color: var(--faint); letter-spacing: .04em; }

.qr-sheet {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 26px;
  background: rgba(12, 12, 12, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.qr-sheet.on { display: flex; }
.qr-card {
  position: relative; width: 100%; max-width: 300px; padding: 30px 26px 24px;
  background: #fff; border-radius: 18px; text-align: center;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  animation: qrIn .28s var(--ease);
}
@keyframes qrIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.qr-x {
  position: absolute; top: 8px; right: 10px; width: 30px; height: 30px;
  background: none; border: 0; font-size: 22px; line-height: 1; color: var(--faint); cursor: pointer;
}
.qr-box { width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; }
.qr-card b { display: block; margin-top: 16px; font-weight: 400; font-size: 14.5px; letter-spacing: .06em; }
.qr-tip { margin: 8px 0 0; font-size: 11.5px; color: var(--faint); letter-spacing: .06em; }
.qr-copy {
  margin-top: 16px; width: 100%; padding: 11px 0; font-size: 12px; letter-spacing: .04em;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; cursor: pointer;
  transition: opacity .3s;
}
.qr-copy:hover { opacity: .8; }

/* ---------- 画廊页 ---------- */
.page-head { padding: 168px 0 44px; }
.page-head h1 { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: .02em; margin: 16px 0 0; line-height: 1.2; }
.filters {
  display: flex; flex-wrap: wrap; gap: 0; align-items: center;
  padding: 0 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 46px;
}
.chip {
  padding: 12px 0; margin-right: 30px; font-size: 11.5px; letter-spacing: .14em;
  color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid transparent;
  cursor: pointer; transition: color .3s, border-color .3s; margin-bottom: -1px;
}
.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); border-bottom-color: var(--ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }
.search input {
  background: none; border: 0; outline: 0; width: 160px; font-size: 12.5px;
  border-bottom: 1px solid var(--line); padding: 6px 0; letter-spacing: .06em;
}
.search input:focus { border-bottom-color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.empty { padding: 100px 0; text-align: center; color: var(--faint); font-size: 13px; letter-spacing: .14em; }

/* ---------- 详情页 ---------- */
.detail { padding: 140px 0 100px; }
.dt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
.gallery-main { position: relative; background: var(--bg-2); aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 14px; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 0; border-radius: 8px; background: var(--bg-2); overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .3s, box-shadow .3s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }
.thumbs button.on { box-shadow: 0 0 0 1.5px var(--ink) inset; }

.dt-info .cat { font-size: 10.5px; letter-spacing: .3em; color: var(--faint); text-transform: uppercase; }
.dt-info h1 { font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: .02em; margin: 16px 0 0; line-height: 1.22; }
.dt-info .code { font-size: 11.5px; letter-spacing: .18em; color: var(--faint); margin-top: 12px; }
.dt-price {
  display: flex; align-items: baseline; gap: 16px; margin: 34px 0 0;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dt-price .num { font-weight: 300; font-size: 32px; letter-spacing: .02em; }
.dt-price .stock { font-size: 11.5px; color: var(--muted); letter-spacing: .12em; }
.spec { width: 100%; border-collapse: collapse; margin: 30px 0 0; font-size: 13.5px; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec th { color: var(--faint); font-weight: 300; width: 100px; letter-spacing: .12em; font-size: 11.5px; }
.spec td { font-weight: 300; letter-spacing: .03em; }
.dt-desc { color: var(--muted); font-size: 14px; line-height: 2.05; margin: 26px 0 0; }
.dt-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.dt-note { font-size: 11.5px; color: var(--faint); margin-top: 22px; line-height: 1.95; }
.related { padding: 110px 0; border-top: 1px solid var(--line); }

/* ---------- 浮动联系 ---------- */
.float-cta { position: fixed; right: 22px; bottom: 26px; z-index: 80; display: grid; gap: 8px; }
.float-cta a {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 10.5px; letter-spacing: .04em;
  border-radius: 999px; box-shadow: 0 6px 20px -6px rgba(10,10,10,.45);
  transition: opacity .3s, transform .3s;
}
.float-cta a:hover { opacity: .75; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid, .about-body, .contact-grid, .dt-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step { padding: 28px 24px 28px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 26px; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 16px 20px; gap: 14px; }
  .nav.solid { padding: 12px 20px; }
  .brand b { font-size: 14px; letter-spacing: .34em; }
  .brand span span { display: none; }
  .nav-tel { display: none; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--bg); border-left: 1px solid var(--line-2);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 30px; padding: 40px 34px; transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 15px; letter-spacing: .12em; }
  .wrap, .hero-inner, .hero-foot { padding-left: 20px; padding-right: 20px; }
  section { padding: 82px 0; }
  .about { gap: 36px; }
  .about-img { aspect-ratio: 2000 / 851; }
  .about-body { gap: 32px; }
  .about-body .stats { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 4px; }
  .hero { min-height: 88svh; }
  .hero-inner { padding-bottom: 40px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.35rem); line-height: 1.16; }
  .hero p.lead { font-size: 13.5px; line-height: 1.95; margin-top: 20px; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-actions .btn { padding: 13px 22px; font-size: 10px; flex: 1 1 0; }
  .hero-foot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; padding: 20px 0 22px; }
  .hero-foot b { font-size: 17px; }
  .hero-foot span { font-size: 9.5px; letter-spacing: .18em; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 7px 7px 0; border-radius: 12px; }
  .card .shot { border-radius: 8px; }
  .card .info { padding: 11px 5px 12px; }
  .card .info h3 { font-size: 13.5px; letter-spacing: .01em; }
  .card .code { display: none; }
  .card .meta { margin-top: 6px; gap: 8px; }
  .card .price { font-size: 12.5px; }
  .card .go { width: 26px; height: 26px; font-size: 11px; }
  .card .stock { font-size: 9.5px; }
  .card .price { font-size: 12px; }
  .card .price small { font-size: 9.5px; }
  .card .r { gap: 6px; }
  body { padding-bottom: 66px; }
  .float-cta {
    left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px;
    background: rgba(246, 245, 232, .92); backdrop-filter: blur(10px);
    padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(10, 10, 10, .3);
  }
  .float-cta a { flex: 1; width: auto; height: 42px; border-radius: 999px; font-size: 11.5px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { gap: 12px; }
  .stats b { font-size: 26px; }
  .stats span { font-size: 9.5px; letter-spacing: .12em; margin-top: 7px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .row2 { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-head { padding: 120px 0 30px; }
  .detail { padding: 108px 0 64px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .dt-price .num { font-size: 27px; }
  .search { margin-left: 0; width: 100%; margin-top: 10px; }
  .chip { margin-right: 22px; }
  .foot-bottom { padding-right: 0; }
  .dt-actions { gap: 8px; }
  .dt-actions .btn { flex: 1 1 0; padding: 13px 8px; font-size: 11px; white-space: nowrap; justify-content: center; }
  .wx-box { gap: 14px; margin-top: 26px; padding-top: 24px; }
  .wx-box img { width: 96px; height: 96px; }
  .wx-box b { font-size: 13px; }
  .wx-box span { font-size: 11px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- 常规石材目录 ---------- */
.cat-entry { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat-entry a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px;
  letter-spacing: .12em; color: var(--ink); transition: background .3s, color .3s;
}
.cat-entry a:hover { background: var(--ink); color: var(--paper); }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs .chip em { font-style: normal; font-size: 9.5px; opacity: .6; margin-left: 5px; letter-spacing: 0; }
.cat-count { padding: 20px 0 4px; color: var(--muted); font-size: 12.5px; letter-spacing: .1em; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 22px 0 40px; }
.cat-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px -26px rgba(20, 20, 15, .35); border-color: var(--line); }
.cat-card .pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.cat-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .pic img { transform: scale(1.045); }
.cat-card .body { padding: 18px 20px 20px; }
.cat-card .cat-tag {
  display: inline-block; font-size: 9.5px; letter-spacing: .14em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px;
}
.cat-card h3 { font-size: 16px; font-weight: 400; letter-spacing: .06em; margin: 14px 0 4px; }
.cat-card .en { font-size: 9.5px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.cat-card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; font-size: 11px; color: var(--muted);
}
.cat-card .go {
  width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: var(--ink); transition: background .3s, color .3s;
}
.cat-card:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-card .price { margin-top: 10px; font-size: 14px; letter-spacing: .02em; }
.cat-card .price small { font-size: 10px; color: var(--faint); }
.cat-note {
  color: var(--faint); font-size: 11.5px; line-height: 1.9; letter-spacing: .04em;
  border-top: 1px solid var(--line-2); padding: 22px 0 90px;
}

/* 品种详情弹层 */
.cat-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; }
.cat-modal[hidden] { display: none !important; }
.cat-modal-bg { position: absolute; inset: 0; background: rgba(18, 18, 14, .62); backdrop-filter: blur(4px); }
.cat-modal-card {
  position: relative; z-index: 1; width: min(1000px, 100%); max-height: min(88vh, 760px);
  background: var(--paper); border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
}
.cat-close {
  position: absolute; z-index: 2; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cat-modal-img { min-height: 100%; background: var(--bg-2); overflow: hidden; }
.cat-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-modal-info { padding: 46px 40px 38px; overflow-y: auto; }
.cat-modal-info h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: .05em; margin: 16px 0 4px; }
.cat-modal-info .en { font-size: 10px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; margin: 0; }
.cat-modal-info .desc { color: var(--muted); font-size: 13px; line-height: 2; margin: 24px 0 0; }
.cat-modal-info .specs { margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.cat-modal-info .specs > div { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.cat-modal-info .specs dt { flex: 0 0 54px; color: var(--faint); }
.cat-modal-info .specs dd { margin: 0; color: var(--ink); }
.cat-modal-info .m-price { margin: 24px 0 0; font-size: 19px; font-weight: 300; letter-spacing: .03em; }
.cat-modal-info .dt-actions { margin-top: 20px; }

@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cat-bar { gap: 14px; }
  .cat-bar .search { width: 100%; }
  .cat-grid { grid-template-columns: 1fr; gap: 18px; }
  .cat-modal { padding: 10px; }
  .cat-modal-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .cat-modal-img { height: 200px; min-height: 0; }
  .cat-modal-info { padding: 28px 22px 30px; overflow: visible; }
  .cat-modal-info .m-price { display: none; }
  .cat-modal-info .dt-actions { flex-wrap: wrap; margin-top: 24px; }
}

.cat-link {
  display: grid; gap: 8px; margin: 8px 0 30px; padding: 22px 26px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.cat-link:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -28px rgba(20,20,15,.4); }
.cat-link-tag { font-size: 10px; letter-spacing: .22em; color: var(--faint); }
.cat-link b { font-size: 18px; font-weight: 400; letter-spacing: .06em; }
.cat-link i { font-style: normal; font-size: 11.5px; color: var(--muted); }
@media (max-width:700px) { .cat-link { padding: 18px 20px; } .cat-link b { font-size: 15px; } }
