*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
  text-decoration: none;
}
header{
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.container{
    width: 90%;
    margin: 0 auto;
}
/* 公用导航栏样式 */
.navbar {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}
.navbar-logo {
  height: 36px;
  margin-left: 40px;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 100%;
  width: auto;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translate(-50%,-50%);
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 移动端抽屉菜单 */
.drawer-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 150;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 70px 0 20px;
}

/* 抽屉菜单关闭按钮 */
.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 160;
}

.drawer-close:hover {
  background-color: #e0e0e0;
}

.drawer-close svg {
  fill: #666;
  transition: fill 0.2s;
}

.drawer-close:hover svg {
  fill: #ff8500;
}

.drawer-menu.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-menu-item {
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
}
.drawer-menu-item-link{
  font-size: 16px;
  color: #333;
}
.drawer-menu-item.active {
  color: #ff8500;
}

.drawer-submenu {
  display: none;
  padding-left: 15px;
  background-color: #f9f9f9;
  margin-top: 20px;
}

.drawer-submenu-item {
  padding: 12px 20px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.drawer-submenu-item.active {
  color: #ff8500;
}

.drawer-menu-item .toggle-submenu {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  margin-right: 40px;
}

/* 底部高亮滑块 */
.navbar-menu-slider {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #ff8500;
  border-radius: 2px 2px 0 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 10;
  width: 100%;
  opacity: 0;
}
.navbar-menu-slider.active{
  opacity: 1;
}
.navbar-menu-item {
  position: relative;
  padding: 0 20px;
  margin-right: 10px;
  font-size: 17px;
  color: #222;
  cursor: pointer;
  height: 70px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  background: none;
  text-decoration: none;
}
.navbar-menu-item.active,
.navbar-menu-item:hover {
  color: #ff8500;
}
.navbar-menu-item:hover .navbar-menu-slider{
    opacity: 1;
}
.navbar-menu-item .submenu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  z-index: 200;
}
.navbar-menu-item:hover .submenu {
  display: block;
}
.submenu-item {
  padding: 12px 24px;
  font-size: 15px;
  color: #222;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  display: block;
}
.submenu-item:hover {
  background: #fdfdfd;
  color: #ff8500;
}
.navbar-language {
  margin-left: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  transition: background 0.2s;
  position: relative;
}
.navbar-language:hover {
  background: #f5f7fa;
}

/* 语言切换气泡层 */
.language-popover {
  display: none;
  position: absolute;
  top:30px;
  right: 0;
  min-width: 80px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 6px;
  z-index: 300;
  padding: 6px 0;
  font-size: 15px;
  text-align: center;
  animation: fadeIn 0.2s;
}
.navbar-language:hover .language-popover,
.language-popover:hover {
  display: block;
}
.language-popover-option {
  padding: 8px 0;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.language-popover-option:hover {
  background: #f5f7fa;
  color: #ff8500;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
} 

/* 页脚样式 */
.footer {
  background-color: #222;
  color: #999;
  padding: 30px 0;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-item {
  padding: 10px 0;
}

.footer-item a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-item a:hover {
  color: #fff;
}

@media screen and (max-width: 1200px) {
  .news-text{
    flex: none !important;
  }
  .notice-right{
    width: calc(100% - 35px);
  }
  .container{
    width: 98%;
  }
  .navbar-logo {
    height: 32px;
    margin-left: 30px;
  }
  
  .navbar-menu-item {
    font-size: 16px;
    padding: 0 15px;
  }
}

@media screen and (max-width: 992px) {
  .navbar-logo {
    height: 30px;
    margin-left: 25px;
  }
  
  .navbar-menu-item {
    font-size: 15px;
    padding: 0 12px;
  }
}

@media screen and (max-width: 900px) {
  .navbar {
    height: 60px;
    padding: 0;
    width: 98%;
  }
  
  .navbar-logo {
    margin-left: 20px;
    height: 28px;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .navbar-language {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
}
@media screen and (max-width: 1000px){
    .navbar{
        width: 98%;
    }
}
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-item {
    margin: 5px 0;
  }
  
  /* 导航栏响应式 */
  .navbar {
    height: 60px;
    padding: 0;
  }
  
  .navbar-logo {
    margin-left: 20px;
    height: 28px;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .navbar-language {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
} 

/* 右侧边栏样式 */
.side-bar {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-bar-item {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.side-bar-item:hover {
  background-color: #ff8500;
}

.side-bar-item:hover svg {
  fill: #fff;
}

.side-bar-item svg {
  width: 24px;
  height: 24px;
  fill: #666;
  transition: all 0.3s;
}

.side-bar-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.qr-code-img {
  width: 120px;
  height: 120px;
  display: block;
}

.side-bar-tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-left: 5px solid #fff;
  border-bottom: 5px solid transparent;
}

.side-bar-item:hover .side-bar-tooltip {
  opacity: 1;
  visibility: visible;
  right: 65px;
}

.scroll-to-top {
  background-color: #ff8500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top svg {
  fill: #fff;
} 

/* 弹窗表单样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background-color: #fff;
  width: 100%;
  max-width: 800px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  background-color: #f0f0f0;
}

.modal-header img {
  width: 100%;
  display: block;
}

.modal-body {
  padding: 30px 40px;
  text-align: center;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #333;
  font-weight: bold;
}

.modal-form input {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 15px;
  margin-bottom: 15px;
  font-size: 16px;
}

.modal-form input::placeholder {
  color: #999;
}

.modal-form input:focus {
  border-color: #ff8500;
  outline: none;
}

.modal-form .submit-btn {
  width: 100%;
  height: 45px;
  background-color: #ff8500;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-form .submit-btn:hover {
  background-color: #e67a00;
} 

/* 模态框响应式样式 */
@media screen and (max-width: 992px) {
  .modal-container {
    max-width: 700px;
  }
  
  .modal-body {
    padding: 25px 35px;
  }
  
  .modal-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .modal-container {
    max-width: 90%;
    width: 90%;
  }
  
  .modal-body {
    padding: 20px 30px;
  }
  
  .modal-title {
    font-size: 20px;
    margin-bottom: 18px;
  }
  
  .modal-form input {
    height: 42px;
    margin-bottom: 12px;
    font-size: 15px;
  }
  
  .modal-form .submit-btn {
    height: 42px;
    font-size: 15px;
  }
}

@media screen and (max-width: 576px) {
  .modal-container {
    max-width: 95%;
    width: 95%;
  }
  
  .modal-header img {
    height: auto;
    object-fit: cover;
  }
  
  .modal-body {
    padding: 15px 20px;
  }
  
  .modal-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .modal-form input {
    height: 40px;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 0 10px;
  }
  
  .modal-form .submit-btn {
    height: 40px;
    font-size: 14px;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 375px) {
  .modal-container {
    max-width: 98%;
    width: 98%;
  }
  
  .modal-header {
    max-height: 180px;
    overflow: hidden;
  }
  
  .modal-body {
    padding: 12px 15px;
  }
  
  .modal-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .modal-form input {
    margin-bottom: 8px;
  }
}

/* 桌面端显示，移动端隐藏 */
.desktop-only {
  display: flex;
}