/* ================================
 * 文件名：global.css
 * 作者：bobo
 * 日期: 2025-05-01
 * 描述：全局样式表
================================ */

/* ================================
 * 全局样式
 ================================ */
body {
  font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  color: #000;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.5rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.75rem;
}

h6 {
  font-size: 1.5rem;
}

p {
  line-height: 1.8;
  margin: 0;
  text-align: justify;
  /* 两端对齐 */
  text-justify: inter-ideograph;
}

/* 移除所有元素的聚焦样式 */
*:focus {
  outline: none;
  /* 移除默认蓝色边框 */
}

a {
  color: #0000009c;
}

a:link,
a:hover,
a:active {
  text-decoration: none;
  color: #0000009c;
  /* 去除下划线 */
}

.btn {
  z-index: 4;
  display: inline-block;
  text-transform: capitalize;
  -webkit-transition: all 0.1s linear;
  transition: all 0.1s linear;
  color: #000000;
  border: 1px solid #00000040;
  outline: none;
  text-align: center;
  padding: 0.5em 1em;
  background: transparent;
  border-radius: 0.25em
}

.btn:hover {
  color: #fff;
  background: #007bff;
  border-color: transparent !important;
}

.btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn-right-align {
  /* display: block; */
  /* margin-left: auto; */
  margin-right: 0;
  margin-top: 1em;
  float: right;
}

.btn span {
  z-index: 1;
  margin-right: 1em;
}

.btn span i {
  float: right;
}

/* 宽度小于575.98px时的样式 */
@media (max-width: 575.98px) {

  .container,
  .container-sm {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
  }
}


/* / 加载器样式 / */
#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #f2f6fd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-svg {
  overflow: hidden;
}

#loader-fill {
  /* 添加过渡效果，使填充动画平滑进行 */
  transition: all 0.2s linear;
  transform-origin: bottom;
  transform: scaleY(0);
}

.loader-progress {
  font-size: 0.75rem;
  line-height: 1em;
  /* font-weight: bold; */
  color: #333;
}



/* ================================
 * 页面头部样式
=============================== */
.other-header {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 8em 0;
  text-align: left;
  /* height: 24em; */
}

/* .other-header h4 {
  font-size: 3rem;
  margin-bottom: 1em;
}

.other-header p {
  font-size: 1.2rem;
  opacity: 0.8;
} */

/* 悬浮按钮 */
.floating-buttons {
  position: fixed;
  bottom: 3em;
  right: 3em;
  z-index: 1000;
}

.floating-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  margin-top: 1em;
  background-color: #ffffff;
  color: #000;
  border: 1px solid #00000020;
  text-align: center;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  transition: all 0.3s ease;
  border-radius: 0.25em;
}

.floating-btn:last-child {
  background: #006cdf;
  color: #fff;
}

.floating-btn:hover {
  background: #007bff;
  color: #fff;
}

.floating-btn i {
  font-size: 1.5em;
}