/* ============================================================
   美彦环保官网 v2 组件样式（轮播/案例/FAQ/悬浮转化等）
   在 style.css 基础上扩展
   ============================================================ */

/* ---------- 顶部电话 ---------- */
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-right: 4px;
}
.header-tel:hover { color: var(--accent-dark); }

/* ---------- 轮播 Banner ---------- */
.hero-carousel {
  position: relative;
  height: 660px;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 20, .72) 0%, rgba(6, 26, 20, .38) 45%, rgba(6, 26, 20, .05) 100%);
}
.slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding-top: var(--header-h);
}
.slide-content h1, .slide-content h2.slide-title {
  font-size: 52px;
  font-weight: 800;
  margin: 18px 0 14px;
  max-width: 640px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.slide-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, .92);
  max-width: 560px;
  margin-bottom: 30px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero-carousel .hero-badge {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(6px);
}

.carousel-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 34px; height: 5px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.carousel-dot.active { background: #fff; width: 44px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s;
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(255, 255, 255, .22); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: all .25s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-chip.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- 案例卡片 ---------- */
.case-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(7, 44, 34, .78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.case-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}
.case-meta span { display: inline-flex; align-items: center; gap: 5px; }
.scene .media { position: relative; }

/* ---------- 客户背书墙 ---------- */
.clients-band { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}
.client-name {
  padding: 10px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  background: #fafdfb;
  transition: all .25s;
}
.client-name:hover { border-color: var(--accent); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- 资质条 ---------- */
.cert-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.cert-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid #d3ece1;
  border-radius: 999px;
  padding: 6px 16px;
}
.cert-item::before { content: "✓"; color: var(--accent-dark); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-dark);
  font-weight: 400;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 悬浮转化组件 ---------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 140px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-item {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  transition: all .25s;
}
.f-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.f-item.f-tel { background: var(--gradient); color: #fff; border-color: transparent; animation: telPulse 2.4s infinite; }
@keyframes telPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .45); }
  50% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}
.f-pop {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  z-index: 91;
}
.f-item:hover .f-pop { display: block; }
.f-pop img { width: 130px; height: 130px; border-radius: 8px; display: block; }
.f-pop em { display: block; text-align: center; font-style: normal; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.f-top { font-size: 11px; }
.f-top.show { opacity: 1; pointer-events: auto; }
.f-top:not(.show) { opacity: 0; pointer-events: none; }

/* ---------- 案例详情 ---------- */
.case-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 34px;
}
.ci-item { background: #fff; padding: 16px 20px; }
.ci-item label { display: block; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 4px; }
.ci-item strong { font-size: 15.5px; }

.case-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.case-article { min-width: 0; }
.case-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}
.rich-text { font-size: 16px; color: var(--ink); line-height: 1.9; }
.rich-text h2 { font-size: 22px; margin: 24px 0 12px; }
.rich-text h3 { font-size: 18px; margin: 20px 0 10px; }
.rich-text p { margin: 12px 0; color: #33423c; }
.rich-text img { max-width: 100%; border-radius: 12px; margin: 14px 0; }
.rich-text ul { padding-left: 24px; list-style: disc; margin: 12px 0; color: #33423c; }
.rich-text a { color: var(--accent-dark); text-decoration: underline; }

.case-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.aside-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.aside-box h4 { font-size: 16px; margin-bottom: 14px; }
.aside-case {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.aside-case:last-child { border-bottom: none; }
.aside-case img { width: 76px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.aside-case span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aside-case:hover span { color: var(--primary); }
.aside-cta { background: var(--gradient); color: #fff; border-color: transparent; }
.aside-cta h4 { color: #fff; }
.aside-cta p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 14px; }
.aside-tel { display: block; text-align: center; margin-top: 12px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .03em; }
.aside-tel:hover { text-decoration: underline; }

/* ---------- 分享 ---------- */
.share-box {
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}
.share-btn {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all .2s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--primary-light); }

/* ---------- 应用标签 ---------- */
.app-tag {
  padding: 12px 28px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .25s;
}
.app-tag:hover { border-color: var(--accent); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- 404 ---------- */
.e404 {
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 14px;
}

/* ---------- 页脚社交 ---------- */
.footer-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a {
  font-size: 12.5px;
  color: rgba(234, 245, 240, .7);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 4px 14px;
}
.footer-social a:hover { color: #7ee0cf; border-color: #7ee0cf; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .case-detail-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-carousel { height: 520px; }
  .slide-content h1, .slide-content h2.slide-title { font-size: 34px; }
  .slide-sub { font-size: 16px; }
  .carousel-arrow { display: none; }
  .header-tel { display: none; }
  .case-info-bar { grid-template-columns: 1fr 1fr; }
  .float-cta { right: 12px; bottom: 100px; }
  .f-item { width: 46px; height: 46px; border-radius: 12px; }
}
@media (max-width: 560px) {
  .hero-carousel { height: 460px; }
  .slide-content h1, .slide-content h2.slide-title { font-size: 28px; }
  .case-aside { grid-template-columns: 1fr; }
  .clients-strip { gap: 8px; }
  .client-name { padding: 8px 16px; font-size: 13px; }
}
