/* 服务案例详情页样式 - fwalxq.css */
/* 顶部导航 header / CTA / 页脚 footer 为全站公共样式，统一放在 style.css */

/* ==================== 详情首屏 ==================== */
/* 首屏：设计稿 hero 高 560，内容起点 x20；左侧整体绝对定位，右侧设备图 800×425 @(646,131) */
/* 设计稿首屏从 y79 开始（页头 79 高），我方页头含描边为 80 → 上提 1px 对齐 */
.hero {
  position: relative;
  margin-top: -1px;
  height: 560px;
  overflow: hidden;
  background: #eef3fb url('../img/fwalxq/61683888.jpg') 50% 50%/cover no-repeat;
}

.hero-inner {
  position: relative;
  height: 100%;
  padding-top: 0;
}

.hero-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 142px;
}

.hero-tags span {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 30px;
  padding: 0 12px;
  border-radius: 200px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 14px;
}

/* 标签配色：语义与列表页 .case-tags 完全一致
   —— 行业分类(hyfl) 固定蓝；业务模式(ywms) 按内容分色。
   原实现用 span:nth-child(1)/(2) 写死两色，标签变长/变多会错位，故改为按类名取色。
   min-width:80px + padding:0 12px 可保证 4 字标签仍是 80px，PC 版式不变。 */
.hero-tags .tag--blue   { background: #e7f1ff; color: #3d63fc; }
.hero-tags .tag--green  { background: #ecfbfb; color: #36c17a; }
.hero-tags .tag--pink   { background: #fae9e9; color: #d47878; }
.hero-tags .tag--cyan   { background: #ecfbfb; color: #43b1f8; }
.hero-tags .tag--orange { background: #fce5cd; color: #ff9900; }
.hero-tags .tag--purple { background: #DDD9FF; color: #8078c4; }

.hero-title {
  margin-top: 16px;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 72px;
}

.hero-en {
  margin-top: 1px;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 24px;
  color: #fff;
  line-height: 36px;
}

/* 设计稿 CASE SHOW 下是 60×6 的品牌蓝短线（不是白线） */
.hero-en::after {
  content: "";
  display: block;
  width: 60px;
  height: 6px;
  margin-top: 15px;
  background: #317af7;
  border-radius: 3px;
}

.hero-contact {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}

.hero-qr {
  display: block;
  width: 118px;
  height: 116px;
}

.hero-phones {
  padding-top: 9px;
}

.hero-phones li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hero-phones li+li {
  margin-top: 13px;
}

.hero-phones img {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-phones span {
  margin-top: 8px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 24px;
}

.hero-btns {
  position: static;
  display: flex;
  gap: 25px;
  margin-top: 28px;
}

.hero-btns .btn {
  width: 145px;
  height: 48px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
}

.hero-pic {
  position: absolute;
  left: 645px;
  top: 131px;
  width: 800px;
  height: 425px;
}

.hero-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==================== 正文 ==================== */
.detail {
  padding: 80px 0 23px;
  background: #f7f8fa;
}

.detail-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.detail-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* 整块白卡：设计稿里正文是【一个整体】——1040 宽的单张白卡（radius 10、padding 32），
   四组内容 + 两张配图 + 翻页都在同一张卡里连续排布，中间没有分段间隙 */
.dt-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 32px 46px;
}

/* 小标题 24px #2f3031，行盒 28；下面的浅蓝笔刷细线与标题故意重叠 10px（设计稿 title top32 h28 / line top50 h22） */
.dt-title {
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #2f3031;
}

.dt-line {
  display: block;
  width: 100px;
  height: 22px;
  margin-top: -10px;
  object-fit: contain;
  object-position: left center;
}

/* 设计稿正文组件宽 980（比白卡内容区 976 宽 4px），换行点依赖这个宽度 */
.dt-text {
  margin-top: 27px;
  margin-right: -4px;
}

/* 设计稿的正文没有指定 font-family（继承浏览器默认），这里也不指定，
   否则字体变宽会让换行点前移、整段多出一行 */
.dt-text p {
  font-size: 16px;
  color: #636e80;
  line-height: 2;
}

/* 段间距：设计稿只在有空段落处产生间距（12px），同一小标题下的正文段之间紧邻 */
.dt-text .dt-gap {
  margin-top: 12px;
}

.dt-text strong {
  font-weight: 700;
}

/* 正文里的蓝色强调（设计稿用 #317af7 加粗） */
.dt-text .em {
  color: #317af7;
}

/* 正文块之间的间距（原「块—配图—块」的 .dt-figure 间距规则已随模板静态配图一并移除，
     配图现在由自定义字段内容自带，故这里只保留块与块的直接间距） */
.dt-block+.dt-block {
  margin-top: 32px;
}

/* 翻页：设计稿是上下两行（各 16px #636e80、行高 24），不是左右并排 */
.dt-nav {
  display: flex;
  flex-direction: column;
  margin-top: 63px;
}

.dt-nav-item {
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  color: #636e80;
  line-height: 24px;
}

.dt-nav-item:hover {
  color: #317af7;
}

/* ==================== 侧栏 ==================== */
.detail-side {
  flex: 0 0 320px;
}

.side-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 0 12px rgba(238, 238, 238, .9);
}

.side-card+.side-card {
  margin-top: 20px;
}

.side-promo {
  padding: 16px;
}

.side-promo-img {
  width: 100%;
  border-radius: 5px;
  display: block;
}

.side-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 18px;
}

.side-title {
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1d2129;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f6;
}

.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.side-tags li {
  padding: 7px 14px;
  border-radius: 6px;
  background: #f2f6fd;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 14px;
  color: #636e80;
  cursor: pointer;
}

.side-tags li:hover {
  background: #e6efff;
  color: #317af7;
}

/* 相关资讯：视觉对齐 view_article_xwxq.htm 的 .side-news（定高条目 / 实线分隔 / 单行省略号）。
   注1：xwxq 里那条顶部横线由 .side-news 的 border-top 提供（其 .side-title 无下边框）；
        本页 .side-title 自带 border-bottom 作分隔，故这里不再重复画线，只保留线到首条的间距。
   注2：xwxq 中 li:nth-child(3)/(5) 的 1px 间距补偿与 (4)/(5) 的 -1px 横向微调，是该页设计稿手工摆位的产物，未搬。 */
.side-news {
  margin: 21px 0 0;
}

.side-news li {
  height: 56px;
  border-bottom: 1px solid #eeeeee;
}

.side-news li+li {
  margin-top: 10px;
}

.side-news a {
  display: block;
  height: 25px;
  overflow: hidden;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #636e80;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-news a:hover {
  color: #317af7;
}

.side-news span {
  display: block;
  height: 24px;
  margin-top: 3px;
  font-family: "Source Han Sans", Geneva, sans-serif;
  font-size: 14px;
  line-height: 14px;
  color: #a5a5a5;
}

/* ==================== 更多案例 ==================== */

/* ==================== 响应式适配 ==================== */
@media (max-width: 1399px) {
  .hero {
    height: auto;
    overflow: visible;
    padding: 60px 0;
    background-position: 62% 50%;
  }

  .hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: auto;
  }

  .hero-left {
    position: static;
    width: auto;
    flex: 1 1 50%;
  }

  .hero-tags {
    margin-top: 0;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.3;
  }

  .hero-en {
    font-size: 20px;
    line-height: 1.6;
  }

  .hero-contact {
    margin-top: 24px;
  }

  .hero-phones {
    padding-top: 0;
  }

  .hero-phones li {
    align-items: center;
  }

  .hero-phones span {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.5;
  }

  .hero-btns {
    margin-top: 28px;
  }

  .hero-pic {
    position: static;
    width: auto;
    height: auto;
    flex: 1 1 50%;
    text-align: right;
  }

  .hero-pic img {
    width: 100%;
    max-width: 480px;
    height: auto;
  }

  .detail-side {
    flex: 0 0 280px;
  }

  .dt-card {
    padding: 26px 28px 34px;
  }

  .dt-title {
    font-size: 23px;
  }

  .dt-text p {
    font-size: 15px;
  }
}

@media (max-width: 1199px) {
  .hero-inner {
    gap: 24px;
  }

  .hero-pic img {
    max-width: 380px;
  }

  .hero-title {
    font-size: 34px;
  }

  .detail-wrap {
    gap: 20px;
  }

  .detail-side {
    flex: 0 0 250px;
  }
}

@media (max-width: 991px) {

  /* 原来这里给深色首屏叠了 92% 白的渐变，白字直接看不见 —— 去掉，保持深色首屏 */
  .hero {
    padding: 48px 0 52px;
    background-position: 68% 50%;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pic {
    display: none;
    width: 100%;
    text-align: center;
  }

  .hero-pic img {
    max-width: 420px;
  }

  .detail-wrap {
    flex-direction: column;
  }

  .detail-side {
    flex: none;
    width: 100%;
  }

  .side-card+.side-card {
    margin-top: 16px;
  }

  .side-promo {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .side-promo-img {
    width: 260px;
  }

  .side-btn {
    width: 220px;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 36px 0 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-en {
    font-size: 15px;
  }

  .hero-en::after {
    width: 48px;
    height: 5px;
    margin-top: 10px;
  }

  .hero-contact {
    gap: 14px;
    margin-top: 18px;
  }

  .hero-qr {
    width: 84px;
    height: auto;
  }

  .hero-phones img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .hero-phones span {
    font-size: 14px;
  }

  .hero-btns {
    margin-top: 20px;
    gap: 12px;
  }

  .hero-btns .btn {
    width: auto;
    height: 42px;
    font-size: 15px;
    flex: 1 1 0;
  }

  .hero-pic img {
    max-width: 280px;
  }

  .detail {
    padding: 32px 0 40px;
  }

  .dt-card {
    padding: 20px 18px 26px;
  }

  .dt-title {
    font-size: 19px;
  }

  .dt-text {
    margin-top: 14px;
  }

  .dt-text p {
    font-size: 14px;
    line-height: 1.8;
  }

  .dt-text .dt-gap {
    margin-top: 9px;
  }

  .dt-block {
    margin-top: 22px;
  }

  .dt-line {
    margin-top: -6px;
  }

  .dt-nav {
    margin-top: 26px;
  }

  .dt-nav-item {
    font-size: 14px;
  }

  .side-promo {
    flex-direction: column;
    align-items: stretch;
  }

  .side-promo-img {
    width: 100%;
  }

  .side-btn {
    width: 100%;
    margin-top: 14px;
    height: 44px;
    font-size: 16px;
  }

  .side-card {
    padding: 18px;
  }

  .side-title {
    font-size: 17px;
  }

  /* 相关资讯：断点规则对齐 view_article_xwxq.htm 的 .side-news（去掉定高，允许标题换行） */
  .side-news {
    margin-top: 8px;
  }

  .side-news li {
    height: auto;
    padding-bottom: 12px;
  }

  .side-news li+li {
    margin-top: 10px;
  }

  .side-news a {
    height: auto;
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  .side-news span {
    height: auto;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

}

@media (max-width: 479px) {
  .side-tags li {
    font-size: 13px;
    padding: 6px 12px;
  }
}