/**
 * 宜家整装 — 一站式全案装修 主题样式
 * 暖色调：暖白 + 木色 + 橙 + 绿植色
 * 家居生活杂志风格 · 大留白 · 大圆角
 * 纯原生 CSS，无框架依赖
 * ★ 遵循 PBootCMS AI开发规范全部约束
 */

/* 引入 Google Fonts — 思源黑体(Noto Sans SC) */


/* ============================================================
   CSS 变量 — 暖色调体系
   ============================================================ */
:root {
  /* 背景色阶 */
  --bg-warm: #FDF8F0;
  --bg-white: #FFFFFF;
  --bg-card: #FFFBF5;
  --bg-cream: #FAF3E6;
  --bg-footer: #3D3226;

  /* 主色系 */
  --color-wood: #D4A373;
  --color-wood-dark: #B8834A;
  --color-wood-light: #E8CCAB;
  --color-orange: #ED8936;
  --color-orange-dark: #DD6B20;
  --color-orange-light: #FBD38D;
  --color-green: #7CB342;
  --color-green-light: #AED581;

  /* 文字色阶 */
  --text-primary: #2D2420;
  --text-secondary: #6B5E56;
  --text-muted: #A0948C;
  --text-light: #C4B8AF;
  --text-on-dark: #F5F0E8;
  --text-on-dark-muted: #B8A99A;

  /* 边框 */
  --border-subtle: #EDE4D8;
  --border-warm: #E0D5C5;
  --border-orange: rgba(237, 137, 54, 0.3);

  /* 阴影 — 温暖柔和 */
  --shadow-xs: 0 1px 3px rgba(45, 36, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(45, 36, 32, 0.06);
  --shadow-md: 0 6px 24px rgba(45, 36, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 36, 32, 0.10);
  --shadow-card: 0 4px 20px rgba(45, 36, 32, 0.06);

  /* 圆角 — 大圆角亲切感 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* 间距 */
  --section-py: 88px;
  --section-py-sm: 60px;
  --container-max: 1200px;
  --header-h: 76px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 — 思源黑体 + 系统兜底 */
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', -apple-system, sans-serif;
}

/* ============================================================
   全局重置
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x:hidden 防止移动端被个别超宽元素撑大布局视口，导致整体左偏 */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(237, 137, 54, 0.2); color: var(--text-primary); }
a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ============================================================
   排版
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-py) 0; }
.section-sm { padding: var(--section-py-sm) 0; }
.section-warm { background: var(--bg-cream); }

/* ============================================================
   响应式网格工具类 — 替换模板内联 grid 样式，支持断点堆叠
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--gap20 { gap: 20px; }
.grid--gap14 { gap: 14px; }
/* 首页装修案例精选网格 — 桌面3列 / 平板+手机2列 */
.case-grid { grid-template-columns: repeat(3, 1fr); }
/* 首页实景工地网格 — 桌面3列 / 平板+手机2列（只留2张时一行并排） */
.site-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 首页客户评价网格 — 桌面3列 / 平板+手机2列（只留2条时一行并排） */
.review-grid { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   Header — 暖白半透明
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
}
.header__logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-wood));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.header__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.01em;
}
.header__logo-sub {
  font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--color-orange); text-transform: uppercase;
}

/* 主导航 */
.header__nav { display: flex; align-items: center; gap: 2px; }
.header__nav-link {
  padding: 10px 18px; font-size: 0.92rem;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out); white-space: nowrap;
  font-weight: 500;
}
.header__nav-link:hover, .header__nav-link.active {
  color: var(--color-orange); background: rgba(237, 137, 54, 0.06);
}

/* 导航下拉 */
.header__nav-item { position: relative; }
.header__nav-item:hover .header__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 160px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}
.header__dropdown a {
  display: block; padding: 10px 20px; font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.header__dropdown a:hover { color: var(--color-orange); background: var(--bg-cream); }

/* 右侧操作区 */
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: var(--color-orange); color: #fff;
  font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.header__cta:hover { color: #fff; background: var(--color-orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(237, 137, 54, 0.3); }

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  z-index: 110; margin-left: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 80%; max-width: 340px;
  background: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__inner { padding: 24px; padding-top: 80px; }
.mobile-nav__link {
  display: block; padding: 14px 16px;
  font-size: 1rem; color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  font-weight: 500;
}
.mobile-nav__link:hover { color: var(--color-orange); background: var(--bg-cream); }
.mobile-nav__sub { padding-left: 16px; display: none; }
.mobile-nav__sub.open { display: block; }
.mobile-nav__sub a {
  display: block; padding: 10px 16px;
  font-size: 0.9rem; color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.mobile-nav__overlay {
  position: fixed; inset: 0;
  background: rgba(45, 36, 32, 0.5);
  z-index: 115; opacity: 0; pointer-events: none;
  transition: opacity var(--duration-normal);
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-orange); color: #fff;
}
.btn--primary:hover { background: var(--color-orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(237, 137, 54, 0.35); color: #fff; }
.btn--outline {
  background: transparent; color: var(--color-orange);
  border: 1.5px solid var(--color-orange);
}
.btn--outline:hover { background: rgba(237, 137, 54, 0.06); color: var(--color-orange-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-warm);
}
.btn--ghost:hover { color: var(--color-orange); border-color: var(--color-orange); }
.btn--white { background: #fff; color: var(--color-orange); }
.btn--white:hover { background: var(--bg-warm); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   卡片系统 — 暖白 + 轻阴影
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card__image {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 20px 24px; }
.card__tag {
  display: inline-block; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--color-orange); background: rgba(237, 137, 54, 0.08);
  border-radius: var(--radius-full); margin-bottom: 8px;
}
.card__title {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card__desc {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem; color: var(--text-muted);
}
.card__meta i { color: var(--color-wood); margin-right: 2px; }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative; height: 300px; overflow: hidden;
  background: var(--bg-cream);
}
.inner-banner__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.inner-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,36,32,0.30) 0%, rgba(45,36,32,0.15) 50%, rgba(45,36,32,0.50) 100%);
}
.inner-banner__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
}
.inner-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; color: #fff; margin-bottom: 0.5rem;
}
.inner-banner__subtitle { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* 面包屑 */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border-subtle); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  max-width: var(--container-max); margin: 0 auto;
  padding: 14px 24px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--color-orange); }
.breadcrumb i { font-size: 0.6rem; color: var(--text-light); }

/* ============================================================
   Hero Banner — 全屏轮播
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  overflow: hidden; background: var(--bg-cream);
}
.hero .swiper { position: absolute; inset: 0; z-index: 0; }
.hero .swiper-wrapper,
.hero .swiper-slide { height: 100%; }
.hero__slide {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(45,36,32,0.30) 0%, rgba(45,36,32,0.08) 50%, rgba(45,36,32,0.25) 100%);
}
.hero__content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 24px; text-align: center;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem; font-weight: 400;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 32px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.4); opacity: 1;
  transition: all var(--duration-normal);
}
.hero-pagination .swiper-pagination-bullet-active {
  width: 56px; background: var(--color-orange);
}

/* ============================================================
   公司数据 — 数字滚动区
   ============================================================ */
.stats-section { background: #fff; border-bottom: 1px solid var(--border-subtle); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; color: var(--color-orange);
  line-height: 1.1; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-item__label {
  font-size: 0.88rem; color: var(--text-muted);
}

/* ============================================================
   三大亮点/特色卡片
   ============================================================ */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  text-align: center; padding: 44px 32px;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card__icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: all var(--duration-normal);
}
.feature-card__icon--design { background: rgba(237,137,54,0.1); color: var(--color-orange); }
.feature-card__icon--build { background: rgba(212,163,115,0.12); color: var(--color-wood); }
.feature-card__icon--service { background: rgba(124,179,66,0.1); color: var(--color-green); }
.feature-card:hover .feature-card__icon { transform: scale(1.1); }
.feature-card__title {
  font-family: var(--font-heading); font-size: 1.2rem;
  font-weight: 600; color: var(--text-primary); margin-bottom: 8px;
}
.feature-card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   服务分类 — 5列网格
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.service-card {
  text-align: center; padding: 36px 20px;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card__icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: var(--bg-cream); color: var(--color-wood);
  transition: all var(--duration-normal);
}
.service-card:hover .service-card__icon { background: var(--color-orange); color: #fff; }
.service-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.service-card__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   装修流程 — 步骤条
   ============================================================ */
.process-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 36px; left: 12%; right: 12%;
  height: 2px; background: var(--border-warm); z-index: 0;
}
.process-step {
  text-align: center; position: relative; z-index: 1;
  padding: 0 8px;
}
.process-step__num {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  background: #fff; color: var(--color-wood); border: 2px solid var(--border-warm);
  transition: all var(--duration-normal);
}
.process-step:hover .process-step__num {
  background: var(--color-orange); color: #fff; border-color: var(--color-orange);
  transform: scale(1.1); box-shadow: 0 8px 24px rgba(237,137,54,0.25);
}
.process-step__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.process-step__time { font-size: 0.8rem; color: var(--color-orange); }

/* ============================================================
   风格标签
   ============================================================ */
.style-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.style-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  background: #fff; border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}
.style-tag:hover {
  border-color: var(--color-orange); color: var(--color-orange);
  background: rgba(237,137,54,0.04);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.style-tag i { font-size: 0.85rem; color: var(--color-wood); }

/* ============================================================
   CTA 区域
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-orange), #E07B2C);
  text-align: center;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; color: #fff; margin-bottom: 0.75rem;
  position: relative;
}
.cta-section__text {
  font-size: 1.05rem; color: rgba(255,255,255,0.85);
  margin-bottom: 32px; position: relative;
}

/* ============================================================
   Footer — 深色底 + 暖白文字
   ============================================================ */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark-muted);
}
.footer__top-line { height: 3px; background: linear-gradient(90deg, var(--color-orange), var(--color-wood), var(--color-green)); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding: 60px 0 40px;
  max-width: var(--container-max); margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}
.footer__brand-desc {
  font-size: 0.88rem; color: var(--text-on-dark-muted);
  line-height: 1.75; margin: 16px 0;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted); font-size: 1rem;
  transition: all var(--duration-fast);
}
.footer__social a:hover { background: var(--color-orange); color: #fff; }
.footer__col-title {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 600; color: var(--text-on-dark); margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem; color: var(--text-on-dark-muted);
  transition: color var(--duration-fast);
}
.footer__links a:hover { color: var(--color-orange-light); }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--text-on-dark-muted); margin-bottom: 10px;
}
.footer__contact-item i { color: var(--color-wood); margin-top: 3px; flex-shrink: 0; }
.footer__qrcode {
  width: 120px; height: 120px; background: #fff;
  border-radius: var(--radius-sm); padding: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #999;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 24px; font-size: 0.8rem;
  color: var(--text-on-dark-muted); flex-wrap: wrap; gap: 8px;
}
.footer__bottom a { color: var(--text-on-dark-muted); }
.footer__bottom a:hover { color: var(--color-orange-light); }

/* ============================================================
   案例卡片（首页）— 大卡片风格
   ============================================================ */
.case-card {
  background: #fff; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-card__image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.case-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow); }
.case-card:hover .case-card__image img { transform: scale(1.06); }
.case-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(45,36,32,0.5));
  opacity: 0; transition: opacity var(--duration-normal);
}
.case-card:hover .case-card__overlay { opacity: 1; }
.case-card__body { padding: 20px 24px; }
.case-card__title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.case-card__info {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem; color: var(--text-muted);
}
.case-card__info span { display: flex; align-items: center; gap: 4px; }
.case-card__info i { color: var(--color-wood); }

/* ============================================================
   评价卡片
   ============================================================ */
.review-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.review-card__stars { color: var(--color-orange); font-size: 0.9rem; margin-bottom: 12px; }
.review-card__text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-cream); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--color-wood);
}
.review-card__name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.review-card__source { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   新闻列表项 — 左图右文
   ============================================================ */
.news-item {
  display: flex; gap: 24px; padding: 24px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal);
  align-items: center;
}
.news-item:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.news-item__image {
  width: 200px; height: 140px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0;
}
.news-item__image img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body { flex: 1; min-width: 0; }
.news-item__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.news-item__date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.news-item__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   工地卡片
   ============================================================ */
.site-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/3;
  background: var(--bg-cream);
}
.site-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow); }
.site-card:hover img { transform: scale(1.05); }
.site-card__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(45,36,32,0.75));
  color: #fff;
}
.site-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }

/* ============================================================
   列表页 — 网格布局 + 过滤栏
   ============================================================ */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-header { text-align: center; margin-bottom: 48px; }
.list-header h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 0.5rem; }

/* 子栏目过滤栏 */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding-bottom: 8px; margin-bottom: 36px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  display: inline-flex; padding: 8px 20px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  background: #fff; border-radius: var(--radius-full);
  white-space: nowrap; flex-shrink: 0;
  border: 1.5px solid var(--border-subtle);
  transition: all var(--duration-fast);
}
.filter-bar a:hover, .filter-bar a.active {
  color: var(--color-orange); border-color: var(--color-orange);
  background: rgba(237,137,54,0.04);
}

/* ============================================================
   详情页
   ============================================================ */
.detail { max-width: 900px; margin: 0 auto; }
.detail-gallery {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px;
}
.detail-gallery .swiper-slide { aspect-ratio: 16/9; }
.detail-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.detail__header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.detail__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.detail__meta-row { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.85rem; color: var(--text-muted); }
.detail__meta-row i { margin-right: 4px; color: var(--color-wood); }

.detail__params {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.detail__param {
  padding: 20px 16px; background: #fff;
  border-radius: var(--radius-md); text-align: center;
  box-shadow: var(--shadow-xs);
}
.detail__param-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.detail__param-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

.detail__body {
  color: var(--text-secondary); line-height: 2;
  font-size: 0.95rem; letter-spacing: 0.015em;
}
.detail__body img { border-radius: var(--radius-md); margin: 24px 0; max-width: 100%; }
.detail__body p { margin-bottom: 16px; }
.detail__body h2, .detail__body h3, .detail__body h4 { color: var(--text-primary); margin-top: 32px; margin-bottom: 16px; }

.detail__pager {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem; color: var(--text-muted);
}
.detail__pager a { color: var(--text-secondary); }
.detail__pager a:hover { color: var(--color-orange); }

.related-title { font-size: 1.35rem; font-weight: 700; margin: 56px 0 24px; color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Tab 切换 */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-subtle); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--duration-fast);
}
.tab-btn.active { color: var(--color-orange); border-bottom-color: var(--color-orange); }
.tab-panel.hidden { display: none; }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info__item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: #fff;
  border-radius: var(--radius-md); margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-fast);
}
.contact-info__item:hover { box-shadow: var(--shadow-sm); }
.contact-info__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(237,137,54,0.08); display: flex;
  align-items: center; justify-content: center;
  color: var(--color-orange); font-size: 1.1rem; flex-shrink: 0;
}
.contact-info__label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.contact-info__value { font-size: 0.88rem; color: var(--text-secondary); }

.contact-form-card {
  padding: 36px; background: #fff;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-group label .required { color: var(--color-orange); }
.form-control {
  width: 100%; padding: 14px 18px;
  background: var(--bg-warm); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.92rem; transition: all var(--duration-fast);
}
.form-control:focus {
  outline: none; border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(237,137,54,0.08);
  background: #fff;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0948C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box { max-width: 700px; margin: 0 auto; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 0.95rem;
}
.search-form-row { display: flex; gap: 10px; }
.search-form-row input {
  flex: 1; padding: 16px 20px; padding-left: 44px;
  background: #fff; border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full); color: var(--text-primary);
  font-size: 0.95rem;
}
.search-form-row input:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 3px rgba(237,137,54,0.08); }
.search-result-item {
  display: flex; gap: 16px; padding: 18px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-fast); margin-bottom: 10px;
}
.search-result-item:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.search-result-item__thumb {
  width: 100px; height: 80px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--bg-cream);
}
.search-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.search-result-item__date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.search-result-item__desc { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   报价页
   ============================================================ */
.quote-section { max-width: 720px; margin: 0 auto; }
.quote-card {
  padding: 48px; background: #fff;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 8px;
  font-size: 0.88rem; color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}
.pagination a:hover { background: var(--bg-cream); color: var(--color-orange); }
.pagination .active { background: var(--color-orange); color: #fff; font-weight: 600; }
.pagination .disabled { color: var(--text-muted); pointer-events: none; }

/* ============================================================
   空状态
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 16px; display: block; }
.empty-state p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 16px 0;
}
.friend-links__label { font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; }
.friend-links a { font-size: 0.82rem; color: var(--text-muted); transition: color var(--duration-fast); }
.friend-links a:hover { color: var(--color-orange); }

/* ============================================================
   返回顶部 + 在线客服按钮
   ============================================================ */
.back-top {
  position: fixed; right: 20px; bottom: 120px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border-warm);
  color: var(--text-muted); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; cursor: pointer;
  z-index: 80; opacity: 0; pointer-events: none;
  transition: all var(--duration-normal); box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--color-orange); color: #fff; border-color: var(--color-orange); }

.kefu-btn {
  position: fixed; right: 20px; bottom: 60px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--color-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; z-index: 80;
  box-shadow: 0 4px 16px rgba(237,137,54,0.35);
  transition: all var(--duration-normal);
  animation: kefuPulse 2.5s ease-in-out infinite;
}
.kefu-btn:hover { transform: scale(1.08); background: var(--color-orange-dark); }
@keyframes kefuPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(237,137,54,0.35); }
  50% { box-shadow: 0 4px 28px rgba(237,137,54,0.55); }
}

/* ============================================================
   AOS 覆盖 / 动画适配
   ============================================================ */
[data-aos] { transition-timing-function: var(--ease-out); }

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 64px; --section-py-sm: 48px; }
  .header__nav, .header__actions { display: none; }
  .hamburger { display: flex; }
  .grid--3, .case-grid, .site-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-grid::before { display: none; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .case-card__info { flex-direction: column; gap: 4px; }
  .news-item { flex-direction: column; }
  .news-item__image { width: 100%; height: 180px; }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 52px; --section-py-sm: 40px; }
  /* 手机端首屏压缩 — 降低高度、收紧标题与间距 */
  .hero { height: 46vh; min-height: 360px; }
  .hero__content { padding-bottom: 24px; }
  .hero__title { font-size: 1.7rem; margin-bottom: 10px; }
  .hero__subtitle { font-size: 0.9rem; margin-bottom: 16px; }
  .hero__actions .btn { padding: 10px 22px; font-size: 0.9rem; }
  .hero-pagination { margin-top: 14px; }
  .inner-banner { height: 220px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  /* 手机端快速导航横向排列 — 一行换行显示 */
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  /* 手机端案例卡片压缩 — 收紧内边距、标题限2行 */
  .case-card__body { padding: 14px 16px; }
  .case-card__title { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card__info { gap: 4px 10px; }
  /* 手机端服务卡片压缩 — 收紧内边距、缩小图标 */
  .service-card { padding: 24px 14px; }
  .service-card__icon { width: 48px; height: 48px; margin-bottom: 10px; font-size: 1.15rem; }
  .service-card__title { font-size: 0.95rem; margin-bottom: 4px; }
  .service-card__desc { font-size: 0.76rem; }
  /* 手机端流程步骤压缩 — 缩小圆圈、收紧间距 */
  .process-step__num { width: 56px; height: 56px; margin-bottom: 10px; font-size: 1.2rem; }
  .process-step__title { font-size: 0.9rem; }
  .process-step__time { font-size: 0.72rem; }
  /* 手机端评价卡片压缩 — 收紧内边距与字号 */
  .review-card { padding: 16px; }
  .review-card__stars { font-size: 0.8rem; margin-bottom: 8px; }
  .review-card__text { font-size: 0.85rem; -webkit-line-clamp: 4; margin-bottom: 10px; }
  .review-card__author { padding-top: 10px; }
  .review-card__avatar { width: 36px; height: 36px; font-size: 0.95rem; }
  /* 手机端风格标签压缩 — 收紧内边距、间距与字号 */
  .style-tags { gap: 8px; }
  .style-tag { padding: 8px 16px; font-size: 0.82rem; gap: 4px; }
  .style-tag i { font-size: 0.75rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  /* 手机端新闻压缩 — 收短图高、收紧内边距与字号 */
  .news-item { flex-direction: column; gap: 12px; padding: 14px; }
  .news-item__image { width: 100%; height: 120px; }
  .news-item__title { font-size: 0.95rem; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-item__date { font-size: 0.72rem; margin-bottom: 0; }
  .news-item__desc { font-size: 0.8rem; -webkit-line-clamp: 1; }
  /* 手机端工地卡片图片压缩 — 收短图高 */
  .site-card { aspect-ratio: 3/2; }
  .detail__params { grid-template-columns: repeat(2, 1fr); }
  .quote-card { padding: 28px 20px; }
  .contact-form-card { padding: 24px; }
  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 160px; }
  .back-top, .kefu-btn { right: 12px; }
  .kefu-btn { bottom: 50px; width: 44px; height: 44px; font-size: 1.1rem; }
  .back-top { bottom: 100px; width: 38px; height: 38px; }
}

/* ============================================================
   减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
