/* 虚拟人物信息面板 - 使用 Flexbox 堆叠布局 */
.person-info-panel {
    padding: 8px 12px;
    overflow: hidden;
}

.person-info-panel.show {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 信息行 */
.person-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    transition: background 0.2s;
    cursor: default;
}

.person-info-row:not(:last-child) {
    border-bottom: 1px solid #e8eaed;
}

.person-info-row:hover {
    background: transparent;
}



/* 图标 */
.person-info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-info-icon .material-icons {
    font-size: 16px;
    color: #5f6368;
    transition: color 0.2s;
}

/* 有数据时图标变蓝 */
.person-info-row.has-data .person-info-icon .material-icons {
    color: #1a73e8;
}

/* 性别图标保持动态颜色，不受 has-data 影响 */
.person-info-row.has-data .person-info-icon .gender-icon {
    /* 颜色由 JS 动态设置，这里不覆盖 */
    color: inherit;
}

/* 内容区域 */
.person-info-content {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

/* 普通行的内容区域 */
.person-info-row:not(.name-row) .person-info-content {
    flex: 1;
    gap: 8px;
}

.person-info-label {
    font-size: 12px;
    color: #70757a;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.person-info-value {
    font-size: 13px;
    color: #202124;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* 复制按钮 */
.person-info-copy-btn {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
    padding: 0;
}

.person-info-copy-btn:hover {
    background: #f8f9fa;
    opacity: 1;
}

.person-info-copy-btn .material-icons {
    font-size: 14px;
    color: #5f6368;
    transition: all 0.3s;
}

/* 复制成功状态 */
.person-info-copy-btn.copied {
    background: #34c759;
    opacity: 1;
}

.person-info-copy-btn.copied .material-icons {
    color: white;
}

/* 复制失败状态 */
.person-info-copy-btn.copy-error {
    background: #ff3b30;
    opacity: 1;
}

.person-info-copy-btn.copy-error .material-icons {
    color: white;
}

/* 性别图标特殊样式 - 根据性别动态改变颜色 */
#person-gender-icon {
    transition: color 0.2s;
}

/* 电话号码显示 */
.person-phone-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-country-code {
    font-weight: 500;
    color: #202124;
    font-size: 13px;
}

.phone-number {
    font-weight: 500;
    color: #202124;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .person-info-panel {
        max-width: calc(100vw - 32px);
    }
}
