:root {
  --blue: #1557a7;
  --navy: #102b4e;
  --ink: #182332;
  --muted: #607087;
  --line: #dce5f0;
  --pale: #f5f9fd;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--white);
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* 顶部栏 */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.lang-select {
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
}

.lang-select option {
  color: var(--ink);
}

/* 导航栏 */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.nav-list a {
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--blue);
}

/* 首页 Hero */
.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
  background: #183e70;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.55s ease, visibility 0.55s;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

/*
 * 客户要求：完整展示原始轮播图效果。
 * 原先 opacity: 0.45 会给图片增加明显的朦胧/暗色蒙层，这里恢复为 1。
 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* =========================================================
   轮播图多 Slide 叠加文字专属样式调整
   ========================================================= */

/* --- 第一张 (Slide 1: 深色/标准背景 - 亮色文本) --- */
/* =========================================================
   第一张 Slide 还原参考图效果
   ========================================================= */

/* 1. 调整第一张 Slide 的布局容器：改为列排版，方便定位按钮 */
.hero-slide-1 .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;       /* 稍微拓宽容器宽度，确保标题两行放得下 */
  padding: 60px 0 60px;   /* 上下内边距 */
  margin-left: 5%;        /* 整体向左偏移微调（可按需要改 40px 或 5%） */
}

/* 2. 小标题 (Eyebrow) */
.hero-slide-1 .eyebrow {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* 3. 主标题 (H1) */
.hero-slide-1 .hero h1 {
  color: #ffffff;
  font-size: 42px;        /* 放大字号 */
  font-weight: 800;       /* 增加字重 */
  line-height: 1.18;      /* 紧凑的行高 */
  letter-spacing: -0.2px;
}

/* 4. 描述文字 (Description) */
.hero-slide-1 .hero-description {
  max-width: 540px;
  margin: 28px 0 40px;    /* 拉开与标题和下方按钮的间距 */
  color: #d2e4f7;
  font-size: 18px;
  line-height: 1.6;
}

/* 5. 按钮样式与位置 (Explore Products →) */
.hero-slide-1 .primary-btn {
 
  margin-left: 0 !important;  /* 如果你想让按钮也靠左，就用 0 */
  /* margin-left: 280px;      往右下方偏移，契合参考图中按钮的位置 */
  padding: 0 24px;
  min-height: 48px;
  background: #0075ff;    /* 明亮的蓝色填充 */
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-1 .primary-btn:hover {
  background: #005bc5;
  transform: translateY(-2px);
}

/* 移动端适配：屏幕变小时取消按钮的强制右移 */
@media (max-width: 850px) {
  .hero-slide-1 .hero-content {
    margin-left: 0;
  }
  .hero-slide-1 .primary-btn {
    margin-left: 0;
  }
}


/* --- 第二张 (Slide 2: 浅色/白色背景 - 深色文字) --- */
/* --- 第二张 (Slide 2: 浅色/白色背景 - 深色文字) --- */

/* 1. 核心大招：覆盖父容器的 padding，强制让内容贴紧屏幕左侧 */
.hero-slide-2 {
  padding-left: 150px !important;  /* 干掉左侧留白 */
  padding-right: 0 !important; /* 干掉右侧留白，防止影响右边布局 */
}

/* 2. 内容容器：取消所有 margin 偏移，紧贴左侧 */
.hero-slide-2 .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 950px !important;
  padding: 50px 0 60px;
  margin-left: 0 !important;  /* 必须为 0，取消之前的 3% */
  margin-right: auto !important; /* 确保它占据左侧，把右侧空间留出来 */
}

/* 3. 小标题 */
.hero-slide-2 .eyebrow {
  margin-bottom: 22px;
  color: #000000 !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* 4. 主标题 */
.hero-slide-2 h1,
.hero-slide-2 .hero h1 {
  color: #000000 !important;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* 5. 描述文字 */
.hero-slide-2 .hero-description {
  max-width: 520px;
  margin: 24px 0 36px;
  color: #111827 !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
}

/* 6. 按钮 (如果按钮也要跟着靠左，去掉 margin-left) */
.hero-slide-2 .primary-btn {
  margin-left: 0 !important;  /* 如果你想让按钮也靠左，就用 0 */
 /*   margin-left: 280px;  如果你想保留按钮右移，就恢复这行，注释掉上面的 */
  padding: 0 24px;
  min-height: 46px;
  background: #0075ff;
  border: 1px solid #ffffff;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-slide-2 .primary-btn:hover {
  background: #005bc5;
  transform: translateY(-2px);
}

/* 移动端适配 (850px以下) */
@media (max-width: 850px) {
  .hero-slide-2 {
    padding-left: 24px !important; /* 移动端留一点边距，别贴死 */
    padding-right: 24px !important;
  }
  .hero-slide-2 .hero-content {
    margin-left: 0 !important;
  }
  .hero-slide-2 .primary-btn {
    margin-left: 0 !important;
  }
}

/* --- 第三张 (Slide 3: 高对比/暗色图 - 强化沉浸感) --- */
/* =========================================================
   第三张 Slide 还原参考图效果（靠左排版 + 白字亮蓝按钮）
   ========================================================= */

/* 1. 容器排版：整体靠左对齐 */
.hero-slide-3 .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px;       /* 稍微放宽以容纳长标题 */
  padding: 60px 0 60px;
  margin-left: 5%;        /* 保持与第一、第二张一致的左侧间距 */
}

/* 2. 小标题 (Eyebrow) */
.hero-slide-3 .eyebrow {
  margin-bottom: 24px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* 3. 主标题 (H1) */
.hero-slide-3 h1,
.hero-slide-3 .hero h1 {
  color: #ffffff !important;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.2px;
  /* 增加轻微的文字阴影，防止在稍亮背景处看不清 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
}

/* 4. 描述文字 (Description) */
.hero-slide-3 .hero-description {
  max-width: 580px;
  margin: 24px 0 40px;
  color: #e6f0fb !important;
  font-size: 16px;
  line-height: 1.6;
}

/* 5. 按钮位置与样式 (Contact Us →) */
.hero-slide-3 .primary-btn {
  margin-left: 0 !important;  /* 如果你想让按钮也靠左，就用 0 */
 /* margin-left: 280px;      往右下方偏移 */
  padding: 0 24px;
  min-height: 48px;
  background: #0075ff;    /* 明亮的蓝色填充 */
  border: 1px solid #ffffff;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-3 .primary-btn:hover {
  background: #005bc5;
  transform: translateY(-2px);
}

/* 6. 移动端适配 */
@media (max-width: 850px) {
  .hero-slide-3 .hero-content {
    margin-left: 0;
  }
  .hero-slide-3 .primary-btn {
    margin-left: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 50px 0 80px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 26px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 9px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  transition: 0.2s;
}

.hero-dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: #fff;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(7, 31, 62, 0.32);
  font-size: 27px;
  line-height: 1;
  pointer-events: auto;
  transition: 0.2s;
}

.hero-slide-2 .hero-arrow {
  color: var(--navy);
  border-color: rgba(16, 43, 78, 0.45);
  background: rgba(255, 255, 255, 0.35);
}

.hero-arrow:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  color: #b9dcff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero-description {
  max-width: 500px;
  margin: 16px 0 24px;
  color: #e6f0fb;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* 新增：让文字在按钮内居中 */
  
  /* 核心修改：设置固定宽度或最小宽度 */
  min-width: 200px;        /* 你可以根据设计稿调整这个数值，比如 220px */
  /* width: 200px; */      /* 如果希望强制固定宽度，用 width 代替 min-width */
  
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #fff;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  transition: 0.2s;
}

.primary-btn:hover {
  background: #0d478e;
  transform: translateY(-1px);
}

/* 通用区块 */
.section {
  padding: 30px 0 82px;
}

.section-soft {
  background: var(--pale);
}

.section-head {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
  letter-spacing: -0.6px;
}

.section-head > p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* 产品分类 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: 0 12px 28px rgba(18, 59, 111, 0.1);
  transform: translateY(-4px);
}

.category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid #c7dcf6;
  color: var(--blue);
  background: #edf5ff;
  font-size: 22px;
}

.category-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 热销产品 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(18, 59, 111, 0.1);
  transform: translateY(-3px);
}

.product-card img {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.product-copy {
  padding: 17px;
}

.product-copy p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.45;
}

/* 首页 Solutions + 视频 */
.solutions {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 400px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.solutions-copy {
  padding: 40px 50px;
  box-sizing: border-box;
}

.solutions-copy .section-kicker {
  color: #9fceff;
}

.solutions-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
}

.solutions-copy > p {
  color: #d4e2f2;
  line-height: 1.75;
}

.solutions-copy ul {
  padding: 0;
  margin: 28px 0 24px;
  list-style: none;
}

.solutions-copy li {
  margin: 13px 0;
  color: #fff;
  font-weight: 600;
}

.solutions-copy li::before {
  padding-right: 10px;
  content: "✓";
  color: #8bc0ff;
}

.solutions-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 700;
  transition: 0.2s;
}

.solutions-link:hover {
  color: var(--navy);
  background: #fff;
}

.video-box {
  margin-top:30px;
  height: 400px;
  min-height: 0;
  overflow: hidden;
  background: #061c37;
}

.video-box video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* 工厂展示图片 */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.facility-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.facility-card img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* 新闻 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.news-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-copy {
  padding: 19px;
}

.news-copy time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.news-copy h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.5;
}

/* 页脚 */
.footer {
  color: #d8e3f0;
  background: #0c203b;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1fr 1.1fr;
  gap: 38px;
  padding: 60px 0 44px;
}

.footer .brand {
  color: #fff;
}

.footer-about p {
  max-width: 330px;
  margin: 18px 0 0;
  color: #c0cfdf;
  font-size: 14px;
  line-height: 1.75;
}

.social-list {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-list a {
  display: grid;
  min-width: 33px;
  height: 33px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid #58708d;
  font-size: 12px;
  transition: 0.2s;
}

.social-list a:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.footer h3 {
  margin: 5px 0 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer li {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer li a:hover {
  color: #fff;
}

.contact-list li {
  line-height: 1.55;
}

.footer-bottom {
  padding: 19px 0;
  border-top: 1px solid #29435f;
  color: #9eb1c6;
  font-size: 13px;
}

.boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--muted);
}

/* 独立 Contact / Solutions 页面通用样式 */
.inner-page {
  min-height: 100vh;
  background: var(--pale);
}

.inner-page-main {
  padding: 72px 0 90px;
}

.inner-page-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.inner-page-head .section-kicker {
  margin-bottom: 12px;
}

.inner-page-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: 44px;
  line-height: 1.2;
}

.inner-page-head p {
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.inner-page-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 35px rgba(18, 59, 111, 0.06);
}

.inner-page-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.inner-page-nav .nav-inner {
  height: 76px;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-item {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--pale);
}

.contact-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--blue);
}

.solution-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.solution-detail-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
}

.solution-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.solution-contact {
  margin-top: 32px;
  padding: 30px;
  color: #fff;
  background: var(--navy);
}

.solution-contact h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.solution-contact p {
  margin: 0 0 18px;
  color: #d4e2f2;
}

.solution-contact a {
  color: #fff;
  font-weight: 700;
}

.solution-contact a:hover {
  color: #9fceff;
}

.back-link {
  display: inline-flex;
  margin-top: 32px;
  color: var(--blue);
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 850px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding: 16px 0;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    min-height: 440px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .video-box {
    height: 360px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 0;
  }

  .nav-list {
    gap: 12px;
  }

  .hero-content {
    padding: 56px 0 84px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .category-grid,
  .product-grid,
  .news-grid,
  .facility-grid,
  .footer-main,
  .solution-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 240px;
  }

  .solutions-copy {
    padding: 52px 28px;
  }

  .video-box {
    height: 260px;
  }

  .inner-page-main {
    padding: 52px 0 64px;
  }

  .inner-page-head h1 {
    font-size: 34px;
  }

  .contact-card {
    padding: 24px;
  }
}
