@charset "utf-8";

.container {
  min-height: 800px;
  display: flex;
  margin: 25px auto;
}

/* 左侧菜单 */
.sideBar {
  width: 280px;
  background-image: url(../images/common/menu-bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  min-height: 400px;
  position: relative;
  display: flex;
  flex-shrink: 0;
}
.sideBar .in_box {
  padding: 33px 27px;
  width: 100%;
}
.sideBar-bottom-icon {
  position: absolute;
  width: 193px;
  height: 142px;
  bottom: 0;
  right: 0;
  background-image: url(../images/common/bg-icon.png);
  background-repeat: no-repeat;
}

.sideMenu {
  position: relative;
  z-index: 13;
  overflow: hidden;
  margin-top: 30px;
}

.sideMenu li {
  margin-top: 15px;
}

.sideMenu li a {
  position: relative;
  display: block;
  padding: 10px 30px 10px 30px;
  font-size: 1em;
  line-height: 1.6em;
  text-align: left;
  /* background-color: #f1f1f1; */
  border-radius: 8px;
}

.sideMenu li a:hover {
  color: #005192;
  text-decoration: none;

  /* background-color: #dedede; */
}

.sideMenu li a:before {
  position: absolute;
  right: 15px;
  content: '';
  top: calc(50% - 9px);
  width: 12px;
  height: 18px;
  background-image: url(../images/common/arrow.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.sideMenu li a.aon {
  color: #4679cb;
  background: #ffffff;
}

.sideMenu li a.aon:before {
  background-position: 0 0;
  background-image: url(../images/common/arrow-active.png);
}


.in_box .title {
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;
  color: #FFFFFF;
  margin-bottom: 30px;
  position: relative;
}

.in_box .title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 35%;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 2px;
}

.sidebar-list {
  margin-top: 50px;
}

.sideBar-bottom-icon {
  position: absolute;
  width: 200px;
  height: 176px;
  bottom: 0;
  right: 0;
  background-image: url(../images/ztc/sider-bottom.png);
  background-repeat: no-repeat;
}

/* 侧边栏项目样式 */
.sidebar-item {
  padding: 12px 20px;
  margin: 5px 0;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px 0px 0px 8px;
  position: relative;
  font-size: 16px;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
  background-color: #FFFFFF;
  color: #333;
}

/* 主内容区域 */
.mainContent {
  width: 100%;
}

.mainContent .inBox {
  padding-left: 40px;
}

.list-title{
  margin-top: 10px;
  padding: 0.7em 3em;
  border:1px solid #327AD7;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #327AD7;
  margin-bottom: 20px;
  display: inline-block;
}

.top-menu{
  padding-top: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.top-menu-item{
  padding: 0.7em 1em;
  border:1px solid #555;
  border-radius: 8px;
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  width: 220px;
}

.top-menu-item_on {
  color: #327AD7;
  border-color: #327AD7;
  background-color: #327AD7;
  color: #fff;
}

/* 二维码弹框样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.qr-modal.show {
  display: flex;
}

.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.qr-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.qr-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.qr-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.qr-modal-close:hover {
  background: #e9ecef;
  color: #333;
}

.qr-modal-body {
  padding: 24px;
  text-align: center;
}

.qr-modal-image-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.qr-modal-image {
  max-width: 200px;
  max-height: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-modal-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.qr-modal-tip {
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
}

/* 弹框动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.content-list {
  min-height: 200px;
  display: flex;
  flex-wrap: wrap;
  padding-top: 20px;
  gap: 20px;
}

.content-item {
  background-color: #F2F5FA;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  width: calc(25% - 15px);
  min-width: 200px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 二维码容器样式 */
.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-code-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  background: white;
  padding: 8px;
}

.school-name {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  word-break: break-all;
  max-width: 100%;
}

/* 没有二维码的学校样式 */
.content-item.no-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.school-name-only {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
}


.content-item:hover {
  background-color: #E8F0FE;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-item.has-url {
  cursor: pointer;
}

.content-item.has-url:hover .qr-code-image {
  border-color: #327AD7;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 16px;
}


/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
  display: none;
  background: #327AD7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px auto;
  width: 200px;
  text-align: center;
}

.mobile-menu-toggle:hover {
  background: #2a6bb8;
}

/* 当前分类显示 */
.current-category {
  display: none;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 10px auto;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.category-name {
  font-size: 16px;
  color: #327AD7;
  font-weight: 600;
  margin-left: 8px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .container {
    min-height: auto;
    flex-direction: column;
    margin: 10px auto;
    padding: 0 10px;
  }

  /* 移动端菜单切换按钮显示 */
  .mobile-menu-toggle {
    display: block;
  }

  /* 移动端当前分类显示 */
  .current-category {
    display: block;
  }

  /* 侧边栏在移动端的样式 */
  .sideBar {
    width: 100%;
    margin-bottom: 20px;
    background-image: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none; /* 默认隐藏 */
  }

  .sideBar.show {
    display: block;
  }

  .sideBar .in_box {
    padding: 10px 20px;
  }

  .in_box .title {
    display: none;
  }

  .sidebar-list {
    margin-top: 20px;
  }

  .sidebar-item {
    background-color: white;
    color: #333;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    padding: 15px 20px;
  }

  .sidebar-item:hover {
    background-color: #f0f8ff;
  }

  .sidebar-item.active {
    background-color: #327AD7;
    color: white;
  }

  /* 隐藏底部装饰图标 */
  .sideBar-bottom-icon {
    display: none;
  }

  /* 主内容区域移动端样式 */
  .mainContent {
    width: 100%;
  }

  .mainContent .inBox {
    padding-left: 0;
  }

  .content-list {
    min-height: auto;
    padding-top: 20px;
    gap: 15px;
    justify-content: center;
  }

  .content-item {
    width: calc(50% - 7.5px);
    min-width: 150px;
    padding: 12px;
    margin-bottom: 0;
  }

  .qr-code-image {
    width: 80px;
    height: 80px;
  }

  .school-name {
    font-size: 12px;
  }

  .school-name-only {
    font-size: 14px;
  }

  .no-data {
    font-size: 15px;
    padding: 30px 20px;
  }

  /* 移动端弹框样式 */
  .qr-modal-content {
    max-width: 350px;
    width: 95%;
    margin: 20px;
  }

  .qr-modal-header {
    padding: 16px 20px;
  }

  .qr-modal-title {
    font-size: 16px;
  }

  .qr-modal-body {
    padding: 20px;
  }

  .qr-modal-image {
    max-width: 200px;
    max-height: 200px;
  }

  .qr-modal-name {
    font-size: 15px;
  }

  .qr-modal-tip {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* 超小屏幕优化 (小于480px) */
/* @media (max-width: 480px) {
  .container {
    margin: 5px auto;
    padding: 0 5px;
  }

  .mobile-menu-toggle {
    width: 90%;
    font-size: 15px;
    padding: 10px 15px;
  }

  .sideBar .in_box {
    padding: 15px;
  }

  .in_box .title {
    font-size: 18px;
  }

  .sidebar-item {
    font-size: 14px;
    padding: 12px 15px;
  }

  .content-item {
    padding: 12px 15px;
  }

  .item-name {
    font-size: 14px;
  }

  .tooltip {
    max-width: 180px;
    min-width: 120px;
  }

  .tooltip-image {
    height: 80px;
  }

  .tooltip-name {
    font-size: 12px;
  }
} */
