/**
 * 热门资源页面样式
 * 优化后的样式文件，移除重复和未使用的样式
 */

/* 页面布局 */
.b2-posts-area {
    width: 100% !important;
}

/* 顶部区域 */
.infomation-top-box {
    margin-bottom: 10px;
    padding-bottom: 24px;
}

.info-h1 {
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.infomation-desc {
    font-size: 14px;
    margin-top: 10px;
}

.infomation-desc a {
    color: var(--b2color);
}

/* 筛选区域 */
.infomation-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #efefef;
}

.infomation-list-top-l span {
    height: 33px;
    background-color: #f5f6f7;
    padding: 0 16px;
    line-height: 33px;
    font-size: 14px;
    display: inline-block;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 6px;
    cursor: pointer;
}

.infomation-list-top-l span a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.infomation-list-top-l span a:hover {
    color: var(--b2color);
}

.infomation-list-top-l .picked {
    color: #fff;
    background: var(--b2color);
}

.infomation-list-top-l .picked a,.infomation-list-top-l .picked a:hover {
    color: #fff;
}

.infomation-list-top-r {
    font-size: 14px;
    position: relative;
}

.infomation-fliter {
    cursor: pointer;
}

/* 列表容器 */
.infomation-list {
    padding: 24px;
}

.info-list {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #efefef;
    transition: all 0.3s ease;
}

/* 头像/图标区域 */
.avatar-box {
    width: 35px;
    height: 35px;
    margin-right: 12px;
    text-align: center;
    position: relative;
}

.avatar-box .pan-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 2px;
    border-radius: 6px;
}

/* 信息区域 */
.info-right {
    width: 100%;
    flex: 1;
}

.info-r-top {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.i-type {
    font-size: 12px;
    font-weight: 700;
    color: #007AF5;
    display: flex;
    align-items: center;
    background-color: #007af51a;
    padding: 0 6px;
    margin-right: 10px;
    border-radius: 2px;
    height: 19px;
    line-height: 19px;
}

.i-author {
    color: #b2b2b2;
}

.i-author a {
    color: inherit;
    text-decoration: none;
}

.i-author a:hover {
    color: var(--b2color);
}

.i-date {
    margin-left: 12px;
    color: #b2b2b2;
}

.info-center {
    margin: 8px 0;
}

.info-row-1 {
    display: flex;
}

.info-title {
    width: 100%;
    flex: 1;
    margin: 8px 0 10px 0;
    font-size: 20px;
}

.info-title h2 {
    margin: 0;
    font-size: inherit;
    line-height: 1.3;
}

.info-title h2 span {
    color: #ff3a55;
    background: #ff3a5529;
    font-size: 12px;
    height: 17px;
    line-height: 17px;
    padding: 0 6px;
    display: inline-block;
    vertical-align: 2px;
    margin-right: 6px;
    border-radius: 2px;
}

.info-title a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.info-title a:hover {
    color: #b87100;
}

/* 简介样式 */
.info-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.info-desc p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

/* 价格/热度区域 */
.info-price {
    width: 140px;
    text-align: right;
}

.i-price {
    background: linear-gradient(to bottom, #eeeeee38, #e5f1fe);
    display: inline-block;
    border-radius: 12px;
    height: 23px;
    line-height: 25px;
    padding: 0 10px;
    text-shadow: 0 0 1px #fff;
    margin-top: 8px;
    font-size: 14px;
}

/* 底部信息 */
.info-footer {
    font-size: 12px;
    color: #c6c6c6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-footer-l {
    display: flex;
    align-items: center;
}

.info-footer-l .b2-dot {
    opacity: 0.5;
    margin: 0 2px;
    color: #b9b9b9;
}

.i-cat {
    background-color: #f5f6f7;
    margin-right: 2px;
    display: inline-block;
    padding: 0 6px;
    height: 19px;
    line-height: 19px;
    color: #999;
    border-radius: 2px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .b2-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* 骨架屏样式 */
.gujia .info-list .avatar-box,
.gujia .info-list .i-type,
.gujia .info-list .i-author,
.gujia .info-list .i-date,
.gujia .info-list .info-title,
.gujia .info-list .i-price,
.gujia .info-list .info-footer span:not(.b2-dot) {
    background-color: #f5f6f7;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { background-color: #f5f6f7; }
    50% { background-color: #e0e0e0; }
    100% { background-color: #f5f6f7; }
}

.gujia .info-list .i-type {
    width: 40px;
    height: 19px;
}

.gujia .info-list .i-author {
    width: 40px;
    height: 19px;
}

.gujia .info-list .i-date {
    width: 60px;
    height: 19px;
    margin-left: 12px;
}

.gujia .info-list .info-title {
    height: 31px;
    width: 70%;
}

.gujia .info-list .info-footer span:not(.b2-dot) {
    width: 30px;
    height: 19px;
    margin-right: 8px;
}

.gujia .info-list .i-price {
    width: 60px;
    height: 23px;
}

/* 试试手气按钮样式 */
.lucky-button-container {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.lucky-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lucky-button:hover {
    transform: scale(1.05);
}

.lucky-icon {
    font-size: 15px;
    animation: rotate 2s linear infinite;
}

.lucky-text {
    font-family: inherit;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lucky-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.lucky-icon.spinning {
    animation-duration: 0.5s;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .infomation-list-top-r{
        display: none;
    }
    .info-price{
        display: none;
    }
    .infomation-list-top {
        padding-bottom: 6px;
    }
    .infomation-list {
        padding: 10px;
    }
    
    .infomation-list-top-l span,
    .infomation-list-top-r span {
        font-size: 12px;
    }
    
    .infomation-list-top-l span {
        height: 30px;
        line-height: 30px;
        padding: 0 12px;
        margin-right: 5px;
    }
    
    .infomation-top-box {
        padding: 10px 0;
    }
    
    .avatar-box {
        width: 30px;
        height: 30px;
    }
    
    .infomation-desc {
        font-size: 13px;
    }
    
    .info-title {
        font-size: 16px;
    }
    
    .info-desc {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .info-desc p {
        line-height: 1.3;
        max-height: 2.6em;
    }
    
    .lucky-button-container {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .lucky-button {
        padding: 10px 16px;
    }
}