/* 明阳天下法律服务手机端适配 */
@media screen and (max-width: 767px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0 !important;
    font-size: 14px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
    box-sizing: border-box;
  }

  .navbar.container {
    position: absolute;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding: 0 !important;
  }

  .navbar.container::after {
    content: "明阳天下法律服务";
    position: absolute;
    top: 20px;
    left: 16px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  .nav {
    top: 16px;
    right: 16px;
    height: auto;
    overflow: visible;
  }

  .nav:hover {
    height: auto;
    overflow: visible;
  }

  .nav > i {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-color: rgba(20, 24, 32, 0.82);
    background-size: 32px auto;
    cursor: pointer;
  }

  .nav ul {
    position: absolute;
    top: 52px;
    right: 0;
    width: 176px;
    margin: 0;
    padding: 6px 0;
    border-radius: 6px;
    background: rgba(30, 34, 40, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav:hover ul {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.mobile-open ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav li {
    float: none;
    line-height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav li:last-child {
    border-bottom: 0;
  }

  .nav li a {
    display: block;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    text-align: center;
  }

  .topbg {
    display: none !important;
  }

  .topbg + #slideBox {
    height: 248px !important;
  }

  .topbg + #slideBox::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(16, 22, 31, 0.76) 0%,
      rgba(16, 22, 31, 0.44) 62%,
      rgba(16, 22, 31, 0.12) 100%
    );
    pointer-events: none;
  }

  .topbg + #slideBox::after {
    content: "专业法律服务\A 合同纠纷 · 债权债务 · 刑事辩护";
    position: absolute;
    z-index: 2;
    bottom: 64px;
    left: 22px;
    color: #fff;
    font-size: clamp(20px, 6vw, 23px);
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-line;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
  }

  .topbg + #slideBox .bd li {
    position: relative;
    width: 100%;
    height: 248px !important;
    background-position: left center !important;
    background-size: cover !important;
  }

  .topbg + #slideBox .hd {
    z-index: 3;
    bottom: 16px;
  }

  .topbg + #slideBox .hd ul li {
    width: 23px;
    margin: 0 4px;
  }

  .notice {
    height: auto;
    padding: 11px 0;
    line-height: 1.6;
    background-size: cover;
  }

  .notice .container {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .notice p {
    float: none !important;
    flex: none;
    padding-left: 24px;
    background-size: 18px auto;
    font-size: 14px;
    white-space: nowrap;
  }

  .notice .txtScroll-top {
    float: none !important;
    flex: 1;
    width: calc(100% - 92px) !important;
    height: auto !important;
    min-width: 0;
    margin-left: 0 !important;
    overflow: hidden;
    font-size: 13px;
  }

  .notice .infoList li {
    display: flex !important;
    align-items: center;
    overflow: hidden;
    height: 60px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .indextit {
    width: 100%;
    height: auto;
    padding: 30px 0 16px;
    background-size: 180px auto;
    background-position: center bottom;
    font-size: 46px;
    line-height: 1.05;
  }

  .indextit .jz {
    display: block;
  }

  .indextit .fl {
    float: none;
    display: inline-block;
    vertical-align: top;
  }

  .indextit i {
    padding-top: 4px;
    font-size: 12px;
    text-align: center;
  }

  .indextit p {
    font-size: 25px;
    line-height: 1.35;
  }

  .business {
    height: auto !important;
    padding-bottom: 32px;
    background-size: cover;
  }

  .business ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 0 !important;
  }

  .business li {
    display: grid;
    grid-template-areas:
      "icon title"
      "icon subtitle"
      "text text";
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 3px;
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 18px 16px 16px;
    border-radius: 10px;
    background: rgba(243, 243, 243, 0.96);
    text-align: left;
  }

  .business li i {
    grid-area: icon;
    float: none;
    width: 56px;
    height: 56px;
    margin: 6px 0 0;
    background-size: contain !important;
    background-position: center !important;
  }

  .business li p {
    grid-area: title;
    font-size: 20px;
    text-align: left;
  }

  .business li span {
    grid-area: subtitle;
    text-align: left;
  }

  .business li a,
  .business ul li:first-child a {
    position: static;
    grid-area: text;
    width: auto;
    height: auto;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #e4e4e4;
    border-radius: 0;
    background: transparent;
    color: #555;
    opacity: 1;
    font-size: 12px;
    line-height: 1.75;
    text-align: left;
  }

  .about {
    height: auto !important;
    padding: 28px 0;
    background-size: cover;
  }

  .about .container {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .about img {
    float: none !important;
    display: block;
    width: 100%;
    margin: 0 !important;
    border-radius: 8px;
  }

  .abinfo {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .abtit p {
    font-size: 22px;
  }

  .abcont {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.85;
    text-align: justify;
  }

  .abinfo a.more {
    margin-top: 18px;
  }

  .case {
    height: auto !important;
    padding: 28px 0 24px;
    background-size: cover;
  }

  .case .picMarquee-left {
    height: auto;
    margin-top: 18px;
  }

  .case .picMarquee-left .hd {
    display: none;
  }

  .case .picMarquee-left .bd {
    width: 100%;
    overflow: visible !important;
  }

  .case .picMarquee-left .tempWrap {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .case .picMarquee-left .bd ul {
    position: relative !important;
    left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none !important;
    gap: 12px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    transition: none !important;
  }

  .case .picMarquee-left .bd ul li {
    float: none !important;
    width: auto !important;
    height: auto;
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .case .picMarquee-left .bd ul li.clone {
    display: none !important;
  }

  .case .picMarquee-left .bd ul li img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
  }

  .case .picMarquee-left .bd ul li a {
    padding-top: 8px;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .case .picMarquee-left .bd ul li p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .gg .slideBox {
    height: 190px !important;
  }

  .gg .slideBox .bd li {
    height: 190px !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .news {
    margin-top: 0 !important;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .news .border {
    margin-top: 16px;
  }

  .news ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .news li {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 14px 0;
    box-sizing: border-box;
  }

  .news li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .news li .date {
    float: none !important;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
  }

  .news li .date span {
    font-size: 25px;
    line-height: 1.2;
  }

  .news li .fr {
    float: none !important;
    flex: 1;
    width: auto !important;
    min-width: 0;
  }

  .news li .fr span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .news li .fr p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .link {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid #e5e5e5;
  }

  .link p {
    float: none;
    padding-left: 32px;
    background-size: 24px auto;
    font-size: 17px;
    line-height: 1.6;
  }

  .link .picMarquee-left {
    float: none !important;
    width: 100% !important;
    margin-top: 8px;
    overflow: visible;
  }

  .link .picMarquee-left .yl ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
  }

  .link .picMarquee-left .yl ul li {
    float: none;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
  }

  .footer {
    margin-top: 16px;
    padding: 18px 16px;
    line-height: 1.8;
  }
}
