@charset "utf-8";
/* ==========================================================================
   宜朴森全屋定制 · 首页样式
   设计语言：木作图纸 / 板材拼接  —— 发丝线、方角、标注线、mono 注记
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 变量
   -------------------------------------------------------------------------- */
:root {
  --paper: #fbf8f3;
  --paper-deep: #f2ebe0;
  --ink: #3d322b;
  --ink-soft: #7b6a5b;
  --walnut: #8b5f3d;
  --brass: #fbd051;

  --line: rgba(61, 50, 43, .14);
  --line-mid: rgba(61, 50, 43, .28);
  --line-light: rgba(251, 248, 243, .18);

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad-sec: 7.2rem;          /* 版块上下留白，随根字号缩放 */
  --header-h: 6.1rem;
}

/* --------------------------------------------------------------------------
   2. 响应式根字号
   —— 以 1920px 下 18px 为基准，向两侧逐档递减/递增。
      全站尺寸统一使用 rem，改这里即可整体缩放。
   -------------------------------------------------------------------------- */
html { font-size: 15px; }
@media (min-width: 768px)  { html { font-size: 15.5px; } }
@media (min-width: 1024px) { html { font-size: 16px; } }
@media (min-width: 1440px) { html { font-size: 16.5px; } }
@media (min-width: 1680px) { html { font-size: 17.5px; } }
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2400px) { html { font-size: 20px; } }
@media (min-width: 2880px) { html { font-size: 22px; } }

/* --------------------------------------------------------------------------
   3. 基础
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 纸面颗粒：极轻，只为去掉纯色底的塑料感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

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

p { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: .04em; }

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 容器：≥1440px 占屏宽 80%，以下占 90%（客户指定） */
.wrap {
  width: 90%;
  margin-inline: auto;
}
@media (min-width: 1440px) {
  .wrap { width: 80%; }
}

/* 版块通用 */
.sec { padding-block: var(--pad-sec); position: relative; }
.sec--deep { background: var(--paper-deep); }

/* --------------------------------------------------------------------------
   4. 字体角色
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--walnut);
  line-height: 1.4;
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: "";
  width: .42rem;
  height: .42rem;
  background: var(--brass);
  flex: none;
}

.sec-title {
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: .07em;
}
@media (max-width: 767px) {
  .sec-title { font-size: 1.7rem; }
}

/* 标注线：本页唯一的装饰母题 —— 一条带端点刻度的发丝线 */
.dim-line {
  position: relative;
  height: 1px;
  background: var(--line-mid);
  margin-top: 1.6rem;
}
.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  top: -.28rem;
  width: 1px;
  height: .6rem;
  background: var(--line-mid);
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-line--short { max-width: 26rem; }

.sec--process .dim-line { background: var(--line-light); }
.sec--process .dim-line::before,
.sec--process .dim-line::after { background: var(--line-light); }

/* 版块头 */
.sec-head { margin-bottom: 3.6rem; }
.sec-head__note {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
  letter-spacing: .06em;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   5. 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 243, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 .8rem 1.6rem -1.2rem rgba(61, 50, 43, .4);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  transition: min-height .4s var(--ease);
}
.site-header.is-scrolled .header-in { min-height: 4.6rem; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { width: 10.6rem; height: auto; transition: width .4s var(--ease); }
.site-header.is-scrolled .logo img { width: 9.2rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: .95rem;
  letter-spacing: .06em;
  padding-block: .35rem;
  color: var(--ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

/* 当前页：下划线常驻，和 hover 用同一条，不另加装饰 */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mnav__links a[aria-current="page"] { color: var(--walnut); }

.header-tel {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .09em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.header-tel svg { width: 1rem; height: 1rem; color: var(--walnut); }
.header-tel:hover { color: var(--walnut); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: auto;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-mid);
}
.nav-toggle span {
  display: block; width: 1.15rem; height: 1px;
  background: var(--ink); position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -.36rem; }
.nav-toggle span::after  { top: .36rem; }

/* 窄屏：收起主导航与电话，改用抽屉菜单 */
@media (max-width: 1199px) {
  .nav,
  .header-tel { display: none; }
  .nav-toggle { display: flex; }
  .mnav { display: flex; }
}
@media (min-width: 1200px) {
  .mnav { display: none; }
}

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* 移动端菜单 */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) 5% 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.8rem);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
body.nav-open .mnav { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }

.mnav__links a {
  display: block;
  font-size: 1.65rem;
  letter-spacing: .08em;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
}
.mnav__links a:last-child { border-bottom: 0; }
.mnav__foot {
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  line-height: 2;
}
.mnav__foot a { color: var(--ink); font-size: 1.05rem; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   6. Banner（纯图片轮播）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  height: clamp(24rem, 72vh, 47rem);
  overflow: hidden;
}
/* 底部压一层极轻的暗调，让控件在亮图上仍然可读 */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, rgba(34, 27, 22, .52), rgba(34, 27, 22, 0));
}
.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide { height: 100%; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 7s linear;
}
.hero .swiper-slide-active .hero__img { transform: scale(1.075); }

.hero__ctrl {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 1.9rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  pointer-events: none;
}
@media (min-width: 1440px) {
  .hero__ctrl { left: 10%; right: 10%; }
}
.hero__ctrl > * { pointer-events: auto; }

/* 分页：竖向刻度条，呼应图纸标尺 */
.hero .swiper-pagination {
  position: static;
  width: auto;
  height: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: .55rem;
}
.hero .swiper-pagination-bullet {
  flex: none;
  width: 2px;
  height: .85rem;
  margin: 0 !important;
  border-radius: 0;
  background: rgba(251, 248, 243, .5);
  opacity: 1;
  transition: background .35s var(--ease), height .35s var(--ease);
}
.hero .swiper-pagination-bullet:hover { background: rgba(251, 248, 243, .85); }
.hero .swiper-pagination-bullet-active {
  height: 1.5rem;
  background: var(--brass);
}

.hero__arrows { display: flex; gap: .5rem; }
.hero__arrows button,
.team__arrows button {
  width: 2.7rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 248, 243, .55);
  color: var(--paper);
  background: rgba(34, 27, 22, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero__arrows button:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.hero__arrows svg { width: 1rem; height: 1rem; }

/* 图纸注记条 */
.sheet-note {
  border-bottom: 1px solid var(--line);
  padding-block: 1.15rem;
}
.sheet-note__in {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  color: var(--ink-soft);
  text-transform: none;
}
@media (max-width: 640px) {
  .sheet-note__in { font-size: .68rem; letter-spacing: .1em; }
  .sheet-note__in span:last-child { display: none; }
}

/* --------------------------------------------------------------------------
   7. 公司简介
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 0 5.5%;
  align-items: center;
}

/* 照片按「装裱」处理：留白边 + 发丝框，像钉在图纸上的打样 */
.about__figure {
  position: relative;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line-mid);
}
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  background: var(--paper-deep);
}
.about__figure figcaption {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

.about__body { padding-top: .4rem; }
.about__body .sec-title { margin-bottom: 2rem; }

.about__cn { margin-top: 2rem; }
.about__cn p + p { margin-top: 1.15rem; }
.about__cn {
  font-size: 1rem;
  line-height: 2.05;
  color: var(--ink);
  max-width: 34em;
}
.about__en {
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 300;
  line-height: 2;
  letter-spacing: .02em;
  color: var(--ink-soft);
  max-width: 40em;
}

.tagline {
  margin-top: 2.4rem;
  padding-left: 1.35rem;
  border-left: 2px solid var(--brass);
}
.tagline__en {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--walnut);
  margin-bottom: .5rem;
}
.tagline__cn {
  font-size: 1.5rem;
  letter-spacing: .18em;
  line-height: 1.6;
  color: var(--ink);
}

/* 参数行：图纸图签式的信息条，压住右栏底部 */
.spec-list {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.spec-list li {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}
.spec-list li:first-child { padding-left: 0; border-left: 0; }
.spec-list__k {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--ink-soft);
  margin-bottom: .25rem;
}
.spec-list__v {
  display: block;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.8rem 0; }
  .about__figure { max-width: none; }
  .about__figure img { aspect-ratio: 3 / 2; }
  .spec-list { grid-template-columns: repeat(4, auto); gap: 0 1.6rem; }
  .spec-list__v { font-size: .86rem; }
}
@media (max-width: 640px) {
  .spec-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.4rem;
  }
  .spec-list li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* --------------------------------------------------------------------------
   8. 定制流程（深色胡桃带）
   -------------------------------------------------------------------------- */
.sec--process {
  background: var(--ink);
  color: var(--paper);
  background-image:
    repeating-linear-gradient(90deg, rgba(251, 248, 243, .014) 0 1px, transparent 1px 22px),
    radial-gradient(120% 80% at 85% 0%, rgba(139, 95, 61, .26), transparent 60%);
}
.sec--process .eyebrow { color: var(--brass); }.sec--process .sec-head__note { color: rgba(251, 248, 243, .58); }

.process__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: 3.4rem;
}
@media (max-width: 900px) {
  .process__head { grid-template-columns: 1fr; align-items: start; }
}

.process-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(12rem, 17rem) 1fr;
  gap: 0 3.2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.process-row:last-child { border-bottom: 1px solid var(--line-light); }

.process-row__idx { display: flex; flex-direction: column; gap: .45rem; }
.process-row__step {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--brass);
  line-height: 1.4;
}
.process-row__dur {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(251, 248, 243, .8);
  font-variant-numeric: tabular-nums;
}
.process-row__dur small {
  display: block;
  font-size: .68rem;
  letter-spacing: .06em;
  color: rgba(251, 248, 243, .45);
  line-height: 1.7;
  margin-top: .15rem;
}

.process-row__title { padding-top: .1rem; }
.process-row__title h3 {
  font-size: 1.42rem;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--paper);
}
.process-row__title em {
  display: block;
  margin-top: .4rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 300;
  font-size: .74rem;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(251, 248, 243, .5);
}

.process-row__body { font-size: .95rem; line-height: 2; color: rgba(251, 248, 243, .82); }
.process-row__body--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.4rem;
}
.sub-block + .sub-block { margin-top: 1.4rem; }
.sub-block__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--brass);
  margin-bottom: .5rem;
}

.dot-list li {
  position: relative;
  padding-left: 1.05rem;
}
.dot-list li + li { margin-top: .35rem; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: .3rem;
  height: .3rem;
  background: var(--walnut);
}
.sec--process .dot-list li::before { background: var(--brass); opacity: .85; }

@media (max-width: 1100px) {
  .process-row { grid-template-columns: 7rem 1fr; }
  .process-row__body { grid-column: 2; margin-top: 1.1rem; }
  .process-row__body--2col { grid-template-columns: 1fr; gap: 1.2rem 0; }
}
@media (max-width: 700px) {
  .process-row { grid-template-columns: 1fr; gap: .9rem 0; padding-block: 2rem; }
  .process-row__idx { flex-direction: row; align-items: baseline; gap: .9rem; }
  .process-row__body { grid-column: auto; margin-top: 0; }
  .process-row__body--2col { grid-template-columns: 1fr; gap: 1.2rem 0; }
  .sub-block + .sub-block { margin-top: 1.2rem; }
}

/* --------------------------------------------------------------------------
   9. 资深木作设计团队
   -------------------------------------------------------------------------- */
.team__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: 3rem;
}
.team__intro {
  font-size: 1rem;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 33em;
}
.team__intro strong {
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 900px) {
  .team__head { grid-template-columns: 1fr; align-items: start; }
  .team__arrows { display: none; }
}

.team__arrows { display: flex; gap: .5rem; }
.team__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}
@media (max-width: 900px) {
  .team__aside { align-items: flex-start; }
}
.team__arrows button {
  border-color: var(--line-mid);
  color: var(--ink);
  background: transparent;
}
.team__arrows button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.team__arrows svg { width: 1rem; height: 1rem; }

.team-swiper { padding-bottom: .5rem; }
.team-swiper .swiper-slide { height: auto; }

.team-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: default;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.82) contrast(1.02);
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.team-card:hover img,
.team-card:focus-within img { transform: scale(1.04); filter: saturate(1) contrast(1); }

.team-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.2rem 1.2rem 1.15rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(38, 30, 25, .92) 12%, rgba(38, 30, 25, .62) 55%, rgba(38, 30, 25, 0) 100%);
}
.team-card__name {
  font-size: 1.1rem;
  letter-spacing: .1em;
  line-height: 1.5;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--brass);
  margin-top: .15rem;
}
.team-card__bio {
  font-family: var(--font-serif);
  font-size: .86rem;
  line-height: 1.85;
  color: rgba(251, 248, 243, .82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease);
}
.team-card:hover .team-card__bio,
.team-card:focus-within .team-card__bio {
  max-height: 9rem;
  opacity: 1;
  margin-top: .7rem;
}
.team-card__more {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}
.team-card__more:focus-visible { outline: 2px solid var(--brass); outline-offset: -4px; }
/* 触屏：直接展开简介，不依赖 hover */
@media (hover: none) {
  .team-card__bio { max-height: 9rem; opacity: 1; margin-top: .7rem; }
}

/* --------------------------------------------------------------------------
   10. 20 年高定木匠
   -------------------------------------------------------------------------- */
.craft__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: 3.4rem;
}
.craft__head .sec-head__note { max-width: 30em; }
@media (max-width: 900px) {
  .craft__head { grid-template-columns: 1fr; align-items: start; }
  .craft__head .sec-head__note { margin-top: -.6rem; }
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 1.5rem;
}

/* 入场：由 main.js 的 IntersectionObserver 触发。
   这个网格高约 1040px，比笔记本视口还高；交给 AOS 的话，它要等网格底部
   进入视口才加 aos-animate，用户会滚过近千像素才看到内容。这里只要露出
   视口下沿 10% 就进场。 */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.craft-item { display: block; width: 100%; text-align: left; }
.craft-item:nth-child(2),
.craft-item:nth-child(5) { transform: translateY(2.4rem); }

.craft-item__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.craft-item__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.craft-item:hover .craft-item__frame img { transform: scale(1.045); }
.craft-item__frame::after {
  content: "";
  position: absolute;
  inset: .7rem;
  border: 1px solid var(--brass);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.craft-item:hover .craft-item__frame::after,
.craft-item:focus-visible .craft-item__frame::after { opacity: 1; }

.craft-item__cap {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .75rem;
}
.craft-item__name { font-size: .98rem; letter-spacing: .05em; }
.craft-item__mat {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .craft-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .craft-item:nth-child(2), .craft-item:nth-child(5) { transform: none; }
}
@media (max-width: 560px) {
  .craft-grid { grid-template-columns: 1fr; }
  .craft-item__frame img { aspect-ratio: 3 / 2; }
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(26, 20, 16, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 3.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(84vw, 78rem);
  max-height: 74vh;
  object-fit: contain;
  border: 1px solid rgba(251, 248, 243, .2);
}
.lightbox__cap {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.9rem;
  text-align: center;
  color: rgba(251, 248, 243, .8);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 2.9rem; height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border: 1px solid rgba(251, 248, 243, .32);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.lightbox__close { top: 1.6rem; right: 1.6rem; }
.lightbox__nav--prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.6rem; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 700px) {
  .lightbox { padding: 4rem 1rem 5rem; }
  .lightbox__nav--prev { left: .6rem; }
  .lightbox__nav--next { right: .6rem; }
  .lightbox__close { top: .8rem; right: .8rem; }
}

/* --------------------------------------------------------------------------
   11. 页脚
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: rgba(251, 248, 243, .78);
  padding-top: 4.6rem;
  font-size: .92rem;
  background-image: radial-gradient(100% 60% at 15% 0%, rgba(139, 95, 61, .26), transparent 62%);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr 1.15fr .8fr;
  gap: 3rem 2.5rem;
  padding-bottom: 3.6rem;
}
.foot-brand img { width: 11rem; height: auto; }
.foot-brand p {
  margin-top: 1.4rem;
  font-size: .9rem;
  line-height: 2;
  color: rgba(251, 248, 243, .6);
  max-width: 22em;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--brass);
  margin-bottom: 1.3rem;
}
.foot-col li + li { margin-top: .6rem; }
.foot-col a { transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--brass); }
.foot-contact li { display: flex; gap: .65rem; line-height: 1.8; }
.foot-contact span:first-child {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(251, 248, 243, .45);
  min-width: 3.6rem;
  padding-top: .28rem;
}
.foot-tel {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  letter-spacing: .08em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.foot-qr { text-align: left; }
.foot-qr img {
  width: 7.2rem;
  height: 7.2rem;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--paper);
  padding: .35rem;
}
.foot-qr p {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(251, 248, 243, .55);
}
.foot-bottom {
  border-top: 1px solid var(--line-light);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(251, 248, 243, .45);
}
.foot-bottom a:hover { color: var(--brass); }

@media (max-width: 1023px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.6rem 2rem; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { font-size: .68rem; }
}

/* --------------------------------------------------------------------------
   12. 右侧悬浮客服
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(1.5rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.rail.is-visible { opacity: 1; visibility: visible; transform: translateY(-50%); }

.rail__item { position: relative; }
.rail__btn {
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(251, 248, 243, .14);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.rail__btn svg { width: 1.25rem; height: 1.25rem; }
/* 微信是实心 logo，同尺寸下视觉重量偏小，单独放大以对齐线性图标的观感 */
.rail__btn .ico-wx { width: 1.42rem; height: 1.42rem; }
.rail__item:hover .rail__btn,
.rail__item:focus-within .rail__btn,
.rail__btn--top:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

.rail__pop {
  position: absolute;
  right: calc(100% + .7rem);
  top: 50%;
  transform: translateY(-50%) translateX(.5rem);
  background: var(--paper);
  border: 1px solid var(--line-mid);
  padding: .7rem;
  box-shadow: 0 1.2rem 2.4rem -1.4rem rgba(61, 50, 43, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  text-align: center;
  white-space: nowrap;
  width: max-content;
  max-width: min(16rem, 70vw);
}
.rail__item:hover .rail__pop,
.rail__item:focus-within .rail__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}
.rail__pop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: .55rem;
  height: .55rem;
  background: var(--paper);
  border-right: 1px solid var(--line-mid);
  border-bottom: 1px solid var(--line-mid);
  transform: translateY(-50%) rotate(-45deg);
  margin-left: -1px;
}
/* 二维码：必须锁成正方形。max-width:none 用来解除全站 img{max-width:100%}
   在绝对定位弹层里造成的横向压缩（否则宽被压扁、高不变，码会变竖条） */
.rail__pop img {
  width: 9rem;
  height: 9rem;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.rail__pop p {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.rail__pop a {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--ink);
  padding: .35rem .5rem 0;
}
.rail__pop a:hover { color: var(--walnut); }

@media (max-width: 900px) {
  .rail { right: .6rem; }
  .rail__btn { width: 2.8rem; height: 2.8rem; }
  .rail__btn svg { width: 1.1rem; height: 1.1rem; }
  .rail__btn .ico-wx { width: 1.25rem; height: 1.25rem; }
  .rail__pop img { width: 7.6rem; height: 7.6rem; }
}

/* --------------------------------------------------------------------------
   13. 按钮（内页共用）
   -------------------------------------------------------------------------- */
.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  height: 3.3rem;
  padding: 0 2.1rem;
  font-size: .92rem;
  letter-spacing: .08em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--walnut); }
.btn-line {
  border: 1px solid var(--line-mid);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--ink); }

@media (max-width: 560px) {
  .btn-solid, .btn-line { height: 3rem; padding: 0 1.5rem; font-size: .88rem; }
}

/* --------------------------------------------------------------------------
   14. 动画与无障碍
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__img { transform: none !important; }
}

/* 打印：去掉装饰 */
@media print {
  .site-header, .rail, .lightbox { display: none; }
  body::after { display: none; }
}
