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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #FFFCF3;
  color: #333;
  overflow-x: hidden;
  background-image: url('../img/mlgipcc4O7FbyG_img_uploaded-asset-1770724678972-0.png');
  background-repeat: repeat-x;
  background-position: top;
  background-attachment: scroll;
}

.page {
  width: 100%;
  /*max-width: 1440px;*/
  margin: 0 auto;
  background-color: transparent;
  position: relative;
}

.page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('../img/mlgipcc4O7FbyG_img_uploaded-asset-1770724678972-0.png');
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto;
  pointer-events: none;
  z-index: 0;
}

.page > * {
  position: relative;
  z-index: 1;
}

/* 头部・导航 100%；首页 banner 100%；其余（导航以下）80% 居中 */
.page > .header {
  width: 100%;
}

.page > .hero-carousel {
  width: 100%;
}

/* Footer 也保持 100% 宽度 */
.page > .footer {
  width: 100%;
}

.page > *:not(.header):not(.hero-carousel):not(.footer) {
  width: 80%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.header {
  background-color: #F6F6F6;
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  gap: 30px;
}

.logo {
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.logo-n {
  color: #AF936E;
}

.logo-text {
  color: #000;
}

.search-bar {
  flex: 1;
  max-width: 611px;
  display: flex;
  height: 35px;
}

.search-input {
  flex: 1;
  border: 1px solid #C5C5C5;
  border-radius: 10px 0 0 10px;
  padding: 0 15px;
  font-size: 14px;
  outline: none;
}

.search-button {
  width: 64px;
  background: linear-gradient(180deg, #707070 0%, #414141 100%);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-cart {
  width: 33px;
  height: 33px;
  background: none;
  border: 1px solid #353535;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #353535;
}

.btn-secondary,
.btn-primary {
  height: 33px;
  padding: 0 30px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary {
  background: linear-gradient(180deg, #D7BF9E 0%, #AF936E 100%);
  border-color: #8B7A6C;
  color: #FFF;
}

.btn-primary {
  background: linear-gradient(180deg, #6D6D6D 0%, #454545 100%);
  border-color: #353535;
  color: #FFF;
}

.nav-bar {
  background-color: #AE926D;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37px;
  padding: 11px 20px;
}

.nav-link {
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-divider {
  color: #FFF;
  font-size: 14px;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background-color: #AF936D;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 100001;
  transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
  background-color: #9a7f5d;
}

.hamburger-menu span {
  width: 100%;
  height: 2px;
  background-color: #FFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 277px;
  margin-top: 36px;
  overflow: hidden;
  z-index: 1;
}

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

.carousel-track {
  display: flex;
  gap: 16px;
  height: 218px;
  margin-top: 6px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.carousel-slide {
  position: relative;
  min-width: 423px;
  height: 218px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.carousel-slide:hover {
  transform: scale(1.02);
}

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

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(270deg, rgba(167, 143, 133, 0) 47%, rgba(161, 141, 131, 1) 100%);
  z-index: 2;
}

.carousel-overlay-gradient {
  background: linear-gradient(270deg, rgba(167, 143, 133, 0) 47%, rgba(161, 141, 131, 1) 100%);
}

.carousel-overlay-blue {
  background: linear-gradient(180deg, rgba(116, 183, 219, 0) 0%, rgba(115, 179, 215, 1) 100%);
}

.carousel-overlay h2 {
  font-size: 20px;
  font-weight: 700;
  color: #FFF;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.75);
  padding: 0 20px;
}

.carousel-slide-active {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 85px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #FFF;
  background: linear-gradient(0deg, rgba(69, 69, 69, 1) 0%, rgba(109, 109, 109, 1) 100%);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: linear-gradient(0deg, rgba(89, 89, 89, 1) 0%, rgba(129, 129, 129, 1) 100%);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-arrow {
  width: 14.67px;
  height: 14.67px;
  border-top: 2.67px solid #FFF;
  border-right: 2.67px solid #FFF;
}

.carousel-arrow-left {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.carousel-arrow-right {
  transform: rotate(45deg);
  margin-right: 3px;
}

.carousel-dots {
  position: absolute;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CCC;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background-color: #999;
  transform: scale(1.2);
}

.carousel-dot-active {
  width: 29px;
  border-radius: 40px;
  background-color: #8B7A6C;
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 60px 0 40px;
}

.section-title-box {
  width: 241px;
  height: 60px;
  background-image: url('../img/mlgipcc4O7FbyG_img_11695634-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Categories */
.categories {
  padding: 0 60px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.category-card {
  position: relative;
  height: 216px;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card-oem {
  background-color: #D7BF9E;
}

.category-card-ip {
  background-color: #C7BAAD;
}

.category-overlay {
  position: absolute;
  inset: 18px 20px;
  border: 5px dashed #FFF;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-overlay h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #000;
  text-align: center;
}

/* Products */
.products {
  padding: 0 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  cursor: pointer;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #CCC;
  border-radius: 10px;
}

.badge-reserve {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #FFF;
  border: 1px solid #AB7C53;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 10px;
  color: #AB7C53;
}

.product-title {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-price {
  font-size: 12px;
  font-weight: 500;
  color: #8B7A6C;
}

/* News */
.news {
  padding: 0 60px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.news-card {
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
  display: block;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  position: relative;
  width: 100%;
  height: 202px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #CCC;
  border-radius: 10px;
}

.badge-new {
  position: absolute;
  top: -39px;
  left: -46px;
  width: 98px;
  height: 84px;
  background-color: #DC4D4D;
  transform: rotate(-45deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 60px;
  margin-bottom: 60px;
}

.info-card {
  position: relative;
  height: 114px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.info-overlay h3 {
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
}

.info-overlay svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: #AF936D;
  padding: 60px 60px 40px;
  color: #FFF;
  margin-top: 105px;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 254px;
  height: 90px;
  object-fit: contain;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.footer-company {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-nav span {
  color: #FFF;
  font-size: 14px;
}

.footer-contact {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #CCC;
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-copyright {
  font-size: 12px;
  color: #CCC;
  text-align: center;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-top {
    padding: 20px 40px;
  }
  
  .categories,
  .products,
  .news,
  .info-cards,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .carousel-prev {
    left: 20px;
  }
  
  .carousel-next {
    right: 20px;
  }
}

@media (max-width: 992px) {
  .header-top {
    flex-wrap: wrap;
    padding: 15px 30px;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  
  .nav-bar {
    gap: 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories,
  .products,
  .news,
  .info-cards,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .carousel-prev {
    left: 15px;
  }
  
  .carousel-next {
    right: 15px;
  }
  
  .carousel-slide {
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 15px 20px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .header-actions {
    gap: 10px;
  }
  
  .btn-secondary,
  .btn-primary {
    padding: 0 20px;
    font-size: 12px;
  }
  
  .nav-bar {
    gap: 15px;
    font-size: 11px;
  }
  
  .hero-carousel {
    height: 240px;
  }
  
  .carousel-track {
    height: 180px;
  }
  
  .carousel-slide {
    min-width: 320px;
    height: 180px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    top: 70px;
  }
  
  .carousel-prev {
    left: 15px;
  }
  
  .carousel-next {
    right: 15px;
  }
  
  .carousel-overlay h2 {
    font-size: 16px;
  }
  
  .category-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .categories,
  .products,
  .news,
  .info-cards,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .section-header {
    margin: 40px 0 30px;
  }
  
  .section-title-box {
    width: 200px;
    height: 50px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .nav-bar {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    background-color: #AE926D;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    gap: 0;
    z-index: 99999;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .nav-bar.active {
    max-height: 500px;
    padding: 20px 30px;
  }
  
  .nav-bar .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    text-align: center;
  }
  
  .nav-bar .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-bar .nav-divider {
    display: none;
  }
  
  .header {
    position: relative;
    z-index: 100000;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 10px 15px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .btn-cart {
    width: 28px;
    height: 28px;
  }
  
  .btn-secondary,
  .btn-primary {
    padding: 0 15px;
    font-size: 11px;
    height: 28px;
  }
  
  .hero-carousel {
    height: 220px;
    margin-top: 20px;
  }
  
  .carousel-track {
    height: 160px;
  }
  
  .carousel-slide {
    min-width: 280px;
    height: 160px;
  }
  
  .carousel-overlay h2 {
    font-size: 14px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    top: 60px;
  }
  
  .carousel-arrow {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .categories,
  .products,
  .news,
  .info-cards,
  .footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .section-header {
    margin: 30px 0 20px;
  }
  
  .section-title-box {
    width: 180px;
    height: 45px;
  }
  
  .section-header h2 {
    font-size: 20px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-nav span {
    display: none;
  }
}
