/* =========================================================
   青禾装饰 · 首页专属样式 home.css（对齐原站视觉语言）
   依赖 base.css
   ========================================================= */

/* ===== Hero 图片轮播（对齐原站 unslider banner） ===== */
.hero { position: relative; overflow: hidden; background: var(--c-dark); }
.hero-carousel { position: relative; height: clamp(380px, 50vw, 540px); }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .5s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
/* 青绿→蓝 极轻叠加：只在文字区留薄暗，最大化保留实景底图亮度 */
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,40,54,.30) 0%, rgba(13,40,54,.12) 45%, rgba(0,100,212,.04) 100%);
}
.hero-inner {
  position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center; height: 100%;
}
.hero-copy h1 { color: #fff; margin: .3em 0 .4em; text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.35); }
.hero-copy .lead { color: rgba(255,255,255,.94); font-size: 16px; max-width: 520px; text-shadow: 0 1px 3px rgba(0,0,0,.42); }
.hero-copy .tag { background: rgba(25,187,155,.18); color: #aef3e3; border: 1px solid rgba(25,187,155,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { position: relative; padding-left: 22px; color: rgba(255,255,255,.95); font-weight: 600; font-size: 14px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(25,187,155,.9); color: #fff; font-size: 12px; display: grid; place-items: center; }
/* Hero 右侧展示图（轮播里叠加一张实景，强化“工装”观感） */
.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 3px solid rgba(255,255,255,.3); }
.hero-photo img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform var(--t-img); }
.hero-photo:hover img { transform: scale(1.06); }
.hero-photo-badge { position: absolute; left: 14px; bottom: 14px; background: rgba(47,47,47,.82); color: #fff;
  border-radius: var(--r-md); padding: 8px 14px; display: flex; align-items: baseline; gap: 7px; }
.hero-photo-badge strong { font-size: 20px; color: #6ee7c9; }
.hero-photo-badge span { font-size: 12.5px; }
/* 轮播圆点 */
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 4; display: flex; gap: 9px; justify-content: center; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; border: 0; padding: 0; transition: var(--t); }
.hero-dot.active { background: var(--c-teal); width: 28px; border-radius: 5px; }

/* ===== 核心数据 ===== */
.stats { gap: 0; }
.stat { text-align: center; padding: 16px 12px; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--c-teal-700); line-height: 1.1; }
.stat span { color: var(--c-muted); font-size: 14px; }

/* ===== 业务三卡 ===== */
.svc-card { text-align: left; display: flex; flex-direction: column; }
.svc-ico { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--grad-brand-soft); display: grid; place-items: center; font-size: 28px; margin-bottom: 16px; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--c-body); margin-bottom: 14px; flex: 1; }
.svc-list { list-style: none; padding: 0; margin: 0 0 16px; }
.svc-list li { position: relative; padding-left: 22px; margin: 7px 0; color: var(--c-body); font-size: 14px; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); }
.svc-card .btn { align-self: flex-start; }

/* ===== 典型项目（三大类，1:1 复刻原站 wxqhzs.com 首页） =====
   原站实测：图片高约 253px（object-fit:cover 居中裁切，与原站放大+左偏裁切等价）
             标题 16px 加粗居中 / 描述 14px #888 行高 200% 居中
             按钮 215×50，白底 + 1px 青绿描边 + 青绿 13px 加粗文字，hover 反白 */
.typical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.typical-item { display: flex; flex-direction: column; text-align: center; }
.typical-thumb { height: 253px; overflow: hidden; }
.typical-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.typical-item h3 { margin: 32px 0 0; font-size: 16px; font-weight: 700; color: var(--c-ink); }
.typical-item p { margin: 14px 0 22px; color: #888888; font-size: 14px; line-height: 2; text-align: left; text-indent: 2em; }
.typical-btn {
  display: block; width: 215px; height: 50px; line-height: 48px; margin: auto auto 0;
  border: 1px solid var(--c-teal); border-radius: var(--r-sm); background: #fff;
  color: var(--c-teal); font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-align: center; transition: var(--t);
}
.typical-btn:hover { background: var(--c-teal); color: #fff; }

/* ===== 精选案例（原站图片过渡：hover 放大 + 淡入） ===== */
.case-card { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm); transition: var(--t); color: inherit; }
.case-card:hover { box-shadow: var(--sh-md); }
.case-thumb { height: 200px; background-size: cover; background-position: center; transition: transform var(--t-img); }
.case-card:hover .case-thumb { transform: scale(1.08); }
.case-thumb::after { content: ""; display: block; height: 100%; background: rgba(25,187,155,0); transition: background var(--t-img); }
.case-card:hover .case-thumb::after { background: rgba(25,187,155,.12); }
.case-body { padding: 18px 20px 22px; }
.case-body h3 { font-size: 18px; margin: 10px 0 6px; }
.case-body p { color: var(--c-muted); font-size: 14px; margin: 0; }

/* ===== 服务流程 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--sh-sm); transition: var(--t); }
.step:hover { box-shadow: var(--sh-md); border-color: var(--c-teal-100); }
.step-no { font-size: 32px; font-weight: 800; color: var(--c-teal-100); line-height: 1; display: block; margin-bottom: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--c-muted); margin: 0; font-size: 14px; }

/* ===== 消防验收专区（.bg-dark #2f2f2f） ===== */
.fire-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.fire-list { list-style: none; padding: 0; margin: 18px 0 0; }
.fire-list li { position: relative; padding-left: 26px; margin: 11px 0; color: #d6d6d6; font-size: 14.5px; }
.fire-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-teal); color: #063; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fire-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fire-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 20px; transition: var(--t); }
.fire-card:hover { background: rgba(255,255,255,.12); }
.fire-card strong { display: block; font-size: 19px; color: #6ee7c9; margin-bottom: 3px; }
.fire-card span { font-size: 13.5px; color: #c2c2c2; }

/* ===== 智能化 · 材料 ===== */
.smart-grid { gap: 22px; }
.smart-block { display: flex; flex-direction: column; }
.smart-block p { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

/* ===== 关于简介图文（首页） ===== */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: stretch; }
.intro-media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); }
/* 图片绝对定位填满父框：不参与高度计算，框高由右侧文字栏决定（上缘=ABOUT US 行，下缘=按钮下缘） */
.intro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; }
.intro-text p { font-size: 15px; line-height: 1.95; color: var(--c-body); }
.intro-text p strong { color: var(--c-ink); }

/* ===== 企业文化条 ===== */
.culture-lead { text-align: center; color: #fff; font-size: 18px; margin: 0 0 28px; }
.culture-lead b { color: #6ee7c9; }
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.culture-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 22px; transition: var(--t); }
.culture-item:hover { background: rgba(255,255,255,.12); }
.culture-item h4 { color: #6ee7c9; font-size: 17px; margin: 0 0 8px; }
.culture-item p { color: #cfcfcf; font-size: 13.5px; margin: 0; line-height: 1.7; }

/* ===== 顾客评价 ===== */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testi { background: #fff; border: 1px solid var(--c-line); border-left: 3px solid var(--c-teal); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-sm); transition: var(--t); }
.testi:hover { box-shadow: var(--sh-md); }
.testi p { color: var(--c-body); font-size: 14.5px; line-height: 1.85; margin: 0 0 14px; }
.testi .who { color: var(--c-muted); font-size: 13px; }
.testi .who b { color: var(--c-teal-700); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  /* 单列时恢复静态定位 + 4:3 比例，不随右侧文字拉伸 */
  .intro-media img { position: static; aspect-ratio: 4/3; height: auto; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  /* 典型项目：窄屏单列并收窄，保持图片比例协调 */
  .typical-grid { grid-template-columns: 1fr; gap: 44px; max-width: 480px; margin: 0 auto; }
  .typical-thumb { height: 240px; }
  .typical-item h3 { margin-top: 24px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { max-width: 440px; }
  .hero-carousel { height: auto; }
  .hero-inner { padding: 48px 0; }
  .fire-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr !important; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 16px 8px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--c-line) !important; }
  .steps { grid-template-columns: 1fr; }
  .hero-photo img { height: 240px; }
  .hero-dots { bottom: 10px; }
}
