/* 广告卡片 */
.ad-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    height: 160px;  /* 使用固定高度替代百分比padding */
    background: #f5f5f5;
}
.ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ad-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 1;
}
.ad-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.ad-content p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}
/* 广告位样式 */
.layui-card-body.no-padding {
    padding: 0 !important;
    height: 160px;  /* 给父容器设置固定高度 */
}
.ad-link {
    display: block;
    height: 100%;
}
.ad-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 头像样式 */
.layui-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #f5f5f5;
}
/* 广告位图片样式 */
.ad-image {
    display: block;
    width: calc(100% + 30px);  /* 抵消左右内边距 */
    height: 160px;
    margin: -10px -15px;  /* 抵消上下和左右内边距 */
    overflow: hidden;
    border-radius:10px;
}
.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 收藏列表样式 */
.layui-menu li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.hot-item {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 8px;  /* 减小间距 */
}
/* 序号样式 */
.layui-menu li:nth-child(1) .hot-item .layui-badge {
    background-color: #ff6b6b !important;  /* 第一名红色 */
}

.layui-menu li:nth-child(2) .hot-item .layui-badge {
    background-color: #ff9f43 !important;  /* 第二名橙色 */
}

.layui-menu li:nth-child(3) .hot-item .layui-badge {
    background-color: #ffd32a !important;  /* 第三名金色 */
}

/* 其他序号保持灰色 */
.hot-item .layui-badge {
    padding: 1px 4px;
    font-size: 10px;
    margin-top: 3px;
    height: fit-content;
    background-color: #c2c2c2;
    transform: scale(0.9);
    transform-origin: left center;
}
.layui-card-header {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid #f6f6f6;  /* 加深分隔线 */
    padding-bottom: 10px;  /* 增加下边距 */
}

.layui-card-header .layui-icon {
    font-size: 16px;
    color: var(--text-color);
}

/* 列表容器样式 */
.layui-card-body {
    padding-top: 5px;  /* 调整上边距 */
}
.hot-item a {
    flex: 1;
    max-width: calc(100% - 100px);  /* 调整宽度计算 */
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
    white-space: normal;
}
.hot-item a:hover {
    color: var(--primary-color);
}
.hot-item img {
    width: 100px;       /* 增加宽度 */
    height: 50px;      /* 设置高度，形成长方形 */
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}
.hot-item a {
    flex: 1;
    max-width: calc(100% - 130px);  /* 调整最大宽度，适应新的图片尺寸 */
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
    white-space: normal;
}
.hot-item a:hover {
    color: var(--primary-color);
}
/* 博主信息样式 */
.author-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar .layui-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #f5f5f5;
}

.author-detail {
    flex: 1;
    min-width: 0;
}

.author-detail h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--text-color);
}

.author-detail p {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-item strong {
    font-size: 16px;
    color: var(--text-color);
}
.stat-item span {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.author-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.links-title {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.links-content {
    display: flex;
    gap: 15px;
}

.links-content a {
    color: #666;
    font-size: 16px;
}

.links-content a:hover {
    color: var(--primary-color);
}