/* ==================== 友链页面样式 ==================== */


.pllinks-feed {
    padding: 0;
}

/* 顶部申请友链信息 - 无动画 */
.pllinks-apply-info-top {
    margin: 0 0 30px 0;
    padding: 20px;
    background: rgb(110 111 111 / 6%);
    border: 1px solid rgb(110 111 111 / 6%);
    border-radius: 12px;
    border-left: 4px solid #3a3a3a;
}



.pllinks-apply-info-top p {
    margin: 0;
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.pllinks-apply-info-top a {
    color: #0084ff;
    text-decoration: none;
    font-weight: 500;
}

.pllinks-apply-info-top a:hover {
    text-decoration: underline;
}

.pllinks-list {
    margin-bottom: 30px;
}

/* 分组标题样式 - 保留动画 */
.pllinks-group {
    margin-bottom: 40px;
    animation: pllinks-fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pllinks-group:last-child {
    margin-bottom: 0;
}

/* 延迟动画，让分组依次出现 */
.pllinks-group:nth-child(1) { animation-delay: 0.2s; }
.pllinks-group:nth-child(2) { animation-delay: 0.3s; }
.pllinks-group:nth-child(3) { animation-delay: 0.4s; }
.pllinks-group:nth-child(4) { animation-delay: 0.5s; }
.pllinks-group:nth-child(5) { animation-delay: 0.6s; }
.pllinks-group:nth-child(6) { animation-delay: 0.7s; }

.pllinks-group-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2b2b2b;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pllinks-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0084ff;
}

.pllinks-group-count {
    font-size: 1rem;
    color: #a0a0a0;
    font-weight: normal;
    background: #2b2b2b;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 友链网格布局 */
.pllinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
    /* 使网格平均分布 */
    justify-content: space-between;
    align-content: start;
    width: 100%;
}

/* 友链卡片样式 - 保留动画 */
.pllinks-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2b2b2b;
    border: 1px solid #3a3a3a00;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: pllinks-fadeIn 0.5s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 友链卡片依次出现 */
.pllinks-grid .pllinks-card:nth-child(1) { animation-delay: 0.25s; }
.pllinks-grid .pllinks-card:nth-child(2) { animation-delay: 0.3s; }
.pllinks-grid .pllinks-card:nth-child(3) { animation-delay: 0.35s; }
.pllinks-grid .pllinks-card:nth-child(4) { animation-delay: 0.4s; }
.pllinks-grid .pllinks-card:nth-child(5) { animation-delay: 0.45s; }
.pllinks-grid .pllinks-card:nth-child(6) { animation-delay: 0.5s; }
.pllinks-grid .pllinks-card:nth-child(7) { animation-delay: 0.55s; }
.pllinks-grid .pllinks-card:nth-child(8) { animation-delay: 0.6s; }

.pllinks-card:hover {
    background: #3a3a3a;
  border: 1px solid #3a3a3a;
}

/* Logo容器 */
.pllinks-logo-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pllinks-logo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.pllinks-card:hover .pllinks-logo {
    /* 根据需要添加悬停效果 */
}

/* Logo备用方案 */
.pllinks-logo-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* 默认隐藏，JavaScript控制显示 */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    /*border: 2px solid #0084ff00;*/
    transition: all 0.3s ease;
    z-index: 1;
}

.pllinks-card:hover .pllinks-logo-fallback {
    /*background: #0084ff;*/
}

/* 友链信息 */
.pllinks-info {
    flex: 1;
    min-width: 0;
}

.pllinks-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.pllinks-desc {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 外部链接图标 */
.pllinks-external-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.pllinks-card:hover .pllinks-external-icon {
    opacity: 1;
    transform: translateX(0);
    color: #0084ff;
}

/* 空状态样式 */
.pllinks-feed .pllinks-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #a0a0a0;
    background: #2d2d2d;
    border-radius: 12px;
    border: 1px solid #2b2b2b;
    margin: 30px 0;
    animation: pllinks-fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pllinks-feed .pllinks-empty-state .pllinks-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pllinks-feed .pllinks-empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.pllinks-feed .pllinks-empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pllinks-apply-info-top {
        padding: 16px;
        margin-bottom: 25px;
    }
    
    .pllinks-group-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .pllinks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .pllinks-card {
        padding: 16px;
        gap: 12px;
    }
    
    .pllinks-logo-container {
        width: 50px;
        height: 50px;
    }
    
    .pllinks-logo-fallback {
        font-size: 1.3rem;
    }
    
    .pllinks-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .pllinks-desc {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .pllinks-info-icon {
        width: 20px;
        height: 20px;
    }
    
    .pllinks-apply-info-top p {
        font-size: 0.9rem;
    }
    
    .pllinks-empty-state {
        padding: 60px 20px;
    }
    
    .pllinks-empty-state .pllinks-empty-icon {
        font-size: 3rem;
    }
    
    .pllinks-empty-state h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pllinks-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pllinks-group-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    
    .pllinks-card {
        padding: 14px;
    }
    
    .pllinks-logo-container {
        width: 45px;
        height: 45px;
    }
    
    .pllinks-logo-fallback {
        font-size: 1.2rem;
    }
    
    .pllinks-external-icon {
        top: 12px;
        right: 12px;
        width: 20px;
        height: 20px;
    }
}

/* 保留的动画关键帧（带命名空间） */
@keyframes pllinks-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pllinks-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}