/*
 Theme Name: Twenty Twenty-Three Child
 Template: twentytwentythree
*/

@import url('https://font.emtech.cc/css/MiSans/400');

/* 高棉语 */
html:lang(km) body {
  font-family: "Khmer OS New", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* 中文 */
html:lang(zh) body {
  font-family: MiSan, MiSans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* 英文 */
html:lang(en) body {
  font-family: inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

body {
  --wp--style--root--padding-top: 0;
  --wp--style--root--padding-bottom: 0;
  font-family: inter, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  line-height: inherit;
}

/* 导航菜单 */
.nav-menu .menu,
.nav-menu .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/******** 公共头部 ********/
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 99;
}

.header {
  padding: 0 32px;
  font-size: 16px;
  line-height: 1.6;
  background: #f7f7f7;
  box-shadow: 0 2px 5px #0003;
}
.header-wrap {
  display: flex;
  /* gap: 12px; */
  align-items: center;
  justify-content: space-between;
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
  height: 70px;
}
.header-wrap > * + * {
  margin-left: 12px;
}
.header-left {
  font-size: 0;
}
.header-left .logo-img {
  height: 45px;
}

.header-nav {
  flex: 1;
  justify-content: center;
}
.header-nav .menu {
  display: flex;
  /* gap: 48px; */
  justify-content: center;
}
.header-nav .menu > * + * {
  margin-left: 48px;
}
.header-nav .menu .menu-item > a {
  position: relative;
  display: flex;
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
  height: 70px;
  align-items: center;
  color: #000;
}
.header-nav .menu-item a:hover {
  color: #0f9d58;
}
.header-nav .current-menu-item a {
  color: #0f9d58;
}
.header-nav .current-menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  background: #0f9d58;
}
.header-nav .menu-item:focus,
.header-nav .menu-item:active,
.header-nav .menu-item:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
  -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
  -webkit-focus-ring-color: transparent; /* 去除 WebKit 浏览器的聚焦环 */
}
.header-nav-icon {
  display: none;
  width: 48px;
  height: 48px;
  background: url('./assets/images/m_menu.png') center / 32px 32px no-repeat;
}
.header-nav-close {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 48px;
  height: 48px;
  background: url('./assets/images/m_close.png') center / 32px 32px no-repeat;
}

.header-demo .contact-btn {
  display: block;
  padding: 10px 18px;
  background: #DB4437;
  border-radius: 50px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.header-demo .contact-btn:hover {
  opacity: .9;
}

/* 语言下拉菜单 */
.lang-switcher {
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #000;
}
.lang-switcher__current {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: inherit;
  border-radius: 4px;
  display: flex;
  align-items: center;
  /* gap: 6px; */
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: inherit;
}
.lang-switcher__current > * + * {
  margin-left: 6px;
}
.lang-switcher__current:active {
  outline: none;
  box-shadow: none;
  border: none;
  -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
  -webkit-focus-ring-color: transparent; /* 去除 WebKit 浏览器的聚焦环 */
}

.icon-arrow-down {
  width: 16px;
  height: 16px;
}
.lang-switcher__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.lang-switcher__dropdown.is-open {
  display: block;
}
.lang-switcher__dropdown a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}
.lang-switcher__dropdown a:hover {
  background: #f5f5f5;
}

/******** 公共底部 ********/
.footer {
  padding: 60px 32px;
  font-size: 18px;
  background: #000;
  color: #d5d7da;
}
.footer .social-media-list,
.footer .social-media-item {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .social-media-list {
  display: flex;
}
.footer-wrap {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
}
.footer-sections {
  display: flex;
  justify-content: space-between;
  /* gap: 50px; */
}
.footer-sections > * + * {
  margin-left: 50px;
}
.footer-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
}
.footer-info {
  flex: 2.5;
  color: #a4a7ae;
  word-break: break-word;
}
.footer-info .logo-img {
  height: 45px;
}
.footer-info .description {
  margin: 0;
  font-weight: 500;
}
.footer-social-icons {
  margin-top: 20px;
}
.footer-social-icons .social-media-list {
  /* gap: 20px; */
}
.footer-social-icons .social-media-list > * + * {
  margin-left: 20px;
}
.footer-social-icons .social-media-item img {
  width: 32px;
  height: 32px;
}
.footer-links {
  flex: 1;
}
.footer-links .nav-menu li {
  margin-bottom: 22px;
}
.footer-links .nav-menu a {
  color: #d5d7da;
  text-decoration: none;
}
.footer-contact-us {
  flex: 2.5;
  word-break: break-word;
}
.contact-us-list,
.contact-us-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-us-list {
  display: flex;
  flex-direction: column;
  /* gap: 28px; */
}
.contact-us-list > * + * {
  margin-top: 28px;
}
.contact-us-item {
  display: flex;
}
.contact-us-item img {
  width: 32px;
  height: 32px;
}
.contact-us-item span {
  margin-left: 10px;
  /* line-height: 32px; */
}
.footer-join-us .social-media-list {
  /* gap: 20px; */
}
.footer-join-us .social-media-list > * + * {
  margin-left: 20px;
}
.footer-join-us .social-media-item img {
  width: 130px;
  height: 130px;
  /* margin-right: 20px; */
  border-radius: 8px;
}
.copyright {
  margin-top: 1em;
  margin-bottom: 0;
  padding-top: 1.5em;
  border-top: 1px solid #444;
  text-align: center;
  color: #939393;
  font-size: .9em;
  font-weight: 500;
}

@media (max-width: 1280px) {
  /******** 公共头部 ********/
  .header-nav .menu {
    /* gap: 28px; */
  }
  .header-nav .menu > * + * {
    margin-left: 28px;
  }
  .header-demo .contact-btn {
    padding: 8px 12px;
  }

  /******** 公共底部 ********/
  .footer {
    font-size: 17px;
  }
  .contact-us-list {
    /* gap: 22px; */
  }
  .contact-us-list > * + * {
    margin-top: 22px;
  }
}

@media (max-width: 1080px) {
  /******** 公共头部 ********/
  .header-wrap {
    /* gap: 10px; */
  }
  .header-wrap > * + * {
    margin-left: 10px;
  }
  .header-demo {
    margin-left: auto;
  }
  .header-nav {
    flex: 0;
    order: 3;
  }
  .header-nav .menu {
    flex-direction: column;
    /* gap: 0; */
  }
  .header-nav .menu > * + * {
    margin-left: 0;
    margin-top: 0;
  }
  .header-nav-icon, .header-nav-close {
    display: block;
  }
  .header-nav-container {
    display: none;
    position: fixed;
    z-index: 999;
    right: 0;
    top: 0;
    height: 100vh;
    overflow: auto;
  }
  .header-nav-container::before {
    position: fixed;
    z-index: -1;
    content: "";
    background: rgba(0,0,0, .3);
    left: 0;
    width: 100%;
    height: 100vh;
  }
  #menu-toggle:checked ~ .header-nav-container {
    display: block;
  }
  .header-nav-container .nav-menu {
    box-sizing: border-box;
    width: 400px;
    min-height: 100vh;
    background: #fff;
    padding: 40px;
  }
  .header-nav .menu .menu-item > a {
    padding-left: 20px;
    height: 60px;
  }
  .header-nav .current-menu-item > a::after {
    width: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    border-radius: 0;
  }

  /******** 公共底部 ********/
  .footer {
    font-size: 16px;
  }
  .footer-sections {
    flex-direction: column;
    /* gap: 32px; */
  }
  .footer-sections > * + * {
    margin-left: 0;
    margin-top: 32px;
  }
  .footer-title {
    font-size: 20px;
  }
  .footer-links .nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    /* gap: 10px; */
    margin-bottom: -10px;
  }
  .footer-links .nav-menu ul > li {
    margin-bottom: 10px;
  }
  .footer-links .nav-menu ul > *:not(:last-child) {
    margin-right: 10px;
  }
  .footer-links .nav-menu li {
    margin-bottom: 0;
  }
  .contact-us-item img {
    width: 26px;
    height: 26px;
  }
  .contact-us-item span {
    line-height: 26px;
  }
}

@media (max-width: 640px) {
  /******** 公共头部 ********/
  .header {
    padding: 0 16px;
  }
  .header-wrap {
    height: 52px;
  }
  .header-left .logo-img {
    height: 28px;
  }
  .header-demo .contact-btn {
    padding: 4px 12px;
    font-size: 12px;
  }
  .header-nav .menu .menu-item > a {
    height: 50px;
  }
  .lang-switcher__current {
    padding-left: 0;
    padding-right: 0;
    font-size: 14px;
    /* gap: 2px; */
  }
  .lang-switcher__current > * + * {
    margin-left: 2px;
  }
  .header-nav-icon {
    width: 32px;
    height: 32px;
    background-size: 24px 24px;
  }
  .header-nav-container .nav-menu {
    width: 300px;
  }

  /******** 公共底部 ********/
  .footer {
    font-size: 12px;
    padding: 20px 16px;
  }
  .footer-social-icons {
    margin-top: 8px;
  }
  .footer-social-icons .social-media-list {
    /* gap: 8px; */
  }
  .footer-social-icons .social-media-list > * + * {
    margin-left: 8px;
  }
  .footer-social-icons .social-media-item img {
    width: 20px;
    height: 20px;
  }
  .footer-title {
    font-size: 12px;
  }
  .footer-join-us .social-media-list {
    /* gap: 10px; */
  }
  .footer-join-us .social-media-list > * + * {
    margin-left: 10px;
  }
  .footer-join-us .social-media-item img {
    width: 40px;
    height: 40px;
    border-radius: 2px;
  }
  .contact-us-list {
    /* gap: 8px; */
  }
  .contact-us-list > * + * {
    margin-top: 8px;
  }
  .contact-us-item img {
    width: 16px;
    height: 16px;
  }
  .contact-us-item span {
    margin-left: 8px;
    line-height: 16px;
  }
}