/* ==========================================================================
   桐庐宏来石材 · 官网样式
   风格：明亮石韵 · 象牙白底 + 金铜点缀 + 中文衬线标题
         （首屏保留深色大图，形成深→亮的视觉节奏）

   响应式断点（从大到小）：
     1080px  平板横屏 / 小笔记本 —— 栅格由 3~4 列降为 2 列
      980px  平板竖屏 —— 切换为汉堡菜单，首屏转为左对齐
      900px  窄平板 —— 卡片类栅格转单列，页脚转两栏
      760px  手机 —— 全面单列，出现底部转化条，媒体比例放宽
      480px  小屏手机 —— 收紧内边距，按钮满宽
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg:        #f7f5f1;   /* 象牙白 */
  --bg-2:      #ffffff;   /* 纯白 */
  --bg-3:      #efebe4;   /* 暖浅灰 */
  --panel:     #ffffff;
  --panel-2:   #faf8f4;

  --line:      rgba(156, 117, 38, 0.26);   /* 金铜细线 */
  --line-soft: rgba(29, 27, 24, 0.10);

  --gold:      #9c7526;   /* 浅底可读的金铜色 */
  --gold-l:    #c39a45;
  --gold-br:   #e0c07a;   /* 深底上的亮金（用于首屏） */
  --gold-dim:  rgba(156, 117, 38, 0.08);

  --txt:       #1d1b18;
  --txt-2:     #5b5750;
  --txt-3:     #7a746a;   /* 加深至 4.5:1，保证小字可读 */

  --ink:       #0d0d0e;   /* 首屏深色 */
  --paper-txt: #f4f2ee;   /* 深底文字 */

  --shadow-sm: 0 1px 2px rgba(29, 27, 24, 0.04), 0 6px 18px -12px rgba(29, 27, 24, 0.18);
  --shadow-md: 0 2px 6px rgba(29, 27, 24, 0.05), 0 18px 40px -24px rgba(29, 27, 24, 0.26);

  /* 衬线优先本地字体，避免第三方字体外链在国内拖慢首屏 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
                "Songti SC", STSong, "SimSun", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
                "Source Han Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
                "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --radius:    4px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --sec-pad:   clamp(56px, 9vw, 140px);   /* 区块上下留白（手机收紧） */
  --tap:       44px;                       /* 触控最小点击尺寸 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.28; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #fff; }

/* 焦点可见性（无障碍） */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 跳转链接：键盘用户可直接跳到正文 */
.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  border-radius: 0 0 6px 6px;
  transition: top 0.24s var(--ease);
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 24px);
}

/* ---------- 通用排版 ---------- */
.section {
  padding: var(--sec-pad) 0;
  position: relative;
  scroll-margin-top: 88px;   /* 锚点跳转时避开吸顶导航 */
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.62rem, 3.4vw, 2.7rem);
  letter-spacing: 0.04em;
  color: var(--txt);
}
.section-title .sep { color: var(--gold); margin: 0 0.4em; font-weight: 400; }

.section-desc { color: var(--txt-2); margin-top: 16px; font-size: 1.02rem; }

.lead { font-size: 1.08rem; color: #3f3b35; }
.about-body strong { color: var(--gold); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 14px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-gold {
  background: linear-gradient(135deg, #d4ad59, #9c7526);
  color: #fffefb;
  box-shadow: 0 6px 20px -8px rgba(156, 117, 38, 0.6);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-block { width: 100%; }

/* ==========================================================================
   顶部导航（首屏上为浅字，滚动后转为白底深字）
   ========================================================================== */
.site-header {
  --h-txt:   #f4f2ee;
  --h-muted: rgba(244, 242, 238, 0.74);
  --h-gold:  var(--gold-br);
  --h-line:  rgba(255, 255, 255, 0.22);

  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  color: var(--h-txt);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  --h-txt:   #1d1b18;
  --h-muted: rgba(29, 27, 24, 0.66);
  --h-gold:  var(--gold);
  --h-line:  rgba(156, 117, 38, 0.32);

  padding: 10px 0;
  color: var(--h-txt);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 26px -22px rgba(29, 27, 24, 0.5);
}

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: var(--tap);
}
.brand-mark { color: var(--h-gold); display: flex; transition: color 0.4s var(--ease); }
.brand-mark svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.brand-text small {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  opacity: 0.6;
  margin-top: 2px;
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 10px 13px;
  font-size: 0.94rem;
  color: var(--h-muted);
  transition: color 0.28s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--h-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link.is-active { color: var(--h-gold); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 11px 20px;
  border: 1px solid var(--h-line);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--h-gold);
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.header-tel .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(196, 154, 69, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(196, 154, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 154, 69, 0); }
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: var(--tap); height: var(--tap);
  background: transparent;
  border: 1px solid var(--h-line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ==========================================================================
   首屏（深色大图，唯一深色区块）
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;      /* 旧浏览器回退 */
  min-height: 100dvh;     /* 移动端动态视口高度 */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(104px, 15vh, 152px) 0 clamp(56px, 8vh, 84px);
  color: var(--paper-txt);
  background: var(--ink);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  animation: heroZoom 26s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 13, 14, 0.88) 2%, rgba(13, 13, 14, 0.42) 46%, rgba(13, 13, 14, 0.3) 100%),
    radial-gradient(120% 80% at 50% 20%, rgba(13, 13, 14, 0.02) 0%, rgba(13, 13, 14, 0.5) 100%);
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 1000px; }

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--gold-br);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.8vw, 5.1rem);
  line-height: 1.16;
  letter-spacing: 0.05em;
  margin-bottom: 26px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hero-title .line { display: block; }
.hero-title .line:last-child {
  background: linear-gradient(100deg, #f0dca8 10%, var(--gold-br) 52%, #b98f38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(0.96rem, 1.5vw, 1.16rem);
  color: rgba(244, 242, 238, 0.84);
  line-height: 1.95;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 7vw, 76px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  color: var(--gold-br);
  letter-spacing: 0.02em;
  font-weight: 700;
}
.hero-stats span { font-size: 0.82rem; color: rgba(244, 242, 238, 0.66); letter-spacing: 0.1em; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-br);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(13px); opacity: 0.25; }
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.about-figure { margin: 0; position: relative; }
.about-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 42%;   /* 竖构图实拍：保留中部设备与料垛区 */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}
.about-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to right, rgba(13, 13, 14, 0.9), rgba(13, 13, 14, 0.34));
  backdrop-filter: blur(4px);
  color: #f4f2ee;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  border-radius: 0 0 var(--radius) var(--radius);
}
.about-figure .fn { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.1em; }
.about-figure .fd { font-size: 0.78rem; color: rgba(244, 242, 238, 0.72); letter-spacing: 0.08em; }

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.about-points h3 {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.about-points p { font-size: 0.9rem; color: var(--txt-2); line-height: 1.7; }

/* ==========================================================================
   产品中心
   ========================================================================== */
.products { background: var(--bg); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 24px);
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.42s var(--ease), border-color 0.42s var(--ease),
              box-shadow 0.42s var(--ease);
}

.pc-media { position: relative; overflow: hidden; background: #e9e5de; }
.pc-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.96) brightness(1.03);
}

.pc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-tag {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.pc-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.pc-desc { font-size: 0.9rem; color: var(--txt-2); line-height: 1.78; margin-bottom: 18px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.chip-row li {
  font-size: 0.74rem;
  color: var(--txt-2);
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  padding: 5px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.pc-link {
  margin-top: auto;
  /* 触控友好：左右内缩不影响观感，但把点击区域撑到 44px 高 */
  padding: 11px 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  align-self: flex-start;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

/* CTA 卡片 */
.product-card--cta {
  grid-column: 1 / -1;
  background:
    linear-gradient(150deg, rgba(196, 154, 69, 0.13), rgba(196, 154, 69, 0.02) 62%),
    var(--panel-2);
  border-color: var(--line);
  border-style: dashed;
  box-shadow: none;
}
.pc-cta-inner {
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 14px;
}
.pc-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.pc-cta-inner p { font-size: 0.9rem; color: var(--txt-2); }
.pc-cta-inner .btn { margin-top: 8px; }
.pc-tel {
  font-size: 0.82rem;
  color: var(--txt-3);
  padding: 10px 0;
}
.pc-tel:hover { color: var(--gold); }

/* ==========================================================================
   工程案例
   ========================================================================== */
.cases { background: var(--bg-2); }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 24px); }

/* 通栏案例卡：横向大场面图铺满整行 */
.case-card--wide { grid-column: 1 / -1; }
.case-card--wide .cc-media img { aspect-ratio: 21 / 9; object-position: 50% 80%; }
.case-card--wide .cc-body { text-align: center; }
.case-card--wide .cc-body .chip-row { justify-content: center; }

.case-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.cc-media { position: relative; overflow: hidden; background: #e9e5de; }
.cc-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.96) brightness(1.02);
}

.cc-body { padding: 24px 28px 28px; }
.cc-meta { font-size: 0.74rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.cc-body h3 { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.cc-body p { font-size: 0.9rem; color: var(--txt-2); margin-bottom: 16px; }
.cc-body .chip-row { margin-bottom: 0; }

/* ==========================================================================
   加工实力
   ========================================================================== */
.strength {
  background: var(--bg-3);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 24px);
  margin-bottom: clamp(44px, 6vw, 78px);
}
.process-step {
  position: relative;
  padding: 30px 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.process-step::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-l), transparent);
}
.ps-no {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: rgba(156, 117, 38, 0.34);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.process-step h3 { font-family: var(--font-serif); font-size: 1.12rem; letter-spacing: 0.1em; margin-bottom: 9px; }
.process-step p { font-size: 0.87rem; color: var(--txt-2); line-height: 1.72; }

.strength-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.sb-item {
  background: var(--panel);
  padding: 32px 18px;
  text-align: center;
}
.sb-item b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: var(--gold);
  line-height: 1.2;
}
.sb-item b span { font-size: 0.86rem; letter-spacing: 0.12em; margin-left: 3px; color: var(--txt-2); font-family: var(--font-sans); }
.sb-item p { font-size: 0.85rem; color: var(--txt-3); letter-spacing: 0.08em; margin: 6px 0 0; }

/* ==========================================================================
   为什么选择我们
   ========================================================================== */
.why { background: var(--bg-2); }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 24px); }

.why-card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid rgba(156, 117, 38, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(196, 154, 69, 0.05), transparent 62%);
  transition: border-left-color 0.4s var(--ease), background 0.4s var(--ease);
}
.wc-ico {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}
.why-card h3 { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.why-card p { font-size: 0.92rem; color: var(--txt-2); line-height: 1.8; }

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact {
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(196, 154, 69, 0.1), transparent 62%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 20px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: var(--tap);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.cc-label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--txt-3);
}
.cc-main {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.62rem);
  line-height: 1.35;
  color: var(--txt);
  letter-spacing: 0.03em;
}
.cc-main--sm { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.cc-sub { font-size: 0.82rem; color: var(--txt-2); }

.contact-card--tel {
  background: linear-gradient(150deg, rgba(196, 154, 69, 0.14), rgba(196, 154, 69, 0.03) 65%), var(--panel);
  border-color: var(--line);
}
.contact-card--tel .cc-main { color: var(--gold); }

.contact-note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--txt-2);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--line-soft);
  padding: 58px 0 26px;
  color: var(--txt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
}
.footer-brand p { font-size: 0.85rem; color: var(--txt-2); line-height: 1.8; }

.footer-nav { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a {
  font-size: 0.9rem;
  color: var(--txt-2);
  padding: 7px 0;
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.28s var(--ease);
}

.footer-meta { text-align: right; }
.footer-meta a {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 4px 0;
  margin-bottom: 6px;
}
.footer-meta p { font-size: 0.85rem; color: var(--txt-2); }

/* ---- 页脚 · 扫码关注（抖音 / 微信） ---- */
.footer-social {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 30px;
}
.fs-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
}
.fs-cards { display: flex; gap: 32px; flex-wrap: wrap; }
.fs-card { margin: 0; display: flex; align-items: center; gap: 15px; }
.fs-card img {
  width: 92px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 3px 14px -6px rgba(28, 26, 22, 0.28);
}
.fs-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.fs-card b {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--txt);
}
.fs-card span { font-size: 0.76rem; color: var(--txt-2); line-height: 1.55; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--txt-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom .icp a {
  color: var(--txt-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-bottom .icp a:hover { color: var(--gold); border-bottom-color: currentColor; }

/* ==========================================================================
   移动端底部转化条 与 回到顶部
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 24px -18px rgba(29, 27, 24, 0.4);
}
.mb-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--tap);
  padding: 12px 10px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.mb-btn:active { transform: scale(0.985); }
.mb-tel { border: 1px solid var(--line); color: var(--gold); }
.mb-quote { background: linear-gradient(135deg, #d4ad59, #9c7526); color: #fffefb; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
              border-color 0.28s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   滚动揭示动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   悬停效果（仅在支持悬停的设备启用，避免触屏"粘住"）
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(156, 117, 38, 0.72);
  }
  .btn-ghost:hover {
    border-color: var(--gold-br);
    color: var(--gold-br);
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-link:hover { color: var(--h-txt); }
  .nav-link:hover::after { transform: scaleX(1); }
  .header-tel:hover { background: rgba(196, 154, 69, 0.12); border-color: var(--h-gold); }
  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    box-shadow: var(--shadow-md);
  }
  .product-card:hover .pc-media img { transform: scale(1.06); filter: saturate(1.02) brightness(1.07); }
  .pc-link:hover { gap: 13px; color: #7d5d1c; }
  .case-card:hover {
    border-color: var(--line);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  .case-card:hover .cc-media img { transform: scale(1.05); filter: saturate(1.02) brightness(1.06); }
  .process-step:hover { border-color: var(--line); transform: translateY(-4px); }
  .why-card:hover {
    border-left-color: var(--gold);
    background: linear-gradient(100deg, rgba(196, 154, 69, 0.12), transparent 62%);
  }
  .contact-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-md); }
  .contact-card--tel:hover .cc-main { color: #7d5d1c; }
  .footer-nav a:hover { color: var(--gold); }
  .to-top:hover { border-color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .hero-scroll span { animation: none; }
  .header-tel .dot { animation: none; }
  .to-top { transition: opacity 0.2s linear; transform: none; }
}

/* ==========================================================================
   响应式 · 平板横屏 / 小笔记本（≤1080px）
   ========================================================================== */
@media (max-width: 1080px) {
  .header-inner { gap: 18px; }
  .nav-link { padding: 10px 11px; font-size: 0.9rem; }
  .nav-link::after { left: 11px; right: 11px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { text-align: left; }
}

/* ==========================================================================
   响应式 · 平板竖屏（≤980px）：汉堡菜单 + 首屏左对齐
   ========================================================================== */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-tel { display: none; }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 92px 22px 28px;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 40px -30px rgba(29, 27, 24, 0.6);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
    color: var(--txt);
    --h-gold: var(--gold);
    --h-muted: var(--txt-2);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  /* 抽屉展开时锁页面滚动 */
  body.nav-open { overflow: hidden; }
  .nav-link {
    padding: 16px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }

  .section { scroll-margin-top: 78px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 620px; }
  .about-figure::after { inset: 10px -10px -10px 10px; }

  .hero { min-height: auto; padding: 118px 0 76px; }
  .hero-inner { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-stats { margin-inline: 0; max-width: none; }
  .hero-scroll { display: none; }
}

/* ==========================================================================
   响应式 · 窄平板（≤900px）：卡片转单列、页脚三栏归位
   ========================================================================== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .cc-media img { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   响应式 · 手机（≤760px）
   ========================================================================== */
@media (max-width: 760px) {
  .hero-sub br { display: none; }         /* 手机上让文案自然折行 */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }

  /* 竖构图实拍图在窄屏放宽裁切比例，少切主体 */
  .pc-media img { aspect-ratio: 1 / 1; }
  .cc-media img { aspect-ratio: 4 / 3; }
  .about-figure img { aspect-ratio: 4 / 3; object-position: 50% 46%; }

  .product-grid,
  .process,
  .contact-cards { grid-template-columns: 1fr; }

  .strength-banner { grid-template-columns: repeat(2, 1fr); }
  .sb-item { padding: 26px 14px; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .footer-social { flex-direction: column; align-items: flex-start; gap: 18px; }
  .fs-cards { gap: 18px; }
  .fs-card img { width: 78px; }

  .about-points { grid-template-columns: 1fr; gap: 16px; }

  .mobile-bar { display: flex; }
  /* 底部转化条 + 安全区占位，避免遮挡页脚最后一行 */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .to-top { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: var(--tap); height: var(--tap); }
}

/* ==========================================================================
   响应式 · 小屏手机（≤480px）
   ========================================================================== */
@media (max-width: 480px) {
  .btn { padding: 13px 22px; width: 100%; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-eyebrow { letter-spacing: 0.26em; font-size: 0.76rem; }
  .hero-title { letter-spacing: 0.03em; }
  .section-eyebrow { letter-spacing: 0.26em; }
  .pc-body { padding: 22px 20px 24px; }
  .cc-body { padding: 22px 20px 24px; }
  .pc-cta-inner { padding: 34px 22px; }
  .to-top { right: 12px; }
}

/* ==========================================================================
   矮视口（横屏手机 / 小笔记本高度不足）
   ========================================================================== */
@media (max-height: 640px) and (min-width: 981px) {
  .hero { min-height: auto; padding: 108px 0 64px; }
  .hero-scroll { display: none; }
}
