/* 头部样式 */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #ff9900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  animation: slideDown 0.5s ease;
  flex-wrap: wrap;
  gap: 15px;
}

.top-bar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #e68a00;
}

.top-bar.scrolled {
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: static;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: "Arial", sans-serif;
  letter-spacing: 1px;
}

.logo:hover {
  transform: scale(1.05) rotate(1deg);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.logo a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.logo a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.logo a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  padding: 12px 25px;
  flex: 1;
  min-width: 200px;
  max-width: 450px;
  margin: 0 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease 0.2s both;
  position: relative;
  overflow: hidden;
}

.search-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 153, 0, 0.1),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.search-box:hover::before {
  transform: translateX(100%);
}

.search-box:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.search-box input:focus {
  font-size: 17px;
  font-weight: 500;
}

.search-box input::placeholder {
  color: #999;
  transition: all 0.3s ease;
}

.search-box:hover input::placeholder {
  color: #666;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff9900;
  font-size: 20px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box button:hover {
  transform: scale(1.1) rotate(15deg);
  color: #e68a00;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.kaiheadddder {
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.kaiheadddder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: transform 0.5s ease;
}

.kaiheadddder:hover::before {
  transform: translateX(100%);
}

.kaiheadddder:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.kaiheadddder:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-bar {
  background-color: #fff;
  color: #333;
  padding: 15px 0;
  border-bottom: 3px solid #ff9900;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease 0.4s both;
}

.menu-link {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.menu-link li {
  margin: 0 15px;
  position: relative;
  animation: fadeIn 0.5s ease;
}

.menu-link li:nth-child(1) {
  animation-delay: 0.5s;
}

.menu-link li:nth-child(2) {
  animation-delay: 0.6s;
}

.menu-link li:nth-child(3) {
  animation-delay: 0.7s;
}

.menu-link li:nth-child(4) {
  animation-delay: 0.8s;
}

.menu-link li.active a {
  color: #ff9900;
  font-weight: bold;
  transform: translateY(-2px);
}

.menu-link li.active::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff9900;
  animation: slideIn 0.3s ease;
}

.menu-link a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.menu-link a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 153, 0, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.menu-link a:hover {
  color: #ff9900;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 153, 0, 0.2);
}

.menu-link a:hover::before {
  left: 0;
}

/* 抽屉样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  animation: fadeIn 0.3s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

.drawer.open {
  right: 0;
  animation: slideIn 0.3s ease;
}

.overlay-content {
  padding: 30px 20px;
  height: 100%;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.shohui {
  text-align: right;
  margin-bottom: 40px;
  cursor: pointer;
}

.shohui .icon-close-0605 {
  font-size: 28px;
  color: #ff9900;
  transition: all 0.3s ease;
}

.shohui .icon-close-0605:hover {
  transform: rotate(90deg);
  color: #e68a00;
}

.mainsan {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.usho {
  list-style: none;
  margin: 0;
  padding: 0;
}

.usho li {
  margin-bottom: 20px;
  position: relative;
}

.usho a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
}

.usho a:hover {
  color: #ff9900;
  background-color: rgba(255, 153, 0, 0.1);
  transform: translateX(10px);
}

.usho li::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #eee;
}

.usho li:last-child::after {
  display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .top-bar {
    padding: 12px 15px;
  }

  .logo {
    font-size: 28px;
  }

  .search-box {
    margin: 0 15px;
    max-width: 350px;
  }

  .menu-link li {
    margin: 0 12px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 12px 15px;
    gap: 10px;
  }

  .logo {
    font-size: 24px;
  }

  .search-box {
    margin: 0 10px;
    max-width: 250px;
    padding: 10px 20px;
  }

  .search-box input {
    font-size: 14px;
    padding: 10px 0;
  }

  .search-box button {
    font-size: 18px;
    padding: 6px;
  }



  .kaiheadddder {
    font-size: 20px;
    padding: 8px;
    width: 38px;
    height: 38px;
  }

  .nav-bar {
    padding: 10px 0;
  }

  .menu-link {
    flex-wrap: wrap;
    gap: 5px;
  }

  .menu-link li {
    margin: 0 10px;
  }

  .menu-link a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .menu-link li.active::after {
    bottom: -13px;
  }

  .drawer {
    width: 250px;
    right: -250px;
  }
}

@media (max-width: 576px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
  }

  .logo {
    font-size: 22px;
    order: 1;
  }

  .search-box {
    order: 3;
    flex: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0px 15px;
  }



  .kaiheadddder {
    display: flex;
  }

  .nav-bar {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  .nav-bar::-webkit-scrollbar {
    display: none;
  }

  .menu-link {
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-start;
  }

  .menu-link li {
    margin: 0 10px;
    display: inline-block;
  }

  .menu-link a {
    font-size: 13px;
    padding: 5px 10px;
  }
}

@media (max-width: 360px) {
  .top-bar {
    padding: 8px 12px;
    gap: 8px;
  }

  .logo {
    font-size: 20px;
  }

  .search-box {
    padding: 6px 12px;
  }

  .search-box input {
    font-size: 13px;
  }



  .kaiheadddder {
    display: flex;
    font-size: 18px;
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .nav-bar {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
  }

  .nav-bar::-webkit-scrollbar {
    display: none;
  }

  .menu-link {
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-start;
  }

  .menu-link li {
    margin: 0 8px;
    display: inline-block;
  }

  .menu-link a {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* 动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

