@charset "UTF-8";
/* ========== 字体定义 ========== */
@font-face {
    font-family: 'OPPO Sans';
    src: url('../font/OPPO Sans 4.0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== 通用重置 & 变量 ========== */
* {
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: 'OPPO Sans', sans-serif;
}
img {
   display: block;
}
a {
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 自定义滚动条样式 - 较小的滚动条 ========== */
body {
    scrollbar-width: thin; /* Firefox - thin滚动条 */
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Firefox - 滚动条颜色 */
    -ms-overflow-style: auto; /* IE and Edge */
}

/* Chrome, Safari, Opera - 自定义滚动条样式 */
body::-webkit-scrollbar {
    width: 0.6rem; /* 滚动条宽度 */
    height: 0.6rem; /* 水平滚动条高度 */
}

body::-webkit-scrollbar-track {
    background: transparent; /* 滚动条轨道背景 */
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3); /* 滚动条滑块颜色 */
    border-radius: 0.3rem; /* 滚动条滑块圆角 */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5); /* 滚动条滑块悬停颜色 */
}

/* 全局滚动条样式 - 应用于所有元素 */
*::-webkit-scrollbar {
    width: 0.6rem;
    height: 0.6rem;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.3rem;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ========== 通用标题样式 ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-en {
    font-size: 3.2rem;
    color: #afb8bf;
    font-weight: bold;
    display: block;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.section-header .line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.section-header .line img {
    margin: 0 1.3rem;
}

.section-header .section-cn {
    font-size: 3.6rem;
    color: #000;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

/* 移动端适配：缩小section-header字号 */
@media(max-width:768px) {
    .section-header .section-en {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-header .section-cn {
        font-size: 1.8rem !important;
    }
    
    .section-header {
        margin-bottom: 1.8rem !important;
    }
    .section-header .line img {
        width: 1.9rem;
        height: 1.2rem;
    }
}

/* ========== 回到顶部按钮样式 ========== */
.back-to-top {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  width: 5rem;
  height: 5rem;
  background-color: #0052D9;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2rem);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 82, 217, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #0039a6;
  transform: translateY(-0.5rem);
  box-shadow: 0 0.6rem 1.6rem rgba(0, 82, 217, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 82, 217, 0.3);
}

.back-to-top svg {
  width: 2.4rem;
  height: 2.4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .back-to-top {
    width: 4.5rem;
    height: 4.5rem;
    bottom: 3rem;
    right: 3rem;
  }

  .back-to-top svg {
    width: 2rem;
    height: 2rem;
  }
}
pre {
  white-space: pre-wrap;   /* 保留换行+自动折行 */
  word-break: break-all;   /* 连续长字符也断 */
  max-width: 100%;         /* 或任意固定宽度 */
}