/* --- 导航栏 --- */
.june-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: linear-gradient(135deg, #e8f4fd 0%, #f8f9ff 50%, #fdf2f8 100%);
  box-shadow: 0 4px 24px rgba(40,40,80,0.08);
  margin: 0;
  z-index: 100;
  padding: 0 28px;
  transition: box-shadow 0.2s;
}
.june-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-left: 10px;
  padding-right: 40px;
  margin: 0 auto;
  transition: all 0.5s;
}

/* --- logo图片和文字 --- */
.june-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  cursor: pointer; /* 响应式时logo可点击，添加指针样式 */
}
.navlogo{
  height: min(96%,75px);
}
.june-nav-list {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right:60px
}
.nocheck{
  cursor: default;
}
/* --- 主菜单项和箭头 --- */
.june-nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
}
.june-nav-list > li > a {
  font-size: 1.3rem;
  color: #565059;
  font-weight: 700;
  padding: 8px 0 8px 0;
  transition: color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  box-sizing: border-box;
  cursor: default;
}
/* --- 主菜单项箭头svg --- */
.june-nav-list > li > a .june-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  width: 18px; height: 18px;
  margin-left: 2px;
  /* 保证svg本身垂直居中 */
  position: relative;
  top: 1px;
}
.june-nav-list > li > a .june-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}
.june-nav-list > li:hover > a .june-arrow,
.june-nav-list > li:focus-within > a .june-arrow {
  transform: rotate(180deg);
}
.june-nav-list > li > a:hover, .june-nav-list > li > a:focus {
  color: #d4237a;
}

/* --- 下拉菜单样式 --- */
.june-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(40,40,80,0.10);
  min-width: 180px;
  padding: 16px 0;
  flex-direction: column;
  animation: fadeInDropdown 0.22s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInDropdown {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1;
    transform: translateY(0); 
  }
}
body::-webkit-scrollbar {
  width: 12px;               /* 垂直滚动条宽度 */
  height: 12px;              /* 水平滚动条高度 */
}

/* 滚动条轨道 */
body::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #fdf2f8 0%, #f8f9ff 50%, #e8f4fd 100%);        /* 轨道背景色 */
  border-radius: 10px;         /* 轨道圆角 */
}

/* 滚动条滑块 */
body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f2bdda 0%, #ced4f7 50%, #add3f0 100%);          /* 滑块颜色 */
  border-radius: 10px;         /* 滑块圆角 */
  border: 1px solid #f1f1f1;   /* 滑块边框（与轨道背景色相同，形成间隔效果） */
}


.june-nav-list > li:hover .june-dropdown,
.june-nav-list > li:focus-within .june-dropdown {
  display: flex;
}
.june-dropdown a {
  padding: 10px 24px;
  color: #565059;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: block;
}
.june-dropdown a:hover { 
  background: #f5f7fa;
  color: #d4237a; 
}
.june-navbar-actions { 
  display: flex;
  gap: 16px;
  align-items: center; 
}
.june-btn {
  padding: 8px 20px;
  border-radius: 12px;
  color: #565059;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.june-btn:hover { 
  background: #f5f7fa;
  color: #1e90ff; 
}
.june-btn-primary {
  padding: 8px 20px;
  border-radius: 12px;
  background: #1e90ff;
  color: #fff;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30,144,255,0.08);
  transition: background 0.2s;
}
.june-btn-primary:hover { 
  background: #1877cc; 
}
.june-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  margin-left: 16px;
  margin-right: 32px;
}
.june-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: 0.3s;
}

/* 响应式样式 */
@media (max-width: 1300px){
  .june-navbar-inner {   
    padding-left: 10px;
    padding-right: 32px;
  }
  .june-nav-list > li > a {
    font-size: 1.1rem;
  }
  /* --- 下拉菜单样式 --- */
  .june-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(40,40,80,0.10);
    min-width: 160px;
    padding: 16px 0;
    flex-direction: column;
    transform: scaleX(0) scaleY(0);
    animation: unfolding 0.3s ease-in-out forwards;
    /* animation: none; */
  }
  .june-dropdown a {
    padding: 10px 24px;
    color: #565059;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: block;
    /* width: 250px; */
    width: 0;
  }
}
@media (max-width: 900px) {
/* 导航栏 */
  .june-navbar { 
      border-radius: 0 0 24px 24px; 
      padding: 0 8px; 
      background: transparent;
      box-shadow: none;
  }
  .june-navbar-inner { 
    height: 80px; 
  }
  .june-logo img { 
      height: 69px;
      z-index: 99; 
  }
  .june-logo {
      z-index: 999;
  }
  .june-nav-list { 
      display: none; 
      position: fixed; 
      top: 0; /* 从顶部开始 */
      left: 0; 
      right: 0; 
      bottom: 0; /* 铺满全屏 */
      /* 毛玻璃背景效果 */
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(20px);
      flex-direction: column; 
      gap: 30px; /* 增加菜单项间距 */
      box-shadow: none;
      border-radius: 0; 
      z-index: 200; 
      /* 文字居中 */
      justify-content: center;
      align-items: center;
  }
  .june-nav-list > li:first-child > a {
      padding-left: 6px;
  }
  .june-nav-list.open { 
    display: flex; 
  }
  .june-nav-list > li { 
    width: auto; 
  }
  .june-nav-list > li > a { 
      padding: 16px 24px; 
      font-size: 1.5rem;
      text-align: center;
  }
  .june-dropdown { 
      position: static; 
      box-shadow: none; 
      border-radius: 0; 
      min-width: unset; 
      padding: 10px 0;
      align-items: center;
      background-color: transparent;
  }
  .june-dropdown a { 
      padding: 12px 32px; 
      font-size: 1.2rem;
  }
  .june-navbar-actions { 
    display: none; 
  }
}


/* 移动端展开动画 */

@keyframes unfolding{
  0%{
    transform: scaleX(0) scaleY(0);
    width: 0;
  }
  40%{
    transform: scaleX(1) scaleY(0);
    width: 150px;
  }
  100%{
    transform: scaleX(1) scaleY(1);
    width: 150px;
  }
}
@keyframes folding{
  0%{
    transform: scaleX(1) scaleY(1);
    width: 150px;
  }
  60%{
    transform: scaleX(1) scaleY(0);
    width:150px;
  }
  100%{
    transform: scaleX(0) scaleY(0);
    width:0;
  }
}