* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; 
    background: #f5f7fa; 
    color: #1f2937; 
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 顶部标题区 ===== */
.header-section {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 28px 48px 20px;
    text-align: center;
}
.header-section h1 {
    font-size: 26px;
    color: #1a5fb4;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.header-section p {
    font-size: 14px;
    color: #8c96a5;
}

/* ===== 搜索区 ===== */
.search-section {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 24px 48px 28px;
}
.search-inner {
    max-width: 800px;
    margin: 0 auto;
}
.search-box {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d0d7e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26,95,180,0.08);
}
.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 15px;
    outline: none;
    color: #374151;
}
.search-input::placeholder { color: #b0b8c4; }
.search-btn {
    background: #1a5fb4;
    color: #fff;
    border: none;
    padding: 0 36px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover { background: #154a8c; }
.hot-search {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.hot-search-label {
    color: #8c96a5;
    font-size: 13px;
}
.hot-search-tag {
    padding: 5px 14px;
    background: #f0f4f8;
    color: #4b6a94;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid #e0e6ed;
}
.hot-search-tag:hover {
    background: #e6eef7;
    color: #1a5fb4;
    border-color: #1a5fb4;
}

/* ===== 面包屑 ===== */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 10px 48px;
}
.breadcrumb-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8c96a5;
}
.breadcrumb-inner a {
    color: #1a5fb4;
    text-decoration: none;
}
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d0d7e0; }
.breadcrumb-current { color: #374151; font-weight: 500; }

/* ===== 主体内容 ===== */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 48px 48px;
    display: flex;
    gap: 20px;
}

/* 左侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}
.sidebar-block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
}
.sidebar-header {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-header-left::before {
    content: '';
    width: 3px; 
    height: 16px;
    background: #1a5fb4;
    border-radius: 2px;
}
.btn-export-sm {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #1a5fb4;
    border: 1px solid #1a5fb4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-export-sm:hover {
    background: #1a5fb4;
    color: #fff;
}

/* 部门树 */
.dept-tree { padding: 6px 0; }
.dept-node {
    padding: 9px 12px 9px 16px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.dept-node:hover {
    background: #f8fafc;
    color: #1a5fb4;
}
.dept-node.active {
    background: #f0f7ff;
    color: #1a5fb4;
    border-left-color: #1a5fb4;
    font-weight: 500;
}
.dept-node .arrow {
    font-size: 11px;
    color: #b0b8c4;
    transition: transform 0.2s;
    width: 16px;
    text-align: center;
}
.dept-node.expanded .arrow {
    transform: rotate(90deg);
}
.dept-node .node-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-export {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    color: #8c96a5;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}
.dept-node:hover .icon-export {
    opacity: 1;
}
.icon-export:hover {
    background: #e6eef7;
    color: #1a5fb4;
}

/* 二级 */
.sub-tree {
    background: #f8fafc;
    display: none;
}
.sub-tree.show { display: block; }
.sub-node {
    padding: 8px 16px 8px 32px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sub-node:hover {
    color: #1a5fb4;
    background: #f0f7ff;
}
.sub-node.active {
    color: #1a5fb4;
    background: #e6eef7;
    border-left-color: #1a5fb4;
    font-weight: 500;
}
.sub-node .arrow {
    font-size: 10px;
    color: #b0b8c4;
    width: 16px;
    text-align: center;
    transition: transform 0.2s;
}
.sub-node.expanded .arrow {
    transform: rotate(90deg);
}

/* 三级 */
.item-tree {
    background: #f0f7ff;
    display: none;
}
.item-tree.show { display: block; }
.item-node {
    padding: 7px 16px 7px 48px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-node:hover {
    color: #1a5fb4;
    background: #e0efff;
}
.item-node.active {
    color: #1a5fb4;
    background: #d4e5f7;
    border-left-color: #1a5fb4;
    font-weight: 500;
}
.item-node .arrow {
    font-size: 10px;
    color: #b0b8c4;
    width: 16px;
    text-align: center;
    transition: transform 0.2s;
}
.item-node.expanded .arrow {
    transform: rotate(90deg);
}

/* 四级叶子 */
.leaf-tree {
    background: #e6eef7;
    display: none;
}
.leaf-tree.show { display: block; }
.leaf-node {
    padding: 6px 16px 6px 64px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.leaf-node:hover {
    color: #1a5fb4;
    background: #d4e5f7;
}
.leaf-node.active {
    color: #1a5fb4;
    background: #c2daf0;
    border-left-color: #1a5fb4;
    font-weight: 500;
}

/* 右侧内容区 */
.content-area { flex: 1; min-width: 0; }

/* 当前位置标题 */
.section-title {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #e8ecf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title h2 {
    font-size: 17px;
    color: #1f2937;
    font-weight: 600;
}
.section-title .path {
    font-size: 12px;
    color: #8c96a5;
    margin-top: 4px;
}
.section-title .path strong {
    color: #1a5fb4;
}

/* 排序栏 */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 2px;
}
.result-info {
    font-size: 13px;
    color: #8c96a5;
}
.result-info strong { 
    color: #1a5fb4; 
    font-weight: 600; 
}
.sort-group {
    display: flex;
    gap: 3px;
    align-items: center;
}
.sort-label {
    font-size: 12px;
    color: #b0b8c4;
    margin-right: 6px;
}
.sort-item {
    padding: 5px 12px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}
.sort-item:hover, .sort-item.active {
    color: #1a5fb4;
    background: #f0f7ff;
}

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #e8ecf0;
    transition: all 0.2s;
    position: relative;
}
.info-card:hover {
    box-shadow: 0 2px 12px rgba(26,95,180,0.06);
    border-color: #c8d8ec;
}
.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 8px 0 0 8px;
    transition: background 0.2s;
}
.info-card:hover::before {
    background: #1a5fb4;
}
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.info-title {
    font-size: 15px;
    color: #1a5fb4;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
    flex: 1;
    margin-right: 12px;
    cursor: pointer;
}
.info-title:hover { text-decoration: underline; }

.info-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}
.status-longterm {
    color: #059669;
    background: #ecfdf5;
}
.status-month {
    color: #1a5fb4;
    background: #f0f7ff;
}
.status-year {
    color: #d97706;
    background: #fffbeb;
}

.info-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #8c96a5;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.info-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}
.info-path {
    font-size: 12px;
    color: #b0b8c4;
}
.info-path strong {
    color: #1a5fb4;
    font-weight: 500;
}
.btn-primary {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    background: #1a5fb4;
    color: #fff;
    border: 1px solid #1a5fb4;
}
.btn-primary:hover { background: #154a8c; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 24px;
    padding: 16px 0;
}
.page-item {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e6ed;
    color: #5a6a7a;
    text-decoration: none;
    background: #fff;
}
.page-item:hover { 
    border-color: #1a5fb4; 
    color: #1a5fb4; 
}
.page-item.active {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

/* 响应式 */
@media (max-width: 1200px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .header-section, .search-section, .breadcrumb-bar, .main-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 左侧栏固定高度滚动 */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 8px;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* 确保主容器不会把 sidebar 撑开 */
.main-container {
    align-items: flex-start;
}
