/* ==========================================================
   solution.html - 解决方案详情页
   锚点导航 / 工况介绍 / 核心痛点 / 成本测算 / 改造方案
   产品选型 / 工作原理 / 真实案例 / 获取方案 / 相关方案
   ========================================================== */

/* ---------- 锚点导航 ---------- */
.sol-anchor-wrap {
  position: sticky;
  top: var(--hrd-header-h);
  z-index: 1020;
  background: #fff;
  margin-top: 3rem;
}
.sol-anchor {
  display: flex;
  align-items: center;
  gap: .25rem; 
  border-bottom: 0.25rem solid #dcdcdc;
  /* 锚点较多时横向滑动兜底（窄屏/中等屏不溢出） */
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sol-anchor::-webkit-scrollbar {
  display: none;
}
.sol-anchor__item {
  display: block;
  font-size: 1.125rem;
  color: var(--hrd-text);
  white-space: nowrap;
  padding: 1.0rem 1.0rem;
  position: relative;
  transition: color .25s ease, border-color .25s ease;
}
.sol-anchor__item:hover,
.sol-anchor__item.active {
  color: var(--ab-blue);
  font-weight: 600;
}
.sol-anchor__item:hover::after,
.sol-anchor__item.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.25rem;
	height: 0.25rem;
	background: var(--ab-blue);
}
/* ---------- 区块公共 ---------- */
.sol-section:nth-child(even){
  background: var(--hrd-bg-gray);
}
.sol-more {
  font-weight: 600;
}
/* ---------- 01 工况介绍 ---------- */
.sol-intro__media img,
.sol-plan__media img {
  width: 100%;
  height: auto;
  border-radius: var(--hrd-radius);
}
.sol-intro__tip {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #eef4fb; 
  border: 1px solid #dee3f0;
  border-radius: var(--hrd-radius);
  color: var(--ab-blue);
}
/* ---------- 02 核心痛点 ---------- */
.sol-pain-card {
  display: flex;
  align-items: center;
  gap: 1.0rem;
  background: #fff;
  border: 1px solid var(--hrd-border);
  border-radius: var(--hrd-radius);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: box-shadow .3s ease, transform .3s ease;
}
.sol-pain-card:hover {
  box-shadow: 0 0.75rem 1.875rem rgba(0,0,0,.06);
  transform: translateY(-0.25rem);
}
.sol-pain-card__icon {
  flex-shrink: 0;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sol-pain-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sol-pain-card__body {
  flex: 1;
  min-width: 0;
}
.sol-pain-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color:var(--hrd-text);
  margin-bottom: .5rem;
}
/* ---------- 03 成本测算 ---------- */
.sol-table {
  width: 100%;
  background: #fff;
  border-spacing: 0;            /* 配合 separate 让四边 border 正常渲染 */
  border-radius: var(--hrd-radius);
  border: 1px solid #e4e8eb;
  border-collapse: separate;
  overflow: hidden;
}
.sol-table th,
.sol-table td {
  padding: 1rem 1.25rem;
  text-align: center;
}
.sol-table thead th {
  background: var(--ab-blue);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}
.sol-table tbody td:first-child {  
  color:var(--ab-blue);
}
.sol-table .cost-old {
  color: #d91826;
}
.sol-table .cost-new {
  color: #2e7d32;
}
.sol-table tfoot {
  padding: 1rem 1.25rem;
  background: #f0f7f2;
  border-radius: var(--hrd-radius);
  color: #0b7d35;
  font-size: 1.125rem;
  font-weight: 600;  
}
.sol-table tfoot td{text-align: left;}
/* ---------- 04 改造方案 ---------- */
.sol-plan__text h5{
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 1.0rem;
  border-bottom: 1px solid var(--hrd-border);
}
.sol-plan__text li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hrd-border);
}
/* ---------- 06 工作原理 ---------- */
.sol-principle__card {
  border-radius: var(--hrd-radius);
  padding: 3rem 2rem;
  color: #fff;
  height: 100%;
}
.sol-principle__card--blue {
  background: var(--ab-blue);
}
.sol-principle__card--red {
  background: #c62828;
}
.sol-principle__card strong {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.sol-principle__text ul,
.sol-principle__text ol {  
  columns: 2;
  column-gap: 2rem;
}
/* ---------- 08 获取方案 ---------- */
.sol-cta {
  background: url(../images/plan.jpg) no-repeat center;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.sol-form__btn {  
  background: #00a8e8;
}
.sol-form__btn:hover {
  background: #0090c9;
}

/* ---------- 相关方案 ---------- */
.sol-related__card {
  position: relative;
  border-radius: var(--hrd-radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.sol-related__card img {
  position: relative;  
  width: 100%;
}
.sol-related__card::after {
  content: '';
  position: absolute;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15));
  z-index: 1;
}
.sol-related__body {
  position: absolute;
  bottom: 0px;
  width: 100%;
  padding: 2.5rem;
  z-index: 2;
}
.sol-related__tag {
  display: inline-block;
  font-size: 1.125rem;
}
.sol-related__title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.sol-related__desc {
  margin-bottom: 1.25rem;
}
.sol-related__btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.sol-related__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.25rem;
  border-radius: var(--hrd-radius);  
  font-weight: 500;
  transition: opacity .25s ease;
}
.sol-related__btn:hover {
  opacity: .9;
  color: #fff;
  text-decoration: none;
}
.sol-related__btn--blue {
  background: var(--ab-blue);
  color: #fff;
}
.sol-related__btn--red {
  background: #d91826;
  color: #fff;
}

/* ---------- 响应式 ---------- */
/* 锚点导航：8 个锚点在 1260px 以下会横向溢出，改横向滑动 */
@media (max-width: 1023.98px) {
  .sol-anchor {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sol-anchor::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .sol-anchor {
    gap: 1.25rem;
  }
  .sol-section {
    padding: 3.5rem 0;
  }
  .sol-principle__text ul,
  .sol-principle__text ol {
    columns: 1;
  }
  .sol-cta__desc {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .sol-related__title {
    font-size: 1.25rem;
  }
  .sol-anchor-wrap {
    top: var(--hrd-header-h);
  }
  .sol-anchor__item {
    font-size: .875rem;
  }
  .sol-swiper {
    padding: 0 2.75rem;
  }
  .sol-related__body{
    padding: 1.0rem;
  }
  .sol-swiper__btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  /* 相关方案双按钮：手机端保持一行并排（原 wrap 会换行竖排） */
  .sol-related__btns {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .sol-related__btn {
    flex: 1 1 auto;
    width: auto;
    padding: 0.65rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  /* 手机端收紧各区块上下间距（原 .sol-section 用 991 的 3.5rem 偏大） */
  .sol-section {
    padding: 2rem 0;
  }
  .sol-cta {
    padding: 2.5rem 0;
  }
  /* 工作原理：蓝/红两卡竖排时补垂直间距（原紧贴 gap=0） */
  .sol-principle__text .col-md-6 {
    margin-bottom: 1.25rem;
  }
  .sol-principle__text .col-md-6:last-child {
    margin-bottom: 0;
  }
  .sol-cost-table th,
  .sol-cost-table td {
    padding: .75rem .5rem;
    font-size: .8125rem;
  }
}
