/*----===========CSS VARIABLES (Design Tokens)============*/
:root {
  /* 主要色调 - token: 主色调 */
  --primary-color: #1b62cb;
  /* 次要文字颜色 - token: 次要文字颜色 */
  --secondary-text: #9ca3af;
  /* foot颜色 - token: foot颜色 */
  --footer-color: #111827;
  /* 基础文字颜色 */
  --base-color: #111827;
  /* 默认文本色 - token: 默认文本色 */
  --default-text: #4b5563;
  /* 纯白 - token: 纯白 */
  --pure-white: #ffffff;
  /* 正文色 - token: 正文色/正文色 */
  --body-text: #1a1a1a;
  /* 主要色 - token: 主要色/主要色 */
  --main-color: #0256ff;

  /* 辅助色彩 */
  --red-accent: #e83323;
  --blue-accent: #2e7ef6;
  --gray-text: #374151;
  --light-gray: #4b5563;
  --dark-gray: #353c4c;

  /* 响应式断点变量 */
  --breakpoint-desktop: 1230px;
  --breakpoint-tablet: 768px;
  --breakpoint-mobile: 576px;

  /* 颜色变量 */
  --bg-secondary: #f9fafb; /* 次要背景色 */
  --bg-white: #ffffff; /* 纯白 */
  --text-primary: #3d3d3d; /* 主要文本色 */
  --text-foot: #111827; /* foot颜色 */
  --text-secondary: #4b5563; /* 默认文本色 */
  --text-muted: #9ca3af; /* 次要文字颜色 */
  --placeholder-bg: #d8d8d8; /* 占位符背景色 */
  --primary-blue: #1b62cb; /* 主色调 */
  --accent-red: #e83323; /* 强调红色 */
  --accent-blue: #2e7ef6; /* 强调蓝色 */

  /* 阴影效果 */
  --shadow-box: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);

  /* History页面特定颜色变量 - token: 表格颜色 */
  --table-row-odd-bg: #eef1f6; /* 表格奇数行背景 */
  --table-row-even-bg: #dbe0e7; /* 表格偶数行背景 */

  /* Contact Us页面特定颜色变量 */
  --contact-form-bg: #f2f4f5; /* 表单输入框背景色 */
  --contact-button-bg: #1b62cb; /* 发送按钮背景色 */
}

/*----===========GLOBAL STYLES============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: var(--default-text);
  overflow-x: hidden;
}

/* 导航打开时锁定body滚动 */
body.nav-open {
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 2px;
  margin: 0;
}

.container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

.space-100 {
  padding: 100px 0;
}

.space-60 {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

.flex {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.nowrap {
  flex-wrap: nowrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 响应式栅格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-12 {
  width: 100%;
  padding: 0 15px;
}

.mb-10 {
  margin-bottom: 10px;
}
.list-style-disc {
  list-style-type: disc;
}

/*----===========LOADING ANIMATION============*/
.load-wrapp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pure-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.load-circle {
  width: 50px;
  height: 50px;
  border: 3px solid var(--secondary-text);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*----===========HEADER AREA============*/
.header-area {
  background: var(--pure-white);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.header-area.sticky {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-area-container {
  height: 60px;
  display: flex;
  align-items: center;
}
.header-area-container .flex {
  width: 100%;
}

.header-logo-wrapper {
  width: 300px;
}

.logo-area .logo-text {
  display: flex;
  flex-direction: column;
}

.logo-area .logo-text h3 {
  font-family: Arial;
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
  letter-spacing: normal;
  margin-bottom: 0;
  color: var(--base-color);
}

.logo-area .logo-text p {
  font-size: 25px;
  color: var(--default-text);
  margin: 0;
  font-family: "HGep022", Arial, sans-serif;
}

.logo-area .logo-img {
  width: 200px;
  height: 20px;
}

.header-menu-wrapper {
  width: 900px;
  padding: 0;
}

/*----===========DESKTOP NAVIGATION (>=1230px)============*/
.navigation-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-menu {
  display: block;
}

.desktop-menu .navbar {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.desktop-menu .navbar li a {
  font-family: Roboto;
  font-size: 17px;
  line-height: 17px;
  font-weight: normal;
  color: var(--gray-text);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  letter-spacing: normal;
}

.desktop-menu .navbar li a[aria-current="page"]:hover {
  color: var(--primary-color);
}

.desktop-menu .navbar li a[aria-current="page"] {
  color: var(--base-color);
  font-weight: bold;
}

.desktop-menu .navbar li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 24px;
  height: 4px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

/*----===========SIDE NAVIGATION (<1230px)============*/
.mobile-navigation {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--base-color);
  margin: 5px 0;
  transition: all 0.3s;
  transform-origin: center;
}

/* 汉堡菜单激活状态动画 */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.side-navigation {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: var(--pure-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 80px 20px 20px;
}

.side-navigation.active {
  left: 0;
}

.side-navigation .mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-navigation .mobile-menu li {
  margin-bottom: 20px;
}

.side-navigation .mobile-menu li a {
  font-family: Roboto;
  font-size: 18px;
  color: var(--gray-text);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.side-navigation .mobile-menu li a:hover,
.side-navigation .mobile-menu li a[aria-current="page"] {
  color: var(--primary-color);
}

.navigation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.navigation-overlay.active {
  opacity: 1;
  visibility: visible;
}

/*----===========PAGE TITLE AREA============*/
.page-title-area {
  background: url("../img/page_title_bg.png") no-repeat center center;
  background-size: cover;
  padding: 80px 0 80px;
  margin-top: 80px;
}

.page-title-content {
  text-align: center;
}

.page-title {
  color: var(--pure-white);
  font-family: Arial;
  font-size: 54px;
  font-weight: bold;
  line-height: 54px;
  margin: 0;
}

/*----===========FOOTER AREA============*/
.footer-area {
  background: var(--footer-color);
  color: var(--secondary-text);
}

.footer-area .container {
  display: flex;
  justify-content: space-between;
}

.footer-area .footer-links-wrapper {
  display: flex;
}

.footer-main {
  padding: 40px 0;
}

.footer-info .footer-logo img {
  width: 416px;
  height: 27px;
}

.footer-info .footer-logo p {
  font-size: 25px;
  color: var(--secondary-text);
  margin-bottom: 10px;
  font-family: "HGep022", Arial, sans-serif;
}

.footer-info p {
  font-size: 18px;
  color: var(--secondary-text);
  line-height: 1.8;
}

.footer-area .footer-links {
  width: 200px;
}

.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
}

.footer-links ul li a:hover {
  color: var(--pure-white);
}

.footer-bottom {
  background: var(--footer-color);
  padding: 40px 0;
  border-top: 1px solid var(--dark-gray);
}

.footer-copyright {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright img {
  width: 434px;
  height: 32px;
  margin-right: 20px;
}

.footer-copyright p {
  font-size: 16px;
  color: var(--secondary-text);
  margin: 0;
}

/*----===========RESPONSIVE DESIGN============*/

/*----===========TABLET AND MOBILE (<1230px)============*/
@media (max-width: 1229px) {
  /* 启用侧边导航 */
  .desktop-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-navigation {
    display: block;
  }

  /* 调整容器宽度 */
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  /* 调整头部布局 */
  .header-logo-wrapper {
    width: auto;
    flex: 1;
  }

  .header-menu-wrapper {
    width: auto;
  }

  /* 调整栅格布局 */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 页面标题响应式调整 */
  .page-title {
    font-size: 42px;
    line-height: 50px;
  }
}

/*----===========TABLET (768px-1229px)============*/
@media (max-width: 1229px) and (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .space-100 {
    padding: 80px 0;
  }
}

/*----===========MOBILE (<768px)============*/
@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }

  .space-100 {
    padding: 60px 0;
  }

  .space-60 {
    padding: 40px 0;
  }

  /* 头部调整 */
  .header-area-container {
    height: 50px;
  }

  .logo-area .logo-text h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .logo-area .logo-text p {
    font-size: 20px;
  }

  /* 页面标题调整 */
  .page-title-area {
    padding: 100px 0 60px;
  }

  .page-title {
    font-size: 36px;
    line-height: 44px;
  }

  /* 侧边导航调整 */
  .side-navigation {
    width: 280px;
    padding: 70px 15px 15px;
  }

  .side-navigation .mobile-menu li a {
    font-size: 16px;
  }

  /* Footer调整 */
  .footer-area .container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-area .footer-links-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .footer-info .footer-logo img {
    width: 300px;
    height: 20px;
  }

  .footer-info .footer-logo p {
    font-size: 20px;
  }

  .footer-info p {
    font-size: 16px;
  }

  .footer-links ul li a {
    font-size: 16px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 15px;
  }

  .footer-copyright img {
    width: 300px;
    height: 22px;
    margin-right: 0;
  }

  .footer-main {
    padding: 30px 0;
  }

  .col-lg-12 {
    padding: 0;
  }

  .row {
    margin: 0;
  }

  .footer-main {
    display: none;
  }
}

/*----===========SMALL MOBILE (<576px)============*/
@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }

  /* 页面标题调整 */
  .page-title {
    font-size: 28px;
    line-height: 36px;
  }

  /* 侧边导航调整 */

  /* Footer进一步调整 */
  .footer-info .footer-logo img {
    width: 250px;
    height: 16px;
  }

  .footer-info .footer-logo p {
    font-size: 18px;
  }

  .footer-copyright img {
    width: 250px;
    height: 18px;
  }

  .col-lg-12 {
    padding: 0;
  }

  .row {
    margin: 0;
  }
}
