/* ===== 全局重置与基础设置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --primary-color: rgba(202, 12, 21, 1);
    --secondary-color: rgba(0, 0, 0, 1);
    --accent-color: rgba(202, 12, 21, 1);
    --light-color: rgba(255, 255, 255, 1);
    --dark-color: rgba(0, 0, 0, 1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
  /* 基础字体大小设置（移动优先） */
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  /* 基础字体设置 */
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  line-height: 1.5;
  color: var(--dark-color);
  background-color: rgba(243, 245, 248, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 767px
}
body::-webkit-scrollbar {
  display: none;
}

/* ===== REM响应式布局核心 ===== */
/* 基于2560px设计稿的REM计算（1rem = 100px） */
@media screen and (min-width: 2560px) {
  html {
    font-size: 100px;
  }
}

/* 4K屏幕适配 */
@media screen and (min-width: 3840px) {
  html {
    font-size: 150px; /* 放大1.5倍以适应4K */
  }
}

/* 2K屏幕适配 */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
  html {
    font-size: 75px; /* 2560设计稿的75% */
  }
}

/* 1080p屏幕适配 */
@media screen and (min-width: 1200px) and (max-width: 1919px) {
  html {
    font-size: 58.59375px; /* (1200/2560)*100 ≈ 46.875px，但实际需要更大些 */
  }
}

/* 平板适配 */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  html {
    font-size: 42px;
  }
}

/* 手机适配 */
@media screen and (max-width: 767px) {
  html {
    font-size: 26px;
  }
}

/* 小尺寸手机适配 */
@media screen and (max-width: 320px) {
  html {
    font-size: 20px;
  }
}

/* ===== 通用元素样式重置 ===== */
/* 移除列表样式 */
ul, ol, li {
  list-style: none;
}

/* 链接样式 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* 媒体元素 */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}
svg:not(:root) {
  overflow: hidden;
}

/* 表单元素 */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button, input {
  overflow: visible;
}
button, select {
  text-transform: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
textarea {
  overflow: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* 表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 隐藏元素 */
[hidden] {
  display: none !important;
}

/* ===== 实用工具类 ===== */
/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 屏幕阅读器专用文本 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 响应式图片容器 */
.responsive-img-container {
  position: relative;
  overflow: hidden;
}
.responsive-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== REM单位转换示例 ===== */
/* 
  设计稿尺寸转换公式:
  rem尺寸 = 设计稿尺寸(px) / 100
  
  示例: 设计图中2142px宽容器，字号36px
  .container {
    width: 21.42rem;  2142px / 100 = 21.42rem
    font-size: 0.36rem;  36px / 100 = 0.36rem
  }
*/

/* 容器 */
.container {
  width: 100%;
  max-width: 25.6rem;
  /* 2560px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 767px;
  height: 0.88rem;
  background-color: #FFFFFF;
  padding: 0.15rem 0;
  transition: all .2s linear;
  z-index: 99;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .navbar-brand {
  /* width: 4.01rem; */
  height: 0.58rem;
}
.navbar .navbar-brand img{
  /* width: 4.01rem; */
  height: 0.58rem;
}

.navbar .navbar-nav {
  display: flex;
  height: 0.58rem;
}

.navbar-nav .nav-item {
  position: relative;
  line-height: 0.58rem;
  padding: 0 0.34rem;
  font-size: 0.2rem;
  font-weight: 600;
}

.navbar-nav .nav-item.active {
  color: var(--accent-color);
}
.navbar-nav .nav-item .nav-link{
  text-decoration: none;
  user-select: none;
}

.navbar-nav .nav-item .nav-link.dropdown-toggle{
  user-select: none;
}
.navbar-nav .nav-item .nav-link.dropdown-toggle.dropdown-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
}
.navbar-nav .nav-item .dropdown-menu.show{
  opacity: 1;
  transform: translate(-50%);
  pointer-events: auto;
}
.navbar-nav .nav-item .dropdown-menu{
  min-width: 2rem;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  padding: .2rem;
  background-color:rgb(255, 255, 255);
  border-radius: .2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
.dropdown-item {
  display: block;
  width: 100%;
  white-space: nowrap;
  /* text-align: center; */
  text-decoration: none;
  user-select: none;
  color: var(--dark-color);
  
}
.dropdown-item:hover {
  color: var(--accent-color);
  text-decoration: none;
}









.section {
  margin: 0 auto;
}
.section-title {
  padding: .52rem 0 .42rem;
}
.section-title-ch {
  display: flex;
  align-items: center;
  color: var(--dark-color);
  font-size: 0.24rem;
  line-height: 0.35rem;
}
.section-title-ch .section-title-icon {
  width: 0.3rem;
  height: 0.3rem;
  margin-right: 0.07rem;
}
.section-title-en {
  font-size: 0.2rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 0.29rem;
  color: var(--dark-color);
  text-align: justify;
  vertical-align: top;
}

.animate__animated {
  opacity: 0;
  transform: translateY(30px);
}

.animate__animated.animated  {
  opacity: 1;
  transform: translateY(0);
}

.project-but {
  transition: all 0.4s ease;
}
.project-but:hover {
  transform: translateY(-.08rem);
  box-shadow: 0 .05rem .1rem rgba(0, 0, 0, 0.2);
}


/* 翻转卡片容器 */
.flip-container {
  perspective: 10rem;
  cursor: pointer;
}

.flip-container:hover .flipper {
  transform: rotateY(-180deg);
}

/* 翻转速度控制 */
.flipper {
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}

/* 隐藏背面 */
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

/* 卡片正面样式 */
.flip-front {

}

/* 卡片背面样式 */
.flip-back {
  transform: rotateY(180deg);
}



/* 通用顶部 */
.body-content {
  margin-top: 0.88rem;
  padding-top: 2.1rem;
  min-height: 13.6rem;
  background: 
    linear-gradient(
      0deg, 
      rgba(243, 245, 248, 1) 0%, 
      rgba(243, 245, 248, 0.82) 28.2%, 
      rgba(202, 12, 21, 1) 53.88%, 
      rgba(202, 12, 21, 1) 87.22%) 0 0/100% 13.5rem,
    url(../images/top-bg.jpg) 0 0/100% 13.5rem;
  background-repeat: no-repeat;
  background-clip: padding-box;
  object-fit: cover;
}
.body-top-name {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--light-color);
  margin-bottom: .02rem;
  text-align: center;
}

.achievement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  color: #FFFFFF;
}

.achievement-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem 0 1.1rem;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: 16px;
}

.achievement-title::after {
  content: "";
  width: .85rem;
  height: .98rem;
  position: absolute;
  top: .15rem;
  left: 0rem;
  background: url("../images/title-i-r.png") 0 0/100%;
  background-repeat: no-repeat;
}

.achievement-title::before  {
  content: "";
  width: .85rem;
  height: .98rem;
  position: absolute;
  top: .15rem;
  right: 0rem;
  background: url("../images/title-i-l.png") 0 0/100%;
  background-repeat: no-repeat;
}

.achievement-title-tips {
  font-size: .36rem;
  font-weight: 500;
  letter-spacing: 10px;
  line-height: .52rem;
  height: .52rem;
  color: rgba(255, 255, 255, 1);
}

.famous-box {
  margin-top: 1.9rem;
  color: var(--dark-color);
}
.famous-title {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1rem;
  line-height: 1rem;
}
.famous-title-tips {
  position: relative;
  font-size: .24rem;
  font-weight: 400;
  letter-spacing: .1rem;
  line-height: .35rem;
  padding-left: 1.6rem;
}
.famous-title-tips::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 1.42rem;
  height: 0.04rem;
  background-color: var(--primary-color);
}
.famous-content {
  margin-top: .37rem;
  font-size: .48rem;
  font-weight: 400;
  letter-spacing: .1rem;
  line-height: .7rem;
  color: rgba(0, 0, 0, 1);
}
.body-section-box {
  text-align: center;
  margin: .7rem auto .6rem;
}
.body-section-title {
  display: inline-block;
  position: relative;
  padding: 0 .8rem 0 1.1rem;
  margin: 0 auto;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: 16px;
  color: rgba(18, 18, 18, 1);
}
.body-section-title::after {
  content: "";
  width: .85rem;
  height: .98rem;
  position: absolute;
  top: .15rem;
  left: 0rem;
  background: url("../images/title-i-r.png") 0 0/100%;
}
.body-section-title::before  {
  content: "";
  width: .85rem;
  height: .98rem;
  position: absolute;
  top: .15rem;
  right: 0rem;
  background: url("../images/title-i-l.png") 0 0/100%;
}


/* 页脚 */
.footer {
  clear: both;
  width: 100;
  height: 4.55rem;
  padding: .5rem 0;
  background-color: rgba(202, 12, 21, 1);
}
.footer .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--light-color);
}
.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--light-color);
}
.footer-name {
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: .6rem;
  margin-bottom: .22rem;
}
.social-introduce {
  font-size: .3rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: .44rem;
}
.footer-column-b {
  font-size: .24rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: .34rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-contact .tel {
  text-align: right;
  font-size: .24rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: .35rem;
  margin-bottom: .19rem;
}
.footer-contact .code-box {
  display: flex;
  align-items: center;
  font-size: .24rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: .35rem;
  text-align: center;
}
.footer-contact .code-box>div {
  margin-left: .99rem; 
}
.footer-contact .img-fluid {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.2rem;
  margin-bottom: .05;
  background: rgba(204, 204, 204, 1);
}


/* 放大图片 */
.c-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.c-modal-box {
  padding: .32rem;
  border-radius: .24rem;
  background-color: #FFFFFF;
  animation: zoomIn 0.3s forwards;
}
.c-modal-content {
  width: 3.6rem;
  height: 3.6rem;
  animation: zoomIn 0.3s forwards;
}
.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s forwards;
}
@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.c-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


/* 顾问 */
.c-counselor {
  position: fixed;
  top: 65%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1rem;
  border-radius: .2rem 0 0 .2rem;
  background: rgba(255, 255, 255, 1);
  box-shadow: .03rem .03rem 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 9998;
}
.c-counselor img{
  width: .45rem;
  height: .43rem;
  margin-bottom: .05rem;
}
.c-counselor {
  font-size: .18rem;
  font-weight: 700;
  letter-spacing: .06rem;
  line-height: .26rem;
}

.c-counselor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.c-counselor-box {
  width: 9rem;
  height: 5.05rem;
  border-radius: .3rem .3rem 0 0;
  background: rgba(255, 255, 255, 1);
  overflow: hidden;
}
.c-counselor-top {
  width: 100%;
  height: .83rem;
  background-color: var(--primary-color);
  font-size: .36rem;
  font-weight: 700;
  letter-spacing: .16rem;
  line-height: .82rem;
  text-align: center;
  color: var(--light-color);
}
.c-counselor-content {
  width: 100%;
  height: 4.22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}
.c-counselor-content p{
  font-size: .24rem;
  font-weight: 400;
  letter-spacing: .16rem;
  line-height: .35rem;
  text-align: center;
  
}
.c-counselor-code {
  display: flex;
  font-size: .18rem;
  font-weight: 400;
  letter-spacing: .06rem;
  line-height: .26rem;
  text-align: center;
  margin: .29rem auto .11rem;
}
.c-counselor-code>div {
  padding: .16rem;
}
.c-counselor-img-fluid {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: .11rem;
  border-radius: .12rem;
}

/* 返回顶部 */

#back-to-top {
  display: none;
  position: fixed;
  bottom: 1.6rem;
  right: .5rem;
  z-index: 99;
  width: 50px;
  height: 50px;
  padding: 5px;
  border: none;
  outline: none;
  background-color: #ffffff;
  color: rgb(41, 41, 41);
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
#back-to-top img{
  width: 35px;
  height: 35px;
  margin: 0 auto;
}
#back-to-top:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
#back-to-top:active {
  transform: translateY(1px);
}
