/* ============================================================
   暖筑装饰 · 暖色调主题样式
   ============================================================ */

:root {
  /* 暖色系配色 */
  --cream:        #FDF6EE;   /* 奶油底色 */
  --cream-deep:   #F8EFE3;   /* 深一点奶油 */
  --sand:         #F0E2D0;   /* 沙色 */
  --terracotta:   #C96F4A;   /* 陶土橙（主色） */
  --terracotta-d: #B05C3B;   /* 深陶土 */
  --caramel:      #8B5E4E;   /* 焦糖棕 */
  --wood:         #6B4B3E;   /* 木质深棕 */
  --text:         #4A3B32;   /* 正文暖棕 */
  --text-light:   #8A7365;   /* 浅棕文字 */
  --white:        #FFFFFF;
  --shadow:       0 20px 45px rgba(139, 94, 78, 0.12);
  --shadow-sm:    0 8px 24px rgba(139, 94, 78, 0.10);
  --radius:       18px;
  --radius-sm:    12px;
  --font-serif:   "Noto Serif SC", "Songti SC", serif;
  --font-sans:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(201, 111, 74, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(201, 111, 74, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(139, 94, 78, 0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  transition: color .3s ease;
}
.site-header.scrolled .brand { color: var(--wood); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(201, 111, 74, 0.4);
}
.main-nav { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 4px 0;
  transition: color .3s ease;
}
.site-header.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--terracotta); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--wood); }

/* ===== 首屏 Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 43, 32, 0.55) 0%, rgba(107, 66, 50, 0.62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 6px;
  color: #F4D6B8;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: #F2B98B;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 54px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: #F2B98B;
}
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.8); }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 26px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== 通用 Section ===== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--terracotta);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 16px;
}
.section-desc { color: var(--text-light); font-size: 16.5px; }

/* ===== 业务范围 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.service-img { height: 240px; overflow: hidden; }
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 28px; }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  font-size: 26px;
  background: var(--cream-deep);
  border-radius: 14px;
  margin-bottom: 18px;
}
.service-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 12px;
}
.service-text { color: var(--text-light); font-size: 15px; margin-bottom: 18px; }
.service-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-points li {
  font-size: 13px;
  color: var(--caramel);
  background: var(--cream-deep);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ===== 设计流程 ===== */
.process { background: var(--cream-deep); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.process-step:hover { transform: translateY(-6px); }
.step-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--sand);
  display: block;
  margin-bottom: 10px;
  transition: color .3s ease;
}
.process-step:hover .step-num { color: var(--terracotta); }
.process-step h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--wood);
  margin-bottom: 10px;
}
.process-step p { font-size: 14.5px; color: var(--text-light); }

/* ===== 实景案例 ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: transparent;
  color: var(--caramel);
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(201, 111, 74, 0.35);
}

.gallery-hint {
  text-align: center;
  color: var(--text-light);
  font-size: 14.5px;
  margin: -22px 0 32px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.style-card {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  background: var(--wood);
  font-family: var(--font-sans);
  transition: transform .35s ease, box-shadow .35s ease;
}
.style-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.style-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.style-card:hover img { transform: scale(1.08); }
.style-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 43, 32, 0.84), rgba(74, 43, 32, 0.05) 58%);
}
.style-card-info {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.style-card-cat {
  font-size: 12.5px;
  letter-spacing: 2px;
  color: #F2B98B;
  margin-bottom: 4px;
}
.style-card-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}
.style-card-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}
.style-card-arrow {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.style-card:hover .style-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 灯箱（查看某风格全部图片） ---- */
.lightbox, .zoom-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open, .zoom-viewer.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 30, 24, 0.85);
  backdrop-filter: blur(4px);
}
.lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(1080px, 94%);
  max-height: 88vh;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform .35s ease;
}
.lightbox.open .lightbox-panel { transform: translateY(0); }
.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: #fff;
  border-bottom: 1px solid var(--sand);
}
.lightbox-head h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--wood);
}
.lightbox-head p { color: var(--text-light); font-size: 13.5px; margin-top: 2px; }
.lightbox-close, .zoom-close {
  border: none;
  background: var(--cream-deep);
  color: var(--wood);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  flex-shrink: 0;
}
.lightbox-close:hover, .zoom-close:hover {
  background: var(--terracotta);
  color: #fff;
}
.lightbox-grid {
  overflow-y: auto;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lb-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.lb-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lb-item:hover img { transform: scale(1.06); }

/* ---- 单张大图查看 ---- */
.zoom-viewer { background: rgba(20, 13, 10, 0.94); }
.zoom-viewer img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.zoom-close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 3;
}
.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}
.zoom-nav:hover { background: var(--terracotta); }
.zoom-prev { left: 28px; }
.zoom-next { right: 28px; }
.zoom-counter {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ===== 关于我们 ===== */
.about { background: var(--cream-deep); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 460px; object-fit: cover; }
.about-content .section-title { text-align: left; }
.about-content .section-eyebrow { text-align: left; }
.about-text { color: var(--text-light); margin-bottom: 18px; font-size: 15.5px; }
.about-values {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 32px;
}
.about-values li { color: var(--wood); font-weight: 500; }

/* ===== 用户评价 ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--terracotta);
}
.testimonial p {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}
.testimonial footer { color: var(--caramel); font-size: 14px; }

/* ===== 联系我们 ===== */
.contact { background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  font-size: 22px;
  background: var(--cream-deep);
  border-radius: 12px;
}
.info-item h4 { font-size: 16px; color: var(--wood); margin-bottom: 4px; }
.info-item p { color: var(--text-light); font-size: 15px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(201, 111, 74, 0.12);
  background: #fff;
}
.form-tip { font-size: 14px; color: var(--terracotta-d); min-height: 20px; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--wood);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand-mark {
  display: inline-grid;
  margin-right: 8px;
}
.footer-brand .brand-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  vertical-align: middle;
}
.footer-brand p { margin-top: 12px; color: #D8BFA8; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { transition: color .25s ease; }
.footer-links a:hover { color: #F2B98B; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #C9AC93;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 111, 74, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--terracotta-d); }

/* ===== 动画进场 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .services-grid,
  .style-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .about-img img { height: 320px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 72%;
    height: 100vh;
    flex-direction: column;
    background: var(--cream);
    padding: 90px 36px;
    gap: 26px;
    box-shadow: -10px 0 40px rgba(74, 43, 32, 0.2);
    transition: right .35s ease;
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link {
    color: var(--wood);
    font-size: 18px;
  }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-toggle.active span { background: var(--wood); }

  .services-grid,
  .style-grid,
  .testimonial-grid,
  .process-grid { grid-template-columns: 1fr; }
  .lightbox-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .zoom-prev { left: 12px; }
  .zoom-next { right: 12px; }
}
