/* FB快速入口页面专用样式 */

/* 卡片标题样式 */
.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.section-icon {
    margin-right: 10px;
    font-size: 20px;
}

/* 链接网格布局 */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

/* 确保所有卡片区域宽度一致 */
.card {
    width: 1120px;
    max-width: 1120px;
    margin: 40px auto 40px auto;
}

.card:first-child {
    margin-top: 20px;
}

.card:last-child {
    margin-bottom: 0;
}

/* 平板端布局 */
@media (max-width: 1024px) {
    .link-grid {
        grid-template-columns: repeat(3, 260px);
        gap: 15px;
        justify-content: center;
    }
}

.link-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100px;
    display: flex;
    align-items: center;
    width: 260px;
    box-sizing: border-box;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.link-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.link-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.link-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Facebook官方图标样式 - 蓝色背景白色f */
.facebook-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.profile-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.info-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.video-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.gaming-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.live-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.market-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.page-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.message-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.group-icon { 
    background: #1877f2; 
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
}
.quality-icon { background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%); }
.bm-icon { background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%); }
.people-icon { background: linear-gradient(135deg, #e91e63 0%, #ec407a 100%); }
.ads-icon { background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%); }
.balance-icon { background: linear-gradient(135deg, #009688 0%, #26a69a 100%); }
.report-icon { background: linear-gradient(135deg, #8bc34a 0%, #9ccc65 100%); }
.assets-icon { background: linear-gradient(135deg, #e91e63 0%, #ec407a 100%); }
.campaign-icon { background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%); }
.insights-icon { background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%); }
.events-icon { background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%); }
.help-icon { background: linear-gradient(135deg, #607d8b 0%, #78909c 100%); }
.security-icon { background: linear-gradient(135deg, #f44336 0%, #ef5350 100%); }
.identity-icon { background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%); }
.language-icon { background: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%); }
.contact-icon { background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%); }
.payment-icon { background: linear-gradient(135deg, #795548 0%, #8d6e63 100%); }
.app-icon { background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%); }
.docs-icon { background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%); }
.account-icon { background: linear-gradient(135deg, #607d8b 0%, #78909c 100%); }
.add-people-icon { background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%); font-size: 16px; }

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.link-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        width: 95%;
        max-width: 600px;
        margin: 40px auto 40px auto;
        padding: 20px;
    }
    
    .card:first-child {
        margin-top: 20px;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
    }
    
    .link-card {
        padding: 12px;
        height: 90px;
        width: 100%;
        max-width: none;
    }
    
    .card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 95%;
        max-width: 400px;
        padding: 15px;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-content: center;
    }
    
    .link-card {
        height: 80px;
        padding: 10px;
        width: 100%;
        max-width: none;
    }
    
    .link-entry {
        gap: 8px;
    }
    
    .avatar-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .link-title {
        font-size: 12px;
    }
    
    .link-desc {
        font-size: 10px;
    }
}

/* 工具提示样式 */
.link-card[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

/* 加载动画 */
.link-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.link-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 特殊标签样式 */
.link-card .label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.footer-content {
    color: #666;
    font-size: 14px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}