/* ============================================================
   一针一偶 · 手工玩偶定制工作室
   全局样式表
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --paper: #f5eee3;
  --cream: #fbf7ef;
  --white: #fffdf8;
  --ink: #3d2f26;
  --ink-soft: #7a6859;
  --rust: #b4502e;
  --rust-deep: #8f3d22;
  --moss: #5c6b4f;
  --line: #e3d6c2;
  --line-strong: #d3c1a8;

  --font-d: 'ZCOOL XiaoWei', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', serif;
  --font-b: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --container: 1200px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(61, 47, 38, .05), 0 10px 28px rgba(61, 47, 38, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

p { margin: 0; }

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

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ---------- 缝线装饰 ---------- */
.stitch {
  display: block;
  width: 64px;
  border-top: 2px dashed var(--rust);
  opacity: .75;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--rust);
  margin-bottom: 18px;
}

.section-head .eyebrow::before {
  content: '';
  width: 26px;
  border-top: 2px dashed var(--rust);
  opacity: .8;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--ink);
}

.section-head .lead {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.section-center .section-head {
  margin-inline: auto;
  text-align: center;
}
.section-center .section-head .eyebrow { justify-content: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 238, 227, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(61, 47, 38, .08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-shrink: 0;
}

.brand-mark { width: 42px; height: 42px; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-d);
  font-size: 24px;
  letter-spacing: .12em;
  color: var(--ink);
}
.brand-en {
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  position: relative;
  padding: 8px 15px;
  font-size: 15.5px;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color .25s, background .25s;
}

.site-nav a:hover { color: var(--ink); background: rgba(180, 80, 46, .07); }

.site-nav a[aria-current='page'] {
  color: var(--rust);
  font-weight: 500;
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 16px;
  border-top: 2px solid var(--rust);
  border-radius: 2px;
}

.header-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transition: background .25s, transform .25s;
}
.header-cta:hover { background: var(--rust); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--rust); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 248, .55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 253, 248, .12); transform: translateY(-2px); }

.btn-line {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-line:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, rgba(40, 28, 20, .82) 0%, rgba(40, 28, 20, .5) 46%, rgba(40, 28, 20, .12) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), 92%);
  margin-inline: auto;
  padding: 120px 0 96px;
  color: var(--white);
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, .5);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(61, 47, 38, .25);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.22;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: #f2c49a;
  white-space: nowrap;
}

.hero-desc {
  font-size: 17px;
  line-height: 2;
  color: rgba(255, 253, 248, .88);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 253, 248, .72);
}
.hero-note .stitch { border-color: rgba(255, 253, 248, .6); }

/* ---------- 特色卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(180, 80, 46, .1);
  color: var(--rust);
  margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- 精选作品 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.work-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9ded0;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.05); }

.work-card .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  border-radius: 999px;
}

.work-card .body {
  padding: 20px 22px 22px;
}
.work-card .body h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.work-card .body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.section-more {
  margin-top: 46px;
  text-align: center;
}

/* ---------- 定制流程（编号步骤） ---------- */
.steps {
  border-top: 2px dashed var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  position: relative;
  padding-top: 34px;
}
.step::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--paper);
}

.step .num {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--rust);
  display: block;
  margin-bottom: 10px;
  letter-spacing: .06em;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- 品牌理念（图文区） ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, .35);
  border-radius: var(--radius);
  pointer-events: none;
}

.split-body .eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  color: var(--rust);
  margin-bottom: 18px;
}
.split-body h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 20px;
}
.split-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 15.5px;
}
.split-body .split-quote {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--ink);
  border-left: 2px solid var(--rust);
  padding-left: 18px;
  margin: 26px 0;
  line-height: 1.7;
}
.split-body .btn { margin-top: 10px; }

/* ---------- 内页 Hero ---------- */
.page-hero {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 10px, transparent 10px 22px);
  opacity: .35;
}

.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 640px;
}
.page-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--rust);
  margin-bottom: 18px;
}
.page-hero .eyebrow::before {
  content: '';
  width: 26px;
  border-top: 2px dashed var(--rust);
}

/* ---------- 服务类型 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(92, 107, 79, .12);
  color: var(--moss);
  margin-bottom: 20px;
}
.service-card .icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 19.5px;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- 面料与工艺 ---------- */
.material {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.material-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.material-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.material-list { margin-top: 8px; }

.material-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.material-item:last-child { border-bottom: none; }

.material-item .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--rust);
}
.material-item h4 {
  font-size: 16.5px;
  margin-bottom: 3px;
}
.material-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- 常见问题 ---------- */
.faq { max-width: 860px; margin-inline: auto; }

.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
  color: var(--rust);
}
.faq summary .faq-icon svg { width: 13px; height: 13px; }
.faq details[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

.faq .faq-body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.95;
}
.faq .faq-body p { margin-bottom: 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 作品展示 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  cursor: zoom-in;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.gallery-item .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover .thumb img { transform: scale(1.05); }

.gallery-item .meta {
  padding: 18px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.gallery-item .meta h3 {
  font-size: 18px;
}
.gallery-item .meta span {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--rust);
  white-space: nowrap;
}
.gallery-item .desc {
  padding: 0 20px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(32, 23, 16, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  width: min(92vw, 1000px);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox-caption {
  margin-top: 18px;
  color: var(--white);
  font-size: 15px;
}
.lightbox-caption small {
  display: block;
  color: rgba(255, 253, 248, .62);
  font-size: 13px;
  margin-top: 4px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, .12);
  border: 1px solid rgba(255, 253, 248, .35);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .25s;
}
.lightbox-btn:hover { background: rgba(255, 253, 248, .26); }
.lightbox-btn svg { width: 18px; height: 18px; }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-close {
  position: absolute;
  top: -58px;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(255, 253, 248, .35);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .25s;
}
.lightbox-close:hover { background: rgba(255, 253, 248, .2); }
.lightbox-close svg { width: 15px; height: 15px; }

/* ---------- 关于我们 ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-card {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px 34px;
}
.value-card .icon {
  width: 58px;
  height: 58px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(180, 80, 46, .1);
  color: var(--rust);
  margin-bottom: 20px;
}
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.about-story .split { align-items: flex-start; }
.about-story .split-body p + p { margin-top: 6px; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.contact-card {
  display: flex;
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.contact-card .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(180, 80, 46, .1);
  color: var(--rust);
}
.contact-card .icon svg { width: 22px; height: 22px; }

.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.contact-card a:hover { color: var(--rust); }

.contact-note {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-note-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-note-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.contact-note-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.contact-note-body p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 14px;
}
.contact-tip {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--rust);
  background: rgba(180, 80, 46, .07);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.9;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 85% 20%, rgba(180, 80, 46, .28), transparent 60%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 8px;
}
.cta-inner p {
  color: rgba(255, 253, 248, .75);
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #32261d;
  color: rgba(255, 253, 248, .78);
  padding-top: 64px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-en { color: rgba(255, 253, 248, .55); }
.footer-brand .brand-mark { filter: brightness(0) invert(1) opacity(.9); }

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 253, 248, .62);
  max-width: 300px;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: .1em;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 253, 248, .68);
  transition: color .25s, padding-left .25s;
}
.footer-col a:hover { color: #f2c49a; padding-left: 6px; }

.footer-col .f-item {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  line-height: 1.8;
  color: rgba(255, 253, 248, .68);
}
.footer-col .f-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; color: var(--rust); }

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 248, .12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 253, 248, .45);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--rust); color: var(--white); }
.back-top svg { width: 18px; height: 18px; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev { left: -10px; }
  .lightbox-next { right: -10px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    display: none;
    box-shadow: 0 18px 30px rgba(61, 47, 38, .1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 16px; font-size: 16px; }
  .site-nav a[aria-current='page']::after { display: none; }

  .header-cta { display: none; }

  .feature-grid, .works-grid, .service-grid, .values { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .material { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-note { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero { min-height: 92vh; }
  .hero-content { padding: 90px 0 70px; }
  .hero h1 { letter-spacing: .02em; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn { padding: 13px 24px; }
  .section-head { margin-bottom: 40px; }
}
