/**
 * LabelStarWeb — HP 视觉主题
 * 设计令牌来源：design-md/hp/DESIGN.md
 * 字体：Inter 替代 Forma DJR Micro
 */

:root {
  --hp-primary: #024ad8;
  --hp-primary-deep: #0e3191;
  --hp-primary-bright: #296ef9;
  --hp-primary-soft: #c9e0fc;
  --hp-ink: #1a1a1a;
  --hp-ink-deep: #000000;
  --hp-on-ink: #ffffff;
  --hp-canvas: #ffffff;
  --hp-cloud: #f7f7f7;
  --hp-fog: #e8e8e8;
  --hp-charcoal: #3d3d3d;
  --hp-graphite: #636363;
  --hp-hairline: #e8e8e8;
  --hp-shadow-soft: 0 2px 8px rgba(26, 26, 26, 0.08);
  --hp-radius-btn: 4px;
  --hp-radius-card: 16px;
  --brand: var(--hp-primary);
}

/*  typography — Inter，HP 正文/标题字重 */
html body,
.header,
.footer,
.btn,
input,
textarea,
select {
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif !important;
}

body {
  color: var(--hp-ink);
  background: var(--hp-canvas);
}

/* 顶栏：HP nav-bar-top 64px 高、ink 文字、hairline 底边 */
.header {
  height: 6.4rem !important;
  border-bottom-color: var(--hp-hairline) !important;
}

.header .left {
  height: 100%;
}

.headerBrand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  text-decoration: none;
  color: var(--hp-ink);
  flex-shrink: 0;
}

.headerBrand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.headerBrand__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headerBrand__name {
  display: inline-flex;
  align-items: flex-start;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.headerBrand__text {
  letter-spacing: 0.02em;
}

.headerBrand__reg {
  font-size: 0.52em;
  line-height: 1;
  margin-left: 0.06em;
  margin-top: 0.14em;
  font-weight: 600;
}

.header .menu .one .first {
  color: var(--hp-ink) !important;
  font-weight: 500;
  font-size: 1.6rem !important;
}

.header .menu .one:hover .first {
  color: var(--hp-primary) !important;
}

.header .menu .one .first::after {
  background: var(--hp-primary) !important;
  height: 2px !important;
  width: 100% !important;
  bottom: 0 !important;
}

.header .menu .one {
  margin-right: 3rem !important;
}

.header .menu .one .twoBox {
  display: none;
  border-radius: var(--hp-radius-btn) !important;
  box-shadow: var(--hp-shadow-soft) !important;
  min-width: 17rem;
  padding: 0.6rem 0;
}

.header .menu .one:hover .twoBox,
.header .menu .one:focus-within .twoBox {
  display: block;
}

.header .menu .one .twoBox .two {
  justify-content: flex-start;
  padding: 0 1.6rem;
  height: 4rem;
  white-space: nowrap;
}

.header .menu .one.one--mega .megaBox {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 30;
  padding-top: 0.8rem;
  transform: translateX(-50%);
}

.header .menu .one.one--mega:hover .megaBox,
.header .menu .one.one--mega:focus-within .megaBox {
  display: block;
}

.header .menu .one .megaBox__inner {
  min-width: 28rem;
  max-width: 36rem;
  padding: 1.2rem;
  background: #fff;
  border-radius: var(--hp-radius-btn, 4px);
  box-shadow: var(--hp-shadow-soft, 0 2px 8px rgba(26, 26, 26, 0.08));
}

.header .menu .one .megaBox__item {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: background 0.2s;
}

.header .menu .one .megaBox__item:hover {
  background: rgba(2, 74, 216, 0.06);
}

.header .menu .one .megaBox__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--hp-ink, #1a1a1a);
  margin-bottom: 0.3rem;
}

.header .menu .one .megaBox__item:hover .megaBox__title {
  color: var(--hp-primary, #024ad8);
}

.header .menu .one .megaBox__desc {
  display: block;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--hp-graphite, #636363);
}

.header .menu .one.one--mega .first::after {
  opacity: 0;
}

.header .menu .one.one--mega:hover .first::after,
.header .menu .one.one--mega:focus-within .first::after {
  opacity: 1;
}

/* 主 CTA：4px 圆角、大写感（中文站点保持原文，仅字重） */
.index .banner .swiper .textBox .btn,
.index .floor1 .left .btn,
.index .floor2 .contentBox .textBox .btnBox .btn,
.detail .formBox .btn,
.lianxi .formBox .btn,
.hezuo .floor1 .search .inputBox .btn,
.hezuo .floor5 .btn,
.lvse .floor3 .btn {
  border-radius: var(--hp-radius-btn) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
}

.index .floor2 .contentBox .textBox .btnBox .btn.view {
  border-radius: var(--hp-radius-btn) !important;
}

/* 区块背景：cloud / fog 交替 */
.index .floor1 {
  background: var(--hp-cloud) !important;
}

.index .floor2 {
  background: var(--hp-fog) !important;
}

.index .floor2 .contentBox .box {
  border-radius: var(--hp-radius-card) !important;
  box-shadow: var(--hp-shadow-soft);
}

.index .floor2 .menuBox .one {
  border-radius: var(--hp-radius-pill) !important;
  padding: 0.8rem 2rem !important;
  border: 1px solid var(--hp-hairline) !important;
  transition: all 0.2s;
}

.index .floor2 .menuBox .one.active {
  background: var(--hp-ink) !important;
  color: var(--hp-on-ink) !important;
  border-color: var(--hp-ink) !important;
}

.index .floor2 .menuBox .one:hover:not(.active) {
  color: var(--hp-primary) !important;
  border-color: var(--hp-primary) !important;
}

/* 页脚：HP footer-dark ink 底 */
.footer {
  background: var(--hp-ink) !important;
}

.footer .top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  row-gap: 2rem;
  align-items: start;
  justify-content: space-between;
}

.footer .top .left {
  display: contents;
}

.footer .top .left .name {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0 !important;
}

.footer .top .leftContact {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .top .leftContact .footerSocial {
  margin-top: 3rem;
}

.footerSocial {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.footerSocial__item {
  position: relative;
  display: flex;
}

.footerSocial__trigger {
  display: flex;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.footerSocial__trigger:hover,
.footerSocial__item:focus-within .footerSocial__trigger {
  opacity: 0.88;
}

.footerSocial__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.footerSocial__icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.footerSocial__popover {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 20;
  padding-bottom: 1.2rem;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.footerSocial__item:hover .footerSocial__popover,
.footerSocial__item:focus-within .footerSocial__popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.footerSocial__popoverBox {
  position: relative;
  padding: 1.4rem;
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 4px 20px rgba(0, 32, 70, 0.12);
}

.footerSocial__popoverBox::after {
  position: absolute;
  bottom: -0.55rem;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  background: #fff;
  border-radius: 0.2rem;
  transform: translateX(-50%) rotate(45deg);
  content: "";
}

.footerSocial__qrcode {
  display: block;
  width: 11rem;
  height: 11rem;
  object-fit: contain;
}

.footer .top .right {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

.footer .top .right .line .one:hover,
.footer .top .right .line .title:hover {
  color: var(--hp-primary-bright) !important;
}

.footer .bot {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* 浮动客服：HP primary 纯色，去掉渐变 */
.pageRight .contact {
  background: var(--hp-primary) !important;
  border-radius: var(--hp-radius-btn) !important;
}

.pageRight .box {
  border-radius: var(--hp-radius-btn) !important;
  box-shadow: var(--hp-shadow-soft) !important;
}

.pageRight .box .one:hover .normal .text {
  color: var(--hp-primary) !important;
}

.pageRight .box .one.backTop {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  appearance: none;
}

.pageRight .box .one.backTop .backTopIcon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pageRight .box .one.backTop .backTopIcon svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke: #666;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.pageRight .box .one.backTop:hover .backTopIcon svg {
  stroke: var(--hp-primary) !important;
}

/* 标签/分页：active 用 ink pill */
.biaoqian .menuBox .one.active {
  background: var(--hp-ink) !important;
  color: var(--hp-on-ink) !important;
  border-radius: var(--hp-radius-pill) !important;
}

.pageList .one.active {
  border-color: var(--hp-primary) !important;
  color: var(--hp-primary) !important;
  border-radius: var(--hp-radius-btn) !important;
}

/* 联系条 */
.contactFloor .btn {
  border-radius: var(--hp-radius-btn) !important;
  font-weight: 600 !important;
}

.contactFloor .btn:hover {
  background: var(--hp-primary) !important;
  color: var(--hp-on-ink) !important;
}

/* 表单输入：HP text-input */
.detail .formBox .line input,
.lianxi .formBox .line input,
.detail .formBox .line textarea,
.lianxi .formBox .line textarea {
  border: 1px solid #c2c2c2 !important;
  border-radius: var(--hp-radius-btn) !important;
}

.detail .formBox .line input:focus,
.lianxi .formBox .line input:focus {
  border-color: var(--hp-ink) !important;
}
