/* 列表页面样式 - 基于教师页面布局 */

/* 主容器样式 */
.list-container {
    background: #f5f8fc;
    min-height: 100vh;
    padding: 20px 0;
}

.list-layout {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧边栏样式 */
.list-sidebar {
    width: 250px;
    background: #004098;
    padding: 0;
    flex-shrink: 0;
    height: fit-content;
    border-radius: 8px 0 0 8px;
}

.sidebar-title {
    background: #003579;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover a,
.menu-item.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.menu-item .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
}

.menu-item.active .arrow {
    opacity: 1;
}

/* 右侧内容区域样式 */
.list-content {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #004098;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003579;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumb .current {
    color: #666;
    font-size: 14px;
}

/* 页面标题样式 */
.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #004098;
    position: relative;
}

.page-title h1:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #d4af37;
}

/* 列表样式 */
.list-wrapper {
    margin-bottom: 30px;
}

.list-style {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-style li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.list-style li:last-child {
    border-bottom: none;
}

.list-style li:hover {
    background: #f8f9ff;
    padding-left: 10px;
    border-radius: 4px;
}

.list-style li i {
    width: 8px;
    height: 8px;
    background: #004098;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.list-style li:hover i {
    background: #d4af37;
    transform: scale(1.2);
}

.list-style li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s ease;
    margin-right: 15px;
}

.list-style li a:hover {
    color: #004098;
}

.list-style li span {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.list-style li:hover span {
    background: #004098;
    color: #fff;
}

/* 分页样式 */
.page-template {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-template ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.page-template li {
    margin: 0;
}

.page-template li a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-template li a:hover {
    background: #004098;
    color: #fff;
    border-color: #004098;
}

.page-template li.current a {
    background: #004098;
    color: #fff;
    border-color: #004098;
}

.page-template p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 响应式设计 */
@media screen and (max-width: 1400px) {
    .list-layout {
        flex-direction: column;
    }
    
    .list-sidebar {
        width: 100%;
        order: 2;
    }
    
    .list-content {
        order: 1;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu-item {
        flex: 1;
        min-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .list-content {
        padding: 20px 15px;
    }
    
    .list-style li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    
    .list-style li a {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 15px;
    }
    
    .list-style li span {
        align-self: flex-end;
    }
    
    .page-template {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-template ul {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .list-content {
        padding: 15px 10px;
    }
    
    .page-title h1 {
        font-size: 20px;
    }
    
    .list-style li a {
        font-size: 14px;
    }
    
    .list-style li span {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .page-template li a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 加载动画 */
.list-style li {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 列表项悬停效果增强 */
.list-style li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #004098;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-style li:hover::before {
    opacity: 1;
}

/* 优化滚动条样式 */
.list-content::-webkit-scrollbar {
    width: 6px;
}

.list-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-content::-webkit-scrollbar-thumb {
    background: #004098;
    border-radius: 3px;
}

.list-content::-webkit-scrollbar-thumb:hover {
    background: #003579;
}

/* 特殊效果：列表项边框动画 */
.list-style li {
    position: relative;
    overflow: hidden;
}

.list-style li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 64, 152, 0.1), transparent);
    transition: left 0.5s ease;
}

.list-style li:hover::after {
    left: 100%;
}