/* ============================================================
   首页 index.css — 分块对照设计稿 img/1首页.jpg
   ============================================================ */

/* ---------- 【区块1】Hero 轮播 + 叠加导航 ----------
   对照：1首页.jpg（浅底深色导航） / 1首页banner2.jpg（深底白色导航）
   素材：images/1首页banner1.jpg、1首页banner2.jpg
   ------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: 792px;
  overflow: hidden;
  background: #000000;
}

/* 导航叠加在轮播顶部，不单独占位 */
.home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 90px;
  background: transparent;
  transition: color 0.35s ease;
}

/* 导航底部分隔线：浅色底黑线 / 深色底白线 */
.home-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #000000;
  opacity: 0.1;
  pointer-events: none;
}

.home-header .header-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.home-header .logo {
  height: 40px;
  width: auto;
}

.home-header .logo-dark {
  display: none;
}

.home-header .logo-light {
  display: block;
}

.home-header .divider {
  width: 1px;
  height: 36px;
  background: #ddd;
}

.home-header .brtv {
  height: 40px;
  width: auto;
}

.home-header .nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  width: auto;
  max-width: 920px;
  height: auto;
  min-height: 13px;
  margin-left: auto;
  gap: 0;
}

.home-header .nav-menu > a {
  position: relative;
  padding: 0;
  margin: 0 18px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 13px;
  color: #333333;
  text-align: center;
  font-style: normal;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.25s;
}

.home-header .nav-menu > a:first-of-type {
  margin-left: 0;
}

.home-header .nav-menu > a:hover,
.home-header .nav-menu > a.active {
  color: var(--orange);
}

.home-header .nav-menu > a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: var(--orange);
}

.home-header .nav-menu .header-hotline {
  margin-left: 28px;
}

.home-header .header-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-header .phone-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-header .phone-ico img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.home-header .header-hotline .label {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #888888;
}

.home-header .header-hotline .num {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
}

.home-header .nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.home-header .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: background 0.25s;
}

/* ---- 深色轮播时：白色导航（对照 1首页banner2.jpg） ---- */
.home-header[data-theme="dark"] {
  border-bottom: none;
}

.home-header[data-theme="dark"]::after {
  background: #ffffff;
  opacity: 0.2;
}

.home-header[data-theme="dark"] .logo-light {
  display: none;
}

.home-header[data-theme="dark"] .logo-dark {
  display: block;
}

.home-header[data-theme="dark"] .divider {
  background: rgba(255, 255, 255, 0.35);
}

.home-header[data-theme="dark"] .nav-menu > a {
  color: #fff;
}

.home-header[data-theme="dark"] .nav-menu > a:hover,
.home-header[data-theme="dark"] .nav-menu > a.active {
  color: #fff;
}

.home-header[data-theme="dark"] .nav-menu > a.active::after {
  background: #fff;
}

.home-header[data-theme="dark"] .phone-ico {
  background: #fff;
}

.home-header[data-theme="dark"] .phone-ico img {
  filter: none;
}

.home-header[data-theme="dark"] .header-hotline .label {
  color: rgba(255, 255, 255, 0.85);
}

.home-header[data-theme="dark"] .header-hotline .num {
  color: #fff;
}

.home-header[data-theme="dark"] .nav-toggle span {
  background: #fff;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1520px;
  height: 792px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-color: #000000;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ---- Banner 文案层 ---- */
.hero-content {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
}

.hero-content a {
  pointer-events: auto;
}

/* 浅色 Banner：对照设计稿边距
   标题距左 182px、距顶 417px、距底约 593px */
.hero-content-light {
  left: 182px;
  right: auto;
  top: 360px;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
}

.hero-content-light .hero-badge,
.hero-content-dark .hero-badge {
  display: block;
  width: auto;
  max-width: min(360px, 70vw);
  height: auto;
  max-height: 48px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: left center;
}

.hero-content-light .hero-title {
  height: 46px;
  font-family: "HarmonyOS_Sans_SC_Bold", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 46px;
  color: #000000;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin: 0 0 14px;
  letter-spacing: 0;
  overflow: visible;
}

.hero-content-light .hero-sub {
  height: 27px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 27px;
  color: #000000;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin: 0;
  letter-spacing: 0;
  overflow: visible;
}

/* 深色 Banner：纯背景图，补标题/简介/按钮 */
.hero-slide[data-header="dark"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.hero-content-dark {
  left: 181px;
  right: auto;
  top: 307px;
  transform: none;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: left;
}

.hero-content-dark .hero-title {
  font-size: 57px;
  line-height: normal;
  color: #ffffff;
  /* 标题 → 小字 32px */
  margin: 0 0 32px;
  letter-spacing: 0;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.hero-content-dark .hero-title .t-light {
  font-family: "HarmonyOS_Sans_SC_Light", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 300;
  font-size: 57px;
  color: #ffffff;
  line-height: normal;
  text-align: left;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

.hero-content-dark .hero-title .t-bold {
  font-family: "HarmonyOS_Sans_SC_Bold", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 57px;
  color: #ffffff;
  line-height: normal;
  text-align: left;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

.hero-content-dark .hero-desc {
  width: 507px;
  /* height: 55px; */
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #ffffff;
  line-height: 21px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  /* 小字 → 按钮 59px */
  margin: 0 0 59px;
  max-width: 507px;
  overflow: hidden;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 149px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  /* background: #ed7330; */
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 43px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #ffffff;
  line-height: 1;
  text-align: left;
  font-style: normal;
  text-transform: none;
  transition: background 0.25s;
}

.hero-btn:hover {
  background: transparent;
  color: #ffffff;
}

.hero-btn .btn-text {
  width: 70px;
  height: 12px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #ffffff;
  line-height: 12px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  white-space: nowrap;
  overflow: visible;
  display: flex;
  align-items: center;
}
.hero-btn:hover{
  color: #ffffff;
  background: #ED7330;
}

.hero-btn:hover .btn-text {
  color: #ffffff;
}


.hero-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.hero-btn-arrow img {
  width: 10px;
  height: 10px;
  display: block;
  filter: none !important;
}

.hero-btn:hover .hero-btn-arrow img,
.hero-btn:hover .hero-btn-arrow {
  filter: none !important;
  opacity: 1;
}

@media (max-width: 1100px) {
  .hero,
  .hero-slider {
    height: auto;
    min-height: 420px;
    aspect-ratio: 1520 / 792;
  }

  .hero-content-light,
  .hero-content-dark {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 18%;
    width: auto;
    max-width: calc(100% - 48px);
    transform: none;
    padding: 0;
  }

  .hero-content-light .hero-badge,
  .hero-content-dark .hero-badge {
    max-width: min(280px, 75vw);
    max-height: 36px;
    margin-bottom: 12px;
  }

  .hero-content-light .hero-title {
    width: auto;
    height: auto;
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-content-dark .hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero-content-dark .hero-title .t-light,
  .hero-content-dark .hero-title .t-bold {
    font-size: 28px;
  }

  .hero-content-dark .hero-desc {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
  }

  .hero-content-light .hero-sub {
    width: auto;
    height: auto;
    font-size: 15px;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .hero-content-light,
  .hero-content-dark {
    left: 16px;
    right: 16px;
    bottom: 14%;
    max-width: calc(100% - 32px);
  }

  .hero-content-light .hero-title,
  .hero-content-dark .hero-title {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-content-dark .hero-title .t-light,
  .hero-content-dark .hero-title .t-bold {
    font-size: 20px;
  }

  .hero-content-dark .hero-desc {
    width: auto;
    max-width: 100%;
    height: auto;
    font-size: 12px;
    margin-bottom: 18px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-content-light .hero-sub {
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 1.35;
  }
}

.hero-dots {
  position: absolute;
  left: 230px;
  bottom: 40px;
  top: auto;
  transform: none;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s, background 0.25s;
}

.hero-dots button.active {
  width: 60px;
  background: var(--orange);
}

/* 浅色轮播：未激活条用浅杏色 */
.hero:not(.is-dark-slide) .hero-dots button {
  background: rgba(0, 0, 0, 0.12);
}

.hero:not(.is-dark-slide) .hero-dots button.active {
  background: var(--orange);
}

/* 深色轮播：未激活条用浅白/杏色 */
.hero.is-dark-slide .hero-dots button {
  background: rgba(255, 236, 210, 0.55);
}

.hero.is-dark-slide .hero-dots button.active {
  background: var(--orange);
}

@media (max-width: 1100px) {
  .home-header {
    z-index: 210;
  }

  .home-header .nav-menu {
    display: flex;
    position: fixed;
    top: 98px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 110px);
    min-height: 0;
    flex: none;
    margin-left: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    z-index: 200;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .home-header .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .home-header .nav-menu > a {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 14px 22px;
    color: #333 !important;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s, color 0.2s;
  }

  .home-header .nav-menu > a:last-of-type {
    border-bottom: none;
  }

  .home-header .nav-menu > a:hover,
  .home-header .nav-menu > a.active {
    color: var(--orange) !important;
    background: #fff7f2;
  }

  .home-header .nav-menu > a.active {
    font-weight: 600;
  }

  .home-header .nav-menu > a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--orange);
  }

  .home-header .nav-menu > a.active::after {
    display: none;
  }

  .home-header .nav-menu .header-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 6px 14px 14px;
    padding: 14px 16px;
    border-top: none;
    border-radius: 10px;
    background: #fff7f2;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .home-header .nav-menu .header-hotline .txt {
    min-width: 0;
    flex: 1;
  }

  .home-header .nav-menu .header-hotline .label {
    display: block;
    color: #888 !important;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .home-header .nav-menu .header-hotline .num {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--orange) !important;
    letter-spacing: 0.3px;
    word-break: break-all;
  }

  .home-header .nav-menu .header-hotline .phone-ico {
    width: 40px;
    height: 40px;
    background: var(--orange) !important;
    flex-shrink: 0;
  }

  .home-header .nav-menu .header-hotline .phone-ico img {
    filter: brightness(0) invert(1) !important;
  }

  .home-header .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 220;
  }

  .home-header .nav-toggle.is-open span {
    background: #333 !important;
  }

  .home-header .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .home-header .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .home-header .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-header .header-inner {
    padding: 0 16px;
  }

  .home-header .nav-toggle span {
    transition: transform 0.28s ease, opacity 0.2s ease, background 0.25s;
    transform-origin: center;
  }

  .hero,
  .hero-slider {
    height: auto;
    min-height: 420px;
    aspect-ratio: 1520 / 792;
  }
}

@media (max-width: 640px) {
  .home-header .brtv,
  .home-header .divider {
    display: none;
  }

  .home-header .logo {
    height: 30px;
  }

  .hero,
  .hero-slider {
    height: auto;
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }

  .hero-dots {
    left: 20px;
    bottom: 20px;
  }
}

/* ---------- 【区块2】业务领域 / 刑事辩护 ----------
   对照：左文案 + 右 4 列图标网格（含细灰分割线）
   图标素材：images/*橙色.png
   ------------------------------------------------ */
.home-services {
  padding: 120px 0 120px;
  background: #fff;
}

/* 对照设计稿：内容宽 1520；左至网格 704.58；右留白 180.5 */
.home-services > .container {
  width: 100%;
  max-width: 1520px;
  padding: 0 40px;
  box-sizing: border-box;
}

.home-services .svc-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.svc-intro {
  flex: 0 1 704.58px;
  width: auto;
  max-width: 704.58px;
  box-sizing: border-box;
  padding-left: 141px;
}

.svc-intro p {
  width: 100%;
  max-width: 443px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 21px;
  text-align: justify;
  font-style: normal;
  text-transform: none;
  margin-bottom: 14px;
}

.svc-intro [data-svc-desc] {
  width: 100%;
  max-width: 443px;
}

.svc-intro .btn-orange {
  margin-top: 28px;
}

/* 4列网格，每格 158×158 */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 158px));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  width: fit-content;
}

.svc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 158px;
  height: 158px;
  min-height: 158px;
  padding: 20px 10px 28px;
  box-sizing: border-box;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  overflow: hidden;
}

.svc-item .ico-off {
  display: none;
}

.svc-item .ico-on {
  display: block;
}

.svc-item > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.svc-item span {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.3;
  transition: transform 0.25s ease, color 0.25s ease;
}

.svc-item .svc-arrow {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(12px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1925d;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.svc-item .svc-arrow img {
  width: 12px;
  height: 12px;
  display: block;
  filter: none;
}

/* 默认白底；滑入：橙底，图标文字上移，箭头浮现 */
.svc-item:hover {
  background: var(--orange);
}

.svc-item:hover .ico-on {
  display: none;
}

.svc-item:hover .ico-off {
  display: block;
}

.svc-item:hover > img {
  transform: translateY(-12px);
}

.svc-item:hover span {
  color: #fff;
  transform: translateY(-12px);
}

.svc-item:hover .svc-arrow {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.svc-item.is-empty {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  cursor: default;
}

/* ---------- 【区块3】关于荣尊 ----------
   对照：左建筑图+浮动数据卡 / 右标题正文+按钮
   素材：images/1735132581a2a729d-1_cut1920960.png
   ------------------------------------------------ */
.home-about {
  padding: 0 0 90px;
}

.home-about .about-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 0;
}

.about-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 1;
  width: 1059px;
  max-width: 100%;
  height: 755px;
  max-height: min(755px, 70vw);
  background: #ffffff center / cover no-repeat;
}

.stat-cards {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
}

.stat-card {
  position: absolute;
  box-sizing: border-box;
  display: block;
  padding: 0;
  border-radius: 10px;
  width: 143px;
  height: 143px;
}

/* 四块大字统一边距：上 67 / 左 17 / 右 19 */
.stat-card .num {
  position: absolute;
  z-index: 1;
  top: 67px;
  left: 17px;
  right: 19px;
  height: 31px;
  margin: 0;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  overflow: visible;
}

/* 四块小字统一边距：上 115 / 左 16 / 右 51 / 下 15 */
.stat-card .label {
  position: absolute;
  z-index: 1;
  top: 115px;
  width: 120px;
  left: 16px;
  right: 51px;
  bottom: 15px;
  margin: 0;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #ffffff;
  line-height: 21px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

/* 第一块：2897 — 边距 left 180.5 / top 92.63 */
.stat-card.dark {
  top: 92.63px;
  left: 180.5px;
  z-index: 2;
  color: #fff;
  background: transparent;
}

.stat-card.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #000000;
  opacity: 0.3;
  z-index: -1;
}

.stat-card.dark .num {
  width: 107px;
  color: #ffffff;
}

.stat-card.dark .label {
  position: absolute;
  z-index: 1;
  top: 115px;
  left: 16px;
  right: 51px;
  bottom: 15px;
  margin: 0;
  width: 100px;
}

/* 第二块：20+ — 边距 left 323 / top 235.13 */
.stat-card.light {
  top: 235.13px;
  left: 323px;
  z-index: 3;
  color: var(--text-dark);
  background: transparent;
}

.stat-card.light::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #ffffff;
  opacity: 0.8;
  z-index: -1;
}

.stat-card.light .num {
  width: 74px;
  color: #333333;
}

.stat-card.light .label {
  color: #333333;
}

/* 第三块：95% — 边距 left 465.5 / top 377.63 */
.stat-card.orange {
  top: 377.63px;
  left: 465.5px;
  z-index: 4;
  color: #fff;
  background: transparent;
}

.stat-card.orange::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #ed7330;
  opacity: 0.9;
  z-index: -1;
}

.stat-card.orange .num {
  width: 95px;
  color: #ffffff;
}

/* 第四块：40+ — 边距 left 323 / bottom 76 */
.stat-card.orange-deep {
  top: auto;
  bottom: 76px;
  left: 323px;
  z-index: 3;
  color: #fff;
  background: transparent;
}

.stat-card.orange-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #ed702f;
  opacity: 0.6;
  z-index: -1;
}

.stat-card.orange-deep .num {
  width: 74px;
  color: #ffffff;
}

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 760px;
  max-width: 100%;
  height: 723px;
  /* 右侧露出约 461px，叠盖左侧约 299px */
  margin-left: -299px;
  padding: 60px 0 0 55px;
  background: #f9f9f9;
  flex-shrink: 1;
}

.about-content .sec-title {
  margin-bottom: 8px;
}

.about-content p {
  width: 100%;
  max-width: 523px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 21px;
  text-align: justify;
  font-style: normal;
  text-transform: none;
  margin-bottom: 16px;
}

.about-content .btn-orange {
  margin-top: 28px;
  align-self: flex-start;
}

/* ---------- 【区块4】律师团队 ----------
   对照：标题+筛选 / 三卡轮播（中间展开详情）
   素材：images/雷雨竹.png、张楚含.png、3荣尊团队_*.jpg
   ------------------------------------------------ */
.home-team {
  padding: 0 0 53px;
  background: #fff;
}

.home-team .team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.home-team .sec-title {
  margin-bottom: 0;
}

.home-team .filter-bar .select[name="field"],
.home-team .filter-bar .select[name="title"] {
  width: 181px;
  height: 43px;
  min-width: 181px;
  box-sizing: border-box;
  padding: 0 14px;
  background: #ffffff;
  border-radius: 19px;
  border: 1px solid #dddddd;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ED7330' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.home-team .filter-bar .input {
  width: 181px;
  height: 43px;
  min-width: 181px;
  box-sizing: border-box;
  padding: 0 14px;
  background: #ffffff;
  border-radius: 19px;
  border: 1px solid #dddddd;
}

.home-team .filter-bar .btn-search {
  width: 79px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  box-sizing: border-box;
  background: #ed7330;
  border-radius: 19px;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.home-team .filter-bar .btn-search img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
}

.home-team .filter-bar .btn-search span {
  width: 26px;
  height: 13px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #ffffff;
  line-height: 11px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  overflow: visible;
}

.team-showcase {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
}

.lawyer-card {
  position: relative;
  width: 276px; max-width: 100%;
  height: 345px;
  box-sizing: border-box;
  /* padding: 29px 17px 10px 21px; */
  background: #f1eeed;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.35s ease;
}

/* 默认橙色圆形：左 15px，底 -60px */
.lawyer-card::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: -60px;
  z-index: 3;
  width: 164px;
  height: 165px;
  background: #ed7330;
  border-radius: 82px;
  opacity: 0.7;
  transform: translateX(-50%);
  pointer-events: none;
}

.lawyer-card .photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* 完整 JPG 人像铺满卡片，避免 contain+顶距露出米色底 */
  object-fit: cover;
  object-position: center top;
  min-height: 0;
  display: block;
  margin: 0;
}

.lawyer-card .name-tag {
  position: absolute;
  left: 55px;
  top: 270px;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 59px;
  height: auto;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  z-index: 3;
  overflow: visible;
  color: #ffffff;
  text-align: left;
  white-space: nowrap;
}

.lawyer-card .name-tag .name {
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.lawyer-card .name-tag .role-line {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 25px;
}

.lawyer-card .name-tag .slash {
  font-family: "HarmonyOS_Sans_SC_Black", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
}

.lawyer-card .name-tag .role {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
}

/* 默认隐藏详情，悬停 is-active 时展开 */
.lawyer-card .detail {
  display: none;
}

.lawyer-card .photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lawyer-card:not(.is-active) .photo-wrap .photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 0;
  display: block;
  margin: 0;
}

.lawyer-card.is-active {
  display: grid;
  grid-template-columns: 276px 1fr;
  grid-template-rows: 345px;
  width: 571px;
  height: 345px;
  padding: 0;
  background: #f1eeed;
  border-radius: 3px;
  overflow: hidden;
}

.lawyer-card.is-active::before {
  display: block;
  content: "";
  position: absolute;
  left: -40px;
  top: 470px;
  bottom: auto;
  z-index: 3;
  width: 476px;
  height: 476px;
  background: #ed7330;
  border-radius: 238px;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lawyer-card.is-active .photo-wrap {
  position: relative;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  inset: auto;
  width: 276px;
  height: 345px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  z-index: 2;
}

.lawyer-card.is-active .photo-wrap::before {
  display: none;
}

.lawyer-card.is-active .photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  margin: 0;
}

.lawyer-card.is-active .name-tag {
  grid-column: 1;
  grid-row: 1;
  left: 55px;
  top: 270px;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 10;
  justify-self: start;
  align-self: start;
}

.lawyer-card.is-active .detail {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  padding: 36px 40px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: team-detail-in 0.35s ease;
}

@keyframes team-detail-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lawyer-card.is-active .detail h4 {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666666;
  line-height: 21px;
  letter-spacing: 0;
  text-align: left;
  margin-bottom: 10px;
}

.lawyer-card.is-active .detail .detail-text {
  width: 189px;
  /* height: 198px; */
  overflow: hidden;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 21px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.lawyer-card.is-active .detail .fields {
  margin-bottom: 16px;
  font-family: "HarmonyOS_Sans_SC_Bold", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ed7330;
  line-height: 21px;
  letter-spacing: 0;
  text-align: left;
}

.lawyer-card.is-active .detail .bio {
  margin: 0;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666666;
  line-height: 21px;
  letter-spacing: 0;
  text-align: left;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 40px;
}

.team-dots button {
  width: 28px;
  height: 3px;
  background: #e5d5c8;
  cursor: pointer;
}

.team-dots button.active {
  background: var(--orange);
}

.home-team .team-more {
  text-align: center;
}

.home-team .team-more .btn-orange {
  width: 174px;
}

.home-team .team-more .btn-text {
  width: 70px;
  height: 12px;
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #ffffff;
  line-height: 12px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  display: inline-block;
  overflow: visible;
  white-space: nowrap;
}

/* ---------- 【区块5】胜诉案例 ----------
   对照：浅色建筑底图 + 三卡（激活态橙字+底边+圆箭头）
   素材：images/1首页_25.jpg 作底
   ------------------------------------------------ */
.home-cases {
  width: 100%;
  max-width: 1520px;
  height: 690px;
  margin: 0 auto;
  box-sizing: border-box;
  /* 对照：顶 120；左 181；卡底距顶 606；底区 84 放「更多案例」 */
  padding: 120px 181px 0;
  background-color: #f9f9f9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.home-cases::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(255, 255, 255, 0.82); */
}

.home-cases .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.home-cases .sec-title {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 374px));
  gap: 18px;
  width: 100%;
  max-width: 1158px;
}

.case-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 374px;
  height: 312px;
  box-sizing: border-box;
  /* 对照滑入前：顶 71 / 左右 29 / 底 84 */
  padding: 71px 29px 84px 29px;
  background: #ffffff;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, color 0.25s, padding-top 0.25s;
}

/* 滑入后：顶距 44；底边橙线；日期/标题变橙 */
.case-card:hover,
.case-card.active {
  border-bottom-color: #ed7330;
}

.case-card:hover {
  padding-top: 44px;
}

.case-card .date {
  width: 40px;
  height: 10px;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  line-height: 10px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  /* 滑入前：日期顶 71 → 标题顶 107；滑入后：44 → 80，间距同为 26 */
  margin-bottom: 26px;
  overflow: visible;
  transition: color 0.25s;
}

.case-card.active .date,
.case-card:hover .date {
  color: #ed7330;
}

.case-card h3 {
  width: 100%;
  max-width: 298px;
  /* height: 44px; */
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #333333;
  line-height: 25px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 15px;
  overflow: hidden;
  transition: color 0.25s;
}

.case-card.active h3,
.case-card:hover h3 {
  color: #ed7330;
}

.case-card p {
  width: 100%;
  max-width: 316px;
  /* height: 56px; */
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #666666;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 滑入后箭头：距顶约 240、距底 40、距右 333 → left 41 */
.case-card .circle-arrow {
  position: absolute;
  left: 41px;
  bottom: 40px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, background 0.25s, border-color 0.25s;
}

.case-card:hover .circle-arrow {
  opacity: 1;
  visibility: visible;
  background: #ed7330;
  border-color: #ed7330;
}

.case-card:hover .circle-arrow img {
  filter: none;
}

.home-cases .cases-more {
  text-align: center;
  margin-top: 50px;
  flex: none;
}

.home-cases .cases-grid {
  /* flex: 1; */
  min-height: 0;
}

/* ---------- 【区块6】新闻资讯 / 荣尊普法 ----------
   对照：左侧分类 + 右侧三列资讯（上标题下图 / 或上图下文）
   素材：images/1首页_15.jpg、18.jpg、20.jpg
   ------------------------------------------------ */
.home-news {
  padding: 80px 0 70px;
  background: #fff;
}

.news-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.news-side {
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.news-side .sec-title {
  margin-bottom: 8px;
}

.news-cats {
  height: 210px;
}

.news-cats a {
  display: block;
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #999999;
  line-height: 32px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  transition: color 0.2s;
}

.news-cats a.active,
.news-cats a:hover {
  color: #ed7330;
}

.news-side .btn-orange {
  margin-top: 28px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 0;
}

.news-list[hidden] {
  display: none !important;
}

.news-panels {
  min-width: 0;
}

.news-item {
  padding: 0 28px 20px;
  border-right: 1px solid var(--border);
  background: transparent;
  transition: background 0.25s;
}

.news-item:last-child {
  border-right: none;
}

.news-item:hover,
.news-item.active {
  background: #f9f9f9;
}

.news-item .date {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 10px;
}

.news-item h3 {
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #333333;
  line-height: 25px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 16px;
  height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  transition: color 0.25s;
}

.news-item:hover h3,
.news-item.active h3 {
  color: #ed7330;
}

.news-item .thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.news-item p {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #666666;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 默认：斜向黑白箭头；滑入：橙底 + 箭头右转 */
.news-item .circle-arrow {
  background: #fff;
  border-color: #ddd;
}

.news-item .circle-arrow img {
  filter: brightness(0) opacity(0.55);
  transform: rotate(0deg);
  transition: transform 0.25s, filter 0.25s;
}

.news-item:hover .circle-arrow,
.news-item.active .circle-arrow {
  background: #ed7330;
  border-color: #ed7330;
}

.news-item:hover .circle-arrow img,
.news-item.active .circle-arrow img {
  filter: none;
  transform: rotate(45deg);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
  .svc-intro {
    padding-left: 40px;
    max-width: 520px;
  }

  .home-cases {
    padding: 100px 40px 0;
  }

  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .case-card {
    max-width: none;
    height: auto;
    min-height: 280px;
  }
}

@media (max-width: 1100px) {
  .hero,
  .hero-slider {
    height: auto;
    min-height: 420px;
    aspect-ratio: 1520 / 792;
  }

  .home-header .header-inner {
    padding: 0 16px;
  }

  .home-header .nav-toggle {
    margin-left: auto;
  }

  .home-header .nav-menu {
    z-index: 200;
  }

  .hero-dots {
    left: 40px;
    bottom: 36px;
  }

  .home-services {
    padding: 72px 0;
  }

  .home-services > .container {
    width: 100%;
    padding: 0 20px;
  }

  .home-services .svc-wrap {
    flex-direction: column;
    gap: 40px;
  }

  .svc-intro {
    flex: none;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .svc-intro p,
  .svc-intro [data-svc-desc] {
    max-width: none;
  }

  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .svc-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
  }

  .svc-item.is-empty {
    display: none !important;
    border: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .home-about {
    padding: 0 0 60px;
  }

  .home-about .about-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .about-visual {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1059 / 755;
    overflow: hidden;
  }

  .stat-cards {
    position: absolute;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    z-index: 2;
  }

  .stat-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px 12px;
    overflow: hidden;
    z-index: 1;
  }

  .stat-card::before {
    z-index: 0 !important;
    opacity: 1 !important;
  }

  .stat-card.dark {
    background: rgba(0, 0, 0, 0.55);
  }

  .stat-card.dark::before {
    display: none;
  }

  .stat-card.light {
    background: rgba(255, 255, 255, 0.92);
  }

  .stat-card.light::before {
    display: none;
  }

  .stat-card.orange {
    background: rgba(237, 115, 48, 0.95);
  }

  .stat-card.orange::before {
    display: none;
  }

  .stat-card.orange-deep {
    background: rgba(237, 112, 47, 0.85);
  }

  .stat-card.orange-deep::before {
    display: none;
  }

  .stat-card .num,
  .stat-card .label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0;
    z-index: 1;
  }

  .stat-card .num {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .stat-card .label {
    font-size: 12px;
    line-height: 1.35;
    width: auto;
  }

  .stat-card.dark .num,
  .stat-card.dark .label,
  .stat-card.orange .num,
  .stat-card.orange .label,
  .stat-card.orange-deep .num,
  .stat-card.orange-deep .label {
    color: #fff;
  }

  .stat-card.light .num,
  .stat-card.light .label {
    color: #333;
  }

  .about-content {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-left: 0;
    padding: 40px 24px;
  }

  .about-content p {
    max-width: none;
  }

  .home-team .team-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-team .filter-bar {
    width: 100%;
  }

  .home-team .filter-bar .select[name="field"],
  .home-team .filter-bar .select[name="title"],
  .home-team .filter-bar .input {
    min-width: 0;
    flex: 1 1 140px;
    width: auto;
  }

  .team-showcase {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .lawyer-card.is-active {
    width: 276px;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: 345px;
  }

  .lawyer-card.is-active .detail {
    display: none;
  }

  .cases-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    width: 100%;
    gap: 16px;
  }

  .case-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 260px;
  }

  .home-cases {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 72px 20px 40px;
  }

  .home-cases .container {
    height: auto;
  }

  .home-cases .cases-grid {
    flex: none;
  }

  .home-cases .cases-more {
    flex: none;
    margin-top: 32px;
    height: auto;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-side {
    border-right: none;
    padding-right: 0;
  }

  .news-cats {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 8px;
  }

  .news-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
  }

  .news-item h3 {
    height: auto;
  }
}

@media (max-width: 640px) {
  .hero,
  .hero-slider {
    height: auto;
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }

  .hero-dots {
    left: 20px;
    bottom: 20px;
  }

  .hero-dots button.active {
    width: 40px;
  }

  .home-header .brtv,
  .home-header .divider {
    display: none;
  }

  .home-header .logo {
    height: 30px;
  }

  .home-services {
    padding: 48px 0;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    overflow: hidden;
  }

  .svc-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
    padding: 20px 10px 28px;
  }

  .svc-item.is-empty {
    display: none !important;
    border: none !important;
  }

  .about-visual {
    aspect-ratio: 4 / 3;
  }

  .stat-cards {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .stat-card {
    min-height: 88px;
    padding: 12px 10px 10px;
  }

  .stat-card .num {
    font-size: 24px;
  }

  .stat-card .label {
    font-size: 11px;
  }

  .about-content {
    padding: 32px 16px;
    width: 100%;
    min-height: 0;
  }

  .home-team .filter-bar .select[name="field"],
  .home-team .filter-bar .select[name="title"],
  .home-team .filter-bar .input,
  .home-team .filter-bar .btn-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .lawyer-card,
  .lawyer-card.is-active,
  .lawyer-card.is-active .photo-wrap {
    width: 100%;
    max-width: 276px;
  }

  .case-card {
    padding: 40px 20px 72px;
    min-height: 220px;
  }

  .case-card:hover {
    padding-top: 32px;
  }

  .case-card h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .news-item {
    padding: 20px 0;
  }

  .news-item .thumb {
    height: 160px;
  }

  .home-news .news-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }

  .home-news .news-side .sec-title {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 4px;
  }

  .home-news .news-cats {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    align-items: center;
    gap: 8px 14px;
  }

  .home-news .news-cats a {
    line-height: 32px;
    white-space: nowrap;
  }

  .home-news .news-side .btn-orange {
    margin-top: 0;
    flex: 0 0 auto;
    width: auto;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    gap: 8px;
  }

  .home-news .news-side .btn-orange .btn-text {
    width: auto;
  }
}
