/* ==================================================
   海佳达供应链 HAIJIADA · 印尼黑鱿 H5 样式表
   结构：基础重置 → 首屏 → 通用标题 → 核心优势
        → 产品实拍 → 企业介绍 → 联系咨询 → 动效
   ================================================== */

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #12263A;
  background: #F1F4F7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.en { font-family: "Inter", "Source Han Sans CN", "Helvetica Neue", Arial, sans-serif; }

/* ============ 模块① 首屏 Hero ============ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;               /* 全屏首屏 */
  overflow: hidden;
  background: #081F3B;
  display: flex;                   /* 纵向 flex：文案块才能被压到画面下方 */
  flex-direction: column;
  justify-content: flex-end;       /* 贴底，再由文案块 padding-bottom 抬起 */
}

/* ---------- 首屏进场动画（页面加载时依次上浮） ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.brand-row { animation: heroFade .9s ease both; }
.hero__content > * {
  animation: heroUp .75s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__content > :nth-child(1) { animation-delay: .25s; }   /* 徽章 */
.hero__content > :nth-child(2) { animation-delay: .40s; }   /* 主标题 */
.hero__content > :nth-child(3) { animation-delay: .55s; }   /* 副标题 */
.hero__content > :nth-child(4) { animation-delay: .70s; }   /* 简介 */
.hero__content > :nth-child(5) { animation-delay: .85s; }   /* 标签 */
.hero__content > :nth-child(6) { animation-delay: 1s; }     /* 联系发样按钮 */
.hero__bg {
  position: absolute;
  left: 0; bottom: 0;              /* 背景图底部对齐：渔获堆压住屏幕底部 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}
/* 顶部轻遮罩：随文字块下移加长，保证中间偏下的白字也可读 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6,26,45,.58) 0%,
    rgba(6,26,45,.42) 34%,
    rgba(6,26,45,.24) 56%,
    rgba(6,26,45,.10) 72%,
    rgba(6,26,45,0) 84%);
}
/* 顶部品牌栏：Logo + 公司名 */
.brand-row {
  position: absolute;
  top: 24px;
  left: 0; right: 0;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 品牌 Logo：图标+中英文全称一体的白色 SVG，宽度定高自适应 */
.brand-logo { display: block; width: 152px; height: auto; }

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 24px 17vh;         /* 底部留白再收窄：标题与描述整体再下移 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;       /* 文字块贴向下方，落在画面中下部 */
  gap: 14px;                       /* 文字间距（按设计稿） */
  align-items: center;             /* 整块文字水平居中排版 */
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero__title {
  font-size: 46px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  text-shadow: 0 4px 14px rgba(2,26,51,.4);
}
.hero__subtitle {
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(2,26,51,.45);
}
.hero__subtitle em { font-style: normal; color: #F08A47; }
.hero__subtitle span { color: #FFFFFF; }
.hero__desc {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;                  /* 简介小字改白色 */
  text-shadow: 0 1px 6px rgba(2,26,51,.5);
  max-width: 300px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                       /* 标签间距（按设计稿） */
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #0A2B4A;             /* 深蓝实底 */
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}
/* 首屏行动按钮：蓝色渐变药丸，居中对齐，呼应品牌深海蓝调 */
.hero__cta {
  align-self: center;              /* 父级为 flex-start，此处单独居中 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                        /* 图标与文字间距 */
  min-width: 208px;                /* 横向拉长：扁长药丸形 */
  margin-top: 6px;                 /* 与上方标签留出呼吸感 */
  padding: 10px 46px;              /* 上下收窄、左右加宽 */
  border-radius: 999px;
  background: linear-gradient(135deg, #3E8FF0 0%, #1B5FBF 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 8px 22px rgba(35,110,205,.42);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hero__cta__icon { width: 17px; height: 17px; flex: 0 0 17px; }
.hero__cta:active { transform: scale(.97); filter: brightness(.96); }
@media (hover: hover) {
  .hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(35,110,205,.52);
  }
}

/* ============ 模块标题通用 ============ */
.section-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.section-head__en {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #F08A47;
}
.section-head__title { font-size: 21px; font-weight: 900; }

/* ============ 模块② 核心优势 ============ */
.advantages {
  background: #0F2B4A;             /* 纯色深海军蓝 */
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.advantages .section-head__title { color: #FFFFFF; }
.adv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.adv-card {
  position: relative;
  flex: 1 1 calc(50% - 6px);
  min-width: calc(50% - 6px);
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.adv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.adv-card__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,26,51,.45) 0%, rgba(5,18,33,.90) 100%);
}
.adv-card__icon { width: 28px; height: 28px; margin-bottom: 4px; position: relative; z-index: 2; }
.adv-card__title { position: relative; z-index: 2; color: #FFFFFF; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.adv-card__desc  { position: relative; z-index: 2; color: #E4ECF4; font-size: 12px; line-height: 18px; }

/* ============ 模块③ 产品展示（图片网格） ============ */
.products {
  background: #FFFFFF;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.products .section-head { padding: 0 24px; }
.products .section-head__en { color: #E8722C; }
.products .section-head__title { color: #12263A; }

/* 产品图网格：全部图片直接并排展示 */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 24px;
  align-content: flex-start;
}
.shot {
  flex: 1 1 220px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #E9EEF3;
}
/* 待替换图片占位框 */
.shot__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #B9C6D4;
  color: #8FA1B3;
  font-size: 12px;
}
.spec-bar {
  margin: 0 24px;
  padding: 12px;
  border-radius: 10px;
  background: #EEF3F8;
  color: #35506B;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ============ 模块④ 企业介绍 ============ */
.about {
  background: #0F2B4A;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about .section-head__title { color: #FFFFFF; }
.about__name {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 21px;
}
/* 英文全称：独立一行、小号浅灰（按设计稿） */
.about__name .en {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #C7D3DE;
  margin-top: 2px;
}
.about__body { font-size: 13px; line-height: 21px; color: #C7D3DE; }
.about__points { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.point { display: flex; align-items: flex-start; gap: 8px; }
.point__icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.point__text { font-size: 12px; line-height: 18px; color: #DCE7F0; }

/* ============ 模块⑤ 联系咨询 ============ */
.contact {
  position: relative;
  overflow: hidden;
  padding: 56px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: #FFFFFF;
}
.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.contact__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,26,51,.40) 0%, rgba(5,18,33,.88) 100%);
}
.contact > *:not(.contact__bg):not(.contact__mask) { position: relative; z-index: 2; }
.contact .section-head__title { color: #FFFFFF; font-size: 20px; }
.contact__body { font-size: 12px; line-height: 20px; color: #C7D3DE; }
/* 二维码占位：替换 img/qrcode.png 即可 */
.qr-wrap {
  padding: 8px;
  border-radius: 10px;
  background: #FFFFFF;
}
/* 二维码：直接使用 img/erweima.png */
.qr-img {
  display: block;
  width: 142px;
  height: 142px;
  border-radius: 6px;
}
.contact__tip { font-size: 12px; font-weight: 500; color: #E4ECF4; }
.contact__divider { width: 100%; height: 1px; background: rgba(255,255,255,.12); }
.contact__footer { font-size: 10px; color: #8FA1B3; }
/* 版权英文：独立一行、小号带字距（按设计稿） */
.contact__footer .en {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ============ 滚动进入动效（JS 配合） ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 小屏适配 ============ */
@media (max-width: 360px) {
  .hero__title { font-size: 40px; }
  .adv-card { flex: 1 1 100%; min-width: 100%; }
}

/* ============ 尊重系统减动效设置 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-row, .hero__content > * { animation: none; }
}
