/* ============================================================
 * common/style.css  全站全局样式变量与通用类
 * 作者：@author sctjsj.com   @date 2026
 * 说明：定义全局 CSS 变量（主色/文字/间距/圆角/z-index）与通用工具类。
 *       页面专属变量请写在 custom.css 顶部按页面分块，禁止散落魔法数字。
 * ========================================================== */

/* 本地字体接入：阿里巴巴普惠体 Bold（页面水印 AlibabaPuHuiTiB 引用） */
@font-face {
  font-family: AlibabaPuHuiTiB;
  src: url("../fonts/Alibaba-PuHuiTi-Bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

/* 本地字体接入：Open Sans SemiBold（英文/数字加粗展示用） */
@font-face {
  font-family: "Open Sans SemiBold";
  src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {

  --color-primary: #1E4EB4;
  --color-primary-deep: #0a2a6b;
  --color-primary-darker: #071e4d;
  --color-primary-light: #e8f1ff;
  --color-accent: #3b82f6;
  --color-gold: #c9a25a;

  --color-bg: #ffffff;
  --color-bg-soft: #f5f8fd;
  --color-footer-bg: #171e2e;
  --color-footer-bg2: #1f2739;
  --text-main: #1f2d3d;
  --text-sub: #333333;
  --text-light: #8a97ab;
  --text-inverse: #ffffff;
  --border-color: #e3e9f2;
  --line-color: #eef2f8;
  --line-colorf: #FF000000;
  --line-color6: #666666;
  --line-color7:#FF666666;
  --line-color8: #FF333333;
  --line-color9: #2C5ABB;
  --line-color10:#FF1E4EB4;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-20: 1.25rem;
  --fs-lg: 1.375rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-xl: 1.875rem;
  --fs-2xl: 2.625rem;
  --fs-3xl: 3.75rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 62.4375rem;

  --nav-height: 6.5625rem;
  --container-w: 107.5rem;
  --container-pad: 1.5rem;

  --shadow-sm: 0 0.125rem 0.5rem rgba(10, 42, 107, .06);
  --shadow-md: 0 0.5rem 1.5rem rgba(10, 42, 107, .10);
  --shadow-lg: 0 1rem 3rem rgba(10, 42, 107, .16);

  --z-nav: 1000;
  --z-drawer: 1200;
  --z-mask: 1100;
  --z-totop: 900;
  --z-anchor: 950;
  --z-modal: 1300;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur: .6s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 48.0625rem) and (max-width: 119.9375rem) {
  html {
    font-size: calc(100vw / 120);
  }
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

.site-main {
  padding-top: var(--nav-height);
}

@media (max-width: 48rem) {
  :root {
    --nav-height: 4rem;
  }
}


.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--sp-2);
}

.gap-3 {
  gap: var(--sp-3);
}

.gap-4 {
  gap: var(--sp-4);
}

.gap-5 {
  gap: var(--sp-5);
}

.text-primary {
  color: var(--color-primary);
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lazyimg {
  background: #eef2f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23eef2f8'/%3E%3C/svg%3E") center/cover no-repeat;
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.section-head {
  position: relative;
  overflow: hidden;
}

.section-head__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.section-head__title::before {
  content: "//";
  color: var(--color-primary);
  font-weight: 700;
}

.section-head__sub {
  color: var(--text-sub);
  margin-left: var(--sp-2);
  font-size: var(--fs-base);
}

.section-head__watermark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(31, 111, 229, .06);
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {

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