/* ==========================================================================
   styles.css — 全站共享基础样式层（所有页面第一个引入）
   --------------------------------------------------------------------------
   职责：
   1. @font-face 字体（Noto Sans SC 四个字重，变量名为带冒号的家族名）
   2. 基础重置（源自 Tailwind preflight 的最小集，全站渲染依赖）
   3. 画布骨架：.site-shell / .page-stage / .design-canvas / .scroll-reveal
   4. 桌面页头组件：.site-header / .brand-* / .header-links / .header-actions
   5. 桌面页脚组件：.footer-html 系列
   断点约定：≥790px 显示桌面画布；≤789px 由 mobile-template.css 隐藏
   .page-stage、显示各页 MOBILE-VIEW 区块。
   ========================================================================== */

/* ------------------------------------------------ 字体 */
@font-face {
  font-family: "Noto Sans SC:Bold";
  src: url("../assets/fonts/NotoSansSC.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Noto Sans SC:Light";
  src: url("../assets/fonts/NotoSansSC.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Noto Sans SC:Medium";
  src: url("../assets/fonts/NotoSansSC.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Noto Sans SC:Regular";
  src: url("../assets/fonts/NotoSansSC.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

/* ------------------------------------------------ 基础重置 */
*,
::before,
::after,
::backdrop {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  color: #040404;
  background: #fff;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Noto Sans SC:Regular", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
optgroup,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
}

button,
input:where([type="button"], [type="reset"], [type="submit"]) {
  appearance: button;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none !important;
}

/* ------------------------------------------------ 画布骨架 */
.site-shell {
  background: #fff;
  width: 100%;
  min-height: 100dvh;
  overflow: clip;
}

.page-stage {
  width: 100%;
  min-height: 1px;
  position: relative;
}

.design-canvas {
  transform-origin: top;
  will-change: transform;
  background: #fff;
  width: 1920px;
  height: 6100px;
  position: absolute;
  top: 0;
  left: 50%;
  overflow: hidden;
}

/* 滚动显现：js/script.js 给 [data-reveal] 元素加 .scroll-reveal，
   进入视口后加 .is-visible。 */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(42px);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------ 桌面页头 */
.site-header {
  color: #fff;
  -webkit-user-select: text;
  user-select: text;
  align-items: center;
  width: 100%;
  height: 45px;
  font-family: "Noto Sans SC:Medium", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  display: flex;
}


/* ===== 统一图片 Logo（替代各页面旧的文字/专属图片 Logo） ===== */
.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.site-header .site-logo:hover {
  opacity: 0.85;
}
.site-header .site-logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-wordmark {
  color: #f4b53f;
  -webkit-user-select: text;
  user-select: text;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  height: 67px;
  line-height: 1;
  display: inline-flex;
}

.brand-emblem {
  border: 3px solid;
  border-radius: 50%;
  place-items: center;
  width: 45px;
  height: 45px;
  font-family: "Noto Sans SC:Bold", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: grid;
}

.brand-copy {
  flex-direction: column;
  align-items: center;
  display: flex;
}

.brand-copy strong {
  letter-spacing: 1px;
  white-space: nowrap;
  font-family: "Noto Sans SC:Bold", "Noto Sans SC", sans-serif;
  font-size: 31px;
  font-weight: 700;
}

.brand-copy small {
  letter-spacing: 5px;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 9px;
}

.site-header .brand-wordmark {
  min-width: 236px;
  height: 45px;
}

.site-header .brand-emblem {
  border-width: 2px;
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.site-header .brand-copy strong {
  font-size: 25px;
}

.site-header .brand-copy small {
  margin-top: 3px;
  font-size: 7px;
}

.header-links,
.header-actions {
  align-items: center;
  height: 100%;
  display: flex;
}

.header-links {
  white-space: nowrap;
  gap: 27px;
  margin-left: 60px;
  font-size: 19px;
}

.header-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.header-links a::after {
  content: "";
  opacity: 0;
  background: #f4b53f;
  height: 3px;
  transition: opacity 0.25s, transform 0.25s;
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  transform: scaleX(0.4);
}

.header-links a:hover::after,
.header-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ------------------------------------------------ 二级下拉菜单（静态内联，避免 JS 注入前的闪现）
   与 js/script.js 解耦：首帧即隐藏，悬停/聚焦时展开。 */
.header-links,
.nav-links {
  overflow: visible;
}

.header-links > .nav-item,
.nav-links > .nav-item {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.header-links .nav-dropdown {
  position: absolute;
  z-index: 100;
  top: 45px;
  left: 50%;
  width: 190px;
  padding: 8px 0;
  transform: translate(-50%, -10px);
  background: rgb(35 35 35 / 88%);
  box-shadow: 0 14px 30px rgb(0 0 0 / 18%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s ease;
}

.header-links .nav-dropdown::before {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  content: "";
}

.header-links .nav-item:hover > .nav-dropdown,
.header-links .nav-item:focus-within > .nav-dropdown,
.header-links .nav-item > a:hover + .nav-dropdown,
.header-links .nav-dropdown:hover {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-links .nav-dropdown a {
  display: flex;
  min-height: 48px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  letter-spacing: 1px;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-links .nav-dropdown a::after {
  display: none;
}

/* 悬停反色：选择器带 .site-header + .nav-item 提到 (0,5,1)，压过各页 .xx-page .site-header .header-links a:hover 的金字规则（0,4,1），避免金底金字隐形 */
.site-header .header-links .nav-item .nav-dropdown a:hover,
.site-header .header-links .nav-item .nav-dropdown a:focus,
.site-header .nav-links .nav-item .nav-dropdown a:hover,
.site-header .nav-links .nav-item .nav-dropdown a:focus {
  background: #f4b53f;
  color: #303030;
}

/* 页面画布里的旧版竖排二级菜单：已由页头悬停下拉取代，统一隐藏 */
.heavy-dropdown,
.international-dropdown,
.green-dropdown,
.multimodal-dropdown,
.about-dropdown {
  display: none !important;
}

.header-actions {
  letter-spacing: 1px;
  white-space: nowrap;
  gap: 23px;
  margin-left: auto;
  font-size: 18px;
}

.header-actions a,
.header-actions button {
  color: inherit;
  text-decoration: none;
}

.header-actions button {
  cursor: pointer;
}

.search-control {
  width: 22px;
  height: 22px;
  position: relative;
}

.search-control::before {
  content: "";
  border: 2px solid;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 2px;
  left: 2px;
}

.search-control::after {
  content: "";
  transform-origin: 50%;
  background: currentColor;
  width: 8px;
  height: 2px;
  position: absolute;
  bottom: 3px;
  right: 2px;
  transform: rotate(45deg);
}

.menu-control {
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 22px;
  display: flex;
}

.menu-control span {
  background: currentColor;
  width: 100%;
  height: 2px;
  display: block;
}

/* ------------------------------------------------ 桌面页脚 */
.footer-html {
  position: relative;
  width: 1920px;
  height: 669px;
  overflow: hidden;
  color: #fff;
  font-family: "Noto Sans SC:Light", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.footer-background {
  position: absolute;
  inset: 0;
  background: #464646;
}

.footer-brand-strip {
  position: absolute;
  top: 84px;
  left: 103px;
  width: 1720px;
  height: 67px;
  max-width: none;
}

.footer-contact {
  position: absolute;
  top: 205px;
  left: 106px;
  font-size: 24px;
  font-weight: 300;
  line-height: 48px;
  white-space: nowrap;
  user-select: text;
}

.footer-links {
  position: absolute;
  top: 213px;
  left: 0;
  display: block;
  width: 1920px;
  height: 34px;
  font-size: 24px;
  line-height: 34px;
  white-space: nowrap;
  user-select: text;
}

.footer-links a {
  position: absolute;
  top: 0;
  color: inherit;
  text-decoration: none;
  transform: translateX(-50%);
}

.footer-links a:nth-of-type(1) {
  left: 1428px;
}

.footer-links a:nth-of-type(2) {
  left: 1575px;
}

.footer-links a:nth-of-type(3) {
  left: 1747px;
}

.footer-links span {
  position: absolute;
  top: 0;
  opacity: 0.85;
}

.footer-links span:nth-of-type(1) {
  left: 1501px;
}

.footer-links span:nth-of-type(2) {
  left: 1643px;
}

.footer-copyright {
  position: absolute;
  top: 507px;
  left: 107px;
  font-size: 18px;
  font-weight: 300;
  white-space: nowrap;
  user-select: text;
}

.footer-social {
  position: absolute;
  top: 497px;
  left: 1654px;
  display: flex;
  width: 171px;
  height: 30px;
  align-items: center;
  justify-content: space-between;
}

.footer-social img {
  width: auto;
  height: auto;
  max-height: 30px;
}

/* ------------------------------------------------ 无障碍：减弱动效 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 合作伙伴 Logo 走马灯（首页 / 解决方案页共用） =====
   外层容器给高度，内部两行铺满；匀速滚动，悬停暂停。
   缩略图按 600×400（3:2）上传，单格 300px 宽、行高自适应。 */
.pp-marquee {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pp-row {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pp-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: ppScroll 30s linear infinite;
  will-change: transform;
}

.pp-item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 100%;
  margin-right: 70px;
}

.pp-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 从左往右：translateX 由 -50% 归零，内容向右滚动；
   轨道内容由 JS 复制成偶数份，-50% 与 0 是同一画面，因此无缝循环 */
@keyframes ppScroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.pp-marquee:hover .pp-track {
  animation-play-state: paused;
}
