/* --- 头部区域 --- */
.header-container {
    position: relative;
    background-color: #fff;
    padding: 12px 12px 0 12px;
    overflow: visible;
}

.profile-card {
    background: linear-gradient(45deg, #FF6F67 0%, #FFB887 100%);
    border-radius: 12px;
    color: #fff;
    padding: 20px 16px 0 16px;
    position: relative;
    box-shadow: 0 4px 10px rgba(255, 111, 103, 0.2);
}

.user-info { position: relative; z-index: 2; }
.user-name { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.user-role { display: inline-flex; align-items: center; font-size: 13px; opacity: 0.95; margin-bottom: 12px; }
.user-role svg { width: 14px; height: 14px; margin-right: 4px; fill: currentColor; }

/* 当user-role隐藏时，增加user-name的margin-bottom，避免与interaction-row重叠 */
.user-role[style*="display: none"] + .interaction-row {
    margin-top: 8px;
}

.interaction-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding-bottom: 10px; }

/* 为开店方和房源方优化的样式 */
.profile-card.no-role .user-name {
    margin-bottom: 15px; 
}

.profile-card.no-role + .floating-avatar {
    /* 原来是25px，改为10px。
       作用：把头像往上提一点，减少对下方的压迫感 */
    top: 15px; 
}
.profile-card.no-brand .brand-strip {
    display: none;
}
.contact-status { display: flex; align-items: center; opacity: 0.9; }
.contact-status svg { margin-right: 4px; }
.view-data { display: flex; align-items: center; }
.view-data svg { margin-right: 4px; }

/* 头像堆叠 */
.avatar-pile { display: flex; margin-left: 6px; }
.avatar-pile img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #fff; margin-left: -6px; object-fit: cover; }
.avatar-pile img:first-child { margin-left: 0; }

/* 品牌条 */
.brand-strip {
    background: rgba(255,255,255,0.15);
    margin: 0 -16px; 
    padding: 8px 16px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.brand-left { display: flex; align-items: center; }
.brand-logo { width: 20px; height: 20px; background: #fff; border-radius: 50%; margin-right: 8px; color: #FF6B6B; text-align: center; line-height: 20px; font-weight: bold; font-size: 12px; }
.store-count { font-size: 12px; opacity: 0.9; }

/* 悬浮大头像 */
.floating-avatar {
    position: absolute;
    top: 25px; 
    right: 28px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #eee;
    border: none;
    z-index: 10;
    overflow: hidden;
}
.floating-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 为开店方和房源方调整头像位置（向上移动） */
.profile-card.no-role .floating-avatar {
    top: 15px;
}

/* --- 简介区域 --- */
.bio-section {
    background: #fff;
    padding: 16px 16px 10px 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* --- Tabs --- */
.tabs-container { display: flex; background: var(--bg-color); padding: 10px 16px; }
.tab-item { font-size: 18px; font-weight: 500; color: #999; margin-right: 24px; padding: 8px 0; cursor: pointer; position: relative; }
.tab-item.active { color: #333; font-weight: bold; }
.tab-count { font-size: 16px; }

/* --- 列表区域 --- */
.list-container { padding: 0 12px 100px 12px; } /* 底部留白给悬浮banner */

/* 空状态样式 */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #999;
    background: #fff;
    border-radius: 12px;
    margin: 12px 0;
}

.list-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.1s;
}
.list-card:active { transform: scale(0.98); }

.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 10px; }
.meta-item { display: flex; align-items: center; }
.meta-item svg { width: 12px; height: 12px; margin-right: 4px; fill: #999; }
.meta-item-right { margin-left: auto; }
.meta-item-blue { background-color: #E6F3FF; color: #1890FF; padding: 2px 8px; border-radius: 4px; font-weight: 500; }

.card-content { display: flex; justify-content: space-between; align-items: flex-end; }
.card-left { flex: 1; margin-right: 12px; }
.card-title {
    font-size: 16px; font-weight: 600; color: #111; line-height: 1.4;
    margin-top: 8px; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-price-row { display: flex; flex-direction: row; align-items: center; margin-bottom: 8px; }
.area-highlight { color: #FF4D4F; font-size: 17px; font-weight: 600; margin-right: 8px; }
.price-normal { color: #999; font-size: 13px; }

.tags-row { display: flex; overflow: hidden; white-space: nowrap; }
.tag { background: #F2F3F5; color: #666; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-right: 6px; margin-bottom: 4px; }

.card-image-box { position: relative; width: 90px; height: 75px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.card-image-box img { width: 100%; height: 100%; object-fit: cover; }
.img-count-badge { position: absolute; bottom: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; padding: 2px 6px; border-top-left-radius: 6px; }