/*公共样式*/
.menu>a:hover,
footer a:hover {
  color: var(--color-base-hover);
}

header>div.flex-v-center {
  height: 100%;
}

.dropdown {
  position: relative;
  cursor: pointer;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

.pc-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  position: absolute;
  top: calc(var(--header-height)*0.85);
  border: 1px solid #323947;
  border-radius: 8px;
  background-color: var(--color-bg-fill);
  backdrop-filter: blur(16px);
  display: none;
}

.dropdown-content .grid-db-lines {
  grid-template-columns: 48px 1fr;
  align-items: center;
}

/* 导航栏 */
header {
  width: 100vw;
  height: var(--header-height);
  padding-inline: 4rem;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--color-bg-fill);
  box-shadow: var(--shadow);
  z-index: 10;
}

header:before {
  content: '';
  width: 100%;
  height: calc(100% - 1px);
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-bg-fill);
  z-index: -1;
  backdrop-filter: blur(16px);
}

header>a.logo {
  height: 100%;
  margin-right: 6.4rem;
}

header>a.logo img {
  height: 62.5%;
  width: auto;
}

header svg {
  transition: 250ms;
  stroke: currentColor;
  stroke-width: 1;
  margin-left: 8px;
}

/* 导航区 */
.nav_open,
.nav_close {
  display: none;
  margin-left: 10px;
}

.menu {
  flex-grow: 1;
  height: 100%;
  font-size: var(--font-size-base);
}

.menu .menu-item {
  margin-right: 4rem;
}

.menu .menu-item.dropdown:hover span {
  color: var(--color-base-hover);
}

.menu:not(.show) .dropdown:hover svg {
  transform: rotate(-90deg);
  color: var(--color-base-hover);
}

/* 下拉 */
.menu .dropdown>div.flex-v-center {
  height: 100%;
}

.menu .menu-item.dropdown .dropdown-content {
  width: 312px;
  padding: 1.6rem;
}

.menu .menu-item.dropdown .dropdown-content .dropdown-item {
  padding: 16px;
  border-radius: 0.4rem;
  line-height: 1.5;
}

/* 电话样式 */
.menu .phone {
  display: flex;
  align-items: center;
}

.menu .phone p {
  margin-inline: 1rem;
}

header .btn {
  padding-block: 0.8rem;
  display: none;
}

header .mine {
  display: none;
}

header .mine .avatar-box {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  overflow: hidden;
}

header .mine .avatar-box img {
  height: 100%;
  width: auto;
}

/* 个人信息 */
header .mine .dropdown-content {
  right: 0;
  width: 240px;
  padding: 8px;
  background: rgba(12, 15, 20, 0.60) radial-gradient(80px 80px at left top, rgba(24, 244, 112, 0.20), rgba(24, 244, 112, 0.00));
}

header .mine .dropdown-content .avatar-box-big {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

header .mine .dropdown-content .avatar-box-big img {
  width: auto;
  height: 100%;
}

header .mine .dropdown-item:not(:first-child) {
  border-radius: 0.4rem;
  padding: 0.8rem;
}

header .mine .dropdown-item:not(:first-child) img {
  width: 16px;
  height: 16px;
  margin-right: 1rem;
}

header .mine .dropdown-item:first-child {
  padding: 2.2rem 0 2.2rem 0.8rem;
}

/* 页脚 */
footer {
  padding: 6.4rem var(--paddInline) 30px;
  display: grid;
  grid-template-columns: repeat(4, auto) 1.5fr 1fr;
  grid-template-rows: 1fr;
  /* 网格布局，最后一列内中水平居中 */
  /* row-gap: 4rem; */
  column-gap: 2rem;
  --imgWidth: 120px;
}

footer a {
  color: var(--color-desc);
}

footer ul li:first-child {
  min-height: 24px;
  margin-bottom: 2.4rem;
  font-size: var(--font-size-bm);
  font-weight: bold;
}

footer ul li:not(:first-child) {
  margin-bottom: 16px;
  font-size: var(--font-size-base);
  color: var(--color-desc);
}

footer :is(.img-area li:nth-child(2),.contact li:last-child){
  display: grid;
  gap: 16px;
  font-size: var(--font-size-base);
  justify-items: center;
}

footer .img-area li:nth-child(2) {
  grid-template-columns: auto;
}

footer .contact li:last-child {
  grid-template-columns: auto auto;
  width: 60%;
}

footer :is(.img-area li:nth-child(2),.contact li:last-child) img{
  width: var(--imgWidth);
  height: auto;
  transition: 200ms;
  border-radius: 8px;
}

footer .img-area li:last-child {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
}

footer .img-area img[src*="miniPrograms"] {
  border-radius: 8px;
}

footer .img-area li:last-child div,
footer .img-area li:last-child a:not(:last-child) {
  position: relative;
  margin-right: 1.6rem;
}

footer .img-area li:last-child a>img,
footer .img-area .official-icon {
  height: 24px;
  width: auto;
}

footer .img-area .official-account {
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: 200ms;
  width: calc(var(--imgWidth) + 16px);
}

footer .img-area .official-icon:hover+.official-account {
  opacity: 1;
}
.img-area:has(.official-icon:hover) img[src="/img/miniPrograms.png"] {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.record {
  padding-bottom: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--color-desc);
}

.record a {
  color: var(--color-desc);
}

.record a:hover {
  color: var(--color-base-hover);
  text-decoration: underline;
}

.record span:first-child {
  margin-right: 40px;
}

/* 响应式 */

@media screen and (max-width: 1200px) {
  footer {
    grid-template-columns: repeat(6, auto);
  }
}

@media screen and (max-width: 1024px) {
  header .menu .phone{
    display: none;
  }
  footer {
    grid-template-columns: repeat(3, auto);
    --imgWidth: 100px;
  }
}
/* ipad */
/* 屏幕大于 1024px 或小于 1440px 时应用该样式 */
@media screen and (max-width: 768px) {
  .company {
    margin-inline: 1rem 2rem;
  }

  :root {
    --header-height: 44px;
  }

  .nav_open {
    display: block;
  }

  header {
    justify-content: space-between;
  }

  header .mine .avatar-box {
    height: 24px;
    width: 24px;
  }

  /* 导航区 */
  .menu {
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: -5px;
    height: calc(100vh - var(--header-height));
    align-items: start !important;
    width: 280px;
    background: rgba(12, 15, 20, 0.60);
    box-shadow: 1px 0px 0px 0px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(16px);
    padding-inline: 16px;
    box-sizing: border-box;
    display: none;
  }

  .show {
    display: flex;
  }


  .menu .menu-item {
    height: auto;
    line-height: 56px;
    width: 100%;
  }

  .menu .dropdown {
    max-height: 56px;
    overflow: hidden;
    transition: 250ms;
  }

  .menu .dropdown-content {
    padding: 0;
    width: 100% !important;
    display: block;
  }


  .menu .dropdown>div.flex-v-center {
    justify-content: space-between;
  }

  .menu .dropdown>div.flex-v-center {
    height: auto;
  }

  /* 下拉 */
  nav .dropdown-content {
    position: static;
    border: none;
    background-color: transparent;
    backdrop-filter: none;
  }

  nav .dropdown-content .grid-db-lines {
    grid-template-columns: 40px 1fr;
  }

  /* header .mine .dropdown-item:not(:first-child) img {
    width: 12px;
  } */

  footer {
    grid-template-columns: 1fr;
    --imgWidth: 96px;
  }

  svg {
    transition: 250ms;
    stroke: currentColor;
    stroke-width: 1;
  }

  footer ul:not(.img-area) {
    max-height: 44px;
    transition: 250ms;
    overflow: hidden;
    box-shadow: 0px -1px 0px 0px #181c24 inset;
  }

  footer ul:not(.img-area) li:first-child {
    height: 44px;
    align-items: center;
  }
  footer ul.img-area li:first-child {
   display: none;
  }
  footer ul.img-area {
    margin-top: 40px;
  }

  .unfold {
    max-height: 1000px !important;
  }

  header .unfold svg {
    transform: rotate(-90deg);
  }

  .unfold svg {
    transform: rotate(90deg);
  }
  footer ul li:not(:first-child){
    margin-left: 2rem;
  }
}