/* ============================================================
   home.css — 首页 7 屏整屏滚动 / 右侧浮窗 / Cookie 弹窗 / 分页器
   ============================================================ */

/* 每屏统一铺满视口并垂直居中内容 */
.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
}

/* ============ 1. 首屏 Hero ============ */
.slide-hero { background: #06101f; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-pc { animation: heroScale 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-mobile { display: none; }
.hero-mask { position: absolute; inset: 0; background: rgba(6, 16, 31, .42); }
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

/* 首屏主标题 */
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(4, 20, 46, .55);
}
.hero-title span { display: block; }
.scroll-hint {
  position: absolute;
  bottom: 46px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: 2px;
}
.scroll-hint i {
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  position: relative;
}
.scroll-hint i::after {
  content: ""; position: absolute; top: 7px; left: 50%;
  width: 3px; height: 7px; border-radius: 2px;
  background: #fff; transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============ 2. 产品与服务 ============ */
.slide-products { background: var(--bg-2); }
/* ===== 行业解决方案：整屏背景图 + 悬停切换 ===== */
.slide-solutions { background: #0b1526; overflow: hidden; }
/* 图片不铺满整屏：四周留边（红框区域为图片大小） */
.sol-stage {
  position: absolute;
  inset: clamp(14px, 2.6vh, 30px) clamp(14px, 1.4vw, 26px);
  overflow: hidden;
}
.sol-layer {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease);
}
.sol-layer.is-active { opacity: 1; visibility: visible; }
.sol-bg { position: absolute; inset: 0; }
.sol-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04); transition: transform 6s ease-out;
}
.sol-layer.is-active .sol-bg img { transform: scale(1); }
.sol-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5,12,25,.62) 0%, rgba(5,12,25,.28) 45%, rgba(5,12,25,.12) 100%);
}
.sol-content {
  position: absolute; left: clamp(24px, 8vw, 140px); bottom: clamp(80px, 16vh, 150px);
  z-index: 2; max-width: 620px; color: #fff;
}
.sol-title {
  font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; line-height: 1.1;
  letter-spacing: .02em; text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.sol-desc {
  margin: 18px 0 28px; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.8;
  color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.5);
  max-width: 520px;
}
.sol-content .sol-more {
  display: inline-block; color: #fff; border-color: rgba(255,255,255,.85);
  background: transparent;
}
.sol-content .sol-more:hover { background: #fff; color: #0b1526; border-color: #fff; }
/* 底部方案切换标签 */
.sol-tabs {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 6vh, 56px);
  z-index: 6; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px; padding: 0 20px;
}
.sol-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.62); font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600; letter-spacing: .03em; padding: 6px 2px;
  position: relative; transition: color .3s;
}
.sol-tab::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px;
  background: #fff; transform: translateX(-50%); transition: width .3s;
}
.sol-tab:hover, .sol-tab.is-active { color: #fff; }
.sol-tab.is-active::after { width: 100%; }

@media (max-width: 767px) {
  .sol-content { left: 20px; right: 20px; bottom: 96px; }
  .sol-tabs { gap: 8px 16px; }
}
.products-inner { width: 100%; padding: clamp(20px, 3vh, 36px) 0 clamp(14px, 2.5vh, 26px); }
.products-inner .section-head { margin-bottom: clamp(14px, 2.5vh, 24px); }
.products-inner .section-head h2 { font-size: 32px; }
.products-inner .section-head p { margin-top: 10px; font-size: 15px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
/* 从顶部菜单跳转过来时，高亮对应的产品卡 */
.product-card.is-focus {
  transform: translateY(-10px);
  box-shadow: 0 0 0 2px var(--brand), 0 14px 34px rgba(0, 92, 230, .22);
}
.pc-img { overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.pc-img img { width: 100%; height: clamp(120px, 19vh, 165px); object-fit: contain; transition: transform .6s var(--ease); }
.product-card:hover .pc-img img { transform: scale(1.06); }
/* 同一卡片内并排两张图（如「终端」放两台设备）：等高、按原比例、居中，尺寸比单图略收 */
.pc-img--dual {
  gap: clamp(20px, 3vw, 64px);
  padding: 10px 8px;
  align-items: center;
  /* 用 min-height 撑住与同行卡片一致的高度（图片本身高度 + 上下 padding） */
  min-height: calc(clamp(120px, 19vh, 165px) + 20px);
}
.pc-img--dual img { width: auto; max-width: 44%; height: clamp(96px, 14vh, 132px); }
/* 「高性能服务器」卡：同一台机器的正面 + 内部结构，两张都是宽幅图。
   等高并排时总宽约为高度的 2.9 倍，因此高度必须按视口宽度收敛，避免贴边或被裁切 */
.pc-img--wide { gap: clamp(14px, 1.6vw, 30px); }
.pc-img--wide img { height: clamp(84px, 7.9vw, 116px); max-width: 47%; }
/* 窄屏：两张图宽度收紧，避免挤在一起 */
@media (max-width: 767px) {
  .pc-img--dual { gap: 28px; }
  .pc-img--dual img { max-width: 46%; }
  /* 手机端两列卡片太窄，放不下两张宽幅图，只保留正面图 */
  .pc-img--wide { gap: 0; }
  .pc-img--wide img { height: 120px; max-width: 100%; }
  .pc-img--wide img:nth-child(2) { display: none; }
}
.pc-txt { padding: 16px 22px 20px; }
.pc-txt h3 { font-size: 19px; font-weight: 700; }
.pc-txt p { margin: 8px 0 12px; font-size: 14px; color: var(--text-3); min-height: 40px; }

/* ============ 通用：背景图 + 暗色遮罩 ============ */
.about-bg, .sustain-bg, .career-bg, .news-bg {
  position: absolute; inset: 0;
}
.about-bg img, .sustain-bg img, .career-bg img, .news-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-bg::after,
.sustain-bg::after,
.career-bg::after,
.news-bg::after {
  content: ""; position: absolute; inset: 0;
  /* background: linear-gradient(120deg, rgba(8, 20, 40, .82), rgba(8, 20, 40, .55)); */
}

/* 深圳福田CBD实景背景：压暗 + 深蓝滤镜，贴近原站黄昏蓝调，保证白字可读 */
.about-bg img { filter: brightness(.72) saturate(1.15); }
.about-bg::after {
  background: linear-gradient(115deg,
    rgba(10, 25, 60, .78),
    rgba(14, 42, 96, .45) 55%,
    rgba(6, 16, 38, .72));
}

/* ============ 3. 关于华煜 ============ */
.slide-about { color: #fff; }
.about-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 70px; width: 100%;
}
.about-left { max-width: 1040px; }
.about-left h2 { font-size: 42px; font-weight: 700; letter-spacing: 2px; margin-bottom: 24px; }
.about-left p { margin: 0; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .8); }
/* 导语：略亮，与下文用细线分隔 */
.about-lead { padding-bottom: 24px; color: rgba(255, 255, 255, .92); }
/* 分组小标题：左侧品牌色竖条 */
.about-item { margin-top: 24px; }
.about-item h3 {
  position: relative; margin: 0 0 8px; padding-left: 14px;
  font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #fff;
}
.about-item h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 2px; background: var(--brand);
}
.about-left .about-tail { margin-top: 28px; }
.about-left .btn-line { color: #fff; }
.about-right {
  display: grid; grid-template-columns: repeat(2, 160px); gap: 36px 50px;
  flex: 0 0 auto;
}
.stat { text-align: center; }
.stat-num {
  display: flex; align-items: baseline; justify-content: center;
  font-size: 52px; font-weight: 700; color: #fff; line-height: 1;
}
.stat-num em { font-size: 20px; font-style: normal; margin-left: 4px; font-weight: 500; }
.stat-num .counter-text { font-size: 52px; }
.stat p { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ============ 3.5 公司资质 ============ */
.slide-qual {
  background: linear-gradient(135deg, #0a1733 0%, #0e2a60 60%, #0a1c44 100%);
  color: #fff;
}
.qual-inner { width: 100%; }
.qual-inner .section-head { margin-bottom: clamp(18px, 3vh, 32px); }
.qual-inner .section-head h2 { font-size: 32px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.qual-inner .section-head p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.qual-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 20px);
  align-items: start;
}
.qual-card {
  margin: 0;
  cursor: zoom-in;
  outline: none;
  transition: transform .38s var(--ease);
}
.qual-img {
  position: relative;
  background: #fff;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 0 12px 28px rgba(2, 10, 28, .45);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.qual-img img { display: block; width: 100%; height: auto; }
.qual-card:hover .qual-img,
.qual-card:focus-visible .qual-img {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(2, 10, 28, .58);
}
.qual-lang {
  position: absolute;
  top: 9px; right: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(12, 32, 68, .8);
  color: #fff;
  font-size: 10px; font-style: normal; line-height: 16px;
  letter-spacing: .5px;
}
.qual-card figcaption { margin-top: 11px; text-align: center; }
.qual-card figcaption strong { display: block; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .3px; }
.qual-card figcaption span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .58); }

/* 证书放大预览 */
.qual-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(4, 10, 24, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.qual-lightbox.is-open { opacity: 1; visibility: visible; }
.qual-lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  padding: 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .3s var(--ease);
}
.qual-lightbox.is-open .qual-lightbox-img { transform: scale(1); }
.qual-lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.qual-lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* ============ 4. 可持续发展 ============ */
.slide-sustain { color: #fff; }
.sustain-inner { position: relative; z-index: 2; width: 100%; }
.sustain-inner > h2 { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: 2px; margin-bottom: 50px; }
.sustain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sustain-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  padding: 34px 28px;
  backdrop-filter: blur(4px);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.sustain-card:hover { background: rgba(255, 255, 255, .2); transform: translateY(-6px); }
.sustain-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.sustain-card p { font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .82); }

/* ============ 5. 职业生涯 ============ */
.slide-career { color: #fff; }
.career-inner { position: relative; z-index: 2; width: 100%; }
.career-head { text-align: center; margin-bottom: 56px; }
.career-head h2 { font-size: 40px; font-weight: 700; letter-spacing: 2px; }
.career-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px; max-width: 940px; margin: 0 auto;
}
.career-card { text-align: center; }
.career-card img { width: 96px; height: 96px; margin: 0 auto 22px; object-fit: contain; }
.career-card span { display: block; font-size: 28px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.career-card p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.career-cta { text-align: center; margin-top: 48px; }
.career-cta .btn-line { color: #fff; }

/* ============ 6. 新闻资讯 ============ */
.slide-news { color: #fff; position: relative; }
.news-inner { position: relative; z-index: 2; width: 100%; }
.news-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.news-head h2 { font-size: 40px; font-weight: 700; letter-spacing: 2px; }
.news-head .btn-line { color: #fff; }
.news-swiper { width: 100%; padding-bottom: 10px; }
.news-card {
  display: flex; flex-direction: column;
  height: 230px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.news-card:hover { background: rgba(255, 255, 255, .2); transform: translateY(-6px); }
.news-card h3 { font-size: 17px; font-weight: 500; line-height: 1.65; }
.news-date { margin-top: auto; font-size: 14px; color: rgba(255, 255, 255, .7); }
.news-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: background .25s;
}
.news-nav:hover { background: rgba(255, 255, 255, .34); }
/* 按钮挂在整屏两侧，贴屏幕边缘；垂直中心对准新闻卡片区
   （整屏 flex 垂直居中，标题区 40*1.6+40=104px，故下移一半 52px） */
.news-prev { left: 1.25rem; top: calc(50% + 52px); }
.news-next { right: 1.25rem; top: calc(50% + 52px); }
.news-nav img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.news-prev img { transform: rotate(180deg); }

/* ============ 7. 页脚 ============ */
.slide-footer { background: var(--bg-dark); color: #fff; }
.site-footer { width: 100%; height: 100%; min-height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; }
.footer-top {
  display: flex; justify-content: space-between; gap: 60px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-left { max-width: 460px; flex: 0 0 auto; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-row { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.footer-contact { margin: 0; }
.footer-company-info { margin-top: 22px; }
.footer-company { font-size: 16px; font-weight: 600; color: #fff; margin: 14px 0 0; }
.footer-addr { font-size: 13px; color: rgba(255, 255, 255, .65); line-height: 1.7; }
.footer-tel { font-size: 22px; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.footer-contact span { font-size: 14px; color: rgba(255, 255, 255, .65); }
.footer-ewm { display: flex; gap: 26px; flex-shrink: 0; }
.ewm-box { text-align: center; position: relative; }
/* 二维码直接常驻显示（不再依赖微信小图标悬停） */
.ewm-img {
  width: 110px; height: 110px; border-radius: 6px; overflow: hidden; background: #fff;
}
.ewm-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-right { display: flex; gap: 56px; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
.footer-right dt { margin-bottom: 16px; }
.footer-right dt a { font-size: 16px; font-weight: 600; }
.footer-right dd { margin-bottom: 11px; }
.footer-right dd a { font-size: 14px; color: rgba(255, 255, 255, .65); transition: color .25s; }
.footer-right dd a:hover { color: #fff; }
/* 版权行绝对定位贴底，内容块由 .site-footer 的 justify-content:center 居中 */
.footer-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 0 26px; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255, 255, 255, .55);
  text-align: center;
}
.footer-bottom-inner a { color: rgba(255, 255, 255, .55); transition: color .25s; }
.footer-bottom-inner a:hover { color: #fff; }

/* ============ 右侧浮窗 ============ */
.side-float {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: var(--z-side);
  display: flex; flex-direction: column; gap: 0;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.side-item {
  width: 68px; padding: 13px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  font-size: 12px; letter-spacing: 1px;
  white-space: nowrap;
  transition: background .25s;
}
.side-item:hover { background: var(--brand-deep); }
.side-item img { width: 20px; height: auto; display: block; }
/* 回到顶部：与「联系我们」同色系的深蓝，白色箭头，hover 时箭头上浮 */
.side-top {
  position: relative;
  padding: 14px 0;
  background: linear-gradient(180deg, #1c4b96, #163a72);
}
.side-top::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0;
  height: 1px; background: rgba(255, 255, 255, .18);
}
.side-top img { transition: transform .3s ease; }
.side-top:hover { background: linear-gradient(180deg, #2660b8, #1b4785); }
.side-top:hover img { transform: translateY(-3px); }

/* ============ Cookie 弹窗（底部近全宽横条） ============ */
.cookie-pop {
  position: fixed; left: 10px; right: 10px; bottom: 0;
  z-index: var(--z-cookie);
  background: #fff; border-radius: 6px 6px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cookie-pop.is-hidden { opacity: 0; visibility: hidden; transform: translateY(30px); }
.cookie-close {
  position: absolute; top: 12px; right: 16px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s, opacity .2s;
}
.cookie-close:hover { background: #f0f1f3; }
.cookie-close img {
  width: 13px; height: 13px;
  /* 原图是白色填充，在白底上需反色为深灰 */
  filter: brightness(0); opacity: .55;
}
.cookie-close:hover img { opacity: .9; }
.cookie-body {
  display: flex; align-items: center; gap: 48px;
  padding: 24px 60px 26px 36px;
}
.cookie-info { flex: 1; min-width: 0; }
.cookie-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.cookie-text { font-size: 12.5px; color: var(--text-2); line-height: 1.9; margin-top: 10px; max-width: 62em; }
.cookie-btns { display: flex; align-items: center; gap: 20px; flex-shrink: 0; margin-top: 26px; }
.cookie-btn {
  padding: 10px 24px; border-radius: 20px; font-size: 14px;
  background: #f0f1f3; color: var(--text-1);
  transition: all .25s;
}
.cookie-btn:hover { background: #e3e5e9; }
.cookie-accept {
  padding: 10px 24px; border-radius: 20px; font-size: 14px;
  background: var(--brand); color: #fff;
  transition: all .25s;
}
.cookie-accept:hover { background: var(--brand-deep); }

@media (max-width: 900px) {
  .cookie-body { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 56px 20px 20px; }
}

/* ============ 整屏分页器 ============ */
.home-pagination {
  position: fixed; right: 116px; top: 50%; transform: translateY(-50%);
  z-index: var(--z-side);
  display: flex; flex-direction: column; gap: 14px;
}
.home-pagination .swiper-pagination-bullet {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  opacity: 1; cursor: pointer; transition: all .3s var(--ease);
}
.home-pagination .swiper-pagination-bullet-active {
  background: #fff; height: 26px; border-radius: 6px;
}
