/* 硬盘空间 - 永硕E盘绿色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "宋体", "SimSun", Arial, sans-serif;
    font-size: 12px;
    background: #ffffff;
    min-height: 100vh;
}

/* 顶部标题栏 - 深绿色 */
.header {
    background: #336633;
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    font-family: "宋体", "SimSun", Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 5px 10px;
    color: #fff;
    font-size: 18px;
    user-select: none;
}

.menu-icon {
    display: inline-block;
    font-style: normal;
}

.header-title {
    font-weight: bold;
    font-size: 13px;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.header-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.header-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 3px;
    color: #fff;
}

.header-status {
    color: #fff;
    font-size: 12px;
}

.header-status .online-count {
    color: #69e659 !important;
    font-weight: bold;
    display: inline-block;
}

/* 主容器 */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 100px);
    padding: 5px;
    gap: 5px;
    margin-bottom: 35px;
}

/* 遮罩层 */
.sidebar-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-mask.mask-show {
    display: block;
    opacity: 1;
}

/* 左侧边栏 - 浅绿色背景 */
.sidebar {
    width: 180px;
    margin-right: 8px;
    flex-shrink: 0;
    background: #E6F7E6;
    transition: transform 0.3s ease, left 0.3s ease;
    position: relative;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #d1d5db;
    margin-bottom: 5px;
    border-radius: 0;
    box-shadow: none;
}

.sidebar-title {
    background: #E6F7E6;
    padding: 6px 10px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #d1d5db;
    font-size: 12px;
    font-family: "宋体", "SimSun", Arial, sans-serif;
}

.sidebar-content {
    padding: 8px 10px;
    font-size: 12px;
    color: #333;
    background: #fff;
    font-family: "宋体", "SimSun", Arial, sans-serif;
}

/* 公告样式 */
.notice-content {
    line-height: 1.8;
}

.notice-content p {
    margin-bottom: 5px;
}

.notice-date {
    text-align: right;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 8px;
}

/* 统计样式 */
.stats-content .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.stats-content .stat-row:last-child {
    border-bottom: none;
}

.stats-content .online {
    color: #69e659;
    font-weight: bold;
}

/* 迷你文件列表 */
.file-list-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list-mini li {
    padding: 5px 0;
    border-bottom: 1px dashed #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list-mini li:last-child {
    border-bottom: none;
}

.file-list-mini a {
    color: #0000FF;
    text-decoration: none;
    font-size: 11px;
}

.file-list-mini a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.file-list-mini .count {
    color: #9ca3af;
    font-size: 10px;
}

.empty-tip {
    text-align: center;
    color: #9ca3af;
    padding: 10px 0;
}

/* 内容区 */
.content-area {
    flex: 1;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
}

/* 内容头部 */
.content-header {
    background: #E6F7E6;
    border-bottom: 1px solid #d1d5db;
    padding: 6px 10px;
    display: flex;
    align-items: center;
}

.content-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.back-icon {
    color: #333;
    cursor: pointer;
}

.title-text {
    color: #333;
}

/* 文件列表区 */
.file-list-container {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: #fff;
}

.folder-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.folder-list-item {
    border-bottom: 1px solid #d1d5db;
    padding: 0;
}

.folder-list-item:hover {
    background: #f9fafb;
}

.folder-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-family: "宋体", "SimSun", Arial, sans-serif;
}

.folder-link:hover {
    color: #ff0000;
    text-decoration: underline;
}

.folder-icon {
    margin-right: 8px;
    font-size: 16px;
}

.folder-name {
    flex: 1;
}

/* 排序选项 */
.sort-options {
    padding: 6px 10px;
    background: #E6F7E6;
    border-top: 1px solid #d1d5db;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-options span {
    margin-right: 5px;
}

.refresh-btn {
    padding: 2px 8px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    font-family: inherit;
}

.refresh-btn:hover {
    background: #e0e0e0;
}

.sort-options label {
    margin-right: 10px;
    cursor: pointer;
    font-size: 11px;
}

/* 空目录提示 */
.empty-folder {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 12px;
    list-style: none;
}

/* 底部操作栏 */
.footer-bar {
    background: #336633;
    color: #fff;
    padding: 6px 15px;
    font-size: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid #2d5a2d;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-title {
    font-weight: bold;
}


/* 手机端响应式样式 */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    /* 显示菜单按钮 */
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 6px 10px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .header-title {
        font-size: 14px;
    }
    
    .header-breadcrumb {
        font-size: 11px;
        display: none; /* 手机端隐藏面包屑 */
    }
    
    .header-status {
        font-size: 11px;
    }
    
    .main-wrapper {
        flex-direction: row;
        padding: 3px;
        margin-bottom: 40px;
        position: relative;
    }
    
    /* 侧边栏 - layui风格折叠 */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 999 !important;
        margin: 0 !important;
        margin-right: 0 !important;
        background: #E6F7E6 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: left 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .sidebar.sidebar-open {
        left: 0 !important;
    }
    
    .sidebar-section {
        margin-bottom: 5px;
        border-radius: 0;
        width: 100% !important;
    }
    .sidebar-title {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sidebar-content {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .content-area {
        min-height: 400px;
        width: 100% !important;
        margin-left: 0 !important;
        flex: 1 !important;
    }
    .content-header {
        padding: 5px 8px;
    }
    .file-list-container {
        padding: 0;
    }
    .folder-link {
        padding: 6px 8px;
        font-size: 11px;
    }
    .sort-options {
        padding: 5px 8px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    .footer-bar {
        padding: 5px 10px;
        font-size: 11px;
    }
    .footer-content {
        justify-content: center;
    }
    .stats-content .stat-row {
        padding: 3px 0;
        font-size: 11px;
    }
    .file-list-mini li {
        padding: 4px 0;
        font-size: 10px;
    }
    .file-list-mini a {
        font-size: 10px;
    }
}

/* 更小屏幕 */
@media screen and (max-width: 480px) {
    .header {
        padding: 5px 8px;
    }
    .header-title {
        font-size: 12px;
    }
    .header-breadcrumb {
        font-size: 10px;
        flex-wrap: wrap;
    }
    .header-status {
        font-size: 10px;
    }
    .header-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .sidebar.sidebar-open {
        left: 0;
    }
    .folder-link {
        padding: 5px 6px;
        font-size: 10px;
    }
    .footer-bar {
        padding: 4px 8px;
        font-size: 10px;
    }
    .footer-btn {
        padding: 2px 8px;
        font-size: 9px;
    }
}
