* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  width: 100vw;
  margin: 0;
  text-align: left;
  overflow-x: hidden;
  font-family: '宋体', 'Microsoft YaHei', sans-serif;
}

a {
  color: black;
  text-decoration: none;
}

/* ========== 布局容器 ========== */
#base {
  position: absolute;
  z-index: 0;
  width: 100%;
}

/* ========== 轮播区 ========== */
#board {
  position: absolute;
  width: 100vw;
  top: 0;
  left: 0;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
}

.carousel-slider {
  display: flex;
  transition: transform 1s ease-in-out;
}

.carousel-img {
  width: 100vw;
  height: 90vh;
  object-fit: cover;
  flex-shrink: 0;
}

#left, #right {
  width: 3vw;
  height: 3vw;
  position: absolute;
  top: 45vh;
  cursor: pointer;
  z-index: 20;
}
#left {
  left: 2vw;
}
#right {
  left: 95vw;
}
#left img, #right img {
  width: 100%;
  height: auto;
}
#left:hover, #right:hover {
  background-color: #8A8A8A;
  border-radius: 50%;
}

#icon {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1vw;
  z-index: 20;
}
#icon .dot {
  width: 1vw;
  height: 1vw;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}
#icon .dot.active {
  background-color: #8A8A8A;
}

/* ========== 顶栏 ========== */
.topbanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: none;
}
.topbanner.scrolled,
.topbanner:not(.scrolled):hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.topbanner .fragment0 a,
.topbanner .name0,
.topbanner .logo img {
  transition: color 0.2s, filter 0.2s;
}
.topbanner:not(.scrolled) .fragment0 a,
.topbanner:not(.scrolled) .name0 {
  color: white;
}
.topbanner.scrolled .fragment0 a,
.topbanner.scrolled .name0,
.topbanner:not(.scrolled):hover .fragment0 a,
.topbanner:not(.scrolled):hover .name0 {
  color: black;
}
.topbanner.scrolled .logo img,
.topbanner:not(.scrolled):hover .logo img {
  filter: none;
}

.tbstate0 {
  position: relative;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
}
.logo {
  position: absolute;
  left: 3vw;
  top: 50%;
  transform: translateY(-50%);
  width: 4vw;
  height: auto;
}
.img_logo {
  width: 100%;
  height: auto;
}
.tbstate0 > .name0 {
  position: absolute;
  left: 10vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-links {
    display: flex;
    gap: 6.5rem;
    margin-left: 54rem;
}
.nav-links a {
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: orange;
    transition: width 0.3s;
}
.nav-links a:hover {
    color: orange;
}
.nav-links a:hover::after {
    width: 100%;
}
.topbanner:not(.scrolled) .nav-links a,
.topbanner:not(.scrolled) .name0 {
    color: white;
}
.topbanner.scrolled .nav-links a,
.topbanner.scrolled .name0,
.topbanner:not(.scrolled):hover .nav-links a,
.topbanner:not(.scrolled):hover .name0 {
    color: black;
}
.hamburger{
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.5rem;
    cursor: pointer;
    position:absolute;
    right:3rem;
}
.hamburger span {
    width: 100%;
    height: 0.2rem;
    background: black !important;
    border-radius: 2px;
    transition: 0.2s;
}
.topbanner:not(.scrolled) .hamburger span {
    background: black;
}
.topbanner.scrolled .hamburger span,
.topbanner:not(.scrolled):hover .hamburger span {
    background: black;
}
/* ========== 产品展示区 ========== */
#product {
  left: 0;
  position: relative;
  top: 90vh;
  width: 100vw;
  background-color: #090F1C;
  padding-bottom: 80px;
}
 #background{
    position:relative;
    width:100%;
    height:26rem;
    background:#090f1c;
    overflow:hidden;
    display: flex;
    align-items:center;
    justify-content:center;
  }
#pcb{
  position:relative;
  color:#fff;
  font-weight:500;
  text-align: center;
}
#pcb br{font-size:2.5rem;}
#pcb span{
  font-size:1rem;
  opacity:0.7;
  margin-top:0.75rem;
  display:block;
}
#product h1 {
  text-align: center;
  color: #fff;
  padding: 40px 0;
  margin: 0;
  font-size: 2rem;
}
.product-wrapper ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  gap: 0;
  padding-left: 10vw;
}
.product-wrapper ul li {
  position: relative;
  height: 60vh;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 20vw;
}
.product-wrapper ul li:first-child {
  width: 25vw;
}
.product-wrapper ul:hover li {
  width: 20vw;
}
.product-wrapper ul li:hover {
  width: 25vw;
}
.product-wrapper ul li img.i {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}
.text-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
}
.text-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  font-weight: bold;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.btn::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.btn:hover {
  border-color: #fff;
}
.btn:hover::after {
  transform: translateX(3px);
}
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slide-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-item {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    height: 50vh;
    min-height: 350px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    z-index: 2;
}

.carousel-text h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}
/* ========== 新闻资讯区 ========== */
#news {
  position: relative;
  top: 90vh;
  left: 0;
  z-index: -100;
  background: black;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
  width: 90vw;
  margin: 13vh auto;
  position: relative;
  z-index: 1;
}
.news-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.news-card:hover {
  transform: translateY(-5px);
}
.news-card img {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  display: block;
}
.news-card a {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.news-card a:hover {
  color: #155D57;
}
#information {
  margin-top: 5vh;
  margin-bottom: 5vh;
}
.header {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background-color: #000;
  position: absolute;
  z-index: -1;
}
#news h1{
  justify-center:center;
  display:flex;
  margin-left:45%;
}
/* ========== 关于我们 ========== */
#about {
  position: absolute;
  top: 298vh;
  width: 100vw;
  z-index: -100;
}
#timeline {
  display: flex;
  background: url("/static/resource/IMG_5686.JPG") center/cover;
  width: 100%;
}
#timeline:hover .tl-item {
  width: 23.3333%;
}
.tl-item {
  transform: translate3d(0, 0, 0);
  position: relative;
  width: 25%;
  height: 80vh;
  min-height: 600px;
  color: #fff;
  overflow: hidden;
  transition: width 0.5s ease;
}
.tl-item:before, .tl-item:after {
  transform: translate3d(0, 0, 0);
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.tl-item:after {
  background: rgba(3, 22, 37, 0.45);
  opacity: 1;
  transition: opacity 0.5s ease;
}
.tl-item:before {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%);
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 0, 0) translateY(50%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-item:hover {
  width: 30% !important;
}
.tl-item:hover:after {
  opacity: 0;
}
.tl-item:hover:before {
  opacity: 1;
  transform: translate3d(0, 0, 0) translateY(0);
  transition: opacity 1s ease, transform 1s ease 0.25s;
}
.tl-item:hover .tl-content {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.75s ease 0.5s;
}
.tl-item:hover .tl-bg {
  filter: grayscale(0);
}
.tl-content {
 transform: translate3d(0, 0, 0) translateY(25px);
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
  width: 80%;
  left: 0;
  right: 0;
  top: 55%;
  opacity: 0;
}
.tl-content h1 {
  font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  color: #1779cf;
  font-size: 1.44rem;
  font-weight: normal;
}
.tl-content p{
  margin-top:3rem;
 }
.tl-year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
}
.tl-year p {
  font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 1.728rem;
  line-height: 0;
}
.tl-bg {
  transform: translate3d(0, 0, 0);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  transition: filter 0.5s ease;
  filter: grayscale(100%);
}

/* ========== 底栏========== */
.footer{
  width: 100%;
  background: #d7d7d7;
  padding: 4rem 5vw;
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size:0.85rem;
  margin-top:100rem;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    height: 2.5rem;
    width: auto;
}
.footer-company {
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-nav a {
    font-size: 1rem;
}
.footer-nav a:hover {
    color: #145E59;
    text-decoration: underline;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}
.footer-copyright {
    font-size: 0.7rem;
    font-family: 'Noto Sans SC', sans-serif;
}
.footer-icp {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
}
.footer-icp img {
    width: 1rem;
    height: 1rem;
}
/* ========== 移动端适配  ========== */
@media(max-width: 768px) {
  html {
    font-size: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .tbstate0 > .name0 {
    font-size: 1.2rem;
    left: 18vw;
  }
  .img_logo {
    width: 2.1rem;
    height:100%;
  }
  /* 轮播图高度调整 */
  .carousel-img {
    height: 17rem;
    padding-top:3rem;
  }
  #product {
    top: 17rem;
  }
  #background{
    height:10rem;
  }
  #product h1 {
    font-size: 1.5rem;
    padding: 20px 0;
  }
  .product-wrapper ul {
    padding-left: 5vw;
  }
  .product-wrapper ul li {
    height: 40vh;
    width: 25vw;
  }
  .product-wrapper ul li:first-child {
    width: 30vw;
  }
  .product-wrapper ul:hover li {
    width: 25vw;
  }
  .product-wrapper ul li:hover {
    width: 30vw;
  }
  #pcb br{
    font-size:5rem;
  }
  .text-box h3 {
    font-size: 0.9rem;
  }
  .btn {
    padding: 5px 12px;
    font-size: 0.7rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 85vw;
  }
  #news {
    top: 32vh;
  }
  #about {
    top: 220vh;
  }
  #timeline {
    flex-direction: column;
  }
  .tl-item {
    width: 100%;
    height: 60vh;
    min-height: 400px;
  }
  #timeline:hover .tl-item {
    width: 100%;
  }
  .tl-item:hover {
    width: 100% !important;
  }
  .tl-content {
    top: 60%;
    opacity: 1;
    transform: translateY(0);
  }
  .tl-item:after {
    opacity: 0.6;
  }
  .tl-bg {
    filter: grayscale(0);
  }
  .topbanner {
    height: 4rem;
    padding: 0 4vw;
    background: white;
  }
  .topbanner:not(.scrolled) .name0,
  .topbanner:not(.scrolled) .hamburger span {
    color: black;
    background: transparent;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    transform: translateY(-120%);
    transition: 0.3s;
    z-index: 999;
    margin: 0;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.2rem;
    color: #333 !important;
  }
  .mobile-product {
    display: none;
}
 .desktop-product {
        display: none;
    }
    .mobile-product {
        display: block;
    }
    .carousel-item {
        height: 45vh;
        min-height: 300px;
    }
    .carousel-text h3 {
        font-size: 1.2rem;
    }
    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    #news h1{
     margin-left:35%;
    }
}
@media(min-width:1024px){
  .mobile-product {
        display: none;
    }
    .desktop-product {
        display: block;
    }
}

@media(max-width:1024px) and (min-width:768px){
    body{
        font-size:18px;
    }
    .mobile-product {
        display: none;
    }
    .desktop-product {
        display: block;
    }
    #about{
        top:358vh;
    }
    .footer{
        margin-top:68rem;
        padding:4rem 4vw;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
     .topbanner {
    height: 4rem;
    padding: 0 4vw;
    background: white;
  }
  .topbanner:not(.scrolled) .name0,
  .topbanner:not(.scrolled) .hamburger span {
    color: black;
    background: transparent;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    transform: translateY(-130%);
    transition: 0.3s;
    z-index: 999;
    margin: 0;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.2rem;
    color: #333 !important;
  }
}