html {
  font-size: 16px; /* 默认基准：1rem = 16px */
}

/* ========================================
   CSS 变量定义（默认/移动端）
======================================== */
:root {
  /* === 主题颜色 === */
  --primary-color: #379487;
  --primary-active-color: #2c786d;
  --primary-color-rgb: 55, 148, 135;
  --primary-color-light: rgba(55, 148, 135, 0.1);
  --primary-gradient: linear-gradient(
    180deg,
    rgba(55, 148, 135, 0.8) 0%,
    #379487 83.86%
  );

  /* === 文字颜色 === */
  --text-color-primary: #222222;
  /* 更强的标题/强调文字（部分模块历史遗留使用 #1d1d1d） */
  --text-color-strong: #1d1d1d;
  --text-color-secondary: #323333;
  --text-color-tertiary: #494949;
  --text-color-light: #777777;
  /* 灰阶补充（用于替换模块内硬编码色值） */
  --text-color-gray-600: #666666;
  --text-color-gray-500: #888888;
  --text-color-gray-400: #999999;
  --text-color-muted: #9a9898;
  --text-color-disabled: #5b5b5b;
  --text-color-white: #ffffff;

  /* === 背景颜色 === */
  --bg-color-white: #ffffff;
  /* 页面底色（body 默认背景） */
  --bg-color-page: #f2f3f7;
  --bg-color-light: #f7f8fa;
  --bg-color-secondary: #f3f5f7;
  --bg-color-tertiary: #f5f5f5;
  --bg-color-soft: #f3fafa;
  --bg-color-subtle: #dbdbdb;
  --bg-color-dark: #141414;
  --bg-color-charcoal: #3b3b3b;

  /* === 边框颜色 === */
  --border-color-default: #cccccc;
  --border-color-light: #d9d9d9;
  --border-color-lighter: #dfdede;
  --border-color-lightest: #ebebeb;
  --border-color-subtle: #e6e6e6;
  --border-color-primary: #379487;

  /* === 强调色 === */
  --accent-color-pink: #ea3a7b;
  --accent-color-magenta: #b71c84;

  /* === 字体系统 === */
  --font-family: 'Arial', sans-serif;

  /* === 字号系统（基准 16px）=== */
  --font-size-h1: 2rem; /* 32px */
  --font-size-h2: 1.5rem; /* 24px */
  --font-size-h3: 1.25rem; /* 20px */
  --font-size-h4: 1.125rem; /* 18px */
  --font-size-h4-small: 1.0625rem; /** 17px */
  --font-size-h5: 1rem; /* 16px */
  --font-size-base: 1rem; /* 16px - 正文基础 */
  --font-size-body: 0.875rem; /* 14px - 辅助正文 */
  --font-size-small: 0.8125rem; /* 13px - 备注文字 */
  --font-size-xs: 0.76825rem;
  --font-size-tiny: 0.75rem; /* 12px - 最小文字 */
  --font-size-mini: 0.6rem;

  /* === 按钮和导航文字 === */
  --font-size-btn-primary: 0.8rem; /* 约 13px */
  --font-size-btn-secondary: 0.7rem; /* 约 11px */
  --font-size-nav: 0.7rem; /* 约 11px */

  /* === 字重系统 === */
  --font-weight-black: 900;
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;
  --font-weight-normal: 400;

  /* === 行高系统 === */
  --line-height-title: 1.2;
  --line-height-subtitle: 1.25;
  --line-height-body: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-compact: 1.3;
  --line-height-menu: 3.14;

  /* === 间距系统（基准 16px）=== */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.4rem; /* 6px */
  --spacing-md: 0.5rem; /* 8px */
  --spacing-base: 0.6rem; /* 10px */
  --spacing-lg: 0.75rem; /* 12px */
  --spacing-xl: 0.9rem; /* 14px */
  --spacing-2xl: 1rem; /* 16px */
  --spacing-3xl: 1.2rem; /* 19px */
  --spacing-4xl: 1.25rem; /* 20px */
  --spacing-5xl: 2rem; /* 32px */
  --spacing-6xl: 2.4rem; /* 38px */
  --spacing-7xl: 2.5rem; /* 40px */
  --spacing-8xl: 2.75rem; /* 44px */
  --spacing-9xl: 4rem; /* 64px */

  /* === 容器系统 === */
  --container-width-full: 1920px;
  --container-width-xl: 1500px;
  --container-width-lg: 1230px;
  --container-padding-x: 15px; /* 20px */

  /* === 导航栏 === */
  --nav-height: 44px;
  --nav-gap: 0.5rem; /* 8px */
  --nav-logo-gap: 1.2rem; /* 19px */

  /* === 圆角系统 === */
  --border-radius-circle: 50px;
  --border-radius-lg: 12px;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;

  /* === 边框宽度 === */
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 2.625px;

  /* === 阴影系统 === */
  --shadow-sm: 0px 0px 1px 0px rgba(136, 136, 136, 1);
  --shadow-md: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 4px 4px 0px rgba(255, 255, 255, 0.25);

  /* === 过渡动画 === */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* === 组件间距 === */
  --component-gap: 4rem; /* 64px */
}

/* ========================================
   全局样式
======================================== */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--text-color-primary);
  background-color: var(--bg-color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   容器
======================================== */
.container {
  max-width: var(--container-width-lg);
  margin: 0 auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

/* ========================================
   标题系统
======================================== */
h1,
.h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

h2,
.h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-subtitle);
}

h3,
.h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-compact);
}

h4,
.h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-compact);
}

h5,
.h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-body);
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}

/* ========================================
   工具类
======================================== */
/* 文本颜色 */
.text-primary {
  color: var(--primary-color) !important;
}

.text-white {
  color: var(--text-color-white) !important;
}

.text-muted {
  color: var(--text-color-muted) !important;
}

.text-light {
  color: var(--text-color-light) !important;
}

/* 背景色 */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--bg-color-light) !important;
}

.junhua-card {
  overflow: hidden;
}

.junhua-card:hover {
}

/* ========================================
   动画类
======================================== */
/* 基础淡入动画 */
.junhua-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 从下向上滑入 */
.junhua-slide-up {
  opacity: 0;
  transform: translateY(1.875rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.junhua-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 从上向下滑入 */
.junhua-slide-down {
  opacity: 0;
  transform: translateY(-1.875rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.junhua-slide-down.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 从左向右滑入 */
.junhua-slide-right {
  opacity: 0;
  transform: translateX(-1.875rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.junhua-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* 从右向左滑入 */
.junhua-slide-left {
  opacity: 0;
  transform: translateX(1.875rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.junhua-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   响应式断点
   Mobile First 设计
======================================== */

/* === 中小屏（<992px）移动端/平板端 === */
@media screen and (max-width: 992px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 100%;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
  }

  /* 按钮优化 */
  .junhua-btn {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-btn-primary);
  }

  .junhua-btn-secondary {
    padding: 0.75rem 1.5rem;
  }

  /* 动画优化 */
  .junhua-slide-up,
  .junhua-slide-down {
    transform: translateY(1.25rem);
  }

  .junhua-slide-right,
  .junhua-slide-left {
    transform: translateX(1.25rem);
  }

  .junhua-slide-up,
  .junhua-slide-down,
  .junhua-slide-right,
  .junhua-slide-left {
    transition-duration: 0.4s;
  }
}

/* === 桌面端（1024px ~ 1439px）=== */
@media screen and (min-width: 1024px) {
  html {
    font-size: 16px;
  }

  :root {
    /* 字号系统（基准 20px）*/
    --font-size-h1: 2.8rem; /* 56px - 主标题 */
    --font-size-h2: 2.3rem; /* 46px - 次级标题 */
    --font-size-h3: 1.6rem; /* 32px - 三级标题 */
    --font-size-h4: 1.3rem; /* 26px - 四级标题 */
    --font-size-h4-small: 1.2rem; /** 24px*/
    --font-size-h5: 1rem; /* 20px - 五级标题 */
    --font-size-base: 1rem; /* 20px - 正文基础 */
    --font-size-body: 0.9rem; /* 18px - 辅助正文 */
    --font-size-small: 0.8rem; /* 16px - 备注文字 */
    --font-size-xs: 0.75rem;
    --font-size-tiny: 0.7rem; /* 14px - 最小文字 */
    --font-size-mini: 0.6rem;

    /* 按钮和导航 */
    --font-size-btn-primary: 0.8rem; /* 16px */
    --font-size-btn-secondary: 0.75rem; /* 15px */
    --font-size-nav: 0.7rem; /* 14px */

    /* 间距系统  20px*/
    --spacing-xs: 0.25rem; /* 5px */
    --spacing-sm: 0.4rem; /* 10px */
    --spacing-md: 0.5rem; /* 10px */
    --spacing-base: 0.6rem; /* 12px */
    --spacing-lg: 0.75rem; /* 15px */
    --spacing-xl: 0.9rem; /* 18px */
    --spacing-2xl: 1rem; /* 20px */
    --spacing-3xl: 1.2rem; /* 24px */
    --spacing-4xl: 1.25rem; /* 25px */
    --spacing-5xl: 2rem; /* 40px */
    --spacing-6xl: 2.4rem; /* 48px */
    --spacing-7xl: 2.5rem; /* 50px */
    --spacing-8xl: 2.75rem; /* 55px */
    --spacing-9xl: 4rem; /* 80px */

    /* 容器系统 */
    --container-padding-x: 100px; /* 15px */

    /* 导航栏 */
    --nav-gap: 0.5rem; /* 10px */
    --nav-logo-gap: 1.2rem; /* 24px */

    /* 组件间距 */
    --component-gap: 5rem; /* 100px */
  }

  .container {
    max-width: 100%;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
  }

  /* 导航悬停态 */
  .nav-link:hover {
    font-size: calc(var(--font-size-nav) + 0.05rem);
  }
}

@media screen and (min-width: 1440px) {
  html {
    font-size: 17px;
  }
}
@media screen and (min-width: 1580px) {
  :root {
    --container-padding-x: clamp(120px, 18.75vw - 150px, 210px);
  }
  html {
    font-size: 18px;
  }

  .container {
    max-width: 100%;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
  }
}

/* === 超大屏（≥1920px）=== */
@media screen and (min-width: 1920px) {
  html {
    /* 流体缩放：1920px-3840px 之间，20px-28px */
    font-size: clamp(20px, 0.52vw + 10px, 28px);
  }

  :root {
    --container-padding-x: 10.5rem;
  }

  .container {
    max-width: 1920px;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
  }
}

.junhua-btn-large,
.junhua-btn-middle,
.junhua-btn-small {
  display: inline-block;
  padding: var(--spacing-base) var(--spacing-4xl);
  background: var(--primary-color);
  color: var(--text-color-white);
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  cursor: pointer;
  width: max-content;
}

.junhua-btn-large {
  padding: var(--spacing-md) var(--spacing-2xl);
}

.junhua-btn-middle {
  padding: var(--spacing-md);
}

.junhua-btn-small {
  padding: var(--spacing-xs) var(--spacing-md);
}

.junhua-btn-large:hover,
.junhua-btn-middle:hover,
.junhua-btn-small:hover {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}

#pagesize {
  display: flex;
}

#pagesize ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xl);
}

#pagesize ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
  font-size: var(--font-size-small);
}

#pagesize ul li a.active {
  color: #fff;
  background-color: var(--primary-color);
}

#pagesize ul li:first-child *,
#pagesize ul li:first-child a {
  background-color: transparent;
  color: #000;
}

#pagesize ul li:last-child a,
#pagesize ul li:last-child * {
  background-color: transparent;
  color: #000;
}

.inqury_submit {
  background-color: var(--primary-color) !important;
  border-radius: 0px !important;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.inqury_submit:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background-color: transparent !important;
  color: var(--primary-color);
}
