/* ==========================================================================
   筑美家装 - 全局样式
   ========================================================================== */

:root {
  --color-primary: #c96f4a;
  --color-primary-dark: #a9552f;
  --color-primary-light: #f3e3da;
  --color-ink: #23201d;
  --color-body: #5c5751;
  --color-muted: #8d867e;
  --color-line: #e8e2db;
  --color-bg: #ffffff;
  --color-bg-soft: #faf7f4;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(35, 32, 29, .06);
  --shadow: 0 12px 32px rgba(35, 32, 29, .10);
  --shadow-lg: 0 24px 60px rgba(35, 32, 29, .14);

  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--color-ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

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

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

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(35, 32, 29, .18);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.btn-light:hover { background: #fff; color: var(--color-ink); }

.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: .04em;
}
.logo:hover { color: var(--color-ink); }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #e3a077);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-body);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--color-primary); background: var(--color-primary-light); }
.nav a.active { color: var(--color-primary); font-weight: 700; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-tel { font-size: .9rem; color: var(--color-muted); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--color-bg-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { color: var(--color-muted); margin: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #2a2521 center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(25, 22, 19, .82) 0%, rgba(25, 22, 19, .55) 45%, rgba(25, 22, 19, .25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; padding: 80px 0; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: .35em; }
.hero p { font-size: 1.1rem; color: rgba(255, 255, 255, .86); margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}
.hero-stats .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stats .num small { font-size: 1rem; font-weight: 600; }
.hero-stats .label { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .45em; }
.card-body p { color: var(--color-muted); font-size: .95rem; margin-bottom: 0; }
.card-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  font-size: .75rem;
  font-weight: 700;
}

/* ---------- 特色 / 图标项 ---------- */
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-line);
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-primary-light);
  font-size: 1.35rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--color-muted); font-size: .93rem; }

/* ---------- 流程 ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 76px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--color-muted); font-size: .93rem; margin: 0; }

/* ---------- 案例筛选 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-body);
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.case-item.is-hidden { display: none; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split ul.check { margin-top: 4px; }
.check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--color-body);
}
.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- 报价表 ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th,
.price-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  font-size: .95rem;
}
.price-table thead th {
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  border-bottom: none;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--color-bg-soft); }
.price-table .price { color: var(--color-primary-dark); font-weight: 700; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  background: var(--color-primary);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(0, 0, 0, .22), transparent 50%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 1.8em; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-band .btn-primary:hover { background: var(--color-ink); color: #fff; }

/* ---------- 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--color-ink); }
.field .req { color: var(--color-primary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  color: var(--color-ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 111, 74, .14);
}
.field .error {
  font-size: .8rem;
  color: #d1453b;
  min-height: 0;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d1453b; }
.field.has-error .error { display: block; }

.form-note { font-size: .85rem; color: var(--color-muted); }

.form-alert {
  display: none;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #eaf7ee;
  border: 1px solid #b9e2c6;
  color: #1f7a41;
  font-size: .92rem;
}
.form-alert.is-visible { display: block; }

/* ---------- 联系信息 ---------- */
.contact-item {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--color-primary-light);
  font-size: 1.1rem;
}
.contact-item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--color-muted); font-size: .93rem; }

/* ---------- 页面头部横幅 ---------- */
.page-hero {
  position: relative;
  padding: 92px 0 80px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--color-muted); max-width: 620px; margin: 0 auto; }

.breadcrumb {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
}
.faq-q .arrow { transition: transform .25s; color: var(--color-primary); }
.faq-item.is-open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { padding: 0 24px 20px; margin: 0; color: var(--color-muted); font-size: .94rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, .68);
  padding: 68px 0 28px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.footer-about p { margin: 14px 0 0; line-height: 1.8; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 76px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .header-tel { display: none; }
  .header-cta .btn { display: none; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--color-primary-light); }
}

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-inner { padding: 66px 0; }
  .section { padding: 62px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-table th, .price-table td { padding: 13px 14px; font-size: .88rem; }
  .step { padding-left: 66px; }
}
