/* ============================================================
   盛程家具厂 · 企业官网样式
   纯静态、无框架依赖，适配 NAS 直接托管
   ============================================================ */

:root {
  --brown-900: #241a10;
  --brown-800: #332414;
  --brown-700: #4a3423;
  --brown-500: #7a5c3e;
  --amber: #c89b5a;
  --amber-dark: #a97f3f;
  --amber-light: #e8cf9f;
  --bg: #faf8f4;
  --bg-alt: #f3eee6;
  --card: #ffffff;
  --text: #3d3229;
  --muted: #8a7a68;
  --line: #e6ddcf;
  --shadow: 0 10px 30px rgba(51, 36, 20, 0.10);
  --radius: 14px;
  --header-h: 74px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* clip 不会像 hidden 那样破坏 position:sticky 的吸顶导航 */
html, body { overflow-x: hidden; overflow-x: clip; }

section[id] { scroll-margin-top: 116px; }

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部通栏 ---------- */
.topbar {
  background: var(--brown-900);
  color: #cbb89d;
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar a { color: var(--amber-light); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .phone b { color: #fff; font-size: 15px; letter-spacing: .5px; }

/* ---------- 主导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(51, 36, 20, .12); }
.header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo .name { font-size: 22px; font-weight: 700; color: var(--brown-700); letter-spacing: 2px; line-height: 1.2; }
.logo .en { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15.5px;
  color: var(--brown-700);
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav a:hover, .nav a.active { color: var(--amber-dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown-700); margin: 5px 0; transition: .3s; }

/* ---------- 轮播 ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 480px; overflow: hidden; background: var(--brown-800); }
.hero .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
  background: var(--brown-800);
}
.hero .slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero .slide.on { opacity: 1; }
.hero .slide::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(30, 20, 10, .72) 0%, rgba(30, 20, 10, .38) 55%, rgba(30, 20, 10, .12) 100%);
}
.hero .caption {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero .caption > div { max-width: 640px; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--amber-light);
  margin-bottom: 18px;
}
.hero .kicker::before { content: ""; width: 40px; height: 1px; background: var(--amber); }
.hero h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: 2px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { margin-top: 16px; font-size: clamp(15px, 1.6vw, 18px); color: #eee2cf; max-width: 520px; }
.hero .btns { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15.5px;
  letter-spacing: 2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: .25s;
  text-align: center;
}
.btn-primary { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(169,127,63,.4); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-outline { border-color: var(--amber); color: var(--amber-dark); }
.btn-outline:hover { background: var(--amber); color: #fff; }

.hero .dots {
  position: absolute; z-index: 3;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero .dots button {
  width: 34px; height: 4px; border: 0; border-radius: 2px;
  background: rgba(255,255,255,.4); cursor: pointer; transition: .3s;
}
.hero .dots button.on { background: var(--amber); width: 52px; }
.hero .arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.18); color: #fff; font-size: 18px;
  cursor: pointer; transition: .25s;
}
.hero .arrow:hover { background: var(--amber); border-color: var(--amber); }
.hero .arrow.prev { left: 22px; }
.hero .arrow.next { right: 22px; }

/* ---------- 通用区块 ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-head .eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 5px;
  color: var(--amber-dark);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--brown-700); letter-spacing: 3px; }
.sec-head .sub { margin-top: 12px; color: var(--muted); font-size: 16px; }
.sec-head .rule { width: 56px; height: 3px; background: var(--amber); margin: 20px auto 0; border-radius: 2px; }

/* ---------- 产品分类 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(51,36,20,.18); }
.product-card.hide { display: none; }

/* ---- 产品卡动画 ---- */
/* 入场依次浮现 */
.product-grid .product-card.reveal:nth-child(2) { transition-delay: .09s; }
.product-grid .product-card.reveal:nth-child(3) { transition-delay: .18s; }
.product-grid .product-card.reveal:nth-child(4) { transition-delay: .27s; }

/* ---- 木材扇形展台：初始摞成一摞，滚入视口旋开成铺满两侧的大扇形 ---- */
.wood-fan {
  position: relative;
  height: 860px;
  width: 100vw;
  max-width: none;
  margin: 26px calc(50% - 50vw) 0;
}
.plank {
  position: absolute;
  left: 50%;
  bottom: 100px;
  width: 370px;
  height: 540px;
  margin-left: -185px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(38, 26, 13, .45), 0 6px 18px rgba(38, 26, 13, .3), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform-origin: 50% 100%;
  transform: rotate(var(--stack-r, 0deg)) translateY(var(--stack-y, 0px));
  /* 提升为合成层：动画只走 GPU 合成，不重绘阴影，保证流畅 */
  will-change: transform;
  transition: transform 1.05s cubic-bezier(.25, .8, .25, 1), box-shadow .45s;
  cursor: pointer;
  outline: none;
  backface-visibility: hidden;
}
.plank img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.plank:focus-visible { box-shadow: 0 30px 60px rgba(38,26,13,.45), 0 0 0 3px var(--amber); }
.plank-name { z-index: 1; }
/* 板材图已按显示区域裁切并烤入镜像（见 assets/img），无需 CSS 缩放/翻转 */
/* --oy：展开后的抬升量（中间两块抬高成弧线）；--i：动效次序（中间先动、外侧跟上） */
.plank:nth-child(1) { --stack-r: -1.5deg; --stack-y: 0px;   --open-r: -38deg; --ox: -250px; --oy: -8px;  --i: 1; z-index: 1; }
.plank:nth-child(2) { --stack-r:  2deg;   --stack-y: -9px;  --open-r: -13deg; --ox:  -63px; --oy: -78px; --i: 0; z-index: 2; }
.plank:nth-child(3) { --stack-r: -2.5deg; --stack-y: -18px; --open-r:  13deg; --ox:   63px; --oy: -78px; --i: 0; z-index: 3; }
.plank:nth-child(4) { --stack-r:  1deg;   --stack-y: -27px; --open-r:  38deg; --ox:  190px; --oy: -8px;  --i: 1; z-index: 4; }
/* 展开：底部沿 X 错开，不再挤在圆心；stagger 延迟只在展开过程生效 */
.wood-fan.open .plank {
  transform: translateX(var(--ox, 0px)) rotate(var(--open-r)) translateY(var(--oy, -8px));
  z-index: auto;
  transition-delay: calc(var(--i, 0) * 140ms);
}
/* 展开完全就位后：延迟归零、hover 才生效，避免动画中途被鼠标打断而抖动 */
.wood-fan.settled .plank { transition-delay: 0s; }
.wood-fan.open.settled .plank:hover {
  transform: translateX(var(--ox, 0px)) rotate(var(--open-r)) translateY(calc(var(--oy, -8px) - 14px)) scale(1.04);
  box-shadow: 0 44px 84px rgba(38, 26, 13, .55), 0 8px 22px rgba(38, 26, 13, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.plank-name {
  position: absolute;
  top: 32px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 0 22px rgba(0,0,0,.85);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.wood-fan.open .plank-name { opacity: 1; transform: none; transition-delay: .65s; }

/* 定制卡上浮，覆盖扇形下半部分 */
.product-grid {
  position: relative;
  z-index: 5;
  margin-top: -275px;
  padding-top: 6px;
}
.product-card { box-shadow: 0 14px 40px rgba(38, 26, 13, .2), 0 3px 10px rgba(38, 26, 13, .1); }
.product-card:hover { box-shadow: 0 26px 56px rgba(38, 26, 13, .3), 0 6px 16px rgba(38, 26, 13, .14); }
/* 悬停时一道光泽扫过图片 */
.product-card figure::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.42) 50%, transparent 58%);
  transform: translateX(-130%) skewX(-6deg);
  transition: transform .75s ease;
  pointer-events: none;
}
.product-card:hover figure::after { transform: translateX(130%) skewX(-6deg); }
.product-card .tag { z-index: 2; }
.product-card figure { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.product-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover figure img { transform: scale(1.06); }
.product-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(36,26,16,.82);
  color: var(--amber-light);
  font-size: 12.5px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.product-card .body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 17.5px; color: var(--brown-700); letter-spacing: 1px; }
.product-card .desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); flex: 1; }
.product-card .specs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .specs span {
  font-size: 12px;
  color: var(--brown-500);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 3px 8px;
}
.product-card .foot { margin-top: 16px; display: flex; gap: 8px; }
.product-card .foot .btn { flex: 1; padding: 9px 0; font-size: 13.5px; letter-spacing: 0; }
.product-card .foot .btn-buy { background: var(--brown-700); color: #fff; border: 1.5px solid var(--brown-700); }
.product-card .foot .btn-buy:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.product-card .foot .btn-ask { background: #fff; color: var(--brown-500); border: 1.5px solid var(--line); }
.product-card .foot .btn-ask:hover { border-color: var(--amber); color: var(--amber-dark); }

/* ---------- 工艺流程 ---------- */
.craft-wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.craft-pics { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.craft-pics img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.craft-pics img:first-child { aspect-ratio: 16/10; }
.craft-pics img:last-child { aspect-ratio: 2/1; }

.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 27px; top: 14px; bottom: 14px;
  width: 2px;
  background: repeating-linear-gradient(var(--amber) 0 6px, transparent 6px 12px);
  opacity: .45;
}
.step { position: relative; padding: 0 0 38px 78px; }
.step:last-child { padding-bottom: 0; }
.step .no {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.step h3 { font-size: 18.5px; color: var(--brown-700); letter-spacing: 1px; }
.step h3 small { font-size: 12.5px; color: var(--amber-dark); letter-spacing: 2px; margin-left: 10px; text-transform: uppercase; }
.step p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- 设计定制 ---------- */
.design-wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.design-copy h3 { font-size: clamp(22px, 2.6vw, 30px); color: var(--brown-700); line-height: 1.4; letter-spacing: 1px; }
.design-copy > p { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.design-flow { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.design-flow li {
  text-align: center;
  font-size: 13.5px;
  color: var(--brown-500);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 4px;
  position: relative;
  min-width: 0;
}
.design-flow li b { display: block; color: var(--amber-dark); font-size: 12px; margin-bottom: 2px; }
.design-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.design-pics img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; }
.design-copy .btns { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.design-copy .btn-outline { background: transparent; }

/* ---------- 企业理念 ---------- */
.philosophy {
  position: relative;
  padding: 110px 0;
  background: var(--brown-800);
  color: #fff;
  overflow: hidden;
}
.philosophy .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.philosophy::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(26, 17, 9, .78); }
.philosophy .container { position: relative; z-index: 2; }
.philosophy .sec-head h2 { color: #fff; }
.philosophy .sec-head .sub { color: #d8c5a8; }
.slogan {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 6px;
  color: var(--amber-light);
  margin-bottom: 52px;
}
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 34px 26px;
  backdrop-filter: blur(6px);
  transition: .3s;
}
.value-card:hover { background: rgba(255, 255, 255, .13); transform: translateY(-6px); }
.value-card .ico { font-size: 34px; line-height: 1; }
.value-card h3 { margin-top: 16px; font-size: 19px; letter-spacing: 2px; color: #fff; }
.value-card p { margin-top: 10px; font-size: 14px; color: #cbb693; }

.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats b { display: block; white-space: nowrap; font-size: clamp(30px, 3.6vw, 44px); color: var(--amber); font-weight: 700; }
.stats b i { font-style: normal; font-size: .55em; margin-left: 2px; }
.stats b span { display: inline; font-size: inherit; letter-spacing: normal; margin: 0; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: #d8c5a8; letter-spacing: 2px; }

/* ---------- 设备实力 ---------- */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.machine-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.machine-card:hover { transform: translateY(-6px); }
.machine-card figure { aspect-ratio: 39/14; overflow: hidden; background: #fff; }
.machine-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.machine-card:hover img { transform: scale(1.05); }
.machine-card .body { padding: 18px 22px 22px; }
.machine-card h3 { font-size: 17px; color: var(--brown-700); }
.machine-card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.machine-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- 成品展示 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s; }
.gallery figure:nth-child(1) img, .gallery figure:nth-child(6) img { aspect-ratio: auto; height: 100%; }
.gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(26,17,9,.72));
  opacity: 0; transition: .3s;
}
.gallery figcaption {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 15px; letter-spacing: 1px;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover::after { opacity: 1; }
.gallery figure:hover figcaption { opacity: 1; transform: none; }

.gallery-cta {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brown-700), var(--brown-500));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  transition: .3s;
}
.gallery-cta b { font-size: 21px; letter-spacing: 2px; }
.gallery-cta span { font-size: 14px; color: var(--amber-light); }
.gallery-cta:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(51,36,20,.25); }

/* ---------- 留言 / 联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: stretch; }
.contact-card, .info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card { padding: 40px 42px; }
.contact-card h3 { font-size: 21px; color: var(--brown-700); letter-spacing: 1px; margin-bottom: 6px; }
.contact-card .tip { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--brown-500); margin-bottom: 7px; }
.field label em { color: #c0392b; font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 155, 90, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-card .btn { width: 100%; margin-top: 6px; }
.form-msg { margin-top: 14px; font-size: 13.5px; color: var(--amber-dark); min-height: 20px; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #c0392b; }

.info-card {
  background: var(--brown-800);
  color: #e9dcc6;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
}
.info-card h3 { font-size: 20px; color: #fff; letter-spacing: 2px; margin-bottom: 24px; }
.info-card h3::after { content: ""; display: block; width: 40px; height: 3px; background: var(--amber); margin-top: 12px; border-radius: 2px; }
.info-card .row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 14.5px; }
.info-card .row:last-of-type { border-bottom: 0; }
.info-card .row .ico { font-size: 19px; flex: none; }
.info-card .row b { color: #fff; font-weight: 600; }
.info-card .row span { color: #c9b795; }
.info-card .qr-tip { margin-top: auto; padding-top: 22px; font-size: 13px; color: #b7a180; }

/* ---------- 页脚 ---------- */
.footer { background: var(--brown-900); color: #b7a180; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 4fr 2.4fr 2.4fr 3.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 20px; }
.footer .about p { line-height: 1.9; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--amber-light); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: #8f7c5d; }
.copyright .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.copyright .beian { color: inherit; text-decoration: none; }
.copyright .beian:hover { color: var(--amber-light); text-decoration: underline; }

/* ---------- 浮动元素 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--brown-700); color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: .3s;
  box-shadow: 0 8px 20px rgba(51,36,20,.3);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--amber-dark); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 13, 6, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: 0; color: #fff; font-size: 40px;
  cursor: pointer; line-height: 1;
}
.lightbox .cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #e9dcc6; letter-spacing: 2px; font-size: 15px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid, .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-column: span 2; }
  .craft-wrap, .design-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .craft-pics { position: static; grid-template-columns: 1fr 1fr; }
  .craft-pics img:first-child, .craft-pics img:last-child { aspect-ratio: 4/3; }
  .design-pics img { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  /* 手机上板材扇形整体收小收窄，保证四块板完整显示在屏内 */
  .wood-fan { height: 540px; }
  .plank { width: 182px; height: 262px; margin-left: -91px; bottom: 250px; border-radius: 12px; }
  /* 台阶式：堆叠后从上到下逐层滑出（上层先动，下层依次错位下移） */
  .plank:nth-child(1) { --open-r: 0deg; --ox: -51px; --oy: 0px;   --i: 0; }
  .plank:nth-child(2) { --open-r: 0deg; --ox: -17px; --oy: 62px;  --i: 1; }
  .plank:nth-child(3) { --open-r: 0deg; --ox: 17px;  --oy: 124px; --i: 2; }
  .plank:nth-child(4) { --open-r: 0deg; --ox: 51px;  --oy: 186px; --i: 3; }
  .plank-name { font-size: 14px; letter-spacing: 2px; top: 12px; }
  .product-grid { margin-top: -95px; }
  .topbar .welcome { display: none; }
  .nav {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--brown-900);
    padding: 90px 30px 30px;
    transition: right .3s;
    z-index: 120;
  }
  .nav.open { right: 0; box-shadow: -8px 0 30px rgba(0,0,0,.4); }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { color: #e9dcc6; padding: 13px 12px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.active { color: var(--amber); }
  .nav-toggle { display: block; position: relative; z-index: 130; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.open span { background: #fff; }

  .hero { min-height: 430px; }
  .hero .arrow { display: none; }
  .machine-grid { grid-template-columns: 1fr; }
  /* 手机上设备只展示前 3 台 */
  .machine-card:nth-child(n+4) { display: none; }
  /* 手机上定制卡两列瘦高，隐藏选购/询价按钮 */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-card .foot { display: none; }
  .product-card .body { padding: 14px 14px 18px; }
  /* 工艺六步手机压缩排布 */
  .step { padding: 0 0 20px 58px; }
  .step .no { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 0 0 5px var(--bg-alt); }
  .step h3 { font-size: 16.5px; }
  .step h3 small { font-size: 11px; margin-left: 6px; }
  .step p { font-size: 13px; margin-top: 4px; }
  .steps::before { left: 21px; top: 10px; bottom: 10px; }
  /* 设计定制：五步流程改两列，图片单列 */
  .design-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .design-flow li { font-size: 12.5px; padding: 10px 4px; }
  .design-flow li b { font-size: 11px; }
  .design-flow li:nth-child(5) { grid-column: 1 / -1; }
  .design-pics { grid-template-columns: 1fr; gap: 14px; }
  .design-pics img { aspect-ratio: 16/10; }
  /* 设计定制手机只保留第一张图（木纹肌理图不显示） */
  .design-pics img:nth-of-type(2) { display: none; }
  /* 产品卡手机不显示规格标签（免费量尺/自有工厂/安装售后等） */
  .product-card .specs { display: none; }
  /* 理念卡手机只留文字标题：去图标、单行不换行 */
  .value-card { padding: 16px 8px; display: flex; align-items: center; justify-content: center; }
  .value-card .ico { display: none; }
  .value-card h3 { margin-top: 0; font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
  .value-card p { display: none; }
  /* 成品展示去掉最后一张图 */
  .gallery figure:nth-of-type(6) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card, .info-card { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .copyright .container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plank, .wood-fan.open .plank { transition: none; transform: translateX(var(--ox, 0px)) rotate(var(--open-r)) translateY(var(--oy, -8px)); }
  .plank-name, .wood-fan.open .plank-name { transition: none; opacity: 1; transform: none; }
}
