/* ============================================================
   嘉兴海浡新材料科技有限公司 - 独立站样式
   1:1 复刻自 haibo-auto-parts.site.accio.ai
   品牌色: #FF2900  |  深蓝: #0B1220 / #12203B  |  暗色块: #0F172A
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #fff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

img, svg {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

img {
  height: auto;
}

:root {
  --brand-red: #FF2900;
  --brand-red-rgb: 255, 41, 0;
  --navy-dark: #0B1220;
  --navy-mid: #12203B;
  --section-dark: #0F172A;
}

/* ---------- 工具类 ---------- */
.w-full { width: 100%; }
.h-auto { height: auto; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.uppercase { text-transform: uppercase; }
.select-none { -webkit-user-select: none; user-select: none; }
.pointer-events-none { pointer-events: none; }
.object-contain { object-fit: contain; }
.fill-white { fill: #fff; }
.bg-white { background-color: #fff; }

.container-1210 {
  max-width: 1210px;
  margin-left: auto;
  margin-right: auto;
}
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-20 { padding-left: 20px; padding-right: 20px; }

/* ---------- 顶部头部 ---------- */
.site-header {
  width: 100%;
  background-image: linear-gradient(to right, #0B1220, #12203B, #0B1220);
  position: relative;
  overflow: hidden;
}
.site-header__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, #fff 0px, #fff 1px, transparent 1px, transparent 26px);
}
.site-header__inner {
  max-width: 1210px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header__logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-header__name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.025em;
  line-height: 1.25;
}
.site-header__en {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 5px;
}
.site-header__info {
  display: none;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.site-header__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header__info-item .icon {
  width: 16px;
  height: 16px;
  color: #FF2900;
  flex-shrink: 0;
}
.site-header__info-item .label {
  font-weight: 500;
  letter-spacing: 0.025em;
}
.site-header__divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.15);
}
.site-header__bar {
  height: 3px;
  background-image: linear-gradient(to right, #FF2900, #f2b545, #FF2900);
}

@media (min-width: 768px) {
  .site-header__info { display: flex; }
  .site-header__name { font-size: 27px; }
  .site-header__en { font-size: 12px; }
}

/* ---------- 通栏 Banner ---------- */
.banner-row {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #fff;
}
.banner-row__inner {
  position: relative;
  width: 1210px;
  max-width: 100%;
}
.banner-row__inner.strip {
  height: 145px;
  overflow: hidden;
}
.banner-row img {
  width: 100%;
  height: auto;
  display: block;
}
.banner-row__fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 145px;
  bottom: 0;
  background-color: #f8f8f8;
}

/* ---------- 产品分类 ---------- */
.section-categories {
  width: 100%;
  background-color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.section-categories__deco {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 110px;
  font-weight: 700;
  color: #f2f2f2;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.section-categories__title {
  position: relative;
  z-index: 10;
  font-size: 54px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.05em;
  margin-bottom: 25px;
}
.section-categories__arrow {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}
.section-categories__arrow .circle {
  width: 32px;
  height: 32px;
  background-color: #FF2900;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.section-categories__arrow svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.section-categories__grid {
  max-width: 1210px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0 10px;
  position: relative;
  z-index: 10;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-card__img {
  width: 100%;
  height: 220px;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.15s ease;
}
.category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .category-card__img {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.category-card:hover .category-card__img img {
  transform: scale(1.05);
}
.category-card__bar {
  width: 100%;
  margin-top: 18px;
  height: 58px;
  background-color: #FF2900;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 22px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.category-card__bar .cta {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 4px 15px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- 联系我们 ---------- */
.section-contact {
  width: 100%;
  background-color: #0F172A;
  padding: 70px 0;
}
.section-contact__head {
  text-align: center;
  margin-bottom: 45px;
}
.section-contact__title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.section-contact__line {
  width: 60px;
  height: 4px;
  background-color: #FF2900;
  border-radius: 9999px;
  margin: 0 auto;
}
.section-contact__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}
.contact-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.15s ease;
}
.contact-card:hover {
  border-color: #FF2900;
}
.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background-color: rgba(255, 41, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-card__icon svg {
  width: 24px;
  height: 24px;
  color: #FF2900;
}
.contact-card__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}
.contact-card__value {
  font-size: 17px;
  color: #fff;
  font-weight: 600;
}
.section-contact__address {
  margin-top: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}
.section-contact__address svg {
  width: 20px;
  height: 20px;
  color: #FF2900;
  flex-shrink: 0;
}
.section-contact__address span {
  font-size: 15px;
}

@media (min-width: 768px) {
  .section-contact__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  width: 100%;
  background-color: #F5F5F5;
  padding: 30px 0;
  border-top: 1px solid #E6E6E6;
  text-align: center;
}
.site-footer p {
  font-size: 12px;
  color: #999;
}

/* ============================================================
   二级页面：产品分类页
   ============================================================ */
.page-category {
  min-height: 100vh;
  background-color: #fff;
  font-family: Tahoma, Arial, sans-serif;
}

/* 面包屑 */
.crumb-bar {
  width: 100%;
  background-color: #f8f8f8;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}
.crumb-bar__inner {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.crumb-bar__path {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb-bar__home { color: #666; }
.crumb-bar__sep { color: #999; }
.crumb-bar__current { color: #333; font-weight: 500; }
.crumb-bar__back {
  color: #FF2900;
  font-weight: 500;
}

/* 分类主体 */
.category-main {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 10px 100px;
}
.category-main__title {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.category-main__line {
  width: 80px;
  height: 5px;
  background-color: #FF2900;
  border-radius: 9999px;
  margin-bottom: 60px;
}

/* 产品分组 */
.product-group { margin-bottom: 80px; }
.product-group:last-child { margin-bottom: 0; }
.product-group__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 15px;
}
.product-group__name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}
.product-group__count {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

/* 产品卡片 */
.product-card {
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
  transition: all 0.15s ease;
}
.product-card:hover {
  border-color: #FF2900;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__body {
  margin-top: 10px;
}
.product-card__title {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  height: 36px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-card__meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #999;
}
.product-card__meta .factory {
  white-space: nowrap;
}
.product-card__detail {
  color: #FF2900;
  border: 1px solid #FF2900;
  padding: 0.5px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* 空状态 */
.category-empty {
  padding: 100px 0;
  text-align: center;
  color: #999;
  background-color: #fafafa;
  border-radius: 20px;
}

/* ---------- 移动端适配（与原站一致：分类 4 列 / 产品 5 列保持，窄屏下折中） ---------- */
@media (max-width: 1024px) {
  .section-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-categories__deco { font-size: 60px; }
  .section-categories__title { font-size: 34px; }
  .category-card__bar { font-size: 17px; padding: 0 14px; }
  .site-header__inner { padding: 16px 14px; }
  .site-header__logo { width: 48px; height: 48px; }
  .site-header__name { font-size: 19px; }
  .site-header__en { font-size: 10px; letter-spacing: 0.14em; }
}
