/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主要内容区 */
.page_main_containter {
    flex: 1;
    background-color: #f5f7fa;
    height: 100%;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width:40%;
    max-width: 500px;
    margin: auto;
    height: auto;
    border-radius: 20px;
    padding: 40px;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@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%;
  background: rgba(255, 255, 255, 0.95);
}

.loading-container,
.error-container,
.content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    vertical-align: middle;
    background: #fff;
    color: #333;
    padding: 30px 40px;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  border-top: 4px solid #667eea;
  width: 50px;
  height: 50px;
  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: 10px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 16px;
  font-size: 14px;
  transition: all 0.3s;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.template_card{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
    max-width: 320px;
    min-width: 280px;
    height: 100px;
    transition: all 0.3s ease;
}

.template_card-disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.template_card-enabled{
    cursor: pointer;
}

.template_card-enabled:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.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: 240px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
}

.sidebar-frame .content {
    flex: 1;
    padding: 24px;
    background-color: #fff;
    border-radius: 12px 0 0 12px;
}

.sidebar-frame .nav-item {
    padding: 12px 16px;
    cursor: pointer;
    margin-bottom: 8px;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-frame .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

iframe{
    width: 100%;
    height: 100%;
    border: 0px;
}

.nav-item{
    padding: 12px 16px;
    cursor: pointer;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s;
}

.nav-item-active{
    font-weight: bolder;
    background-color: rgba(255, 255, 255, 0.25);
}

.sub-item{
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 15px;
    margin-left: 12px;
    transition: all 0.3s;
}

.sub-item-active{
    font-weight: bolder;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-item:hover{
    background-color: rgba(255, 255, 255, 0.15);
}

.sub-item:hover{
    background-color: rgba(255, 255, 255, 0.1);
}


.data-query-header{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    width: 100%;
    border-bottom: 2px solid #f0f0f0;
}

.data-query-item{
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-query-item span{
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.data-query-item select,
.data-query-item input{
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.data-query-item select:focus,
.data-query-item input:focus{
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.data-query-item select option{
    padding: 10px 14px;
}

.data-query-btn{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    border: none;
    padding: 14px 36px;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
    height: 46px;
    white-space: nowrap;
    align-self: flex-end;
}

.data-query-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.data-query-body{
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
}

.data-query-body::-webkit-scrollbar{
    width: 8px;
    height: 8px;
}

.data-query-body::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 4px;
}

.data-query-body::-webkit-scrollbar-thumb{
    background: #c1c1c1;
    border-radius: 4px;
}

.data-query-body::-webkit-scrollbar-thumb:hover{
    background: #a8a8a8;
}

.data-query-body table{
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 800px;
}

.data-query-body thead{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.data-query-body tbody{
    tr:nth-child(even) {
        background-color: #f8f9fa;
    }
    tr:nth-child(odd) {
        background-color: #fff;
    }
    tr:hover{
        background-color: rgba(102, 126, 234, 0.05);
        transition: all 0.3s;
    }
}

.data-query-body th,
.data-query-body td{
    padding: 14px 18px;
    text-align: center;
    font-size: 14px;
}

.data-query-body th{
    border: rgba(255, 255, 255, 0.3) 1px solid;
}