/* person.php 专用样式 */

.person-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.person-main {
    flex: 2;
}

.person-sidebar {
    flex: 1;
    min-width: 300px;
}

/* 人脉详情卡片 */
.person-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.person-detail-header {
    text-align: center;
    padding: 40px 30px 25px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.person-detail-header .avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transition: transform 0.3s ease;
}

.person-detail-header .avatar:hover {
    transform: scale(1.05);
}

.person-detail-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-detail-header h1 {
    font-size: 26px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 700;
}

.person-detail-header .role {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.person-detail-header .role .dot {
    width: 4px;
    height: 4px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.5;
}

.person-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.person-tag {
    background: linear-gradient(135deg, #eef5ff, #e8f0fe);
    color: #007bff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #d0e0ff;
    transition: all 0.2s ease;
}

.person-tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 详情主体 */
.person-detail-body {
    padding: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.info-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #007bff;
    border-radius: 2px;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.info-item:hover {
    background: #eef5ff;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-item label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.info-item span {
    font-size: 15px;
    color: #333;
    word-break: break-all;
}

/* 联系方式锁定 */
.contact-locked {
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    border: 1px dashed #ffcc80;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.contact-locked .lock-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff6b35, #ff9a3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-locked .lock-text {
    flex: 1;
}

.contact-locked .lock-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.contact-locked .lock-text .tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.contact-locked a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.contact-locked a:hover {
    text-decoration: underline;
}

/* 个人介绍 */
.intro-section {
    background: linear-gradient(135deg, #f9fafb, #f4f6f8);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #eef0f3;
}

.intro-section h3 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.intro-content {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}

/* 操作栏 */
.person-actions {
    padding: 20px 30px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.person-actions .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.person-actions .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.person-actions .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.person-actions .btn-share:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8fbff;
}

/* 侧边栏卡片 */
.person-sidebar .side-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.person-sidebar .side-card h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.person-sidebar .side-card h3::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

.person-sidebar .side-card.latest-posts h3::before {
    background: #28a745;
}

.person-sidebar .side-card.latest-news h3::before {
    background: #007bff;
}

.person-sidebar .side-card.latest-persons h3::before {
    background: #ff6b6b;
}

/* 最新说说列表 */
.side-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-post-list li {
    padding: 12px 10px;
    border-bottom: 1px dashed #eee;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.side-post-list li:hover {
    background-color: #f9f9f9;
}

.side-post-list li:last-child {
    border-bottom: none;
}

.side-post-list .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.side-post-list .post-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e7ff;
    overflow: hidden;
    flex-shrink: 0;
}

.side-post-list .post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-post-list .post-user {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.side-post-list .post-time {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

.side-post-list .post-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 最新新闻列表 */
.side-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: background 0.2s ease;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

.side-news-list li:hover {
    background-color: #f9f9f9;
}

.side-news-list li:last-child {
    border-bottom: none;
}

.side-news-list li a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.side-news-list li a::before {
    content: '📰';
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.side-news-list .news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-news-list li a:hover {
    color: #007bff;
}

/* 最新人脉列表 */
.side-person-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-person-list li {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px dashed #eee;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.side-person-list li:hover {
    background-color: #f9f9f9;
}

.side-person-list li:last-child {
    border-bottom: none;
}

.side-person-list .person-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin-right: 14px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.side-person-list .person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-person-list .person-info {
    flex: 1;
    overflow: hidden;
}

.side-person-list .person-name {
    font-weight: 600;
    color: #333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 2px;
}

.side-person-list .person-company {
    color: #888;
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-person-list a {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 1;
}

.side-person-list a:hover .person-name {
    color: #007bff;
}

/* 查看更多 */
.person-sidebar .view-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.person-sidebar .view-more a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.person-sidebar .view-more a::after {
    content: '→';
    transition: transform 0.2s ease;
}

.person-sidebar .view-more a:hover {
    text-decoration: underline;
}

.person-sidebar .view-more a:hover::after {
    transform: translateX(3px);
}

/* 空状态 */
.side-empty {
    text-align: center;
    padding: 20px 10px;
    color: #bbb;
    font-size: 13px;
    font-style: italic;
}

/* 响应式 */
@media (max-width: 768px) {
    .person-container {
        flex-direction: column;
        gap: 20px;
    }

    .person-sidebar {
        min-width: 100%;
    }

    .person-detail-header {
        padding: 30px 20px 20px;
    }

    .person-detail-header .avatar {
        width: 100px;
        height: 100px;
    }

    .person-detail-body {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .person-actions {
        padding: 15px 20px;
        flex-direction: column;
    }

    .person-actions .btn-back,
    .person-actions .btn-share {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .person-detail-header h1 {
        font-size: 22px;
    }

    .person-detail-header .avatar {
        width: 80px;
        height: 80px;
    }

    .person-detail-body {
        padding: 15px;
    }

    .info-item {
        padding: 10px 12px;
    }

    .person-sidebar .side-card {
        padding: 16px;
    }
}
