/*
 * Homepage responsive overrides.
 *
 * The desktop composition is intentionally left untouched. These rules only
 * apply below the current desktop canvas and are scoped to #index so shared
 * website templates keep their existing layout.
 */

.index-mobile-nav-toggle,
.index-mobile-nav-backdrop,
.index-mobile-nav-drawer {
  display: none;
}

@media screen and (max-width: 1439px) {
  #index .section-base .base img {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: auto;
    align-self: center;
    object-fit: contain;
  }
}

@media screen and (max-width: 1199px) {
  html {
    overflow-x: hidden;
  }

  html body#index {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  #index .section-content {
    width: 100%;
    max-width: 100%;
    padding-right: 32px;
    padding-left: 32px;
    box-sizing: border-box;
  }

  #index .nav-header {
    padding-left: 24px;
  }

  #index .header-container {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
  }

  #index .nav-header .nav-left {
    flex-wrap: nowrap;
    min-width: 0;
  }

  #index .nav-header .nav-left .nav-icon img {
    width: auto;
    max-width: 160px;
    height: 44px;
    margin-right: 20px;
    object-fit: contain;
  }

  #index .nav-menu .nav-item {
    height: 64px;
    padding: 0 8px;
    font-size: 13px;
  }

  #index .nav-right {
    line-height: 64px;
    font-size: 13px;
  }

  #index .nav-right .control {
    margin: 0 10px;
  }

  #index .no-login-btn.no-login-btn {
    line-height: 64px;
  }

  #index .nav-cont {
    top: 65px;
  }

  #index .banner-s .banner-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #index .banner-s .banner-list .banner-item {
    width: auto;
    min-width: 0;
    padding: 22px 24px !important;
  }

  #index .banner-item + .banner-item::before {
    display: none;
  }

  #index .service-box-overview {
    flex: 0 0 36%;
    max-width: 36%;
  }

  #index .service-description,
  #index .service-box-item p {
    min-width: 0;
  }

  #index .service-box-item {
    min-width: 0;
    padding: 18px;
  }

  #index .service-box-item > section:first-child {
    margin-right: 12px;
  }

  #index .svc-faq {
    margin-right: 18px !important;
    margin-left: 18px !important;
    padding: 18px 20px;
  }

  #index .resolve-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #index .resolve-content > div {
    min-width: 0;
  }

  #index .practice-overview-box,
  #index .practice-overview-box content,
  #index .practice-overview-box > content + section {
    min-width: 0;
  }

  #index .practice-overview-box {
    min-height: 460px;
  }

  #index .practice-overview-box content {
    flex: 0 0 42%;
  }

  #index .practice-overview-box > content + section {
    flex: 1 1 auto !important;
  }

  #index .section-advertise-list {
    min-width: 0;
    gap: 18px;
  }

  #index .section-advertise-list > div {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 24px;
  }

  #index .section-product-title {
    white-space: normal;
  }

  #index .section-footer > section {
    width: 100%;
    max-width: none;
    padding-right: 32px;
    padding-left: 32px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 991px) {
  #index .header-container {
    height: 56px;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  #index .nav-header {
    height: 56px;
    padding: 0 68px 0 20px;
  }

  #index .nav-header .nav-left {
    width: 100%;
  }

  #index .nav-header .nav-left .nav-icon img {
    width: auto;
    max-width: 140px;
    height: 38px;
    margin-right: 0;
    object-fit: contain;
  }

  #index .nav-menu,
  #index .nav-right,
  #index .nav-cont {
    display: none !important;
  }

  #index .index-mobile-nav-toggle {
    position: fixed;
    top: 9px;
    right: 16px;
    z-index: 1202;
    width: 40px;
    height: 38px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d9e2f2;
    border-radius: 4px;
    background: #fff;
    color: #1d2129;
    box-shadow: 0 4px 14px rgba(28, 56, 108, 0.08);
  }

  #index .index-mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  #index.index-mobile-nav-open .index-mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #index.index-mobile-nav-open .index-mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #index.index-mobile-nav-open .index-mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  #index.index-mobile-nav-open .index-mobile-nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  html.index-mobile-nav-open {
    overflow: hidden;
  }

  #index .index-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1198;
    display: block;
    background: rgba(10, 22, 44, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  #index .index-mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    width: min(88vw, 360px);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -14px 0 36px rgba(10, 34, 75, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  #index.index-mobile-nav-open .index-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  #index.index-mobile-nav-open .index-mobile-nav-drawer {
    transform: translateX(0);
    visibility: visible;
  }

  #index.index-mobile-nav-open {
    overflow: hidden;
  }

  #index .index-mobile-nav-head {
    min-height: 56px;
    padding: 0 64px 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8edf5;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
  }

  #index .index-mobile-nav-close {
    position: absolute;
    top: 9px;
    right: 16px;
    width: 40px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #4b5b76;
    font-size: 28px;
    line-height: 38px;
  }

  #index .index-mobile-nav-content {
    flex: 1;
    min-height: 0;
    padding: 10px 20px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #index .index-mobile-nav-link,
  #index .index-mobile-nav-summary {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    color: #1d2129;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }

  #index .index-mobile-nav-link {
    border-bottom: 1px solid #edf1f6;
  }

  #index .index-mobile-nav-summary {
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #edf1f6;
  }

  #index .index-mobile-nav-summary::-webkit-details-marker {
    display: none;
  }

  #index .index-mobile-nav-summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 8px;
    border-right: 1px solid #697386;
    border-bottom: 1px solid #697386;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  #index .index-mobile-nav-group[open] > .index-mobile-nav-summary::after {
    transform: translateY(-35%) rotate(225deg);
  }

  #index .index-mobile-nav-group-body {
    padding: 6px 0 14px 14px;
    border-bottom: 1px solid #edf1f6;
  }

  #index .index-mobile-nav-group-body > .index-mobile-nav-link {
    min-height: 40px;
    border-bottom: 0;
    color: #2b6cff;
    font-size: 14px;
  }

  #index .index-mobile-nav-section + .index-mobile-nav-section {
    margin-top: 14px;
  }

  #index .index-mobile-nav-section h4 {
    margin: 8px 0 4px;
    color: #697386;
    font-size: 12px;
    font-weight: 600;
  }

  #index .index-mobile-nav-section a,
  #index .index-mobile-nav-section span {
    padding: 8px 0;
    display: block;
    color: #253554;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
  }

  #index .index-mobile-nav-section small {
    margin-top: 3px;
    display: block;
    color: #7a8597;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }

  #index .index-mobile-nav-quick {
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid #e8edf5;
    background: #f7f9fd;
  }

  #index .index-mobile-nav-quick a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9d8ff;
    border-radius: 3px;
    background: #fff;
    color: #2b6cff;
    font-size: 13px;
    text-decoration: none;
  }

  #index .index-mobile-nav-quick a.index-mobile-nav-primary {
    border-color: #2b6cff;
    background: #2b6cff;
    color: #fff;
  }

  #index .index-mobile-nav-quick a.no-login {
    line-height: 40px;
    text-align: center;
  }

  #index .index-mobile-nav-quick a.no-login[style*="display:block"],
  #index .index-mobile-nav-quick a.no-login[style*="display: block"] {
    display: flex !important;
    line-height: normal;
  }

  #index .banner-section {
    padding-top: 56px;
    background-position: center;
  }

  #index .banner-container {
    display: block;
    padding-top: 16px;
    padding-bottom: 28px;
  }

  #index .banner-container menu {
    margin: 0 0 18px;
    padding: 0 0 4px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #index .banner-container menu::-webkit-scrollbar,
  #index .practice-link-box::-webkit-scrollbar {
    display: none;
  }

  #index .banner-container menu::before {
    display: none;
  }

  #index .banner-container menu li {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(43, 108, 255, 0.12);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.7);
    color: #4b5b76;
    font-size: 13px;
    text-align: center;
  }

  #index .banner-container menu li.active {
    border-color: #2b6cff;
    background: #fff;
    color: #2b6cff;
    box-shadow: 0 4px 14px rgba(43, 108, 255, 0.12);
  }

  #index .banner-container menu li + li {
    margin-top: 0;
  }

  #index .banner-container > section {
    min-height: 300px;
    margin: 0;
  }

  #index div[data-banner-current] > div {
    width: 70%;
    max-width: 520px;
  }

  #index .banner-section-header {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.3;
    white-space: normal;
  }

  #index .banner-section-description {
    max-width: 100%;
    margin-top: 14px;
    line-height: 1.65;
  }

  #index .purchase-btn.purchase-btn {
    bottom: 10px;
    left: 0;
    padding-right: 62px;
  }

  #index .banner-s .banner-list {
    gap: 1px;
    padding: 1px !important;
    background: #eef1f6;
  }

  #index .service-content {
    flex-direction: column;
    gap: 32px;
  }

  #index .service-box-overview {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  #index .service-box-overview > img {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  #index .service-description {
    width: 100%;
  }

  #index .service-box-item {
    padding: 20px;
  }

  #index .svc-faq {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #index .svc-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #index .practice-link-box {
    justify-content: flex-start;
    gap: 10px;
    margin-right: -24px;
    margin-left: -24px;
    padding: 0 24px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #index .practice-overview-box {
    min-height: 0;
    flex-direction: column;
  }

  #index .practice-overview-box content {
    flex: none;
    width: 100%;
    padding: 26px;
  }

  #index .practice-overview-box > content + section {
    flex: none !important;
    width: 100%;
    height: 300px;
  }

  #index .section-advertise {
    padding: 40px 0;
  }

  #index .section-advertise-container {
    flex-direction: column;
  }

  #index .section-advertise-content {
    margin: 0 0 24px;
  }

  #index .section-advertise-content h3 {
    font-size: 30px;
  }

  #index .section-advertise-list {
    width: 100%;
  }

  #index .section-advertise-list > div:first-child {
    margin-left: 0;
  }

  #index .section-base > .section-content {
    padding-top: 56px;
  }

  #index .section-base .base {
    display: flex;
    flex-direction: column;
  }

  #index .base .base-content {
    width: 100%;
    margin: 12px 0 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }

  #index .base .base-content > div {
    min-width: 0;
    margin-bottom: 0;
  }

  #index .base .base-content .title-desc,
  #index .base-content h2 {
    white-space: normal;
  }

  #index .section-base .base img {
    flex: none;
    width: 100%;
    height: auto;
    padding-right: 0;
  }

  #index .section-tool {
    grid-template-areas:
      "tool1 tool1"
      ". ."
      ". .";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  #index .section-tool-main {
    min-height: 320px;
  }

  #index .section-product-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #index .section-product-container > li {
    min-width: 0;
  }

  #index .section-product-title {
    font-size: 16px;
  }

  #index .section-product-action {
    margin-top: 24px;
  }

  #index .aside-tools {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 950;
  }

  #index .aside-tools .tools-list {
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 0 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-radius: 22px;
  }

  #index .aside-tools .tools-list .tools-item img {
    width: 22px;
    height: 22px;
    margin: 9px;
  }

  #index .aside-tools .tools-list .tools-item::before {
    top: 12px;
    right: 0;
    bottom: auto;
    width: 1px;
    height: 16px;
  }

  #index .aside-tools .tools-list .tools-item .tools-box {
    top: auto;
    right: 0;
    bottom: 100%;
    left: auto;
    padding: 0 0 8px;
  }

  #index .footer-service {
    padding-right: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  #index .footer-content {
    padding: 34px 0;
    flex-direction: column;
    gap: 34px;
  }

  #index .footer-content-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  #index .footer-content-nav dl {
    min-width: 0;
    margin: 0;
  }

  #index .footer-contract {
    width: 100%;
    justify-content: flex-start;
  }

  #index .footer-copyright-container {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #index .footer-copyright-container p {
    margin-left: 0;
    line-height: 1.8;
  }
}

@media screen and (max-width: 575px) {
  #index .section-content {
    padding: 48px 16px;
  }

  #index .nav-header {
    height: 56px;
    padding: 0 68px 0 16px;
  }

  #index .section-title h2 {
    font-size: 24px;
    line-height: 1.35;
  }

  #index .section-title .section-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  #index .banner-container {
    padding-top: 14px;
    padding-bottom: 24px;
  }

  #index .banner-container > section {
    min-height: 270px;
  }

  #index div[data-banner-current] > div {
    width: 76%;
  }

  #index .banner-section-header {
    font-size: 26px;
  }

  #index .banner-section-description {
    font-size: 13px;
  }

  #index .banner-s .banner-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #index .banner-s .banner-list .banner-item {
    padding: 16px !important;
  }

  #index .banner-s .banner-list .banner-item h5 {
    font-size: 15px;
  }

  #index .banner-s .banner-list .banner-item .title-desc {
    font-size: 12px;
    line-height: 1.55;
  }

  #index .service-title {
    font-size: 24px;
    line-height: 1.4;
  }

  #index .service-description {
    margin-top: 14px;
    margin-bottom: 22px;
  }

  #index .service-box {
    grid-template-columns: minmax(0, 1fr);
  }

  #index .service-box-item {
    padding: 18px 8px;
    border-bottom: 1px solid rgba(212, 221, 236, 0.75);
  }

  #index .service-box-item > section:first-child span {
    width: 52px !important;
    height: 52px !important;
  }

  #index .service-box-item p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  #index .svc-faq {
    padding: 18px 16px;
  }

  #index .svc-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #index .resolve-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #index .resolve-box > div {
    padding: 18px;
  }

  #index .resolve-content .resolve-box h4 {
    margin-bottom: 12px;
    font-size: 19px;
  }

  #index .resolve-content .title-desc {
    margin-bottom: 28px;
  }

  #index .practice-link-box {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  #index .practice-link-box li {
    padding: 8px 10px;
    font-size: 14px;
  }

  #index .practice-overview-box content {
    padding: 22px 18px;
  }

  #index .practice-overview-box content h4 {
    font-size: 23px;
  }

  #index .practice-overview-box > content + section {
    height: 210px;
  }

  #index .practice-list li {
    gap: 12px;
  }

  #index .practice-list i {
    width: 14px;
    flex: 0 0 14px;
  }

  #index .section-advertise {
    padding: 34px 0;
  }

  #index .section-advertise-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  #index .section-advertise-content h3 {
    font-size: 27px;
  }

  #index .section-advertise-list {
    flex-direction: column;
    gap: 12px;
  }

  #index .section-advertise-list > div {
    width: 100%;
    padding: 20px;
  }

  #index .section-advertise-desc p {
    padding-right: 28px;
    font-size: 16px;
  }

  #index .section-base > .section-content {
    padding: 48px 16px 0;
  }

  #index .base .base-content {
    grid-template-columns: minmax(0, 1fr);
  }

  #index .base .base-content > div {
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e7f0;
  }

  #index .base .base-content h2 {
    font-size: 21px;
  }

  #index .section-tool {
    grid-template-areas:
      "tool1"
      "."
      "."
      "."
      ".";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #index .section-tool-main {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #index .section-tool > section {
    padding: 20px;
  }

  #index .section-product-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #index .section-product-container > li {
    padding: 20px;
  }

  #index .section-product-title {
    font-size: 16px;
    line-height: 1.65;
  }

  #index .section-product-action {
    margin-top: 18px;
  }

  #index .section-footer > section {
    padding-right: 16px;
    padding-left: 16px;
  }

  #index .footer-service {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  #index .footer-service-item {
    min-width: 0;
    align-items: flex-start;
  }

  #index .footer-service-item i {
    width: 26px;
    flex: 0 0 26px;
  }

  #index .footer-service-item h5 {
    font-size: 13px;
    line-height: 1.5;
  }

  #index .footer-content-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  #index .footer-contract > section,
  #index .footer-contract > section > div {
    width: 100%;
  }

  #index .footer-contract .btn {
    width: 100% !important;
  }

  #index .footer-copyright-container i img {
    width: 82px;
  }
}

@media screen and (max-width: 359px) {
  #index .banner-s .banner-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #index .resolve-link {
    flex-wrap: wrap;
  }

  #index .resolve-link .btn {
    min-width: 0;
  }
}

/* 资质与荣誉响应式 */
@media screen and (max-width: 1199px) {
  #index .honor-img {
    height: 240px;
  }

  #index .honor-grid-plaque .honor-img {
    height: 200px;
  }
}

@media screen and (max-width: 991px) {
  #index .honor-grid-cert {
    grid-template-columns: repeat(2, 1fr);
  }

  #index .honor-grid-plaque {
    grid-template-columns: minmax(0, 1fr);
  }

  #index .honor-grid-plaque .honor-img {
    height: 220px;
  }
}

@media screen and (max-width: 575px) {
  #index .honor-grid {
    gap: 12px;
    margin-top: 24px;
  }

  #index .honor-grid-plaque {
    margin-top: 12px;
  }

  #index .honor-img {
    height: 190px;
    padding: 12px;
  }

  #index .honor-grid-plaque .honor-img {
    height: 170px;
  }

  #index .honor-name {
    padding: 10px 12px 12px;
  }

  #index .honor-name h5 {
    font-size: 13px;
  }
}
