/*
 * Rushang website modernization overlay.
 * This file intentionally overrides the legacy static templates without
 * rewriting generated HTML. Keep selectors broad but low-risk.
 */

:root {
  --rs-blue: #1769e0;
  --rs-blue-dark: #0f4ca8;
  --rs-red: #e92d1f;
  --rs-text: #1f2937;
  --rs-muted: #6b7280;
  --rs-border: #e5e7eb;
  --rs-bg: #f5f7fb;
  --rs-card: #ffffff;
  --rs-radius: 8px;
  --rs-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--rs-text);
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.rs-skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 4px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transition: transform .16s ease;
}

.rs-skip-link:focus,
.rs-skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

.rs-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rs-modern-ready a:focus-visible,
.rs-modern-ready button:focus-visible,
.rs-modern-ready input:focus-visible,
.rs-modern-ready select:focus-visible,
.rs-modern-ready textarea:focus-visible,
.rs-modern-ready [tabindex]:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

#rs-main:focus {
  outline: none;
}

.xuanfuad,
.xuanfuad-msk {
  display: none !important;
}

.rs-image-fallback {
  object-fit: cover !important;
  background: linear-gradient(135deg, #eef5ff, #f8fafc);
}

.rs-search-summary {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: #fff;
  color: var(--rs-muted);
  font-size: 14px;
}

.rs-search-summary strong {
  color: var(--rs-text);
}

.rs-modern-ready .detailed {
  color: #111827;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0;
  word-break: break-word;
}

.rs-modern-ready .detailed p {
  margin: 0 0 1.05em;
}

.rs-modern-ready .detailed .rs-section-title {
  margin-top: 1.6em;
  margin-bottom: .75em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
}

.rs-modern-ready .detailed .rs-list-line {
  padding-left: 1.25em;
  text-indent: -1.25em;
}

.rs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 28px 0 4px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: var(--rs-radius);
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  box-shadow: 0 8px 20px rgba(15, 76, 168, .06);
}

.rs-pagination__summary {
  flex: 0 0 auto;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}

.rs-pagination__links {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
}

.rs-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.rs-page-link:hover {
  border-color: var(--rs-blue);
  color: var(--rs-blue);
  box-shadow: 0 4px 12px rgba(23, 105, 224, .14);
}

.rs-page-link.is-current {
  border-color: var(--rs-blue);
  background: var(--rs-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(23, 105, 224, .2);
}

.rs-page-link.is-disabled,
.rs-page-link.is-gap {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
}

.rs-page-link.is-disabled {
  cursor: default;
}

@media (min-width: 769px) {
  .rs-page-detail .block3.publicblock {
    width: min(1200px, calc(100% - 72px));
  }

  .rs-page-detail .block3.publicblock > .left {
    width: 100%;
    box-sizing: border-box;
  }

  .rs-page-detail .detailed {
    max-width: 980px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    min-width: 0 !important;
    overflow-x: hidden;
    background: var(--rs-bg);
  }

  .w1200,
  .head .w1200,
  .nav .w1200,
  .foot .w1200,
  .foot-bottom .w1200,
  .banner .w1200,
  .index-box .w1200,
  .publicblock,
  .block3,
  .breadcrumbs {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .fl,
  .fr {
    float: none !important;
  }

  .head {
    height: auto !important;
    min-height: 34px;
    overflow: hidden;
  }

  .head .w1200 {
    padding: 0 12px;
  }

  .head-nav-l,
  .head-nav-r {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
  }

  .head-nav-r {
    display: none;
  }

  .head .head-nav-l > p {
    margin-right: 10px !important;
    line-height: 34px !important;
    font-size: 12px !important;
  }

  .nav {
    height: auto !important;
    line-height: normal !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
  }

  .nav .w1200 {
    padding: 8px 12px 10px;
  }

  .nav .logo {
    width: 220px !important;
    height: 54px !important;
  }

  .nav .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .nav ul {
    display: flex;
    gap: 18px;
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .nav li {
    margin-left: 0 !important;
    line-height: 34px;
  }

  .nav li a {
    display: block;
    min-height: 34px;
    font-size: 15px !important;
    cursor: pointer !important;
  }

  .banner {
    overflow: hidden;
  }

  .banner .swiper-container,
  .banner .swiper-wrapper,
  .banner .swiper-slide,
  .banner img {
    height: auto !important;
  }

  .banner .search-box {
    position: static !important;
    padding: 12px;
    background: #fff;
  }

  .search-box .search,
  .search {
    width: 100% !important;
    display: flex !important;
    align-items: stretch;
    box-sizing: border-box;
  }

  .search-box .search input,
  .search input,
  #keys {
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-box .search button,
  .search button,
  #sjk {
    width: 88px !important;
    box-sizing: border-box;
  }

  .index-box {
    margin-top: 0 !important;
    padding: 0 12px 24px;
  }

  .part1,
  .part2,
  .part3,
  .part4,
  .part5,
  .part6,
  .part7,
  .part8,
  .weblink,
  .contact-box {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 16px !important;
    border-radius: var(--rs-radius);
    overflow: hidden;
  }

  .part1 .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px 16px !important;
  }

  .part1 .list .list-item {
    width: auto !important;
    margin-right: 0 !important;
  }

  .part1 .list .list-item:nth-child(n+3) {
    display: none;
  }

  .part1 .news-box {
    height: auto !important;
    min-height: 44px;
    padding: 10px 14px !important;
    line-height: 1.5;
  }

  .part2 {
    padding: 20px 16px !important;
  }

  .part2 .swiper-container .swiper-slide {
    width: 46% !important;
    min-width: 150px;
  }

  .part3 .case-box,
  .part7 .news-list {
    display: block !important;
  }

  .part3 .case-box .case-list,
  .part7 .news-list li {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .title-line {
    margin-bottom: 16px !important;
  }

  .title-line .tit {
    font-size: 22px !important;
  }

  .right,
  .rightbox,
  .right_two {
    display: none !important;
  }

  .float,
  .rightFix,
  .fixed-right,
  .kf,
  .online,
  .side-bar,
  .xuanfu {
    display: none !important;
  }

  body > div[style*="position: fixed"],
  body > ul[style*="position: fixed"],
  body > a[style*="position: fixed"] {
    max-width: 72px;
  }

  .breadcrumbs {
    padding: 12px;
    font-size: 13px;
    white-space: nowrap;
    overflow-x: auto;
    background: #f1f5f9;
  }

  .block3.publicblock {
    padding: 0 12px 24px !important;
    background: var(--rs-bg);
  }

  .block3.publicblock > .left,
  .publicblock .left,
  .block3 .left {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: transparent;
  }

  .left_head,
  .detailed,
  .news_list,
  .publicblock ul#page,
  #page {
    background: #fff;
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    box-sizing: border-box;
  }

  .left_head {
    padding: 20px 16px !important;
    margin-bottom: 12px;
  }

  .left_head h1 {
    font-size: 23px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    max-height: none !important;
  }

  .left_head h1.oe,
  .left_head .oe,
  #page .oe {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    max-height: none !important;
  }

  .left_head .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
  }

  .detailed {
    padding: 18px 16px !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  .prevnext {
    padding: 12px 0 0;
  }

  #page {
    padding: 8px 12px !important;
  }

  #page .li {
    height: auto !important;
    min-height: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--rs-border);
  }

  #page .li > a {
    display: flex !important;
    gap: 10px;
    align-items: start;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #page .time {
    float: none !important;
    flex: 0 0 52px;
    width: 52px !important;
    font-size: 34px !important;
    line-height: 1 !important;
    color: #cbd5e1 !important;
  }

  #page .time em {
    display: block;
    font-size: 12px !important;
    margin-top: 6px;
  }

  #page .img {
    float: none !important;
    flex: 0 0 110px;
    width: 110px !important;
    height: 82px !important;
    overflow: hidden;
    border-radius: 4px;
    background: #eef2f7;
  }

  #page .img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  #page .news_li_content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--rs-text) !important;
  }

  #page .news_li_content h2 {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: #0f172a !important;
  }

  #page .news_li_content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6 !important;
    color: var(--rs-muted) !important;
  }

  .pages,
  .pagination {
    overflow-x: auto;
    white-space: nowrap;
  }

  .foot,
  .foot-bottom {
    height: auto !important;
    padding: 28px 16px !important;
  }

  .foot .link-list,
  .foot .fr,
  .foot-bottom .left,
  .foot-bottom .right {
    width: 100% !important;
  }

  .foot .link-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .foot .link-list li {
    width: auto !important;
    margin-right: 0 !important;
  }

  .foot .code-box,
  .foot .phone-box {
    margin-top: 18px;
  }
}

@media (max-width: 768px) {
  .rs-pagination {
    display: block;
    padding: 12px;
    overflow: hidden;
  }

  .rs-pagination__summary {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
  }

  .rs-pagination__links {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  .nav .logo {
    width: 205px !important;
  }

  .part1 .list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .part1 .list .list-item a {
    line-height: 2.3 !important;
  }

  #page .li > a {
    gap: 8px;
  }

  #page .time {
    flex-basis: 44px;
    width: 44px !important;
    font-size: 30px !important;
  }

  #page .img {
    flex-basis: 96px;
    width: 96px !important;
    height: 78px !important;
  }

  .detailed {
    padding: 16px 14px !important;
  }
}
