/* PC端友链页面样式 */

/* 核心布局 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* 单个友链项 */
.link-item {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.link-card {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 新增的对齐容器，用于控制 Logo 和文字的统一偏移 */
.link-card-content {
    display: flex;
    align-items: flex-start;
    /* 向右和向下偏移 */
    padding-left: 0.25em; /* 统一向右偏移 */
    padding-top: 0.25em; /* 统一向下偏移 */
}

/* 友链 Logo */
.link-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 友链信息 */
.link-info {
    flex-grow: 1;
    min-width: 0;
    line-height: 1.4;
}

.link-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 友链状态检测 */
.link-status { 
    font-size: 12px; 
    margin-top: 5px; 
    padding: 2px 5px; 
    border-radius: 3px; 
    display: inline-block; 
    white-space: nowrap; 
}
.link-status.online { background-color: #e6f7e6; color: #2e7d32; }
.link-status.offline { background-color: #ffebee; color: #c62828; }
.link-status.unknown { background-color: #fff8e1; color: #f57f17; }
.link-status.loading { color: #999; background-color: #f0f0f0; }

/* 评论数徽章 */
.comment-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1c40f;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: bold;
}

/* 最新博文标题 */
.link-latest-post { 
    font-size: 16px; 
    color: #333; 
    margin-top: 15px;
    /* 自动换行 */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word; 
    word-break: break-all;
}

/* 页面顶部状态汇总 */
.status-summary { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 15px; 
}
.summary-item { 
    text-align: center; 
    padding: 10px 15px; 
    background: #f5f5f5; 
    border-radius: 5px; 
    display: flex; 
    flex-direction: column; 
}
.summary-item .count { 
    font-size: 18px; 
    font-weight: bold; 
}
.summary-item .label { 
    font-size: 12px; 
    color: #666; 
}