/* 全局样式 */
body {
    background-color: #f5f7fa;
    font-family: "Microsoft YaHei", sans-serif;
}
.system-title {
    color: #165DFF;
    font-weight: 600;
    margin: 30px 0 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    font-size:26px;
    text-align: center;
}
.lnk-title{
    text-align: center;
    padding-bottom: 10px;
    padding-top:10px;
    margin-bottom:20px;
}
.lnk-title a{
    color: #666;
    font-size: 13px;
    text-decoration: underline;
}
.lnk-wx{
    text-align: center;
    padding-bottom: 50px;
}
.lnk-wx a{
    color: #165DFF;
}
/* 子域名选项卡 */
.domain-tabs .nav-link {
    color: #666;
    border: 1px solid #ddd;
    margin-right: 10px;
}
.domain-tabs .nav-link.active {
    background-color: #165DFF;
    color: #fff;
    border-color: #165DFF;
}
/* 模块卡片 */
.data-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}
.card-title {
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* 数据概览卡片样式 */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #165DFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stat-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}
.stat-value {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}
.stat-change {
    font-size: 12px;
    margin-top: 5px;
}
.increase {
    color: #67C23A;
}
.decrease {
    color: #F56C6C;
}
/* 切换按钮 */
.data-type-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-left: 8px;
    cursor: pointer;
}
.data-type-btn.active {
    background-color: #165DFF;
    color: #fff;
    border-color: #165DFF;
}
/* 图表容器 */
.chart-container {
    width: 100%;
    height: 350px;
    margin-top: 10px;
}
/* 实时日志 */
.log-container {
    /* max-height: 300px; */
    /* overflow-y: auto; */
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}
.log-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #666;
    font-size: 14px;
    text-align: justify;
    word-break: break-all;
}
.log-item:last-child {
    border-bottom: none;
}
.log-ip {
    color: #165DFF;
    font-weight: 500;
}
/* 7天日志表格 */
.log-table {
    font-size: 14px;
}
.log-table th {
    background-color: #f8f9fa;
    text-align: center;
}
.log-table td {
    text-align: center;
    vertical-align: middle;
}
.file-size {
    color: #67C23A;
}
/* 备注样式 */
.note {
    color: #999;
    font-size: 12px;
}

/* 添加响应式表格样式 */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-type-btn {
      margin-left: 4px;
  }
  
  .table-bordered td, 
  .table-bordered th {
    padding: 0.3rem;
    white-space: nowrap;
  }
  
  .log-table th,
  .log-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }
  
  .file-size {
    /* display: block; */
    font-size: 12px;
  }
  
  .note {
    font-size: 12px;
    text-align: justify;
  }
  
  .data-card {
    padding: 10px;
  }
  
  .card-title {
    font-size: 16px;
    /* flex-direction: column;
    align-items: flex-start; */
  }
  
  .data-type-group {
    margin-top: 5px;
  }
  
  .data-type-btn {
    padding: 2px 2px;
    font-size: 12px;
  }
  
  #reportrange {
    max-width: 150px;
    font-size: 12px;
  }
  
  .system-title {
    font-size: 20px;
  }
  
  .lnk-title {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .table-responsive {
    font-size: 12px;
  }

  .data-type-btn{
    margin-left: 4px;
  }
  
  .log-table th,
  .log-table td {
    max-width: 85px;
    font-size: 12px;
  }

  .log-table2 th,
  .log-table2 td {
    max-width: 160px;
    font-size: 12px;
  }
  
  .table-bordered td, 
  .table-bordered th {
    padding: 0.4rem;
  }
  
  #reportrange {
    max-width: 200px;
    font-size: 12px;
  }
  
  .me-2 {
    margin-right: 0.3rem !important;
  }
  
  .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 12px;
  }
  
  .card-title {
    font-size: 14px;
  }
}

/* 平均访问时长列样式 */
.avg-stay-time {
  min-width: 100px;
  text-align: center;
}