@import url("common.css");
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.filter-box {
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
}

.channel-switch {
    margin-bottom: 20px;
    padding: 0;
}

.channel-switch a,
.filter-group a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #eeeeee;
    color: #6c757d;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: normal;
}

.channel-switch a.active {
    background: #FFD438;
    color: #953A00;
    border-color: #FFD438;
}

.channel-switch,
.category-filter,
.status-filter {
    margin: 15px 0;
    padding: 0;
    background: white;
    border-radius: 5px;
}

.channel-switch span,
.category-filter span,
.status-filter span {
    display: inline-block;
    margin-right: 15px;
    font-weight: bold;
    color: #495057;
}

.filter-group a.active {
    background: #FFD438;
    color: #953A00;
    border-color: #FFD438;
}

.filter-group a:hover {
    background: #FFD438;
    color: #953A00;
    border-color: #FFD438;
}
.tabList {
    color: #333;
    font-size: 14px;
    line-height: 35px;
    display: block;
    padding: 0;
    border-bottom: 2px solid #FFD438;
    position: relative;
    margin-top: 20px;
}
.tabList a {
    color: #333;
    display: inline-block;
    padding: 0px 20px;
}
.tabList a:hover {
    color: #953A00;
}
.tabList a.active {
    background: #FFD438;
    color: #953A00;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.view-mode {
    position: absolute;
    right: 0;
    top: 10px;
    line-height: 20px;
}

.view-mode a {
    font-size: 12px;
    display: inline-block;
    margin-left: 5px;
    border-radius: 5px;    
    background: #f8f9fa;
    color: #6c757d;
    padding: 0 5px;
    text-decoration: none;
}

.view-mode a.active {
    color: #953A00;
}
.container {
    padding: 20px 0;
}

/* 展示模式切换 */
.view-switch {
    text-align: right;
    margin-bottom: 20px;
}

.view-switch button {
    padding: 8px 15px;
    margin-left: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.view-switch button.active {
    background: #2c7be5;
    color: white;
    border-color: #2c7be5;
}

/* 大图模式 */
.grid-view {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.grid-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.grid-cover {
    height: 250px;
    background: #eee;
    overflow: hidden;
}

.grid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-info {
    padding: 15px;
    flex: 1;
}

.grid-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.grid-meta {
    font-size: 12px;
    color: #333333;
    margin-bottom: 8px;
}

.container i {
    position: relative;
    top: 2px;
    width: 12px;
    height: 14px;
    display: inline-block;
    margin-right: 2px;
}

.container i.fa-user {
    background: url('../images/indexIcon.png') -133px -49px no-repeat;
}

.container i.fa-tag {
    background: url('../images/indexIcon.png') -159px -49px no-repeat;
}

.container i.fa-file-word {
    background: url('../images/indexIcon.png') -262px -9px no-repeat;
    width: 13px !important;
}

.grid-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 列表模式 */
.list-view .list-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
}

.list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.list-cover {
    width: 120px;
    height: 160px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-info {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.list-title {
    font-size: 18px;
    color: #333;
    margin-right: 15px;
}

.list-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.list-meta span {
    margin-right: 20px;
}

.list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
}

.btn-read {
    font-size: 14px;
    background: #FFD438;
    color: #963A00;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-read:hover {
    background: #f3f3f3;
    color: #333;
}