/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保页面高度占满整个视口 */
}

/* 主要内容区 */
.page_main_containter {
    flex: 1; /* 填充剩余空间 */
    background-color: rgb(232, 232, 232);
    height: 100%;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: auto; /* 确保页脚始终在底部 */
}

.beian-links{
    display: flex;
    justify-content: space-between;
    margin: auto;
    width: 60%;
    vertical-align: middle;
}

.beian-links p{
    margin: 0;
    font-size: 0.9rem;
}

.beian-links a{
    color: white;
}

.login_container{
    background-color: #fff;
    width:40%;
    max-width: 500px;
    margin: auto;
    height: auto;
    border-radius: 20px;
    padding: 20px;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .page_main_containter {
        padding: 15px;
    }
    .beian-links{
        display: block;
        width: 100%;
    }
    .login_container{
        width: 80%;
    }
}


.data-loader {
  text-align: center;
  vertical-align: middle;
  padding: 20px;
  z-index: 1000;
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.loading-container,
.error-container,
.content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    vertical-align: middle;
    background: #000;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.retry-button {
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.retry-button:hover {
  background-color: #2980b9;
}

.template_card{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-width: 300px;
    min-width: 250px;
    height: 100px;
}

.template_card-disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.template_card-enabled{
    cursor: pointer;
}

.template_card-enabled:hover{
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.template_card-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.template_card-header img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px;
}

.template_card-title{
    height: 50px;
    vertical-align: middle;
    padding: 10px;
}

.template_card-title h2{
    font-size: 24px;
    font-weight: bold;
    margin: 6px 0;
}

.template_card-title h3{
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

.template_card-footer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 400px) {
    .template_card{
        max-width: 100%;
    }
}



.sidebar-frame {
    display: flex;
    height: 100%;
}

.sidebar-frame .sidebar {
    width: 200px;
    background-color: #f0f0f0;
    padding: 20px;
}

.sidebar-frame .content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
}

.sidebar-frame .nav-item {
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 4px;
}

.sidebar-frame .nav-item:hover {
    background-color: #e0e0e0;
}

iframe{
    width: 100%;
    height: 100%;
    border: 0px;
}

.nav-item{
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 20px;
}

.nav-item-active{
    font-weight: bolder;
}

.sub-item{
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 16px;
    margin-left:10px
}

.sub-item-active{
    font-weight: bolder;
}

.nav-item:hover{
    background-color: #e0e0e0;
}

.sub-item:hover{
    background-color: #e0e0e0;
}


.data-query-header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    height: auto;
}

.data-query-body{
    
}