/* =======================================================================
   home.css — 门户首页皮肤(v2)
   命名与组织全部重写;视觉数值(色板/字号/间距/断点)与现站逐一对应。
   ======================================================================= */

/* ---- 基础 ---- */
* { margin: 0; padding: 0; }
html, body { height: 100%; background: #fff; }
body {
  color: #101214;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { border: 0; }

/* ---- 版心 ---- */
.cwrap { width: 72%; min-width: 960px; margin: 0 auto; }
@media screen and (min-width: 960px)  and (max-width: 1360px) { .cwrap { width: 79%; } }
@media screen and (min-width: 1360px) and (max-width: 1440px) { .cwrap { width: 63%; } }
@media screen and (min-width: 1440px) and (max-width: 5120px) { .cwrap { width: 62.5%; } }

.page { position: relative; z-index: 1; overflow-x: hidden; user-select: none; }

/* ---- 顶栏 ---- */
.topbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 900; background: #fff; }
.topbar-in { margin: 0 auto; }
.navrow { display: flex; }
.menu { flex: 1; padding: 26px 0 0; line-height: 1; white-space: nowrap; }
.mi {
  display: inline-block; vertical-align: middle;
  margin-right: 40px; font-size: 16px; font-weight: 500; line-height: 1;
  color: #101214; cursor: pointer; list-style: none;
}
.mi a:hover { color: #fb4a3e; }
.menu .on { position: relative; }
.menu .on .mi-txt { color: #fa4b3e; font-weight: 600; }
.mi.on a { color: #101214; font-weight: 600; }
@media screen and (max-width: 1280px) { .result-navrow .mi { margin-right: 40px; } }
@media screen and (min-width: 5210px) { .navrow .mi { font-size: 42px; height: 42px; } }

.acct {
  display: flex; align-items: center; text-align: right; white-space: nowrap;
  font-size: 16px; font-weight: 500; line-height: 70px; color: #17181a;
}
.acct .uname, .acct a { color: #2a2b2e; }
.allprod { position: relative; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.acct-txt { margin-right: 32px; cursor: pointer; }
.signin { cursor: pointer; }
.signin:hover { color: #fb4a3e !important; }
/* 2x2 点阵图标:纯 CSS 渐变绘制,28px 见方,左偏 28px */
.grid-ic {
  position: absolute; top: 50%; left: -28px; transform: translateY(-50%);
  display: block; width: 28px; height: 28px; margin-top: 1px; cursor: pointer;
  --dot: #2a2b2e;
  background:
    linear-gradient(var(--dot),var(--dot)) 6px  6px/6px 6px no-repeat,
    linear-gradient(var(--dot),var(--dot)) 16px 6px/6px 6px no-repeat,
    linear-gradient(var(--dot),var(--dot)) 6px  16px/6px 6px no-repeat,
    linear-gradient(var(--dot),var(--dot)) 16px 16px/6px 6px no-repeat;
}
.allprod:hover .grid-ic { --dot: #fb4a3e; }
.allprod:hover .acct-txt { color: #fb4a3e; }
.navrow .vline { margin: 0 20px; }

/* ---- 首屏背景图 ---- */
/* .bgimg 必须是 .page .bgimg(0,3,0)以压过 .bgcell 的 position:relative,
   让背景图脱离文档流垫在 logo 与搜索框后面。 */
.page .bgimg { position: absolute; right: 0; }
.bgcell {
  position: relative; top: 70px; left: 0; z-index: -1;
  width: 100%; height: 300px;
  background: url(assets/pic/hero-bg.png) no-repeat;
  background-position: 50%; background-size: cover;
}
.bgcell.bare { height: 440px; }
.bgcell:before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 85px;
  background: linear-gradient(180deg, hsla(0,0%,100%,0), #fff);
  transform: rotate(-180deg);
}

/* ---- 内容区 ---- */
.stage { position: relative; z-index: 5; margin: 0 auto 47px; padding-top: 150px; }
.stage.bare { padding-top: 246px; }

/* ---- 滚动计数器 ----
   .cells 画静态边框格;.lane-a(旧数字)与 .lane-b(新数字)同位叠放,
   每位独立滚动;.counter 的 overflow:hidden 负责裁剪。宽度由 JS 计算。 */
.counter { position: absolute; top: 95px; right: 0; height: 36px; overflow: hidden; font-style: normal; }
.lab-a { float: left; font-size: 21px; font-weight: 500; line-height: 34px; color: #626469; }
.lab-c { float: right; font-size: 18px; font-weight: 500; line-height: 34px; color: #101214; }
.lab-b { float: right; font-size: 19px; font-weight: 500; line-height: 34px; color: #101214; }
.cells { position: absolute; left: 176px; display: inline-block; }
.cell {
  display: inline-block; width: 27px; height: 32px; margin-left: 3px;
  border: 1px solid #e6e7e8; border-radius: 6px;
}
.cell-plain { display: inline-block; width: 12px; height: 34px; margin-left: 3px; }
.lane-a, .lane-b { position: absolute; left: 176px; display: flex; height: 34px; }
.digit {
  display: inline-block; width: 27px; height: 32px; margin-left: 3px;
  border: 1px solid transparent;
  font-family: "Poppins medium", Poppins, "PingFang SC", system-ui, sans-serif;
  font-size: 20px; font-weight: 600; line-height: 32px; text-align: center;
  color: #2a2b2e;
  /* 不在本层裁剪,与源站一致:容器外会露出约 2px 的 incoming 数字下沿 */
}
.digit li { display: block; height: 32px; line-height: 32px; }
/* 旧数字向上滚出,新数字自下滚入(1s ease) */
.out-from { transform: translateY(0); }
.out-run, .in-run { transition: all 1s ease; }
.out-to   { transform: translateY(-34px); }
.in-to    { transform: translateY(0); }
.in-from  { transform: translateY(34px); }

@media screen and (max-width: 1919px) {
  .counter { height: 28px; }
  .lab-a, .lab-c { font-size: 16px; line-height: 27px; }
  .lab-b { font-size: 14px; line-height: 28px; }
  .cells { left: 133px; display: flex; align-items: center; }
  .cell { width: 20px; height: 24px; line-height: 24px; margin-left: 2px; border-radius: 4px; }
  .cell-plain { width: 7px; height: 28px; margin-left: 2px; }
  .lane-a, .lane-b { left: 133px; height: 26px; }
  .digit { width: 20px; height: 24px; line-height: 28px; margin-left: 2px; font-size: 14px; }
  .digit li { height: 24px; line-height: 28px; }
  .out-to  { transform: translateY(-28px); }
  .in-from { transform: translateY(28px); }
  .in-to   { transform: translateY(0); }
}
/* 源站此处写作未限定作用域的 .cells,.lane-a,.lane-b{left:154px},
   优先级(0,2,0)输给基础规则(0,3,0),154px 实际从不生效。
   为保持级联表现一致,这里同样不加限定。 */
@media screen and (min-width: 1920px) {
  .cells, .lane-a, .lane-b { left: 154px; }
}
.has-banner { top: 143px !important; }

/* ---- 搜索区 ---- */
.findbox { position: relative; text-align: center; }
.find-logo { width: 242px; margin-bottom: 36px; }
@media screen and (min-width: 5210px) { .find-logo { margin-bottom: 133px; } }

.find-frame {
  position: relative; z-index: 999;
  width: 640px; height: 78px; margin: 0 auto; box-sizing: border-box;
  background: #fff; border: 3px solid #101214; border-radius: 18px;
  box-shadow: 0 8px 34px rgba(16,18,20,.05);
}
.find-row {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  display: flex; align-items: center; box-sizing: border-box;
  width: 100%; height: 100%; padding: 0 21px 0 26px;
}

/* 语言指示:英/中上下排布 + 两枚换向箭头(CSS 边框绘制) */
.lang-view {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 51;
  width: 44px; background: #fff; pointer-events: none;
  font-size: 20px; font-weight: 600; line-height: 1; text-align: left; color: #2a2b2e;
}
.lang-view .lv:last-child { text-align: right; }
.lang-view:before, .lang-view:after {
  content: ""; position: absolute; width: 10px; height: 8px;
  border-style: solid; border-color: #2a2b2e;
}
.lang-view:before { left: 3.4px;  top: 25.6px; border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 3px; }
.lang-view:after  { left: 23.8px; top: 3.2px;  border-width: 1.5px 1.5px 0 0; border-radius: 0 3px 0 0; }

/* 覆盖在指示层上的 44px 透明点击区 */
.langpick {
  position: relative; display: inline-block; vertical-align: middle; flex-shrink: 0;
  width: 44px; min-height: 32px; line-height: 1;
  background: none; border-radius: 5px; cursor: pointer;
}
.lp-sel { display: none; }
.lp-tags { padding: 0; background: none; border: none; border-radius: 5px; opacity: 0; }
.lp-one { background: none; font-size: 15px; font-weight: 500; color: #2a2b2e; }
.lp-wrap {
  position: absolute; top: 65px; left: -26px; z-index: 60;
  display: none; width: 96px; max-height: 500px !important; min-height: 176px;
  padding: 12px 0; overflow: visible;
  background: #fff; border: none; border-radius: 10px;
  box-shadow: 0 8px 33px rgba(0,0,0,.05);
  font-size: 20px; color: #939599;
}
/* 200% 缩放 0.5 的细描边,视觉等同 0.5px */
.lp-wrap:before {
  content: ""; position: absolute; top: 0; left: 0; pointer-events: none;
  width: 200%; height: 200%; box-sizing: border-box;
  border: 1px solid #eeeff0; border-radius: 20px;
  transform: scale(.5); transform-origin: 0 0;
}
.langpick.open .lp-wrap { display: block; }
.lp-list { display: inline-block; width: 100%; }
.lp-opt {
  display: block; min-height: 20px; line-height: 20px; padding: 8px 0;
  text-align: center; cursor: pointer;
}
.lp-opt.sel { background: none; }
.lp-opt:hover, .lp-opt.hot { background: none; color: #fb4a3e; }
@media screen and (max-width: 960px) { .lp-wrap { font-size: 15px; } }

.typebox { display: inline-block; vertical-align: middle; flex: 1; height: 48px; line-height: 48px; margin-left: 31px; }
.typebox input {
  width: 100%; height: 48px; line-height: 48px;
  border: none; outline: none; background: transparent;
  font-family: "Poppins-Regular", Poppins, "PingFang SC", system-ui, sans-serif;
  font-size: 26px; color: #101214;
}
.typebox input::placeholder { color: #c8c9cc; }
@media screen and (min-width: 1920px) { .typebox input { font-size: 35px; } }

.vline { display: inline-block; flex-shrink: 0; width: 1px; height: 25.5px; margin: 0 12px; background-color: #e6e7e8; }

/* 搜索按钮(放大镜)与生词本按钮:CSS 绘制,几何与源站一致 */
.go-btn {
  position: relative; display: inline-block; vertical-align: middle; flex-shrink: 0;
  width: 26px; height: 26px; cursor: pointer; --ic: #101214;
}
.go-btn:before {
  content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px;
  border: 2.5px solid var(--ic); border-radius: 50%; box-sizing: border-box;
}
.go-btn:after {
  content: ""; position: absolute; right: 2.5px; bottom: 2.5px; width: 8px; height: 2.5px;
  background: var(--ic); border-radius: 2px; transform: rotate(45deg); transform-origin: right center;
}
.go-btn:hover { --ic: #fb4a3e; }
.fav-btn {
  position: relative; display: inline-block; vertical-align: middle; flex-shrink: 0;
  width: 30px; height: 30px; cursor: pointer; --ic: #101214;
}
.fav-btn:before {
  content: ""; position: absolute; left: 5px; top: 4px; width: 19px; height: 22px;
  border: 2.5px solid var(--ic); border-radius: 2px 4px 4px 2px; box-sizing: border-box;
}
.fav-btn:after { content: ""; position: absolute; left: 9px; top: 4px; width: 2.5px; height: 22px; background: var(--ic); }
.fav-btn:hover { --ic: #fb4a3e; }

/* 首屏下载按钮 */
.get-app { display: flex; justify-content: center; margin: 24px 0 4px; }
.get-btn {
  display: inline-block; padding: 13px 54px; border-radius: 25px;
  background: #fb4a3e; color: #fff; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(251,74,62,.28);
}
.get-btn:hover { background: #e63e32; }

/* ---- 产品区 ---- */
.prodzone { position: relative; padding-top: 44px; font-family: "PingFang SC"; letter-spacing: 0; }
.prodzone.bare { padding-top: 143px; }
.hero-slide { position: relative; z-index: 9; width: 88%; margin: 20px auto 16px; overflow: hidden; }
.hero-slide:empty { margin: 32px auto 0; }
.hero-slide .hs-track .hs-item .hs-img { width: 100%; height: auto; background: transparent; cursor: pointer; }
.hero-slide .hs-item a { display: block; }

.quick { display: flex; align-items: stretch; justify-content: center; text-align: center; }
.qi { width: 18%; box-sizing: border-box; cursor: pointer; }
.qi-in { text-align: center; }
.qi-ic { display: block; width: 60px; height: 60px; margin: 0 auto 12px; object-fit: contain; }
.qi-t { font-size: 16px; font-weight: 600; line-height: 1; color: #2a2b2e; }
.qi:hover .qi-t { color: #fb4a3e; }

/* 卡片轮播:滑块宽度由 JS 按容器计算(非 CSS 的 180px 图盒),
   每页 4 张,整页平移;箭头仅在卡片数 >4 时出现。 */
.cards { position: relative; z-index: 10; width: 100%; margin: 47px auto 0; }
.deck { width: 89%; margin: 0 auto; overflow: hidden; }
.deck-track { display: flex; transition: transform .4s ease; will-change: transform; }
.card { display: flex; justify-content: center; flex-shrink: 0; box-sizing: border-box; margin-right: 22px; cursor: pointer; }
.card:last-child { margin-right: 0; }
.card-in { width: 100%; text-align: left; }
.card-img {
  display: block; width: 180px; height: 170px; padding: 10px 35px; box-sizing: border-box;
  background: #f4f5f7; border-radius: 12px; object-fit: contain;
}
.card-t { margin-top: 21px; font-size: 24px; font-weight: 500; line-height: 100%; color: #2a2b2e; }
.card-d { margin: 13px 0 21px; font-size: 16px; line-height: 100%; color: #939599; }
.card-a { display: inline-block; font-size: 16px; font-weight: 500; line-height: 100%; color: #4d71ff; cursor: pointer; }
.card-a .a-txt { margin-right: 16px; }
.card-a .a-pop {
  position: absolute; bottom: -106px; display: none; width: 100px; height: 100px;
  border: .5px solid #c8c9cc; border-radius: 3px; transform: scale(1);
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.13);
}
.card:hover .card-a .a-pop { display: block; }
.deck-prev, .deck-next {
  position: absolute; top: 94px; z-index: 11; width: 50px; height: 50px;
  border-radius: 50%; background: #f2f3f5; cursor: pointer;
}
.deck-prev { left: 0; }
.deck-next { right: 0; }
.deck-prev:after, .deck-next:after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border-style: solid; border-color: #9a9da3; border-width: 2px 2px 0 0;
}
.deck-prev:after { transform: translate(-60%,-50%) rotate(-135deg); }
.deck-next:after { transform: translate(-40%,-50%) rotate(45deg); }
.deck-prev:hover:after, .deck-next:hover:after { border-color: #fb4a3e; }
.deck-off { opacity: .35; cursor: default; }

/* ---- 页脚 ---- */
.footbar { margin-top: 135px; }
.ft-default { --ft-bg: #f1f6ff; --ft-h: #2a2f45; --ft-i: #85899e; }
.ft-gray { --ft-bg: #f5f6f7; --ft-h: #2a2b2e; --ft-i: #939599; }
.ft {
  margin: 0 auto; padding: 48px 0 0; box-sizing: border-box;
  background: var(--ft-bg);
  font-family: Poppins, "PingFang SC", system-ui, sans-serif;
  font-size: 12px; text-align: left;
}
.ft-in { display: flex; justify-content: space-between; margin: 0 auto; padding-bottom: 36px; }
.ft-brand .ft-logo { display: block; width: 130px; height: auto; }
.qr-row { display: flex; margin-top: 20px; }
.qr-img { width: 76px; height: 76px; }
.qr-row p { margin-left: 12px; font-size: 14px; font-weight: 400; line-height: 150%; color: var(--ft-i); }
.chan-t { margin-top: 28px; font-size: 14px; font-weight: 400; line-height: 150%; color: var(--ft-i); }
.chan-row { position: relative; margin-top: 12px; }
.chan-ic { width: 32px; height: 32px; }
.chan-ic:nth-child(2) { margin: 0 9px; }

.ft-cols { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; width: 62%; height: 255px; }
.fc { white-space: nowrap; }
.fc:first-child { min-width: 142px; }
.fc:nth-child(6) { position: absolute; left: 0; top: 125px; }
.fc-h { margin-bottom: 9px; font-size: 16px; font-weight: 500; line-height: 16px; color: var(--ft-h); }
.fc-i .fc-a { font-size: 14px; font-weight: 400; line-height: 28px; color: var(--ft-i); }
.fc-i .fc-a:hover { color: #fb4a3e; }

.legal, .ft .report { text-align: center; }
.legal .lk, .legal .tx, .ft .report .lk, .ft .report .tx {
  font-size: 14px; font-weight: 400; line-height: 24px; color: var(--ft-i);
}
.legal a.lk + a.lk, .ft .report .tx, .ft .report a.lk + a.lk { margin-left: 10px; }
.legal .tx { margin-left: 10px; }
.legal .tx .mail, .ft .report .tx .mail { color: var(--ft-i); }
.report { display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 30px; }
.report .sep { display: none; }

/* ---- 响应式:产品区/轮播 ---- */
@media screen and (min-width: 961px) and (max-width: 1919px) {
  .qi-ic { width: 45px; height: 45px; }
  .qi-t { font-size: 12px; }
  .deck { width: 88%; }
  .card { margin-right: 29px; }
  .card-img { width: 136px; height: 128px; padding: 7px 26px; }
  .card-t { margin-top: 16.5px; font-size: 18px; }
  .card-d { margin: 8px 0 9px; font-size: 12px; font-weight: 400; }
  .card-a { font-size: 12px; font-weight: 400; }
  .card-a .a-pop { bottom: -82px; width: 76px; height: 76px; }
  .deck-prev, .deck-next { top: 80px; width: 37.5px; height: 37.5px; }
  .hero-slide { width: 88%; }
}
@media screen and (max-width: 960px) {
  .qi-ic { width: 45px; height: 45px; }
  .qi-t { font-size: 12px; }
  .deck { width: 75%; }
  .card { margin-right: 34px; }
  .card-img { width: 136px; height: 128px; padding: 7px 8px; }
  .card-t { margin-top: 13.5px; font-size: 18px; }
  .card-d { margin: 8px 0 15px; font-size: 12px; line-height: 16.8px; }
  .card-a { font-size: 12px; }
  .card-a .a-pop { bottom: -82px; width: 76px; height: 76px; }
  .deck-prev, .deck-next { top: 80px; width: 37.5px; height: 37.5px; }
  .hero-slide { width: 85%; }
}
