* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 顶部导航样式 */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 50;
}

.footer-nav {
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer-p {
    font-size:.8em;
	padding:0 20px;
	color:#7f8c8d;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    margin-left: 350px;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}

.nav-links-desktop {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(112, 121, 127, 0.1);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-link i {
    font-size: 16px;
}

/* 移动端菜单样式 */
.nav-mobile {
    display: none;
    position: relative;
    z-index: 200;
}

.nav-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

.nav-mobile-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.nav-mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link-mobile:last-child {
    border-bottom: none;
}

.nav-link-mobile:hover {
    background: rgba(52, 152, 219, 0.1);
}

.nav-link-mobile i {
    width: 16px;
    text-align: center;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif, times, Heiti TC, "文津宋体 第0平面", "文津宋体 第2平面", "文津宋体 第3平面", PMingLiU, PMingLiu-ExtB, SimSun, SimSun-ExtB, HanaMinA, HanaMinB;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    margin-left: 350px;
    padding: 20px;
}

.header {
    text-align: left;
    margin-bottom: 10px;
    padding: 10px;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header h1 .fa {
    margin-right: 10px;
    color: #3498db;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.main-content {
    min-height: calc(100vh - 200px);
}

.file-list {
    position: fixed;
    left: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.file-list-header {
    flex-shrink: 0;
    margin-bottom: 20px;
	border-bottom: 1px solid #e1e2e2;
}

.file-list h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.file-list h2 .fa {
    margin-right: 8px;
    color: #3498db;
}

.search-box {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
    position: relative;
}

.search-container {
    position: relative;
}

.search-container .fa-search {
    position: absolute;
    left: 15px;
    top: 40%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 1;
}

.search-box:focus {
    border-color: #3498db;
}

.file-stats {
    font-size: 0.85em;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 15px;
}

.file-stats .fa {
    margin-right: 5px;
}

.file-list-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 默认隐藏垂直滚动条 */
.file-list-container::-webkit-scrollbar {
    width: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.file-list-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* 鼠标悬停时显示滚动条 */
.file-list:hover .file-list-container::-webkit-scrollbar {
    opacity: 1;
}

.file-list:hover .file-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

.file-list:hover .file-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.file-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #e3e9f1;
}

.file-item:hover {
    background: #e3e9f1;
    transform: translateX(5px);
}

.file-item.active {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

.file-name {
    /*font-weight: bold;*/
    font-size: 1em;
    line-height: 1.3;
}

.file-meta {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 3px;
    line-height: 1.2;
}

.file-item.active .file-meta {
    color: #ecf0f1;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

.no-results .fa {
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.loading-list {
    text-align: center;
    color: #3498db;
    padding: 20px;
}

.loading-list .fa {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-area {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.content-title {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: bold;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 0.9em;
}

.pagination-info .fa {
    margin-right: 5px;
}

.content-text {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    font-family: "文津宋体 第0平面", "文津宋体 第2平面", "文津宋体 第3平面", Verdana, Arial, Helvetica, sans-serif, times, Heiti TC, PMingLiU, PMingLiu-ExtB, SimSun, SimSun-ExtB, HanaMinA, HanaMinB;
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid #e0e0e0;
    min-height: 400px;
    align-items: normal;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 15px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button .fa {
    margin: 0 5px;
}

.pagination button:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.pagination span {
    color: #7f8c8d;
}

.btn-text {
    color: white !important;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 14px;
}

.page-jump span {
    white-space: nowrap;
}

.page-jump input {
    width: 90px;
    padding: 8px 8px 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.page-jump input:focus {
    border-color: #3498db;
}

/* 隐藏数字输入框的上下箭头 */
.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-jump input[type=number] {
    -moz-appearance: textfield;
}

.page-jump button {
    padding: 8px 12px;
    border: none;
    background: #95a5a6;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-jump button:hover {
    background: #95a5a6;
}

.page-jump button .fa {
    margin: 0;
}

/* 全文搜索样式 */
.search-area {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
	position: sticky;
    top: 0;
    z-index: 2;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.search-input-container input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-container input:focus {
    border-color: #3498db;
}

.search-input-container button {
    padding: 10px 12px;
    border: none;
    background: #c9cdd2;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-container button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.search-status {
    font-size: 14px;
    margin-bottom: 10px;
    padding: 5px 0;
    min-height: 0;
}

.search-status:empty {
    display: none;
}

.search-status.searching {
    color: #3498db;
}

.search-status.success {
    color: #27ae60;
    font-weight: 500;
}

.search-status.error {
    color: #e74c3c;
}

.search-status.no-results {
    color: #f39c12;
}

.search-status.cancelled {
    color: #95a5a6;
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.result-line {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.result-context {
    font-size: 14px;
    line-height: 1.4;
    color: #495057;
}

.result-context mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 内容区域的搜索高亮 */
.content-text mark {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    animation: highlight-flash 2s ease-in-out;
}

@keyframes highlight-flash {
    0% { background: #ff9800; }
    50% { background: #ffeb3b; }
    100% { background: #ffeb3b; }
}

/* 搜索结果滚动条样式 */
.search-results-list::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 文件列表加载进度样式 */
.loading-progress {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.progress-text {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.progress-text .fa-spinner {
    color: #3498db;
}

.loading-error {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 10px 0;
}

.loading-error .fa {
    margin-right: 8px;
    font-size: 16px;
}

/* 优化文件列表滚动性能 */
.file-list-container {
    /* 启用硬件加速 */
    transform: translateZ(0);
    /* 优化滚动 */
    -webkit-overflow-scrolling: touch;
    /* 减少重绘 */
    will-change: scroll-position;
}

/* 文件项优化 */
.file-item {
    /* 减少重排 */
    contain: layout style paint;
    /* 优化渲染 */
    transform: translateZ(0);
}

/* 搜索进度样式 */
.search-progress {
    padding: 30px 20px;
    text-align: center;
    color: #3498db;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* 目录树样式 */
.tree-level {
    padding-left: 0;
}
.tree-item {
    margin: 2px 0;
}
.tree-dir, .tree-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-left: 4px solid #e3e9f1;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tree-dir:hover, .tree-file:hover {
    background: #e3e9f1;
    transform: translateX(3px);
}
.tree-dir.collapsed .tree-toggle .fa { transform: rotate(0deg); }
.tree-dir.expanded .tree-toggle .fa { transform: rotate(90deg); }
.tree-toggle {
    width: 16px;
    display: inline-flex;
    justify-content: center;
    color: #7f8c8d;
}
.tree-dir-icon i { color: #f1c40f; }
.tree-file-icon i { color: #95a5a6; }
.tree-name {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.3;
}
.tree-meta {
    font-size: 0.8em;
    color: #7f8c8d;
}
.tree-file.active {
    background: #3498db;
    color: #fff;
}
.tree-file.active .tree-meta { color: #ecf0f1; }
.tree-children {
    margin-left: 18px;
    border-left: 1px dashed #e1e2e2;
}

/* 来自 index.html 的原内联样式迁移 */
@media (max-width: 640px) {
    .pagination button .btn-text { display: none; }
    #pageInfo .page-info-full { display: none; }
    #pageInfo .page-info-compact { display: inline; }
}
@media (min-width: 641px) {
    #pageInfo .page-info-full { display: inline; }
    #pageInfo .page-info-compact { display: none; }
}
/* 输入内按钮的基础适配（原在 index.html） */
.page-jump .page-input-wrapper input {
    box-sizing: border-box;
}
.page-jump .page-input-action:hover {
    background: #e6e6e6;
}

.search-progress .fa-spinner {
    margin-right: 10px;
    font-size: 18px;
}

.welcome-message {
    text-align: left;
    color: #7f8c8d;
    font-size: 1em;
    margin-top: 10px;
	line-height:1;
}

.welcome-message .fa {
    display: block;
    font-size: 3em;
    margin-bottom: 20px;
    color: #bdc3c7;
}

#note-container {
	margin: 0;
    padding: 0 20px;
	text-align: left;
    color: #7f8c8d;
    font-size: 1em;
    margin-top: 10px;
	line-height: 1.8;
    display: block;
	white-space: normal;
}

#note-container  ul{
	padding:0 20px;
}

.loading {
    text-align: center;
    color: #3498db;
    font-size: 1.1em;
    margin-top: 50px;
}

.loading .fa {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.error {
    text-align: center;
    color: #e74c3c;
    font-size: 1.1em;
    margin-top: 50px;
}

.error .fa {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .container {
        margin-left: 0;
    }
    
    .file-list {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 400px;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    /* 响应式导航 */
    .nav-logo {
        margin-left: 0 !important;
    }
    
    .nav-links-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    /* 移动端时提高顶部导航层级 */
    .top-nav {
        z-index: 9998;
    }
    
    /* 小屏幕时内容标题区域改为上下排列 */
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-title {
        font-size: 1.2em;
    }
    
    .pagination-info {
        font-size: 0.85em;
        align-self: flex-start;
    }
	
	#note-container {
	margin: 0;
    padding: 0;
    font-size: 1em;
    margin-top: 10px;
	line-height: 1.8;
    display: block;
	white-space: normal;
}

	#note-container  ul{
		padding:0 20px;
	}
}