/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "MYuenHKMedium", sans-serif;
    line-height: 1.6;
    font-size: calc(14px + 0.8vw);
    color: #5b5550;
    background-color: #c4eeda;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.hidden {
    display: none;
}
.show {
    display: block;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #e2f8ec;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.content {
    padding: 20px 0%;
    min-height: 150vh;
}
h1 {
    font-size: calc(18px + 1.5vw);
    color: #2eaab3;
    font-family: "MYuenHKXbold", sans-serif;
    margin-top: 0px auto 0px auto;
}

/* 第一行 - Logo和语言切换 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 120px;
}
.logo {
    height: 40px;
}
.iframe_logo{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 语言切换容器 - 修改后的样式 */
.language-switcher {
    display: flex;
    position: absolute;
    right: 70px; /* 为汉堡按钮留出空间 */
    gap: 15px; /* 链接之间的间距 */
    z-index: 1001;
}

.language-switcher a {
    transition: color 0.3s;
    white-space: nowrap; /* 防止文字换行 */
}

/* PC端导航栏 */
.nav-desktop {
    display: flex;
    position: absolute;
    left: 78%;
    width: 60%;
    transform: translateX(-85%);
}

.nav-desktop ul {
    display: flex;
    gap: 100px;
}
.nav-desktop .current{
  opacity: 1;
}
.nav-desktop .normal{
  opacity: 0.6;
}

.nav-desktop a {
    padding: 5px 0;
    font-weight: 500;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #424242;
    transition: width 0.3s;
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* 移动端汉堡菜单按钮 */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #5b5550;
    transition: all 0.3s ease;
}

/* 汉堡按钮动画 */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端导航栏 - 横条式 */
.nav-mobile {
    display: none;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-mobile li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.nav-mobile a {
    display: block;
    color: #5b5550;
}

.bottom_container{
  padding-top: 50px; 
  width: 90%; 
  margin: 0 auto;
}
.bottom_link{
  width: 100%;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}
.bottom_link img{
  width: 40px; 
  height: auto;
}
.bottom_contact{
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: calc(12px + 0.8vw);
}


/* ============================================================================================================================================================================================== */

/* 当页面宽度大于等于576时 */
@media (min-width: 576px) {
  
}

/* 当页面宽度大于等于768时 */
@media (min-width: 768px) {
    
}

/* 当页面宽度小于等于991时 */
@media (max-width: 991px) {
  body {
      padding-top: 120px; /* 只为顶部栏留出空间 */
  }
  .content {
    padding: 10px 0%;
  }
  .hamburger {
      display: block;
  }
  
  .nav-desktop {
      display: none;
  }
  
  /* 移动端语言切换调整 */
  .language-switcher {
      right: 80px; /* 增加间距 */
      gap: 10px; /* 减小链接间距 */
  }
}

/* 当页面宽度大于等于992时 */
@media (min-width: 992px) {
  body {
    padding-top: 150px;
  }
  .content {
    padding: 0px 0%;
  }
  .nav-mobile {
    display: none !important;
  }
  
  /* PC端语言切换位置调整 */
  .language-switcher {
    position: static; /* 恢复默认定位 */
    margin-left: auto; /* 靠右对齐 */
    margin-right: 50px; /* 右边距 */
  }
  .top-bar {
    height: 130px;
  }
  .nav-desktop ul {
    gap: 40px;
  }
  .bottom_link img{
    width: 60px; 
    height: auto;
  }
}

/* 当页面宽度大于等于1179时 */
@media (min-width: 1179px) {
  .nav-desktop ul {
    gap: 60px;
  }
  .bottom_link{
    padding-top: 20px;
  }
}

/* 当页面宽度大于等于1536时 */
@media (min-width: 1536px) {
  body {
    padding-top: 180px;
  }
  .top-bar {
    height: 180px;
  }
  .nav-desktop ul {
    gap: 100px;
  }
  .language-switcher {
    gap: 20px; /* 链接之间的间距 */
  }
  .content {
    padding: 40px 0%;
  }
  .bottom_container{
    width: 88%;
  }
  .bottom_link{
    padding-left: 10px;
  }
}

/* 当页面宽度大于等于1920时 */
@media (min-width: 1920px) {
  .bottom_container{
    width: 60%;
  }
  .bottom_link img{
    width: 80px;
  }
}

/* 定义第一款字体用于正文 */
@font-face {
  font-family: "MYuenHKMedium";
  src: url('../fonts/MYuenHK-Medium.woff2') format('woff2'), /* 现代浏览器优先 */
       url('../fonts/MYuenHK-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* 优化加载时的显示行为 */
}
/* 定义第二款字体用于标题 */
@font-face {
  font-family: "MYuenHKXbold";
  src: url('../fonts/MYuenHK-Xbold.woff2') format('woff2'), /* 现代浏览器优先 */
       url('../fonts/MYuenHK-Xbold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}