/* =================================================================
   Home page — Eoptolink 1:1 layout clone + motion
   Layout reference: eoptolink.com ; Content: Rapilink real data
   ================================================================= */

/* ---------- 通用 ---------- */
.page-home { background: #fff; }

.hp-section { padding: 84px 0; }
.hp-section + .hp-section { padding-top: 0; }

.hp-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 12px;
}

.hp-head { max-width: 760px; margin-bottom: 34px; }
.hp-head h2 { font-size: 32px; color: var(--ink); margin-bottom: 10px; }
.hp-head p { color: var(--muted); margin: 0; }
.hp-head-center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

.hp-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}
.hp-btn-solid { background: var(--blue); color: #fff; }
.hp-btn-solid:hover { background: var(--blue-d); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 69, 191, .28); }
.hp-btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.hp-btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- 1. 首屏幻灯片 ---------- */
.hs {
  position: relative;
  height: 620px;
  background: #03203f;
}
.hs-viewport { position: absolute; inset: 0; overflow: hidden; }

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; }

.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}
.hs-slide.is-active .hs-bg { animation: hsKenBurns 9s ease-out forwards; }
@keyframes hsKenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

.hs-slide[data-theme="t1"] .hs-bg { background-image: linear-gradient(120deg, #01203f 0%, #044cd0 55%, #00a8e6 100%); }
.hs-slide[data-theme="t2"] .hs-bg { background-image: linear-gradient(120deg, #041a33 0%, #0b3f8f 45%, #0095f6 100%); }
.hs-slide[data-theme="t3"] .hs-bg { background-image: linear-gradient(120deg, #013166 0%, #0a4fa8 50%, #00c2d1 100%); }
.hs-slide[data-theme="t4"] .hs-bg { background-image: linear-gradient(120deg, #062a4d 0%, #16456f 55%, #0aa2c0 100%); }

/* 流动光效网格 */
.hs-grid {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 168, 230, .28) 0, transparent 42%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, .16) 0, transparent 38%);
  animation: hsGlow 14s ease-in-out infinite alternate;
}
@keyframes hsGlow {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.hs-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hs-copy { flex: 0 1 760px; color: #fff; max-width: 760px; }
.hs-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8ce0ff;
  margin-bottom: 14px;
}
.hs-title {
  color: #fff;
  font-size: 46px;
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 700;
}
.hs-sub { color: rgba(255, 255, 255, .82); font-size: 17px; margin-bottom: 22px; }
.hs-bullets { list-style: none; margin: 0 0 30px; padding: 0; }
.hs-bullets li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 8px;
  font-size: 15px;
}
.hs-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8ce0ff;
  box-shadow: 0 0 0 4px rgba(140, 224, 255, .22);
}

.hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: all .28s ease;
}
.hs-cta:hover { background: #fff; color: var(--blue); border-color: #fff; }
.hs-arrow-ico {
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .28s ease;
}
.hs-arrow-ico::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.hs-cta:hover .hs-arrow-ico { transform: translateX(6px); }

/* 满屏产品图（eoptolink 风格：图作背景 + 渐变蒙版） */
.hs-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .82;
}

/* 左侧暗色蒙版，保证文字可读 */
.hs-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(3, 18, 40, .90) 0%,
    rgba(3, 18, 40, .64) 42%,
    rgba(3, 18, 40, .14) 100%);
}

/* 文字逐行入场 */
.hs-slide.is-active .hs-eyebrow { animation: hsUp .7s .15s both; }
.hs-slide.is-active .hs-title   { animation: hsUp .8s .28s both; }
.hs-slide.is-active .hs-sub     { animation: hsUp .8s .42s both; }
.hs-slide.is-active .hs-bullets li:nth-child(1) { animation: hsUp .7s .55s both; }
.hs-slide.is-active .hs-bullets li:nth-child(2) { animation: hsUp .7s .64s both; }
.hs-slide.is-active .hs-bullets li:nth-child(3) { animation: hsUp .7s .73s both; }
.hs-slide.is-active .hs-cta     { animation: hsUp .8s .85s both; }
.hs-slide.is-active .hs-visual  { animation: hsIn 1s .2s both; }
@keyframes hsUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hsIn {
  from { opacity: 0; transform: translateX(46px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* 箭头 */
.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  z-index: 6;
  transition: all .25s ease;
}
.hs-nav:hover { background: #fff; border-color: #fff; }
.hs-nav span {
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transition: border-color .25s ease;
}
.hs-nav:hover span { border-color: var(--blue); }
.hs-prev { left: 22px; }
.hs-prev span { transform: translate(-50%, -50%) rotate(-135deg); }
.hs-next { right: 22px; }
.hs-next span { transform: translate(-60%, -50%) rotate(45deg); }

/* 圆点 + 进度 */
.hs-dots {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 6;
}
.hs-dot {
  width: 52px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  overflow: hidden;
}
.hs-bar { display: block; height: 100%; width: 0; background: #fff; }
.hs-dot.is-active .hs-bar { animation: hsProgress 6s linear forwards; }
@keyframes hsProgress { from { width: 0; } to { width: 100%; } }

/* ---------- 2. 首屏底部圆形速率入口（Eoptolink 1:1） ---------- */
.hs { overflow: visible; }
.hs-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  z-index: 1;
  display: block;
  width: 100%;
}
/* ---------- 3. 产品分类：圆形速率标签（Eoptolink 1:1，压 Hero 底部 + 翻面动画） ---------- */
.hp-products { padding-top: 0; }

.hp-ctabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 140px;
  margin-top: -150px;          /* 圆形标签压住 Hero 轮播底部 */
  margin-bottom: 44px;
  padding-top: 40px;
  position: relative;
  z-index: 6;
}
.hp-ctab {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hp-ctab-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 6px solid #0697E6;   /* Eoptolink 实测边框色 */
  background: #fff;
  box-shadow: 0 4px 14px rgba(3, 30, 66, .10);
  transition: transform .5s ease-in-out .1s, background-color .5s ease-in-out .1s, box-shadow .3s ease;
}
.hp-ctab-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  color: #265EA8;              /* Eoptolink 实测文字色 */
  text-align: center;
  letter-spacing: -.01em;
  transition: transform .5s ease-in-out .1s, color .5s ease-in-out .1s;
}
.hp-ctab-text i {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 3px;
  padding: 0 8px;
}
/* 翻面动画（Eoptolink 同款）：圆盘 scaleX(-1) 翻面 + 变蓝底，文字反向再翻一次保持正向 */
.hp-ctab:hover .hp-ctab-disc,
.hp-ctab.is-active .hp-ctab-disc {
  background-color: #0697E6;
  transform: scaleX(-1);
  box-shadow: 0 8px 22px rgba(6, 151, 230, .35);
}
.hp-ctab:hover .hp-ctab-text,
.hp-ctab.is-active .hp-ctab-text {
  transform: scaleX(-1);
  color: #fff;
}

.hp-panes { position: relative; }
.hp-pane { display: none; }
.hp-pane.is-active { display: block; animation: paneIn .5s ease both; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.hp-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
/* 仅在 JS 可用时做入场动画，避免脚本失效导致卡片不可见 */
html.js .hp-card { opacity: 0; transform: translateY(16px); }
html.js .hp-card.is-in { opacity: 1; transform: none; }
.hp-card.is-in:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.hp-card-thumb {
  display: block;
  height: 190px;
  background: #f7f9fc;
  overflow: hidden;
}
.hp-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}
.hp-card:hover .hp-card-thumb img { transform: scale(1.08); }
.hp-card-body { display: block; padding: 16px 18px 20px; }
.hp-card-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
}
.hp-card-pn { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.hp-card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transform: translateY(6px);
  transition: all .28s ease;
}
.hp-card:hover .hp-card-more { opacity: 1; transform: none; }
.hp-pane-foot { text-align: center; margin-top: 32px; }

/* ---------- 4. 关于 ---------- */
.hp-about { background: var(--soft); padding: 84px 0; }
.hp-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hp-about-visual { position: relative; }
.hp-about-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.hp-about-badge {
  position: absolute;
  left: -18px; bottom: 24px;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(3, 69, 191, .3);
}
.hp-about-copy h2 { font-size: 32px; }
.hp-lead { font-size: 17px; color: var(--body); }
.hp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 26px 0 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hp-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}
.hp-stat-label { font-size: 13px; color: var(--muted); }

/* ---------- 5. 新闻 ---------- */
.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hp-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
}
.hp-news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hp-news-thumb { display: block; height: 170px; overflow: hidden; background: #f2f5f9; }
.hp-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hp-news-card:hover .hp-news-thumb img { transform: scale(1.08); }
.hp-news-body { display: block; padding: 18px; }
.hp-news-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.hp-news-meta em { font-style: normal; color: var(--cyan); font-weight: 600; }
.hp-news-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  min-height: 46px;
}
.hp-news-more { display: block; margin-top: 10px; font-size: 13px; color: var(--blue); font-weight: 600; }

/* ---------- 6. 认证 ---------- */
.hp-cert { background: #fff; }
.hp-cert-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.hp-cert-item {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  transition: all .3s ease;
}
.hp-cert-item:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-4px); }
.hp-cert-item img { max-height: 56px; object-fit: contain; }

/* ---------- 7. 展会跑马灯 ---------- */
.hp-visit { background: var(--soft); padding-bottom: 68px; }
.hp-marquee { overflow: hidden; margin-top: 34px; position: relative; }
.hp-marquee::before,
.hp-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
}
.hp-marquee::before { left: 0; background: linear-gradient(90deg, var(--soft), transparent); }
.hp-marquee::after { right: 0; background: linear-gradient(270deg, var(--soft), transparent); }
.hp-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: hpMarquee 32s linear infinite;
}
.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }
@keyframes hpMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hp-expo {
  flex: 0 0 auto;
  min-width: 230px;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: all .3s ease;
}
.hp-expo:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.hp-expo b { display: block; font-size: 19px; color: var(--ink); }
.hp-expo i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 吸顶头部 ---------- */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(16, 32, 48, .1); }

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.22, .8, .3, 1); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hs { height: 560px; }
  .hs-title { font-size: 38px; }
  .hs-visual { flex-basis: 360px; }
  .hp-grid, .hp-news-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-cert-grid { grid-template-columns: repeat(4, 1fr); }
  .hp-ctabs { gap: 10px; margin-top: -130px; }
  .hp-ctab-disc { width: 98px; height: 98px; border-width: 5px; }
  .hp-ctab-text { font-size: 20px; }
  .hp-ctab-text i { font-size: 11px; }
}
@media (max-width: 860px) {
  /* 手机端改为文档流堆叠，蓝底铺满一屏 */
  .hs { height: auto; overflow: hidden; }
  .hs-viewport { position: relative; inset: auto; }
  .hs-slide { position: relative; inset: auto; display: none; padding: 48px 0 190px; min-height: calc(100vh - 75px); }
  .hs-slide.is-active { display: block; }
  .hs-bg, .hs-grid { position: absolute; inset: 0; }
  .hs-inner { flex-direction: column; justify-content: flex-start; min-height: 0; padding: 0 24px; gap: 20px; }
  .hs-copy { flex: none; width: 100%; max-width: 100%; }
  .hs-title { font-size: 30px; }
  .hs-visual { display: none; }   /* 手机端 Hero 纯色块+文字，去掉产品卡片撑高 */
  .hs-nav { display: none; }
  .hs-curve { display: none; }
  /* 圆盘放在"了解更多"按钮下方；横杠放在圆盘下方，三者在蓝底内均不重叠 */
  .hs-dots { bottom: 160px; }
  .hp-ctabs {
    margin-top: -360px;          /* 圆盘压进蓝底，位于按钮下方、横杠上方 */
    padding-top: 0;
    gap: 10px;
    min-height: 0;
    margin-bottom: 30px;
  }
  .hp-ctab-disc { width: 84px; height: 84px; border-width: 4px; }
  .hp-ctab-text { font-size: 16px; }
  .hp-ctab-text i { font-size: 10px; margin-top: 2px; }
  .hp-section { padding: 56px 0; }
  .hp-products { padding-top: 0; }
  .hp-about { padding: 56px 0; }
  .hp-about-inner { grid-template-columns: 1fr; gap: 32px; }
  .hp-grid, .hp-news-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-head h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .hp-grid, .hp-news-grid, .hp-cert-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-stats { gap: 20px; }
  .hp-ctabs { gap: 8px; margin-top: -300px; }
  .hs-dots { bottom: 132px; }
  .hp-ctab-disc { width: 72px; height: 72px; border-width: 3px; }
  .hp-ctab-text { font-size: 14px; }
  .hp-ctab-text i { font-size: 9px; padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-bg, .hs-grid, .hs-marquee-track, .hp-marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
