/* 全局：rem 布局下避免 padding/border 撑破宽高 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
:root {
  --ts-transition: 0.6s ease;
  --ts-btn: #0482FF;
  --ts-btn-hover: #9BCDFF;
  --ts-btn-active: #035BB3;
  --ts-text: #1c1c1c;
  --ts-text-sub: #5d5e62;
}
html { font-size: 16px; }
@media screen and (min-width: 981px) and (max-width: 1910px) {
  html { font-size: calc(100vw / 120) !important; }
}

@font-face {
  font-family: s-regular;
  src: url("../font/MiSans-Regular.woff2") format("woff2"), url("../font/MiSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: s-medium;
  src: url("../font/MiSans-Medium.woff2") format("woff2"), url("../font/MiSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: s-demibold;
  src: url("../font/MiSans-Demibold.woff2") format("woff2"), url("../font/MiSans-Demibold.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: s-semibold;
  src: url("../font/MiSans-Semibold.woff2") format("woff2"), url("../font/MiSans-Semibold.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 { font-weight: normal; }
body {
  font-family: s-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ts-text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* 全站主按钮：默认 #0482FF，悬浮 #9BCDFF，点击 #035BB3 */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--ts-btn);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ts-transition);
}
.ts-btn:hover {
  background: var(--ts-btn-hover);
  color: #fff;
}
.ts-btn:active {
  background: var(--ts-btn-active);
  color: #fff;
}

/* 版心默认 1440px = 90rem；Figma 1600 页在专属 CSS 覆盖为 100rem */
.section {
  width: 90rem;
  max-width: 90rem;
  margin: 0 auto;
}

.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-none { flex: none; }
.min-h-0 { min-height: 0; }
.min-w-0 { min-width: 0; }
.full-width { width: 100%; }
.full-height { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.f-16 { font-size: 1rem; }
.f-20 { font-size: 1.25rem; }
.f-24 { font-size: 1.5rem; }
.f-32 { font-size: 2rem; }
.f-40 { font-size: 2.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.site-header,
.site-footer {
  width: 100%;
}

/* 页内锚点顶栏：默认透明，滚动后白底 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.admin-bar .site-header {
  top: 32px;
}
.site-header.is-scrolled,
.site-header.is-solid,
.site-header.site-header--overlay:hover {
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}
.site-header-inner {
  height: 5rem;
}
.site-logo {
  position: relative;
  display: block;
  width: 12.6875rem;
  height: 1.625rem;
  flex-shrink: 0;
}
.site-logo img {
  position: absolute;
  left: 0;
  top: 0;
  width: 12.6875rem;
  height: 1.625rem;
  max-width: none;
  object-fit: contain;
}
.site-logo-dark {
  opacity: 0;
}
.site-header.is-scrolled .site-logo-white,
.site-header.is-solid .site-logo-white,
.site-header.site-header--overlay:hover .site-logo-white {
  opacity: 0;
}
.site-header.is-scrolled .site-logo-dark,
.site-header.is-solid .site-logo-dark,
.site-header.site-header--overlay:hover .site-logo-dark {
  opacity: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  height: 5rem;
  gap: 5rem;
}
.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 5rem;
  padding-bottom: 0;
  font-family: s-demibold, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}
.site-header.is-scrolled .site-nav-item,
.site-header.is-solid .site-nav-item,
.site-header.site-header--overlay:hover .site-nav-item {
  color: #1c1c1c;
}
.site-header.is-scrolled .site-nav-item:hover:not(.site-nav-consult),
.site-header.is-solid .site-nav-item:hover:not(.site-nav-consult),
.site-header.site-header--overlay:hover .site-nav-item:hover:not(.site-nav-consult),
.site-header.is-scrolled .site-nav-item.is-active:not(.site-nav-consult),
.site-header.is-solid .site-nav-item.is-active:not(.site-nav-consult),
.site-header.site-header--overlay:hover .site-nav-item.is-active:not(.site-nav-consult) {
  color: #0482ff;
}
.site-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .9375rem;
  width: 0;
  height: 0.1875rem;
  background: #0482ff;
  transition: width 0.3s cubic-bezier(.68, -.55, .27, 1.55);
}
.site-nav-item:hover,
.site-nav-item.is-active {
  color: #0482ff;
}
.site-nav-item:hover::after,
.site-nav-item.is-active::after {
  width: 100%;
}
.site-nav-consult {
  align-self: center;
  width: 4.75rem;
  height: 2.25rem;
  padding-bottom: 0;
  border-radius: 0.375rem;
  font-family: s-demibold, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4375rem;
  color: #fff;
}
.site-nav-consult::after {
  display: none;
}
.site-header.is-scrolled .site-nav-consult,
.site-header.is-solid .site-nav-consult,
.site-header.site-header--overlay:hover .site-nav-consult,
a.ts-btn.site-nav-consult:hover,
a.ts-btn.site-nav-consult.is-active {
  color: #fff;
}

.site-footer {
  background: #212121;
}
.site-footer-inner {
  height: 5rem;
}
.site-footer-copy,
.site-footer-icp {
  margin: 0;
  font-family: s-regular, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: #92959a;
}

body.home #primary {
  padding-top: 0;
}
body:not(.home) #primary {
  padding-top: 5rem;
}
body:not(.home) .site-header--overlay + #primary {
  padding-top: 0;
}

.tsingcar-placeholder {
  padding: 4rem 0;
}
.tsingcar-placeholder h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}
.tsingcar-placeholder p {
  color: #666;
}
