﻿/* ========================================
   法律服务详情页
   ======================================== */

/* ========== Hero：左右对半分栏 ========== */
.svc-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 441px;
  min-height: 360px;
  overflow: hidden;
}

.svc-detail-hero__left {
  display: flex;
  align-items: center;
  background: #f7f5f2;
  padding: 48px 72px 48px max(40px, calc((100vw - var(--container-width)) / 2));
  box-sizing: border-box;
}

.svc-detail-hero__content {
  max-width: 520px;
  margin-top: 10px;
}

.svc-detail-hero__title {
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 29px;
  color: #111111;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 0;
}

.svc-detail-hero__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: #a42127;
  margin-top: 22px;
  margin-bottom: 22px;
}

.svc-detail-hero__desc {
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #666666;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  width: 503px;
  margin-bottom: 48px;
}

.svc-detail-hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 204px;
  height: 40px;
  padding: 0;
  background-color: #a42127;
  color: #ffffff;
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  overflow: hidden;
  z-index: 0;
  transition: background 0.3s ease;
}

.svc-detail-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/pattern-cloud-dark.png") center / 220px auto repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.svc-detail-hero__cta img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.svc-detail-hero__cta:hover {
  background-color: #8c1b20;
}

.svc-detail-hero__right {
  background: #e8e4df url("../images/service-detail-hero.png") center / cover no-repeat;
}

/* 英文版：标题/简介更长，固定 441px 会裁切底部咨询按钮 */
html.lang-en .svc-detail-hero {
  height: auto;
  min-height: 441px;
}

html.lang-en .svc-detail-hero__title {
  line-height: 1.25;
}

html.lang-en .svc-detail-hero__desc {
  width: 100%;
  max-width: 503px;
  margin-bottom: 36px;
}

html.lang-en .svc-detail-hero__cta {
  width: auto;
  min-width: 204px;
  height: auto;
  min-height: 40px;
  padding: 10px 24px;
  overflow: visible;
  white-space: nowrap;
  box-sizing: border-box;
}

html.lang-en .svc-detail-hero__right {
  min-height: 441px;
}

/* ========== 主体双栏 ========== */
.svc-detail {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 100px;
}

.svc-detail__main {
  flex: 0 0 767px;
  width: 767px;
  min-width: 0;
}

.svc-detail__side {
  flex-shrink: 0;
  width: 180px;
  margin-left: auto;
  position: sticky;
  top: 100px;
  padding-top: 8px;
}

.svc-detail__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-detail__nav a {
  position: relative;
  padding-left: 14px;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #333333;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  transition: color 0.3s ease;
}

.svc-detail__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.svc-detail__nav a:hover,
.svc-detail__nav a.is-active {
  color: #a42127;
}

.svc-detail__nav a.is-active::before {
  background: var(--color-primary);
}

/* ========== 业务介绍 ========== */
.svc-intro {
  padding-bottom: 20px;
}

.svc-intro p {
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #111111;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 18px;
}

.svc-intro p:last-child {
  margin-bottom: 0;
}

/* ========== 手风琴内容 ========== */
.svc-detail .accordion__head {
  font-size: 16px;
}

.svc-case {
  margin-bottom: 0;
  padding: 22px 0;
  border-bottom: 1px solid #ececec;
}

.svc-case:first-child {
  padding-top: 0;
}

.svc-case:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.svc-case__date {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #666666;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 6px;
}

.svc-case__title {
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 8px;
}

.svc-case__title a:hover {
  color: var(--color-primary);
}

.svc-case__desc {
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #666666;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.svc-lawyers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-lawyer {
  display: block;
  text-align: left;
}

.svc-lawyer__photo-wrap {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 224 / 255;
  margin-bottom: 14px;
  background: #f0f0f0;
}

.svc-lawyer__photo {
  display: block;
  width: 100%;
  height: 123%;
  object-fit: cover;
  object-position: top center;
}

.svc-lawyer__name {
  font-family: HarmonyOS_Sans_SC_Bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #111111;
  line-height: 24px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.svc-lawyer__en {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000000;
  line-height: 20px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 16px;
}

.svc-lawyer__role {
  padding-top: 12px;
  border-top: 1px solid #ececec;
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #666666;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.svc-lawyer:hover .svc-lawyer__name {
  color: #a42127;
}

.svc-news {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  padding: 22px 0;
  border-bottom: 1px solid #dddddd;
}

.svc-news:first-child {
  padding-top: 0;
}

.svc-news:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.svc-news__thumb {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  object-fit: cover;
  background: #f0f0f0;
}

.svc-news__date {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #666666;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 6px;
}

.svc-news__title {
  font-family: HarmonyOS_Sans_SC_Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 8px;
}

.svc-news__title a:hover {
  color: var(--color-primary);
}

.svc-news__desc {
  font-family: HarmonyOS_Sans_SC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #666666;
  line-height: 28px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

@media (max-width: 1024px) {
  .svc-detail-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .svc-detail-hero__left {
    padding: 40px 24px;
  }

  .svc-detail-hero__content {
    max-width: 100%;
  }

  .svc-detail-hero__desc {
    width: 100%;
    margin-bottom: 32px;
  }

  .svc-detail-hero__right {
    min-height: 280px;
  }

  .svc-detail {
    flex-direction: column;
    gap: 32px;
  }

  .svc-detail__main {
    flex: none;
    width: 100%;
  }

  .svc-detail__side {
    width: 100%;
    position: static;
    margin-left: 0;
  }

  .svc-lawyers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .svc-detail-hero__title {
    font-size: 24px;
    line-height: 30px;
  }

  .svc-detail-hero__desc {
    font-size: 15px;
    line-height: 26px;
  }

  .svc-intro p {
    font-size: 15px;
    line-height: 26px;
  }

  .svc-case__desc,
  .svc-news__desc {
    font-size: 15px;
    line-height: 26px;
  }

  .svc-lawyer__name {
    font-size: 15px;
  }

  .svc-lawyer__en {
    font-size: 14px;
  }

  .svc-lawyer__role {
    font-size: 15px;
  }

  .svc-detail-hero__right {
    min-height: 220px;
  }

  .svc-detail {
    padding-bottom: 60px;
  }

  .svc-lawyers {
    grid-template-columns: 1fr;
  }

  .svc-news {
    flex-direction: column;
  }

  .svc-news__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}



/* [mobile bump] base 10-13px +2px on phone */
@media (max-width: 768px) {
  .svc-detail-hero__cta { font-size: 15px; }
  .svc-detail__nav a { font-size: 15px; }
  .svc-case__date { font-size: 15px; }
  .svc-lawyer__en { font-size: 15px; }
  .svc-news__date { font-size: 15px; }
}
