@font-face {
    font-family: "PingFang";
    src: url("../fonts/PingFang-Bold.ttf");
}

body {
    font-family: "PingFang";
}

/* 动态根字体大小 - 基于设计稿宽度1920px */
/* 在1920px宽度时，1rem = 100px */
/* 计算公式：设计稿宽度1920px / 100 = 19.2，所以 font-size = 100vw / 19.2 */
html {
    font-size: calc(100vw / 19.2);
    /* 设置最小和最大字体大小，避免极端情况 */
    /* 最小：移动端320px时，font-size约为16.67px (320/19.2) */
    /* 最大：超大屏3840px时，font-size为200px (3840/19.2)，限制为10rem避免过大 */
    font-size: clamp(0.5rem, calc(100vw / 19.2), 10rem);
}

/* 针对超小屏幕的额外保护 */
@media (max-width: 320px) {
    html {
        font-size: 0.5rem;
    }
}

/* 针对超大屏幕的限制 */
@media (min-width: 3840px) {
    html {
        font-size: 10rem;
    }
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'PingFang', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; */
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
    background: #FFFFFF;
}
/* 顶部导航栏 */
.top-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.18rem 1.2rem;
    position: absolute;
    z-index: 1111;
}

.top-bar-container {
  max-width: 19.2rem;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4.89rem;
}

.logo {
  width: 3.63rem;
  height: 0.54rem;
  object-fit: contain;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-tab {
  padding: 0.1rem;
  color: #FFFFFF;
  font-size: 0.18rem;
  line-height: 0.26rem;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav-tab:hover {
  opacity: 0.8;
}


/* 菜单导航 */
.menu-nav {
  width: 100%;
  background: #4F80C8;
  padding: 0.12rem 3.6rem;
    position: absolute;
    z-index: 999;
}

.menu-nav-container {
  max-width: 19.2rem;
  margin: 0 auto;
}

.menu-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.menu-title {
  font-size: 0.24rem;
  line-height: 0.48rem;
  color: #FFFFFF;
  font-weight: 400;
}

.menu-divider {
  width: 0.02rem;
  height: 0.2rem;
  background: rgba(255, 255, 255, 0.6);
}

.menu-tabs {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.menu-tab-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.08rem;
  height: 0.48rem;
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 0.02rem solid transparent;
}

.menu-tab-item span {
  font-size: 0.18rem;
  line-height: 0.36rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.menu-tab-item.active {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.menu-tab-item.active span {
  color: rgba(255, 255, 255, 0.9);
}

.menu-tab-item:hover span {
  color: rgba(255, 255, 255, 0.9);
}
/* Banner区域 */
.banner {
    width: 100%;
    height: auto; /* 自适应高度 */
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    /* 确保紧贴导航栏，无间隙 */
    top: 0;
    left: 0;
    z-index: 1;
}

/* Banner图片样式 - 铺满容器且保持比例 */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，铺满容器（超出部分裁剪） */
    object-position: center; /* 图片居中显示 */
    display: block; /* 消除inline默认空隙 */
    min-height: 200px; /* 最小高度，避免图片过小时显示异常 */
    /* 响应式高度设置 */
    max-height: 6.6rem; /* 最大高度限制，避免在大屏上过高 */
}
/** 针对不同屏幕尺寸的响应式调整 *!*/
@media (max-width: 1200px) {
    .banner-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-image {
        max-height: 300px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .banner-image {
        max-height: 220px;
        min-height: 150px;
    }
}
/* 菜单导航与Banner无缝衔接 */
.menu-nav {
    position: relative;
    z-index: 9;
    margin-top: -1px; /* 消除可能的间隙 */
}
/* 返回顶部按钮样式 - 核心修复 */
.back-to-top {
    position: fixed;
    right: 0.56rem;
    bottom: 1rem;
    width: 0.64rem;
    height: 0.64rem;
    background: #FFFFFF;
    border: 0.005rem solid #DCDDE1;
    border-radius: 0.06rem;
    box-shadow: 0 0.08rem 0.1rem -0.05rem rgba(0, 0, 0, 0.08), 0 0.16rem 0.24rem 0.02rem rgba(0, 0, 0, 0.04), 0 0.06rem 0.3rem 0.05rem rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
}

/* 按钮hover效果（可选，提升体验） */
.back-to-top:hover {
    background-color: #3A6BB8; /* 加深蓝色 */
    transform: translateY(-3px); /* 轻微上移 */
    color: #fff;
}

/* 显示返回顶部按钮的类 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 返回顶部图标样式 */
.back-to-top-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/*!* 返回顶部文字样式 *!*/
/*.back-to-top span {*/
/*    font-size: 12px;*/
/*    line-height: 1;*/
/*}*/
/*!* 响应式优化：小屏幕隐藏文字，只显示图标 *!*/
/*@media (max-width: 768px) {*/
/*    .back-to-top span {*/
/*        display: none;*/
/*    }*/
/*    .back-to-top {*/
/*        width: 40px;*/
/*        height: 40px;*/
/*        border-radius: 50%;*/
/*        justify-content: center;*/
/*        padding: 0;*/
/*    }*/
/*}*/
