/* 全局样式 */
/* html, */
body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* 防止水平滚动条 */
    background-color: #f9f9f9;
    /* margin-bottom: 120px; 根据#site-footer的高度调整 */
}

code {
    background: #4caf5066;
}

/* 主要内容容器，最大宽度限制 */
#container {
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    padding: 0;
}

#title {
    background-color: #4CAF50bf;
    color: white;
    text-align: center;
    padding: 1rem;
    margin: 0;
}

/* 面包屑导航 */
#breadcrumb {
    margin: 2rem;
    font-size: 1.8rem;
}

#breadcrumb a {
    color: #007BFF;
    text-decoration: none;
}

#breadcrumb a:hover {
    text-decoration: underline;
}

#site-footer {
    /* position: fixed; 固定定位 */
    bottom: 0; /* 固定在底部 */
    left: 0; /* 从左边开始（如果需要的话，可以调整为其他值） */
    width: 100%; /* 宽度设置为100%，覆盖整个页面宽度 */
    background-color: #5c775d; /* 背景色（可选，为了视觉效果） */
    padding: 1rem; /* 内边距（可选，为了视觉效果和可读性） */
    text-align: center; /* 文本居中（可选，根据设计需求） */
    box-shadow: 0 -1rem 5rem rgba(0, 0, 0, 0.1); /* 底部阴影（可选，为了视觉效果） */
    z-index: 999; /* 确保页脚在所有内容之上（可选，根据需要调整） */
}


/* 标题样式 */
h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
}

blockquote {
    background-color: #4caf502e;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

/* 文件/目录链接样式 */
.directory {
    font-weight: bold;
    cursor: pointer;
    color: #FF7F50;
}

.file {
    cursor: pointer;
    color: #007BFF;
}

.directory:hover, .file:hover {
    text-decoration: underline;
}

/* 返回链接样式 */
.back-link {
    font-weight: bold;
    cursor: pointer;
    color: #FF6347;
}

.back-link:hover {
    text-decoration: underline;
}

/* Readme 渲染区域 */
#readme-content {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #4caf5021;
    border-radius: 0.5rem;
    /* white-space: pre-wrap; */
    display: none;
    margin-bottom: 1.5rem;
}

#readme-content img {
    max-width: 100%; /* 最大宽度限制为 100% */
    height: auto;    /* 保持纵横比 */
    display: block;  /* 使图片为块级元素，防止和文本并排 */
    margin: 0 auto;  /* 如果图片比容器小，则居中显示 */
}

/* 单位选择菜单 */
#unit-menu {
    display: none;
    position: absolute;
    bottom: 4rem;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0 10rem rgba(0, 0, 0, 0.1);
    padding: 1rem;
    font-size: 1.4rem;
}

#unit-menu button {
    display: block;
    background: none;
    border: none;
    color: #4CAF50;
    text-align: left;
    padding: 0.5rem 1rem;
    width: 100%;
    cursor: pointer;
}


#unit-menu button:hover {
    background-color: #f0f0f0;
}

/* 打印样式 */
@media print {
    .readme-content {
        border: none;
        box-shadow: none;
    }

    /* 确保每页最多显示两张 sheet */
    .readme-content:nth-child(odd) {
        page-break-after: auto;
    }
}

#container {
    /* margin: 2rem; */
    min-height: 50rem;
}

/* 媒体查询：当页面高度大于 时 */
@media (min-height: 550px) {

}

/* 媒体查询：当页面高度大于 时 */
@media (min-height: 800px) {

}
