/* ===== 全局重置与基础设置 ===== */
* {
  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 {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-block;
  padding: .32rem;
  border-radius: .24rem;
  background-color: #FFFFFF;
  transform: translate(-50%, -50%);
}

.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 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  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);
}


/* 登录弹窗样式 */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.login-modal.active {
  display: block;
}

.login-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.login-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.login-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.login-modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.login-modal-close:hover {
  color: #666;
}

.login-modal-body {
  padding: 30px 20px;
  text-align: center;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border: 1px solid #f0f0f0;
}

.qr-code-container .loading-state {
  padding: 0;
}

.qr-code-container img {
  width: 200px;
  height: 200px;
  padding: 1px;
}

.login-status {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.login-status.info {
  color: rgba(202, 12, 21, .9);
  background-color: rgba(202, 12, 21, .1);
  border: 1px solid rgba(202, 12, 21, .2);
}

.login-status.success {
  color: #52c41a;
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
}

.login-status.error {
  color: #ff4d4f;
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
}

.login-modal-footer {
  padding: 12px 20px;
  background-color: #fafafa;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.login-modal-footer p {
  margin: 0;
  font-size: 12px;
  color: #999;
}

/* 登录提示样式 */
.login-prompt {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  z-index: 9998;
  transition: all 0.3s;
  transform: translateX(120%);
}

.login-prompt.show {
  transform: translateX(0);
}

.login-prompt-icon {
  width: 20px;
  height: 20px;
  font-size: .25rem;
  margin-right: 8px;
  color: #faad14;
}

.login-prompt-text {
  font-size: 14px;
  color: #333;
}

.login-prompt-login {
  color: #1890ff;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
}

.login-prompt-close {
  margin-left: 12px;
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

.login-prompt-close:hover {
  color: #666;
}

.login-user-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  cursor: pointer;
}

.login-user-avatar {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.02rem solid #e9ecef;
  transition: all 0.3s ease;
}

.login-user-avatar:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

.login-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-user-card {
  position: absolute;
  top: 0.6rem;
  right: -.75rem;
  font-size: .24rem;
  line-height: .24rem;
  margin-top: 0;
  width: 2rem;
  background: white;
  border-radius: 0.08rem;
  box-shadow: 0.1rem 0.2rem .3rem rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.8rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.login-user-card-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-user-card-header {
  display: flex;
  align-items: center;
  padding: .2rem;
}

.login-user-card-info {
  flex: 1;
  text-align: center;
}

.login-user-card-name {
  font-size: .2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.login-user-card-id {
  font-size: 0.16rem;
  color: #666;
}

.login-user-card-body {
  /* padding: .2rem 0; */
}

.login-user-profile-btn,
.login-user-but,
.login-user-logout {
  width: 100%;
  line-height: .24rem;
  font-size: .2rem;
  text-align: center;
  border-radius: 0.08rem;
  padding: .14rem 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-user-profile-btn {
  color: #333;
  margin-bottom: 0.14rem;
}

.login-user-profile-btn:hover {
  background-color: #f8f9fa;
}

.login-user-logout {
  color: #dc3545;
  border-top: 0.02rem solid #f1f3f4;
}

.login-user-logout:hover {
  background-color: #fff5f5;
}

.login-user-but:hover {
  background-color: #fff5f5;
}


