/*!
 * nginx-fancyindex-flat-theme customized
 * 2025 Nino Young
 */

body {
    background-color: #f8f9fa;
    padding-bottom: 50px;
    color: #333; /* 浅色模式文字颜色 */
}

/* 文件列表横线（浅色模式） */
#list {
    border-collapse: collapse;
    border-top: 2px solid #ddd;  /* 顶部横线 */
}
#list td, #list th {
    border-bottom: 1px solid #ddd; /* 每行横线 */
}

.breadcrumb {
    background-color: rgba(0, 123, 255, 0.1);
    padding-left: 35px;
    border-radius: 6px;    /* 圆角 */
}

.breadcrumb .breadcrumb-item a {
    color: #0d6efe;
}

/* 页脚链接 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;       /* 页脚高度 */
    margin: 0;
    background-color: #f8f9fa;
}
.footer a, .footer a:focus, .footer a:hover {
    color: #868686;
}

/* 顶栏 */
.header {
    background-color: #000;
    color: #fff;
    min-height: 50px;
    display: flex;
    align-items: center;  /* 垂直居中 */
    padding: 0 16px;
}
.header .navbar-brand {
    padding: 0 8px;
    font-size: 18px;
    font-weight: bold;
    height: 28px;
    display: flex;
    align-items: center;
}
.header .navbar-brand img {
    height: 28px;
    margin-right: 16px;
}

/* 文件名颜色 */
#list a, #list a:focus, #list a:hover {
    color: #333;
}
#list colgroup {
    display: none;
}
#list .filename {
    word-break: break-all;
    white-space: normal;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #222222;
        color: #ccc;  /* 深色模式文字颜色，改暗一点 */
    }

    /* 文件列表横线 */
    #list {
        border-top: 2px solid #555;  /* 顶部横线颜色 */
    }
    #list td, #list th {
        border-bottom: 1px solid #555; /* 每行横线颜色 */
    }

    /* 文件名颜色 */
    #list a, #list a:focus, #list a:hover {
        color: #ccc;  /* 文件名颜色改暗一些 */
    }

    .breadcrumb {
        background-color: rgba(0, 123, 255, 0.1); /* 深色模式下浅灰透明 */
    }

    /* 面包屑 Home 链接 */
    .breadcrumb .breadcrumb-item a {
	color: #6ea8fe; /* Home 链接保持浅蓝 */
    }
    .footer {
        background-color: #222222;  /* 深色模式与 body 一致 */
    }
}

