/* 资源页面特定样式 */
ol > li {
    list-style-type: decimal;
    list-style-position: inside;
    z-index: auto;
}

.panel-body > li {
    list-style-type: disc;
    list-style-position: inside;
    z-index: auto;
}

.marquee-container {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    animation-delay: 0s;
}

@keyframes marquee {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-100%); }
}

/* 热门资源侧边栏样式 */
.hot-resources-sidebar {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.hot-resources-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e7e7e7;
    font-size: 16px;
    font-weight: bold;
}

/* 统一资源列表样式 */
.hot-resources-list,
.random-resources-list {
    padding-left: 0;
    list-style: none;
}

.hot-resources-list li,
.random-resources-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e7e7e7;
}

.hot-resources-list li:last-child,
.random-resources-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-resource-rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #f0ad4e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 8px;
}

.hot-resource-rank.top3 {
    background-color: #d9534f;
}

/* 统一资源标题样式 */
.hot-resource-title,
.random-resource-title {
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.hot-resource-title:hover,
.random-resource-title:hover {
    color: #007bff;
    text-decoration: none;
}

/* 统一资源信息样式 */
.hot-resource-info,
.random-resource-info {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

/* 资源切换标签样式 */
.resource-tabs {
    margin-bottom: 15px;
}

.resource-tabs .nav-tabs {
    border-bottom: 2px solid #e7e7e7;
}

.resource-tabs .nav-tabs > li.active > a,
.resource-tabs .nav-tabs > li.active > a:hover,
.resource-tabs .nav-tabs > li.active > a:focus {
    border-width: 0;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.resource-tabs .nav-tabs > li > a {
    border: none;
    color: #666;
}

.resource-tabs .nav-tabs > li > a:hover {
    border-color: transparent;
    background-color: transparent;
    color: #007bff;
}

/* 随机资源样式 */
.random-resources-list {
    padding-left: 0;
    list-style: none;
}

.random-resources-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e7e7e7;
}

.random-resources-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.random-resource-title {
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.random-resource-title:hover {
    color: #007bff;
    text-decoration: none;
}

.random-resource-info {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}