:root {
  --ycg-primary: #b42318;
  --ycg-primary-dark: #8f1d14;
  --ycg-text: #111827;
  --ycg-muted: #667085;
  --ycg-border: #e5e7eb;
  --ycg-surface: #ffffff;
  --ycg-surface-soft: #f7f8fa;
  --ycg-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

body {
  color: var(--ycg-text);
  background: var(--ycg-surface);
}

header {
  position: fixed;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.on {
  position: fixed;
  background: rgba(255, 255, 255, 0.9);
}

header .menu nav > ul > li > a {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(4, 10, 20, 0.28);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

header.on .menu nav > ul > li > a {
  color: var(--ycg-text);
  text-shadow: none;
}

header .menu nav > ul > li > a:hover,
header .menu nav > ul > li.on > a {
  color: var(--ycg-primary);
}

header .logo img {
  content: url("/logo.png");
  filter: none;
}

.banner,
.banner .swiper-slide,
.banner .swiper-slide .bg,
.banner .video-bg,
#video-container,
.banner-video {
  height: 72vh;
  min-height: 600px;
  max-height: 760px;
}

.banner .swiper-slide .bg::after,
.banner .video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.08) 0%, rgba(8, 15, 27, 0.04) 42%, rgba(8, 15, 27, 0.3) 100%);
  pointer-events: none;
}

.banner .ban-txt {
  z-index: 2;
  padding: 0 24px;
}

.banner .ban-txt .tit {
  max-width: 1080px;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: clamp(38px, 4.2vw, 66px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 28px rgba(4, 10, 20, 0.38);
}

.banner .ban-txt .note {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 18px rgba(4, 10, 20, 0.48);
}

.banner .bancj {
  z-index: 3;
}

.banner .bancj .swiper-pagination-progressbar {
  background: rgba(255, 255, 255, 0.35);
}

.banner .bancj .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #ffffff;
}

.banner .swiper-pagination-bullet,
.banner .swiper-pagination-bullet-active {
  background: var(--ycg-primary);
}

.hm-case,
.hm-news,
.hm-about,
.serlogo,
.youshi {
  color: var(--ycg-text);
  background-color: var(--ycg-surface);
  background-image: none;
}

.hm-news,
.serlogo,
.youshi {
  background-color: var(--ycg-surface-soft);
}

.hm-title .en {
  color: var(--ycg-primary);
}

.hm-title .cn,
.yous-list ul li a .tit,
.hm-about-main .tit,
.hm-news-tab .bd ul li a .txt .tit {
  color: var(--ycg-text);
}

.yous-list ul li a .note,
.hm-about-main .note,
.hm-news-tab .bd ul li a .txt .note,
.hm-news-tab .bd ul li a .txt .time {
  color: var(--ycg-muted);
}

.hm-case-list li > a,
.yous-list ul li a,
.hm-news-tab .bd ul li a,
.hm-abdata ul,
.serlogo .ticker-row {
  border: 1px solid var(--ycg-border);
  background: var(--ycg-surface);
  box-shadow: var(--ycg-shadow);
}

.hm-case-list li > a,
.yous-list ul li a,
.hm-news-tab .bd ul li a {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-case .am-container,
.yousmain {
  width: min(100% - 48px, 1480px);
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

.hm-case-list {
  margin-top: 44px;
}

.hm-case-list ul,
.yous-list ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 28px);
  margin: 0;
}

.hm-case-list ul::before,
.hm-case-list ul::after,
.yous-list ul::before,
.yous-list ul::after {
  display: none;
}

.hm-case-list ul li,
.yous-list ul li {
  width: auto;
  min-width: 0;
  padding: 0;
  float: none;
}

.hm-case-list li > a {
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
}

.hm-case-list .ycg-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: #eef1f5;
}

.hm-case-list .ycg-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.hm-case-list .ycg-thumb .ycg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 35%, rgba(15, 23, 42, 0.82) 100%);
  pointer-events: none;
}

.hm-case-list .ycg-thumb .ycg-mask::before {
  display: none;
}

.hm-case-list .ycg-thumb .ycg-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 34%;
  align-items: flex-end;
  padding: 5px 5px 24px 24px;
  text-align: left;
  pointer-events: none;
}

.hm-case-list .ycg-caption .tit {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.yous-list {
  margin-top: 48px;
  padding-bottom: 80px;
}

.yous-list ul {
  align-items: stretch;
}

.yous-list ul li a {
  display: flex;
  height: 100%;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 44px);
  text-align: left;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.yous-list ul li a i {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #f2f4f7;
}

.yous-list ul li a i img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: invert(1);
}

.yous-list ul li a .tit {
  margin: 26px 0 16px;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.yous-list ul li a .note {
  height: auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.hm-case-list li > a:hover,
.yous-list ul li a:hover,
.hm-news-tab .bd ul li a:hover {
  transform: translateY(-4px);
  border-color: #d0d5dd;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.hm-case-list a:hover .ycg-thumb img {
  transform: scale(1.015);
}

.hm-news-tab .hd {
  border-color: var(--ycg-border);
}

.hm-news-tab .bd ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  margin: 0;
}

.hm-news-tab .bd ul::before,
.hm-news-tab .bd ul::after {
  display: none;
}

.hm-news-tab .bd ul li {
  width: auto;
  min-width: 0;
  padding: 0;
  float: none;
}

.hm-news-tab .bd ul li a {
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.hm-news-tab .bd ul li a i {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef1f5;
  line-height: 0;
}

.hm-news-tab .bd ul li a i img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hm-news-tab .bd ul li a .txt {
  padding: 22px 24px 24px;
}

.hm-news-tab .hd ul li a {
  color: var(--ycg-muted);
}

.hm-news-tab .hd ul li a:hover,
.hm-news-tab .hd ul li.on a {
  color: var(--ycg-text);
}

.hm-news-tab .hd .move {
  background: var(--ycg-primary);
}

.hm-news-tab .bd ul li a .txt .time {
  border-color: var(--ycg-border);
  opacity: 1;
}

.hm-about .hm-title,
.hm-about-main,
.hm-about-main .tit,
.hm-about-main .note,
.hm-about-main .hm-more {
  text-align: center;
}

.serlogo .hm-title {
  text-align: center;
}

.hm-about-main .note {
  text-indent: 0;
}

.hm-abdata ul li {
  color: var(--ycg-text);
}

.hm-abdata ul {
  position: relative;
  gap: clamp(20px, 4vw, 64px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hm-abdata ul li {
  position: relative;
  flex: 1;
  padding: 28px 12px;
  text-align: center;
}

.hm-abdata ul li + li::before {
  content: "";
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: calc(clamp(20px, 4vw, 64px) / -2);
  width: 1px;
  background: linear-gradient(180deg, transparent, #d0d5dd, transparent);
}

.hm-abdata ul li .tit span {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.hm-abdata ul li .note {
  margin-top: 8px;
  color: var(--ycg-muted);
}

.hm-abdata ul li .tit,
.foot-contant .tel a,
.foot-contant .phone a {
  color: var(--ycg-primary);
}

.hm-more a {
  color: var(--ycg-primary);
}

.hm-more a i {
  background: #fee4e2;
}

.hm-more a i::before,
.hm-more a i::after {
  border-color: var(--ycg-primary);
}

footer {
  background-color: #101828;
  background-image: linear-gradient(135deg, #101828 0%, #1d2939 100%);
}

footer .foot-tit,
footer .foot-tit a,
footer .foot-main .foot-contant {
  color: #ffffff;
}

footer .foot-main .foot-nav ul li p,
footer .foot-main .foot-nav ul li p a,
footer .foot-copyr,
footer .foot-copyr a {
  color: #98a2b3;
}

footer .foot-main .foot-nav ul li p a:hover,
footer .foot-copyr a:hover {
  color: #ffffff;
}

footer .foot-copyr {
  border-color: rgba(255, 255, 255, 0.12);
}

.foot-bar {
  background: #ffffff;
  border-top: 1px solid var(--ycg-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.foot-bar ul li a {
  color: #344054;
}

.foot-bar ul li a img {
  filter: invert(1);
}

@media (max-width: 1024px) {
  .hm-case .am-container,
  .yousmain {
    width: min(100% - 40px, 1480px);
  }

  .hm-case-list ul,
  .yous-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .hm-news-tab .bd ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .case-cate {
    display: flex;
    width: calc(100% - 40px);
    max-width: max-content;
    margin-right: auto;
    margin-left: auto;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .case-cate a {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 14px 22px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .case-cate .move {
    display: none;
  }

  .yous-list ul li a {
    min-height: 330px;
  }

  .menu-bar {
    border-color: #ffffff;
  }

  .menu-bar::before,
  .menu-bar::after {
    background: #ffffff;
  }

  header.on .menu-bar {
    border-color: var(--ycg-text);
  }

  header.on .menu-bar::before,
  header.on .menu-bar::after {
    background: var(--ycg-text);
  }

  header .menu nav .ulnav {
    background: #ffffff;
  }

  header .menu nav .ulnav > li {
    border-color: var(--ycg-border);
  }

  header .menu nav.active > ul > li > a,
  header.on .menu nav > ul > li > a {
    color: var(--ycg-text);
    text-shadow: none;
  }

  header .menu nav .ulnav > li .xm,
  nav .am-close {
    color: var(--ycg-muted);
  }
}

@media (max-width: 640px) {
  .hm-case .am-container,
  .yousmain {
    width: calc(100% - 28px);
  }

  .hm-case-list {
    margin-top: 28px;
  }

  .yous-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hm-case-list ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-news-tab .bd ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-news-tab .bd ul li a .txt {
    position: relative;
    z-index: 2;
    width: 64%;
    margin-left: 36%;
    padding: 20px 18px 18px;
    float: none;
  }

  .hm-case-list .ycg-thumb {
    min-height: 190px;
    aspect-ratio: auto;
    line-height: 0;
  }

  .hm-case-list .ycg-thumb img {
    position: absolute;
    inset: 0 auto 0 0;
    width: 48%;
    height: 100%;
  }

  .hm-case-list .ycg-thumb .ycg-mask {
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.94) 50%, #ffffff 64%);
  }

  .hm-case-list .ycg-thumb img,
  .hm-news-tab .bd ul li a i img {
    vertical-align: top;
  }

  .hm-case-list .ycg-thumb .ycg-caption {
    z-index: 2;
    top: 0;
    left: 40%;
    min-height: 46%;
    align-items: center;
    padding: 22px 18px;
  }

  .hm-case-list .ycg-caption .tit {
    color: var(--ycg-text);
    font-size: 14px;
    line-height: 1.4;
    text-shadow: none;
  }

  .hm-news-tab .bd ul li a {
    position: relative;
    min-height: 210px;
    padding: 0;
    margin: 0;
    border: 0;
    background: #ffffff;
  }

  .hm-news-tab .bd ul li a i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 48%;
    height: 100%;
    aspect-ratio: auto;
    float: none;
  }

  .hm-news-tab .bd ul li a i::after {
    content: "";
    position: absolute;
    inset: 0 -1px 0 24%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 92%);
    pointer-events: none;
  }

  .hm-news-tab .bd ul li a .txt .tit,
  .hm-news-tab .bd ul li a .txt .note {
    white-space: normal;
  }

  .hm-news-tab .bd ul li a .txt .tit {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .case-cate {
    width: calc(100% - 28px);
  }

  .case-cate a {
    padding: 12px 18px;
    font-size: 13px;
  }

  .hm-news-tab .bd ul li a .txt .time {
    display: block;
  }

  .yous-list {
    margin-top: 28px;
    padding-bottom: 48px;
  }

  .yous-list ul li a {
    min-height: 0;
    padding: 22px 18px;
  }

  .yous-list ul li a i {
    width: 48px;
    height: 48px;
  }

  .yous-list ul li a i img {
    width: 26px;
    height: 26px;
  }

  .yous-list ul li a .tit {
    margin: 18px 0 10px;
    font-size: 16px;
  }

  .yous-list ul li a .note {
    font-size: 12px;
    line-height: 1.75;
  }

  .hm-abdata ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .hm-abdata ul li {
    padding: 20px 8px;
  }

  .hm-abdata ul li + li::before {
    display: none;
  }

  .hm-abdata ul li:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 24%;
    right: 0;
    bottom: 24%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #d0d5dd, transparent);
  }

  .hm-abdata ul li:nth-child(n + 3) {
    border-top: 1px solid #eef0f3;
  }

  .banner,
  .banner .swiper-slide,
  .banner .swiper-slide .bg,
  .banner .video-bg,
  #video-container,
  .banner-video {
    height: 72vh;
    min-height: 520px;
    max-height: 640px;
  }

  .banner .swiper-slide .bg::after,
  .banner .video-bg::after {
    background: linear-gradient(180deg, rgba(8, 15, 27, 0.08) 0%, rgba(8, 15, 27, 0.04) 45%, rgba(8, 15, 27, 0.42) 100%);
  }

  .banner .ban-txt .tit {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .banner .ban-txt .note {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.04em;
  }

  .hm-news-tab .bd ul li a {
    border-color: var(--ycg-border);
  }
}
