/* ===== Fonts ===== */
.custom-table-class, .custom-table-wrapper{
  overflow-x: auto;
}
/* Montserrat (variable font) */
@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat/Montserrat-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat/Montserrat-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Inter (variable font) */
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter/Inter-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter/Inter-Italic-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Poppins (static weights) */
@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#jianhua-inquiry-form .container {
  padding: 0;
}

#jianhua-inquiry-form .container .row:nth-of-type(2) {
  padding: 0 9.75rem;
}

@media screen and (max-width: 1024px) {
  #jianhua-inquiry-form .container {
    padding: 0 var(--root-container-spacing) !important;
  }

  #jianhua-inquiry-form .container .row:nth-of-type(2) {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 576px) {
  .jianhua-slide-banner {
    height: 20rem;
  }

  #jianhua-inquiry-form .container .row:nth-of-type(2) {
    padding: 0;
  }
}
:root {
  --header-height: 130px;

  /* Section 上下间距 */
  --section-padding: 5rem;

  /* 字体 */
  --font-family: 'Montserrat';
  --title-font-family: 'Montserrat';

  /* 间距 & 标题字体 - 移动端默认值 */
  --root-container-spacing: 15rem;
  --font-size-h1: 3.75rem;
  --font-size-h2: 3.75rem;
  --font-size-h3: 1.75rem;

  /* 正文字体大小 */
  --font-size-48: 3rem;
  --font-size-32: 2rem;
  --font-size-30: 1.875rem;
  --font-size-28: 1.75rem;
  --font-size-26: 1.625rem;
  --font-size-24: 1.5rem;
  --font-size-20: 1.25rem;
  --font-size-18: 1.125rem;
  --font-size-16: 1rem;
  --font-size-14: 0.875rem;
}

/* 页面加载时隐藏内容，避免 font-size 计算导致抖动 */
html.jianhua-loading body {
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s linear 0.6s,
    opacity 0.6s ease-out;
}

.container {
  margin: 0;
  padding-left: var(--root-container-spacing);
  padding-right: var(--root-container-spacing);
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.jianhua-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  font-family: var(--font-family);
  color: #fff !important;
  font-size: var(--font-size-20);
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
}

.jianhua-btn:hover {
  background: #003978;
}

.jianhua-btn:active {
  background: #002b5a;
}

.custom-pop-inquiry .container {
  padding: 0px !important;
}

h1,
h2,
h3,
h4 {
  /* color: var(--text-color); */
  font-family: var(--title-font-family);
  font-style: normal;
  line-height: 1.3;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-xl);
  line-height: 108%;
}

h2 {
  font-size: max(var(--font-size-h2), 18px);
  font-weight: var(--font-weight-xl);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-lg);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-lg);
}

/* 超大屏幕 (>= 1400px) */
@media screen and (max-width: 1440px) {
  :root {
    --root-container-spacing: 7.5rem;
    --header-height: 80px;
    --section-padding: 4rem;
  }
}

/* 超大屏幕 (>= 1400px) */
@media screen and (max-width: 1024px) {
  html {
    font-size: 14px;
  }
  :root {
    --root-container-spacing: 60px;

    /* 间距 & 标题字体 - 移动端默认值 */
    --font-size-h1: 3.5rem;
    --font-size-h2: 3.5rem;
    --font-size-h3: 2.2rem;
    --font-size-h4: 1.8rem;

    /* 正文字体大小 */
    /* --font-size-subtitle: 1.8rem; */
    /* --font-size-sm: max(1.125rem, 12px);
    --font-size-md: max(1.25rem, 14px);
    --font-size-lg: max(1.5rem, 15px); */
  }
}

/* 大屏幕 (>= 992px) */
@media screen and (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
}

/* 中等屏幕 (>= 768px) */
@media screen and (max-width: 768px) {
  html {
    font-size: 12px;
  }

  :root {
    --font-size-h1: 2.8rem;
    --font-size-h2: 2.8rem;
    --font-size-h3: 1.8rem;
    --font-size-h4: 1.6rem;
    --root-container-spacing: 30px;
    --section-padding: 3rem;
  }
}

/* 小屏幕 (>= 576px) */
@media screen and (max-width: 576px) {
  :root {
    --root-container-spacing: 20px;
    --section-padding: 2rem;

    --font-size-h1: 24px;
    --font-size-h2: 24px;
    --font-size-h3: 16px;
    --font-size-h4: 14px;
  }
}

@media screen and (max-width: 320px) {
  :root {
    --root-container-spacing: 20px;
    --font-size-h1: 2rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.4rem;
    --font-size-h4: 1.2rem;
  }
}
