/* xinweiest.com site overrides */
.site-body {
  font-family: "Noto Sans SC", "Noto Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
  color: #333;
}

.site-main {
  overflow: hidden;
}

/* Logo */
header .logo {
  max-width: 26%;
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
}
.logo-text span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo-text em {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 3px;
  opacity: 0.6;
  font-family: Arial, sans-serif;
}
header.on .logo-text,
header.on .logo-text em {
  color: #333;
}
header.on .logo-text em {
  opacity: 0.55;
}

/* Hero */
.hero-banner {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #111;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22) 62%, rgba(0, 0, 0, 0.5));
}
.hero-slide .ban-txt {
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
}
.hero-eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}
.hero-banner .ban-txt .tit {
  font-size: 56px;
  font-weight: 300;
  margin: 14px 0;
  line-height: 1.6;
}
.hero-banner .ban-txt .note {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}
.hero-banner .ban-txt .hm-more {
  margin-top: 34px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 38px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero-dots button.active {
  background: #fff;
}

/* Service cards / listing */
.hm-case-list ul li a .txt .tit {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  min-height: 60px;
}
.category-lead {
  max-width: 900px;
  margin: 0 auto 26px;
  text-align: center;
  color: #777;
  font-size: 15px;
  line-height: 1.9;
}
.service-empty {
  padding: 70px 0;
}
.empty-state {
  text-align: center;
  color: #999;
  font-size: 15px;
}
.ny-case-list ul li a .txt .tit {
  white-space: normal;
}

/* Process block on about/home */
.hm-abdata ul li .note {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}
.hm-abdata ul li .process-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  max-width: 240px;
  margin-top: 8px;
}
.ny-about1 .hm-abdata ul li {
  color: #666;
}
.ny-about1 .hm-abdata ul li .note {
  color: #333;
}
.ny-about1 .hm-abdata ul li .process-note {
  color: #888;
}

/* Showcase */
.showcase-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  margin-top: 10px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.showcase-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
}
.showcase-grid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.showcase-grid figure:hover img {
  transform: scale(1.06);
}
.showcase-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.home-showcase img {
  height: 180px;
}

/* News tabs buttons */
.hm-news-tab .hd ul li button {
  width: 138px;
  padding: 18px 0;
  text-align: center;
  display: inline-block;
  color: #818181;
  position: relative;
  z-index: 33;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 14px;
}
.hm-news-tab .hd ul li button:hover,
.hm-news-tab .hd ul li.on button {
  color: #333;
}

/* Latest articles (homepage) */
.latest-articles {
  background: #f5f5f5;
}
.latest-title .en {
  color: #181818;
}
.latest-title .cn {
  color: #333;
}
.latest-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.latest-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.latest-card h3 {
  margin: 14px 0 12px;
  font-size: 18px;
  line-height: 1.6;
}
.latest-card h3 a {
  color: #222;
}
.latest-card h3 a:hover {
  color: #a60000;
}
.latest-card p {
  color: #777;
  font-size: 14px;
  line-height: 1.9;
  min-height: 78px;
}
.latest-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}
.latest-meta span {
  color: #a60000;
}
.latest-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #a60000;
}
.latest-more {
  text-align: center;
  margin-top: 30px;
}
.latest-more a {
  color: #333;
  font-size: 15px;
}
.articles-empty {
  text-align: center;
  padding: 56px 20px;
  color: #999;
}
.articles-empty p {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}
.articles-empty a {
  color: #a60000;
  font-size: 14px;
}

/* Article center */
.articles-warp {
  min-height: 50vh;
}
.articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 24px;
}
.article-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-filters button {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}
.article-filters button.on,
.article-filters button:hover {
  background: #a60000;
  border-color: #a60000;
  color: #fff;
}
.article-count {
  color: #999;
  font-size: 13px;
}
.article-page-list {
  display: grid;
  gap: 16px;
}
.article-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 28px 32px;
  transition: box-shadow 0.2s ease;
}
.article-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.article-meta {
  display: flex;
  gap: 12px;
  color: #999;
  font-size: 12px;
}
.article-meta span {
  color: #a60000;
}
.article-card h2 {
  font-size: 20px;
  margin: 10px 0;
}
.article-card h2 a {
  color: #222;
}
.article-card h2 a:hover {
  color: #a60000;
}
.article-card p {
  color: #777;
  font-size: 14px;
  line-height: 1.9;
}
.article-read {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #a60000;
}
.article-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.article-pagination button {
  border: 1px solid #eee;
  background: #fff;
  padding: 8px 22px;
  border-radius: 30px;
  color: #555;
  cursor: pointer;
}
.article-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.article-pagination span {
  font-size: 13px;
  color: #888;
}

/* About */
.about-company-name {
  text-indent: 0;
  font-size: 20px;
  color: #333;
  margin-bottom: 16px;
}
.process-note {
  color: #888;
}
.showcase-grid .process-note {
  color: inherit;
}

/* Contact */
.contact-simple {
  background: #fff;
  border-radius: 10px;
  padding: 56px 60px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-simple h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 14px;
}
.contact-intro {
  color: #777;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.contact-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.contact-services a {
  display: block;
  padding: 18px 20px;
  background: #f5f5f5;
  border-radius: 6px;
  color: #333;
}
.contact-services a:hover {
  background: #a60000;
  color: #fff;
}
.contact-services a span {
  display: block;
  font-size: 16px;
}
.contact-services a em {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.55;
}
.contact-note,
.contact-details {
  color: #888;
  font-size: 14px;
  line-height: 1.9;
}

/* Jobs */
.ny-join-list {
  background: #fff;
  padding: 30px;
}
.join-head {
  display: flex;
  padding: 12px 20px;
  background: #f5f5f5;
  color: #333;
  font-weight: bold;
  font-size: 15px;
}
.join-head span,
.job-row span {
  flex: 1;
}
.join-head span:first-child,
.job-row span:first-child {
  flex: 2.2;
}
.join-head span:last-child,
.job-row span:last-child {
  flex: 0.8;
  text-align: right;
}
.job-list {
  margin-top: 6px;
}
.job-row {
  display: flex;
  padding: 22px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 14px;
  align-items: center;
}
.job-row:hover {
  background: #fafafa;
  color: #a60000;
}
.job-row .job-title {
  font-size: 16px;
  color: #222;
}
.job-row .job-more {
  color: #a60000;
  font-size: 13px;
}
.job-detail {
  background: #fff;
  padding: 50px 60px;
  border-radius: 10px;
  max-width: 1000px;
  margin: 0 auto;
}
.job-detail h1 {
  font-size: 30px;
  color: #222;
  margin-bottom: 12px;
}
.job-meta {
  display: flex;
  gap: 26px;
  color: #888;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.job-detail h2 {
  font-size: 18px;
  color: #222;
  margin: 26px 0 10px;
}
.job-detail li {
  color: #666;
  font-size: 14px;
  line-height: 2;
  position: relative;
  padding-left: 16px;
}
.job-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a60000;
}
.job-back {
  display: inline-block;
  margin-top: 30px;
  color: #a60000;
  font-size: 14px;
}

/* Footer refinements */
footer .foot-brand {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}
footer .foot-slogan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
  max-width: 380px;
  margin-left: auto;
}
footer .foot-contact {
  margin-top: 14px;
}
footer .foot-contant .addr {
  font-size: 13px;
}
.foot-bar ul li a img {
  display: inline-block;
  margin: 0 auto 2px;
  width: 18px;
}

/* Article detail lead */
.article-lead {
  font-size: 17px;
  color: #444;
  background: #f7f7f7;
  border-left: 3px solid #a60000;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-indent: 0;
}

@media (max-width: 1280px) {
  header .menu nav > ul > li {
    padding: 0 16px;
  }
}

@media (max-width: 1024px) {
  .logo-text span {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .logo-text em {
    display: none;
  }
  header .logo {
    max-width: 40%;
  }
  .hero-banner {
    height: 62vh;
    min-height: 430px;
  }
  .hero-banner .ban-txt .tit {
    font-size: 26px;
    margin: 10px 0;
  }
  .hero-banner .ban-txt .note {
    font-size: 13px;
  }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }
  .hero-dots {
    bottom: 22px;
  }
  .hero-dots button {
    width: 24px;
  }
  .hm-news-tab .hd ul li button {
    width: 80px;
    font-size: 12px;
    padding: 10px 0;
  }
  .hm-news-tab .hd .move {
    width: 80px;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .showcase-grid img,
  .home-showcase img {
    height: 130px;
  }
  .latest-list {
    grid-template-columns: 1fr;
  }
  .latest-card p {
    min-height: 0;
  }
  .contact-simple,
  .job-detail {
    padding: 24px 20px;
  }
  .contact-services {
    grid-template-columns: 1fr 1fr;
  }
  .contact-services a {
    padding: 14px;
  }
  .join-head {
    font-size: 12px;
    padding: 10px;
  }
  .join-head span:nth-child(2),
  .join-head span:nth-child(3),
  .job-row span:nth-child(2),
  .job-row span:nth-child(3) {
    display: none;
  }
  .job-row {
    padding: 16px 12px;
  }
  .job-detail h1 {
    font-size: 20px;
  }
  .job-meta {
    flex-direction: column;
    gap: 6px;
  }
  .category-lead {
    text-align: left;
    font-size: 13px;
  }
  .articles-toolbar {
    padding: 14px;
  }
  .article-card {
    padding: 20px;
  }
  .article-card h2 {
    font-size: 16px;
  }
  .article-lead {
    font-size: 14px;
  }
  footer .foot-slogan {
    margin: 12px auto 0;
    text-align: center;
  }
  footer .foot-brand {
    font-size: 20px;
  }
}
