/* 首页样式 */

/* 文字广告 */
.text-ads-header i {
    color: #ff5722;
    margin-right: 10px;
    font-size: 20px;
}

.text-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.text-ad-item {
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px dashed #e0e0e0;
    background: rgba(250, 250, 250, 0.7);
}

.text-ad-item:hover {
    background: rgba(245, 245, 245, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.text-ad-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.text-ad-item:hover .text-ad-bullet {
    transform: scale(1.3);
}

.text-ad-text {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.text-ad-item:hover .text-ad-text {
    color: #ff5722;
}

/* 颜色定义 */
.color-primary { background-color: #6a11cb; }
.color-secondary { background-color: #2575fc; }
.color-green { background-color: #4CAF50; }
.color-purple { background-color: #9C27B0; }
.color-red { background-color: #F44336; }
.color-blue { background-color: #2196F3; }
.color-yellow { background-color: #FFEB3B; }
.color-pink { background-color: #E91E63; }
.color-indigo { background-color: #3F51B5; }
.color-teal { background-color: #009688; }
.color-orange { background-color: #FF9800; }
.color-gray { background-color: #9E9E9E; }

/* 响应式调整 */
@media (max-width: 767px) {
    .text-ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .text-ad-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .text-ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* 置顶站点样式 */
.top-sites-wrapper {
    background: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* 卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-title-container {
    display: flex;
    align-items: center;
}

.card-title {
    font-size: 15px;
    font-weight: 500;
    color: #484b4f;
    margin-left: 8px;
}

/* 简化按钮样式 */
.ad-button {
    background: none;
    color: #484b4f;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    border: none;
    transition: color 0.3s ease;
}

.ad-button:hover {
    color: #333;
}

.ad-button i {
    margin-right: 5px;
}

/* 立即入驻按钮样式 */
.ad-button.orange-btn {
    background: rgba(255, 152, 0, 0.2); /* 淡橘色背景 */
    color: #ff9800; /* 橘色文字 */
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.ad-button.orange-btn:hover {
    background: rgba(255, 152, 0, 0.3); /* 加深的橘色背景 */
    color: #f57c00; /* 更深的橘色文字 */
    font-weight: bold; /* 文字加粗 */
}

/* 使用FontAwesome图标 */
.top-icon i {
    margin-right: 3px;
}

.category-top-item .rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.category-top-item:nth-child(1) .rank {
    background: #6a11cb;
    color: white;
}

.category-top-item:nth-child(2) .rank {
    background: #2575fc;
    color: white;
}

.category-top-item:nth-child(3) .rank {
    background: #2d9aff;
    color: white;
}

.category-top-item .name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-top-item .count {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 置顶站点容器样式 */
.top-sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

.site-item1.top {
    width: 100%;
    background: rgba(200, 200, 200, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}

.site-item1.top .icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.site-item1.top .icon img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.site-item1.top:hover .icon img {
    transform: scale(1.1);
}

/* 标题样式 */
.site-item1.top .name {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    transition: color 0.3s ease;
    height: 25px;
    line-height: 25px;
    min-width: 0;
}

.site-item1.top:hover .name {
    color: var(--primary-color);
}

/* 空容器样式 */
.site-item1.top.empty {
    background: rgba(200, 200, 200, 0.2);
    color: #999;
}

.site-item1.top.empty .icon {
    font-size: 20px;
    color: #999;
}

.site-item1.top.empty .name {
    color: #999;
}

/* 大屏幕（桌面端）适配 */
@media (min-width: 1200px) {
    .top-sites-container {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-columns: minmax(0, 1fr);
    }

    .top-sites-container > * {
        min-width: 0;
    }

    .site-item1.top .name {
        font-size: 13px;
    }
}

/* 中等屏幕适配 */
@media (min-width: 768px) and (max-width: 1199px) {
    .top-sites-container {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: minmax(0, 1fr);
    }

    .top-sites-container > * {
        min-width: 0;
    }
}
/* 图标和标题在同一行 */
.site-header {
    display: flex
;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
    min-width: 0;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .top-sites-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-columns: minmax(0, 1fr);
    }

    .top-sites-container > * {
        min-width: 0;
    }

    .site-item1.top {
        height: 60px;
        padding: 5px;
    }

    .site-header {
        height: 100%;
        margin-bottom: 0;
    }

    .site-item1.top .icon img {
        width: 20px;
        height: 20px;
    }

    .site-item1.top .name {
        font-size: 12px;
        height: auto;
        line-height: 1.3;
    }

    .site-item1.top.empty {
        height: 60px;
    }

    .site-item1.top.empty .name {
        height: 10px;
        margin: 3px 0;
    }
}
.site-item1.top .expire-time {
    font-size: 12px;
    color: #ff5722;
    background: rgba(255, 87, 34, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 22px;
    line-height: 14px;
    box-sizing: border-box;
}

/* 永久置顶样式 - 修改为淡绿色 */
.site-item1.top .expire-time.permanent {
    background: rgba(144, 238, 144, 0.25); /* 淡绿色背景 */
    color: #2E8B57; /* 深绿色文字 */
    font-weight: bold;
}

/* 鼠标悬停时到期时间加粗 */
.site-item1.top:hover .expire-time {
    font-weight: bold;
    background: rgba(255, 87, 34, 0.15);
}

/* 永久置顶悬停效果 - 加深绿色 */
.site-item1.top:hover .expire-time.permanent {
    background: rgba(60, 179, 113, 0.35); /* 加深的绿色 */
    color: #006400; /* 更深的绿色文字 */
}

/* 空容器样式 */
.site-item1.top.empty {
    background: rgba(200, 200, 200, 0.2);
    color: #999;
}

.site-item1.top.empty .icon {
    font-size: 20px;
    color: #999;
}

.site-item1.top.empty .name {
    color: #999;
}

/* 新增：空容器的到期时间样式 */
.site-item1.top .expire-time.empty-expire-time {
    background: rgba(116, 116, 116, 0.1);
    height: 10px;
    width: 60%; /* 更宽 */
    border-radius: 4px;
    margin-top: 5px; /* 增加上边距 */
}
/* 站点信息 */
.sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.site {
    width: 100%;
    background: rgba(200, 200, 200, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
}

/* 图标和标题在同一行 */
.site-header-sb {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
    min-width: 0;
}

.site .icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.site .icon img {
    width: 50px; /* 增大图标尺寸 */
    height: 50px; /* 增大图标尺寸 */
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.site:hover .icon img {
    transform: scale(1.1);
}

/* 标题样式 */
.site .site-title {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    transition: color 0.3s ease;
    min-width: 0;
    margin-bottom: 3px;
}

.site:hover .site-title {
    color: var(--primary-color);
}

/* 添加.site-info容器样式 */
.site-info {
    flex: 1;
    min-width: 0; /* 关键修复：允许内容收缩 */
    overflow: hidden; /* 确保内容不会溢出 */
}

/* 站点描述样式 - 确保只显示一行 */
.site .site-description {
    font-size: 12px;
    color: #777;
    text-align: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    display: block;
}

/* 关键词容器样式 - 确保单行显示 */
.keywords-container {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行 */
    overflow-x: auto; /* 允许横向滚动 */
    gap: 2px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    -ms-overflow-style: none;  /* IE和Edge隐藏滚动条 */
    scrollbar-width: none; /* Firefox隐藏滚动条 */
    min-height: 26px; /* 确保容器有足够高度 */
    align-items: center; /* 垂直居中标签 */
}

/* 隐藏滚动条 */
.keywords-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 关键词标签样式 */
.keyword-tag {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    text-decoration: none;
    display: inline-block;
    flex-shrink: 0; /* 防止标签被压缩 */
    line-height: 1.4; /* 确保文本垂直居中 */
}

.keyword-tag:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 统计数据样式 - 优化小屏幕位置 */
.site-stats {
    position: absolute;
    top: 2px;
    right: 5px;
    display: flex;
    gap: 5px;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8); /* 添加背景提高可读性 */
}

.site-stats span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-stats .views {
    color: #2196F3;
}

.site-stats .likes {
    color: #E91E63;
}

/* 空容器样式 */
.site.empty {
    background: rgba(200, 200, 200, 0.2);
    color: #999;
}

.site.empty .icon {
    font-size: 20px;
    color: #999;
}

.site.empty .name {
    color: #999;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .sites-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 强制一行两列 */
        gap: 8px; /* 减小间隙 */
    }

    .site {
        height: auto;
        padding: 8px;
    }

    .site-header-sb {
        height: 100%;
        margin-bottom: 0;
    }

    .site .icon img {
        width: 30px; /* 减小图标尺寸 */
        height: 30px; /* 减小图标尺寸 */
    }

    .site .site-title {
        font-size: 12px;
        height: auto;
        line-height: 1.3;
    }

    .site .site-description {
        font-size: 11px;
    }

    .site-stats {
        font-size: 10px;
        padding: 2px 6px;
        top: 5px; /* 增加上边距 */
        right: 5px;
        flex-direction: column; /* 垂直排列 */
        gap: 2px;
        align-items: flex-end;
        background: rgba(255, 255, 255, 0.9); /* 增强背景 */
    }

    .keywords-container {
        margin-top: 6px;
        padding-top: 6px;
        min-height: 24px; /* 移动端适当增加高度 */
    }

    .keyword-tag {
        font-size: 10px;
        padding: 2px 6px;
        max-width: 70px;
        line-height: 1.5; /* 移动端行高调整 */
    }

    .site.empty {
        height: auto;
    }

    .site.empty .name {
        height: 10px;
        margin: 3px 0;
    }
}

/* 超小屏幕适配（宽度小于480px） */
@media (max-width: 480px) {
    .sites-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 保持一行两列 */
    }

    .site .icon img {
        width: 25px; /* 进一步减小图标尺寸 */
        height: 25px;
    }

    .site .site-title {
        font-size: 11px;
    }

    .site .site-description {
        font-size: 10px;
    }

    .site-stats {
        font-size: 9px;
        padding: 1px 4px;
    }

    .keyword-tag {
        font-size: 9px;
        padding: 1px 4px;
        max-width: 60px;
    }
}
/* 文章信息 */
.card-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-card {
    display: flex;
    padding: 10px;
    background: rgba(200, 200, 200, 0.2);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: calc(50% - 8px);
    box-sizing: border-box;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #e8e8e8;
}

/* 增大图片区域宽度 */
.img-container {
    flex: 0 0 150px; /* 从130px增加到150px */
    margin-right: 12px;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-img {
    transform: scale(1.05);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 防止内容溢出 */
}

/* 标题单行显示，超出隐藏 */
.title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title a {
    color: inherit;
    text-decoration: none;
}

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

/* 描述两行显示，超出隐藏 */
.desc {
    font-size: 13px;
    line-height: 1.4;
    color: #7f8c8d;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
}

/* 关键词标签容器 - 单行显示 */
.tags {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

/* 隐藏滚动条 */
.tags::-webkit-scrollbar {
    display: none;
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
    transition: all 0.2s ease; /* 添加过渡效果 */
}

/* 标签悬停效果 */
.tag:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
    margin-top: auto; /* 关键：确保元数据在底部 */
}

.meta-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover; /* 确保头像图片正确显示 */
}

.time {
    margin-left: 5px;
    white-space: nowrap; /* 防止时间换行 */
}

.meta-right {
    display: flex;
    gap: 12px;
    min-width: 0; /* 防止内容溢出 */
}

/* 浏览信息 */
.views {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap; /* 防止视图计数换行 */
}

/* 响应式调整 - 手机端布局 */
@media (max-width: 768px) {
    .post-card {
        flex-direction: row; /* 保持左右布局 */
        width: 100%;
    }

    .img-container {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .img-wrapper {
        width: 100%;
        height: 100%;
    }

    .content {
        width: 100%;
    }
}

/* 中等屏幕调整 */
@media (min-width: 769px) and (max-width: 992px) {
    .content {
        min-width: 0; /* 防止内容溢出 */
    }
    .desc {
        -webkit-line-clamp: 2; /* 确保描述只显示两行 */
    }

    .tags {
        overflow-x: auto; /* 确保标签可以滚动 */
    }
}
/* 站点统计信息 */
.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-header {
    position: relative;
    padding: 12px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}

.stats-row {
    display: flex;
    gap: 5px;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    font-weight: bold;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
}

.user-info {
    margin-left: 5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
    line-height: 1.4;
}

/* 蓝色卡片样式 */
.stat-box.blue {
    background: rgba(173, 216, 230, 0.3);
    color: #1e88e5;
}
.stat-box.blue:hover {
    background: rgba(100, 181, 246, 0.5);
    color: #0d47a1;
}

/* 绿色卡片样式 */
.stat-box.green {
    background: rgba(144, 238, 144, 0.3);
    color: #43a047;
}
.stat-box.green:hover {
    background: rgba(102, 187, 106, 0.5);
    color: #1b5e20;
}

/* 红色卡片样式 */
.stat-box.red {
    background: rgba(255, 182, 193, 0.3);
    color: #e53935;
}
.stat-box.red:hover {
    background: rgba(239, 154, 154, 0.5);
    color: #b71c1c;
}

/* 紫色卡片样式 */
.stat-box.purple {
    background: rgba(221, 160, 221, 0.3);
    color: #8e24aa;
}
.stat-box.purple:hover {
    background: rgba(186, 104, 200, 0.5);
    color: #4a148c;
}

/* 排行榜 */
/* 排行榜选项卡样式 */
.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.ranking-tab {
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(200, 200, 200, 0.2);
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab.active {
    background: rgba(241, 64, 75, 0.3); /* 使用 var(--primary-color) 并降低透明度 */
    color: var(--primary-color); /* 使用 var(--primary-color) 作为文字颜色 */
    font-weight: bold;
}

.ranking-tab:hover {
    background: rgba(241, 64, 75, 0.2); /* 悬停时使用更浅的背景 */
    color: var(--primary-color);
}

/* 站点描述样式 */
.site-description {
    font-size: 12px;
    color: #777;
    text-align: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 0;
    margin-top: 5px;
}

/* 动画效果 */
.ranking-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ranking-content.active {
    opacity: 1;
    transform: translateY(0);
}

.ranking-content:not(.active) {
    opacity: 0;
    transform: translateY(20px);
    display: none;
}
.more-button-sb:hover {
    background: rgba(241, 64, 75, 0.2) !important; /* 加深背景色 */
    font-weight: bold; /* 文字加粗 */
    box-shadow: 0 2px 8px rgba(241, 64, 75, 0.2); /* 添加阴影效果 */
}

/* 文章排行榜样式 */
.article-ranking-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-item:hover {
    border-bottom-color: rgba(241, 64, 75, 0.3);
}

.article-item:hover .article-title {
    color: var(--primary-color);
}

.article-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    background: rgba(0, 0, 0, 0.03);
}

/* 前三名特殊样式 - 清新淡色系 */
.article-item.top-1 .article-rank {
    background: rgba(255, 215, 0, 0.15); /* 淡金色 */
    color: #d4af37;
}

.article-item.top-2 .article-rank {
    background: rgba(192, 192, 192, 0.15); /* 淡银色 */
    color: #a9a9a9;
}

.article-item.top-3 .article-rank {
    background: rgba(205, 127, 50, 0.15); /* 淡铜色 */
    color: #b87333;
}

.article-title {
    flex: 1;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    transition: color 0.3s ease;
}

.article-views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
    justify-content: flex-end;
}

.article-views i {
    margin-right: 5px;
}

/* 友情链接样式 */
.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 15px; /* 水平间距 */
}

.link-item {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 5px 0;
}

.link-item:hover {
    color: var(--primary-color); /* 淡红色主题色 */
}

/* 添加链接分隔符 */
.link-item:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -10px;
    color: #999;
    font-size: 16px;
}