/* 嘉蔚装饰 - 一家懂风水的装修公司 */
:root {
  --fs-primary: #8b6914;
  --fs-primary-light: #c9a227;
  --fs-primary-bg: #faf6ed;
  --fs-dark: #2c2416;
  --fs-muted: #6b5d4f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 更宽的容器 - 大气版面 */
.container-wide {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1400px) {
  .container-wide { max-width: 1440px; padding-left: 2rem; padding-right: 2rem; }
}
.section-wide .section-title { font-size: 1.75rem; }
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .section-wide .section-title { font-size: 2rem; }
  .section-wide .section-subtitle { font-size: 1.05rem; }
}

body {
  padding-top: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--fs-dark);
  background: #fff;
}

/* 导航 - 移动端友好 */
.navbar {
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { background: rgba(255,255,255,0.98) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* LOGO 品牌区 */
.navbar-brand.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fs-dark) !important;
}
.logo-slogan {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fs-primary);
  margin-top: 0.15rem;
}
@media (min-width: 992px) {
  .logo-text { font-size: 1.65rem; letter-spacing: 0.15em; }
  .logo-slogan { font-size: 0.75rem; letter-spacing: 0.22em; }
}

.navbar-brand:not(.logo-brand) { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; color: var(--fs-dark) !important; }
.nav-link {
  font-weight: 500;
  color: var(--fs-muted) !important;
  padding: 0.5rem 0.75rem !important;
}
.nav-link:hover, .nav-link.active { color: var(--fs-primary) !important; }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .nav-link { padding: 0.5rem 0 !important; }
}

/* 全屏轮播 - 大气首屏 */
.hero-carousel {
  position: relative;
  margin-top: -1px;
}
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 480px;
  max-height: 900px;
}
@media (max-width: 767.98px) {
  .hero-carousel .carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item {
    min-height: 420px;
    height: 70vh;
  }
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-carousel .carousel-caption {
  bottom: 15%;
  left: 5%;
  right: 5%;
  text-align: left;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(44,36,22,0.85) 0%, rgba(44,36,22,0.5) 100%);
  border-radius: 12px;
  max-width: 560px;
}
@media (max-width: 767.98px) {
  .hero-carousel .carousel-caption {
    bottom: 10%;
    padding: 1.25rem;
    max-width: 100%;
  }
}
.hero-carousel .carousel-caption .badge-fs {
  display: inline-block;
  background: rgba(201,162,39,0.3);
  color: #f5e6c8;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.hero-carousel .carousel-caption h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero-carousel .carousel-caption .lead {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.hero-carousel .btn-light {
  background: #f5e6c8;
  color: var(--fs-dark);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}
.hero-carousel .btn-outline-light {
  border: 1px solid rgba(255,255,255,0.8);
  color: #fff;
  background: transparent;
}
.hero-carousel .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.carousel-control-prev, .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  opacity: 0.8;
}
.carousel-control-prev { left: 1rem; }
.carousel-control-next { right: 1rem; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1); }

/* 风水优势区块 */
.section-fs {
  background: var(--fs-primary-bg);
}
.section-fs .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-fs .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(139,105,20,0.12);
}
.section-fs .icon-fs {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-primary-light) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.section-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fs-dark);
}
.section-subtitle {
  color: var(--fs-muted);
  max-width: 600px;
}

/* 品牌合作区块（与新闻动态等 section-fs 区分配色：白底+浅边框） */
.section-partners {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* 流程时间轴 */
.flow-step {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
}
.flow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fs-primary);
  box-shadow: 0 0 0 4px rgba(139,105,20,0.2);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: #e8e0d0;
}
.flow-step .step-num {
  background: var(--fs-primary-bg);
  color: var(--fs-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* 关于我们 - 发展历程时间轴 */
.about-timeline { position: relative; padding-left: 0; list-style: none; }
.about-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--fs-primary) 0%, var(--fs-primary-light) 100%);
  border-radius: 3px;
}
@media (min-width: 768px) { .about-timeline::before { left: 1rem; } }
.about-timeline-item {
  position: relative;
  padding-left: 3.75rem;
  padding-bottom: 2rem;
}
.about-timeline-item:last-child { padding-bottom: 0; }
@media (min-width: 768px) {
  .about-timeline-item { padding-left: 5.5rem; padding-bottom: 2.5rem; }
}
.about-timeline-year {
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--fs-primary);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(139,105,20,0.3);
}
@media (min-width: 768px) { .about-timeline-year { font-size: 1.1rem; min-width: 3.5rem; padding: 0.35rem 0.6rem; } }
.about-timeline-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fs-muted);
  margin-left: 0.5rem;
}
@media (min-width: 768px) { .about-timeline-content { margin-left: 0.75rem; } }
.about-timeline-content p { margin-bottom: 0.5rem; }
.about-timeline-content p:last-child { margin-bottom: 0; }

/* 案例卡片 */
.case-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.case-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}
.case-card:hover .card-img-top { transform: scale(1.03); }
@media (max-width: 575.98px) {
  .case-card .card-img-top { height: 180px; }
}

/* 品牌合作 - 合作品牌 LOGO 展示 */
.partner-logos { row-gap: 2rem; }
.partner-logo {
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.partner-logo:hover { box-shadow: 0 4px 20px rgba(139,105,20,0.12); }
.partner-logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.4);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* 空状态占位 */
.empty-placeholder {
  background: #f8f6f2;
  border: 2px dashed #e0d8c8;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--fs-muted);
  font-size: 0.95rem;
}

/* 详情页富文本 */
.content-html { line-height: 1.8; }
.content-html img { max-width: 100%; height: auto; }
.content-html p { margin-bottom: 0.75rem; }
.content-html h1, .content-html h2, .content-html h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }

/* 页脚 */
footer {
  background: var(--fs-dark) !important;
  color: rgba(255,255,255,0.85);
}
.footer-wechat-qrcode img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}
.footer-wechat-qrcode .text-muted { color: rgba(255,255,255,0.7) !important; font-size: 0.75rem; margin-top: 0.25rem !important; }

/* 按钮主色 */
.btn-primary {
  background: var(--fs-primary);
  border-color: var(--fs-primary);
}
.btn-primary:hover {
  background: var(--fs-primary-light);
  border-color: var(--fs-primary-light);
}
.btn-outline-primary {
  color: var(--fs-primary);
  border-color: var(--fs-primary);
}
.btn-outline-primary:hover {
  background: var(--fs-primary-bg);
  color: var(--fs-primary);
  border-color: var(--fs-primary);
}
