html {
  font-size: 14px;
}
a{
    color:blue;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.top-image-bar {
    width: 100%;
    background-color: #e6e6e6;/*#9d85de;  your required color */
    padding: 10px 0; /* optional: adds spacing above/below the image */
    text-align: center; /* centers the img */
}

    /* Image stays original size */
    .top-image-bar img {
        max-width: none; /* prevent Bootstrap auto-resizing */
        height: auto;
        width: auto;
    }
/* Menu bar styling */
.menu-bar {
    background-color: #333;
}
.menu-bar .nav-link {
        color: white;
        padding: 10px 15px;
}

.menu-bar .nav-link:hover {
            background-color: #444;
}

/*主页用的四张卡片式数据库入口*/
.custom-card {
    width: 100%; /* 占满父列宽度 */
    height: 200px; /* 卡片固定高度，可改 */
    background-color: #f5f5f5; /* 浅灰色背景 */
    border-radius: 8px;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    text-decoration: none;
    transition: transform 0.2s;
}

.custom-card:hover {
    transform: translateY(-5px); /* 悬停微动效果 */
}

/*TreeView 样式*/
.tree-root {
    list-style: none;
    padding-left: 0;
}

.tree-item {
    margin-bottom: 10px;
}

.toggle {
    cursor: pointer;
    margin-right: 5px;
    font-weight: bold;
    user-select: none;
    color:blue
}
/*提示说明文字*/
.tooltips{
    background-color:#ffff80;
    color:#500020;
}

/* 以下显示的是文章标题列表的样式 */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

 .doc-table td {
        padding: 8px 12px;
    }

/* 偶数行背景色 */
.doc-row-even {
    background-color: #f5f0ff; /* 淡紫色 */
}

/* 奇数行 */
.doc-row-odd {
    background-color: #ffffff;
}

/* 首行 */
.doc-row-first {
    font-weight: bold;
    background-color: #f0f0f0;
}

.doc-title {
    width: 70%;
}

.doc-date {
    white-space: nowrap; /* 防止内容换行，使列保持最小宽度 */
    width: 1%; /* 让浏览器按内容自动压缩列宽 */
    padding-left: 20px; /* （可选）让标题与日期有些间隔 */
}
/*单篇文章显示区*/
.article-content {
    padding-left: 20px;
    padding-right: 20px;
}
.sub-table {
    width: 90%;
    border-collapse: collapse;
    font-size: 16px;
    margin: 0 auto;
}
.sub-table td {
    border-bottom:solid 1px black;
    padding:5px;10px;
}


.black-frame {
    border: 2px solid black;
    padding: 2px 6px;
    display: inline-block; /* 建议加上，使边框更自然 */
}
/* 像链接文字一样的按钮 */
.link-button {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
    font: inherit; /* 保持和文字同字体 */
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-container {
    width: 90%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

