/* ============== 首页专属样式（基于 index副.html 设计稿，复用 style.css 设计令牌） ============== */

/* 导航右侧咨询按钮 */
.header__cta {
  flex: 0 0 auto;
  margin-left: 18px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  padding: 8px 20px;
  color: #fff; border-radius: 999px;
}
.header__cta span { font-size: 12px; opacity: .9; }
.header__cta b { font-size: 16px; letter-spacing: .5px; }

/* ============== Hero 轮播 ============== */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.hero__slides {
  position: absolute; inset: 0; z-index: 0;
  display: flex; width: 100%; height: 100%;
  transform: translateX(0);
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero__slide {
  position: relative; flex: 0 0 100%;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 1; transform: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 120px 16px; text-align: center; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 16px;
  font-size: 13px; letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.08);
}
.hero h1 {
  margin: 0 auto 18px; max-width: 800px;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.2; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero h1 span { color: var(--c-accent); }
.hero__sub { max-width: 640px; margin: 0 auto 30px; font-size: 17px; color: rgba(255,255,255,.86); }
.hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(255,255,255,.08); transition: .25s;
}
.hero__arrow:hover { background: var(--c-primary); border-color: var(--c-primary); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }
.hero__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button {
  width: 10px; height: 10px; padding: 0; cursor: pointer; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.5); transition: .25s;
}
.hero__dots button.is-active { width: 26px; background: #027AFF; }

/* ============== 服务头（标题 + 描述 + 二维码） ============== */
.svc-head { position: relative; text-align: center; margin-bottom: 40px; padding-right: 0; }
.svc-head__title { margin: 0 0 14px; font-size: 38px; color: #333;}
.svc-head__desc { max-width: 700px; margin: 0 auto; font-size: 15px; color: #888888}
.svc-head__qr {
  position: absolute; top: -6px; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 20px; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.svc-head__qr img { width: 110px; height: 110px; border-radius: 8px; }
.svc-head__qr-t { font-size: 15px; font-weight: 700; color: var(--c-title); }
.svc-head__qr-s { font-size: 12.5px; color: var(--c-sub); }

/* ============== 产品线（五条） ============== */
.plines { display: grid; grid-template-columns: 1.08fr 1fr; gap: 22px; align-items: stretch; }
/* 左列两张大卡 / 右列三张小卡，两列等高，列内卡片均分高度 */
.plines__col { display: grid; gap: 22px; grid-auto-rows: 1fr; }
.pline,
a.pline {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 28px 0;
  background: #F4F7FF;
  text-decoration: none;
  color: inherit;
}
.pline:hover,
a.pline:hover { transform: translateY(-10px); color: inherit; }
/* 五个 logo 统一按同一高度等比缩放，视觉大小一致 */
.pline__ico { grid-row: 1; align-self: center; display: flex; align-items: center; height: 34px; }
.pline__ico img { width: auto; height: 100%; max-width: 200px; object-fit: contain; }
.‌right_arrow {width: 32px; height: 32px;}
.pline h3 { grid-row: 1; align-self: center; margin: 0; font-size: 26px; color: #333; }
.pline p { grid-column: 1 / -1; margin: 16px 0 24px; font-size: 14px; color: #6b7280; line-height: 1.9; }
.pline__pic { flex: 0 0 auto; margin-top: auto; line-height: 0; }
.pline__pic img { display: block; width: 100%; height: auto; }

/* 右列小卡：更紧凑，预览图裁切为底部横幅 */
.plines__col--sm .pline { padding: 24px 26px 0; column-gap: 12px; }
.plines__col--sm .pline h3 { font-size: 20px; }
.plines__col--sm .pline p { margin: 12px 0 18px; font-size: 13.5px; line-height: 1.85; }
.plines__col--sm .pline::after { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; }
.plines__col--sm .pline__pic { height: 180px; }
.plines__col--sm .pline__pic img { height: 100%; object-fit: cover; object-position: center top; border-radius: 12px 12px 0 0; }

/* ============== 客户案例（横向滑动） ============== */
.case-line { height: 3px; background: #027AFF; border-radius: 2px; margin: 0 0 22px; }
.mall {
  display: flex; gap: 22px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
}
.mall::-webkit-scrollbar { display: none; }
.mall__card { flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start; }
.mall__card h3 {margin-top: 22px; font-size: 18px; color: #000000;}
.mall__tag { display: block; font-size: 13px; margin-bottom: 10px; }
.mall__pic {
  aspect-ratio: 4 / 3; overflow: hidden; background: #fff;
}
.mall__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mall__card:hover .mall__pic img { transform: scale(1.06); }
.mall__meta { list-style: none; margin: 0; padding: 0; border-left: 2px solid #027affcc; margin-top: 46px;}
.mall__meta li {
  position: relative; margin-top: 7px; padding-left: 18px;
  font-size: 12px; line-height: 1.5;
  display: flex; align-items: center; color: rgba(2,122,255,0.8);
}
.mall__meta li img {
  width: 12px;
  height: 12px;
  margin-right: 10px;
}
/* 头部左右切换按钮 */
.Swipe_btn { padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.Swipe_btn .Swipe_img { transition: opacity .25s; }
.Swipe_btn:hover .Swipe_img { opacity: .7; }
.Swipe_btn:disabled { opacity: .35; cursor: default; }
.Swipe_btn:disabled .Swipe_img { opacity: 1; }
/* 案例区标题排版 */
#mall .head h3 { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #027AFF; }
#mall .head h2 { margin-top: 4px; color: var(--c-title); }

/* ============== 区块标题（news / cases 通用） ============== */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head__en { display: block; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--c-primary); opacity: .7; }
.sec-head__l h2 { font-size: clamp(24px, 3vw, 34px); }
.sec-head__r { display: flex; align-items: center; gap: 18px; text-align: right; }
.sec-head__r p { margin: 0; max-width: 420px; font-size: 14px; color: var(--c-sub); }

/* ============== 新闻动态（两列卡片） ============== */
#news { background: #f2f3f5; }
.newslist { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news {
  display: flex; align-items: flex-start; gap: 24px; padding: 26px 28px;
  background: #fff; border-radius: 4px;
  transition: transform .3s, box-shadow .3s;
}
.news:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(30, 40, 60, .10); }
.news__date { flex: 0 0 auto; width: 64px; text-align: left;}
.news__date b { display: block; font-size: 22px; font-weight: 700; color: #333; letter-spacing: .5px; }
.news__date span { display: block; margin-top: 2px; font-size: 11px; color: #b0b6bf; }
.news__date::after {
  content: ""; display: block; width: 26px; height: 2px; margin-top: 10px; background: #d8dce2;
}
.news h3 {
  margin: 2px 0 10px; font-size: 17px; font-weight: 700; color: #333; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.news p {
  margin: 0; font-size: 13px; color: #9aa0a8; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============== 案例列表（详情行） ============== */
.case-list { margin-top: 30px; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.case-list__row {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  border-bottom: 1px solid var(--c-line); transition: background .25s;
}
.case-list__row:last-child { border-bottom: 0; }
.case-list__row:hover { background: var(--c-soft); }
.case-list__row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.case-list__meta { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.case-list__cat { font-size: 15px; font-weight: 600; color: var(--c-title); }
.case-list__time { font-size: 12.5px; color: var(--c-muted); }
.case-list__arrow { font-size: 22px; color: var(--c-primary); transition: transform .25s; }
.case-list__row:hover .case-list__arrow { transform: translateX(6px); }

/* ============== 悬浮侧边工具 ============== */
.side-widget { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 94; display: grid; gap: 10px; }
.side-widget__item {
  position: relative; width: 56px; height: 56px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; border: 0; border-radius: 14px; background: rgba(29,78,216,.92);
  box-shadow: 0 8px 22px rgba(29,78,216,.32); transition: transform .25s, background .25s;
}
.side-widget__item img { width: 22px; height: 22px; }
.side-widget__item span { font-size: 11px; }
.side-widget__item:hover { transform: translateY(-3px); background: var(--c-accent); }
.side-widget__pop {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%) scale(.9);
  width: 130px; padding: 10px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s;
}
.side-widget__pop img { width: 100%; border-radius: 6px; }
.side-widget__item[data-side="qrcode"]:hover .side-widget__pop,
.side-widget__item.is-open .side-widget__pop { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }

/* ============== 页脚产品标签 ============== */
.footer__prods { min-width: 0; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__tags a {
  padding: 5px 12px; font-size: 13px; color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  transition: .2s;
}
.footer__tags a:hover { color: #fff; background: var(--c-primary); border-color: var(--c-primary); }
.footer__logo { width: 46px; height: 46px; margin-bottom: 14px; }
.footer__qrs { display: flex; gap: 20px; margin-top: 18px; }
.footer__qrs div { text-align: center; }
.footer__qrs img { width: 84px; height: 84px; padding: 6px; background: #fff; border-radius: 10px; }
.footer__qrs span { display: block; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.7); }

/* ============== 首页响应式 ============== */
@media (max-width: 1080px) {
  .mall__card { flex-basis: calc((100% - 44px) / 3); }
}
@media (max-width: 900px) {
  .hero { min-height: 520px; }
  .hero__content { padding: 90px 16px; }
  .hero__arrow { display: none; }
  .header__cta { display: none; }
  .svc-head { text-align: left; padding-top: 130px; }
  .svc-head__desc { margin-left: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head__r { text-align: left; flex-direction: column; align-items: flex-start; }
  .plines { grid-template-columns: 1fr; gap: 16px; }
  .plines__col { gap: 16px; grid-auto-rows: auto; }
  .plines__col--sm .pline { padding: 24px 20px 0; }
  .plines__col--sm .pline__pic { height: auto; }
  .plines__col--sm .pline__pic img { height: auto; object-fit: fill; }
  .pline { padding: 24px 20px 0; column-gap: 10px; }
  .pline::after { width: 28px; height: 28px; border-radius: 8px; }
  .pline__ico { height: 26px; }
  .pline h3 { font-size: 20px; }
  .mall__card { flex-basis: calc((100% - 22px) / 2); }
  .newslist { grid-template-columns: 1fr; gap: 14px; }
  .news { padding: 20px; gap: 16px; }
  .news__date { width: 56px; }
  .news__date b { font-size: 19px; }
  .news h3 { font-size: 15.5px; }
  .side-widget { right: 10px; gap: 8px; }
  .side-widget__item { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .mall__card { flex-basis: 78%; }
  .side-widget { top: auto; bottom: 80px; transform: none; flex-direction: row; }
  .side-widget__pop { right: 50%; transform: translate(50%, -120%) scale(.9); top: auto; bottom: 60px; }
  .side-widget__item[data-side="qrcode"]:hover .side-widget__pop { transform: translate(50%, -120%) scale(1); }
  .footer__qrs { gap: 14px; }
  .footer__qrs img { width: 72px; height: 72px; }
}

/* ============== 合作客户（粒子背景 + 客户 LOGO 墙，参考 maijiechina.com） ============== */
.sec-5 { position: relative; padding: 30px 0; }
.sec-5 .constrain { position: relative; z-index: 2; }

/* 左上角蓝色数据卡（整块 inline-block，数字横向排列） */
.sec-5 .board {
  display: inline-block;
  color: #fff;
  padding: 70px 50px;
  background-color: #2374e7;
}
.sec-5 .board h1 { font-size: 2rem; padding-bottom: 20px; }
.sec-5 .board h2 { font-weight: normal; padding: 0; font-size: 24px; line-height: 1.15; }
.sec-5 .board span { }
.sec-5 .numberBox { display: flex; align-items: flex-start; }
.sec-5 .board .box:nth-child(1) { padding-right: 30px; }
.sec-5 .board .box:nth-child(2) { position: relative; padding: 0 30px; }
.sec-5 .board .box:nth-child(2):before,
.sec-5 .board .box:nth-child(2)::before,
.sec-5 .board .box:nth-child(2):after,
.sec-5 .board .box:nth-child(2)::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 1px; height: 50%; background-color: #fff;
}
.sec-5 .board .box:nth-child(2):before,
.sec-5 .board .box:nth-child(2)::before { left: 0; }
.sec-5 .board .box:nth-child(2):after,
.sec-5 .board .box:nth-child(2)::after { right: 0; }
.sec-5 .board .box:nth-child(3) { padding-left: 30px; }

/* 背景粒子画布（位于内容之下） */
.sec-5 .coop-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}

/* LOGO 墙：4 列 × 3 行 */
.sec-5 ul {
  padding: 50px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.sec-5 ul li { background-color: #fff; }
.sec-5 ul li div {
  height: 100px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.sec-5 ul li div img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 1080px) {
  .sec-5 ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sec-5 .board { display: block; box-sizing: border-box; }
  .sec-5 ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .sec-5 { padding: 20px 0; }
  .sec-5 .board { padding: 40px 24px; }
  .sec-5 .board h1 { font-size: 1.5rem; }
  .sec-5 .board h2 { font-size: 1.4rem; }
  .sec-5 .board .box:nth-child(1) { padding-right: 14px; }
  .sec-5 .board .box:nth-child(2) { padding: 0 14px; }
  .sec-5 .board .box:nth-child(3) { padding-left: 14px; }
  .sec-5 ul { padding: 30px 0; }
  .sec-5 ul li div { height: 64px; }
}

/* ============== 在线留言（首页） ============== */
.msgbox { width: 100%; }
.msgbox__title { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.msgbox__desc { margin: 8px 0 26px; font-size: 14px; color: #929292; }

/* 表单：去掉白色卡片，直接落在页面上，仅用浅灰输入框 */
.msgbox .form { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.msgbox .form__row { gap: 18px; margin-bottom: 18px; }
.msgbox .form__field { position: relative; display: block; margin: 0 0 18px; }
.msgbox .form__row .form__field { margin-bottom: 0; }
.msgbox .form input,
.msgbox .form textarea {
  width: 100%; padding: 13px 16px; font-size: 14px; color: var(--c-text);
  background: #f7f8fa; border: 1px solid #eceff4; border-radius: 4px;
}
.msgbox .form input::placeholder,
.msgbox .form textarea::placeholder { color: #b8bec7; }
.msgbox .form input:focus,
.msgbox .form textarea:focus {
  outline: none; background: #fff; border-color: #027AFF;
  box-shadow: 0 0 0 3px rgba(2, 122, 255, .12);
}
.msgbox .form .is-error { background: #fff5f5; border-color: #f5222d; }
.msgbox .form textarea { min-height: 132px; resize: vertical; }
.msgbox .form__req {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-style: normal; line-height: 1; color: #f5222d;
}
.msgbox .form__field--req input { padding-left: 30px; }
.msgbox .btn--submit {
  display: block; width: 280px; max-width: 100%; margin: 4px auto 0;
  padding: 13px 24px; border: 0; border-radius: 4px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff; background: #027AFF;
  transition: background .25s, transform .25s;
}
.msgbox .btn--submit:hover { background: #0167d8; transform: translateY(-2px); }
.msgbox .form__msg { text-align: center; }

/* 联系方式一行小字 */
.msgbox__info {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid #eef1f6;
  font-size: 13.5px; color: var(--c-sub);
}
.msgbox__info b { font-weight: 600; color: var(--c-title); }
.msgbox__info a:hover { color: #027AFF; }

@media (max-width: 900px) {
  .msgbox .form__row { gap: 0; margin-bottom: 0; }
  .msgbox .form__row .form__field { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .msgbox__title { font-size: 20px; }
  .msgbox .btn--submit { width: 100%; }
  .msgbox__info { justify-content: flex-start; gap: 6px 16px; }
}
