.table-bordered {
    width: 100%;
    border-collapse: collapse;

    /* 合并边框 */
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;

    /* 设置单元格边框 */
    padding: 8px;
    text-align: left;
}

.table-bordered th {
    background-color: #f4f4f4;
}

/* sample 细胞对比 */
.module-container {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.header h2 {
    margin: 0;
}

.tab-container {
    display: flex;
    margin-top: 10px;
}

.tab {
    margin-right: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
}

.tab.active {
    background-color: #007bff;
    color: #fff;
}

.input-section {
    margin-top: 20px;
}

.chart-section {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.chart {
    width: 45%;
    height: 300px;
}

.result-section {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
}

#network {
    width: 800px;
    height: 600px;
    margin: 0 auto;
}

.legend {
    margin-top: 20px;
}

.legend span {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}

.legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-bottom: none;
    text-align: center;
    flex: 1;
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #bbb;
}

.tab.active {
    background-color: white;
    font-weight: bold;
}

.image-container {
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    background-color: white;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: none;
}

.image-container img.active {
    display: block;
}

.filter-section {
    margin-bottom: 20px;
}

.table-container {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.highlight {
    background-color: #f0ad4e !important;
    color: #fff;
}

.bottom-tables {
    display: flex;
    gap: 10px;
}

.table-container {
    flex: 1;
    overflow: auto;
}

.content {
    display: flex;
    margin-top: 70px;
}

.sidebar {
    margin-left: 10%;
    width: 20%;
    position: fixed;
    top: 70px;
    padding: 20px;
    height: calc(100vh - 320px);
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #007ACC;
    font-weight: bold;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: linear-gradient(90deg, #007ACC, #005BB5);
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.documentation {
    width: 80%;
    margin-left: 22%;
    margin-right: 18%;
    padding: 20px;
    margin-bottom: 320px;
}

.hero {
  position: relative;
  min-height: 60vh;
display: flex;
align-items: center;
  background-image: url('../images/background.jpg'); /* 从 CSS 文件到 images 的相对路径 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0,0,0,.1); /* 背景遮罩，提高可读性 */
}
.hero > .hero-inner {
  position: relative; /* 盖住遮罩 */
  z-index: 1;
}
/* Constrain paragraph width for readable line length */
.hero .lead {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}
.stats{
    margin-bottom: 1rem;
}
/* Tighter stats cards */
.stats .card {
    height: 100%;
}
.stats .card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
