.friend-index-page .community-pc-header .city-select-pc {
    display: none;
}

.friend-edit-page .req {
    color: #f44336;
    margin-right: 2px;
}

.friend-edit-page .form-group.is-missing .control-label {
    color: #f44336;
}

.friend-hobby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-hobby-grid label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--cm-border, #eee);
    border-radius: 16px;
    font-weight: normal;
    font-size: 13px;
    cursor: pointer;
}

.friend-hobby-grid input:checked + span,
.friend-hobby-grid label:has(input:checked) {
    border-color: var(--cm-primary, #00c3ce);
    color: var(--cm-primary, #00c3ce);
    background: rgba(0, 195, 206, 0.08);
}

.friend-edit-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cm-border, #eee);
}

.friend-readonly-value {
    min-height: 38px;
    padding: 8px 0;
    color: var(--cm-text-muted, #666);
    font-size: 14px;
}

/* 交友模块 */
.friend-page {
    padding-bottom: 0;
    background: #fff;
}

.friend-index-page .community-main {
    padding-top: 0;
}

/* 顶部：城市 + 搜索 */
.friend-home-header {
    background: var(--cm-primary, #00c3ce);
    padding: 8px 0;
}

.friend-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.friend-city-select {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    max-width: 88px;
    color: #fff;
    text-decoration: none;
}

.friend-city-name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-city-select .fa {
    font-size: 14px;
}

.friend-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 6px 14px;
    min-height: 36px;
    min-width: 0;
}

.friend-search-box .fa-search {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

.friend-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    min-width: 0;
}

/* 功能入口 4x2 */
.friend-func-blocks {
    background: #fff;
    border-bottom: 1px solid var(--cm-border, #f0f0f0);
}

.friend-func-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0 4px;
}

.friend-func-item {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.friend-func-item:active {
    opacity: 0.75;
}

.friend-func-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: #fff;
    font-size: 18px;
}

.friend-func-icon.teal { background: linear-gradient(135deg, #00c3ce, #00a8b0); }
.friend-func-icon.blue { background: linear-gradient(135deg, #2979ff, #42a5f5); }
.friend-func-icon.pink { background: linear-gradient(135deg, #e91e63, #f48fb1); }
.friend-func-icon.red { background: linear-gradient(135deg, #f44336, #ef5350); }
.friend-func-icon.orange { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.friend-func-icon.purple { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.friend-func-icon.gold { background: linear-gradient(135deg, #ffc107, #ffca28); }
.friend-func-icon.gray { background: linear-gradient(135deg, #9e9e9e, #bdbdbd); }

.friend-func-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .friend-func-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .friend-func-name {
        font-size: 13px;
    }
}

.friend-sort-tabs-wrap {
    background: #fff;
    border-bottom: 1px solid var(--cm-border, #eee);
}

.friend-sort-tabs {
    display: flex;
    gap: 20px;
    padding: 0 4px;
}

.friend-sort-tab {
    padding: 12px 4px;
    font-size: 15px;
    color: var(--cm-text-muted, #999);
    text-decoration: none;
    position: relative;
}

.friend-sort-tab.active {
    color: var(--cm-primary, #00c3ce);
    font-weight: 600;
}

.friend-sort-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--cm-primary, #00c3ce);
}

.friend-location-tip {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(0, 195, 206, 0.08);
    border-radius: var(--cm-radius, 8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.friend-location-tip p {
    margin: 0;
    font-size: 13px;
}

.friend-body-wrap {
    background: var(--cm-bg, #f5f5f5);
}

.friend-user-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.friend-grid-item {
    width: calc(33.333% - 6px);
    background: #fff;
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .friend-grid-item {
        width: calc(25% - 6px);
    }
}

.friend-grid-avatar-wrap {
    position: relative;
    margin-bottom: 8px;
}

.friend-grid-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--cm-bg, #f0f0f0);
}

.friend-grid-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
}

.friend-match-badge {
    position: absolute;
    right: -2px;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #fff;
}

.friend-grid-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-grid-sub {
    font-size: 11px;
    color: var(--cm-primary, #00c3ce);
    margin-top: 4px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-loadmore {
    padding: 8px 0 20px;
    text-align: center;
}

.friend-nomore {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbb;
    font-size: 13px;
}

.friend-nomore::before,
.friend-nomore::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.friend-tip {
    margin: 12px;
    padding: 12px 16px;
    background: #fff8e6;
    border-radius: var(--cm-radius, 8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.friend-tip p {
    margin: 0;
    font-size: 13px;
}

.friend-tip-info {
    background: rgba(0, 195, 206, 0.08);
}

/* 子页面：喜欢/打招呼/礼物 */
.friend-sub-page {
    padding-bottom: 24px;
    background: var(--cm-bg, #f5f5f5);
    min-height: 60vh;
}

.friend-sub-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid var(--cm-border, #eee);
    margin-bottom: 8px;
}

.friend-sub-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

.friend-sub-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.friend-sub-tip {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--cm-text-muted, #999);
}

.friend-record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.friend-record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.friend-record-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cm-bg, #f0f0f0);
}

.friend-record-info {
    flex: 1;
    min-width: 0;
}

.friend-record-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.friend-record-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.friend-record-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.friend-record-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.friend-record-msg {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.friend-record-tag {
    font-size: 11px;
    color: var(--cm-primary, #00c3ce);
    flex-shrink: 0;
}

.friend-record-gift-line {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.friend-record-gift-name {
    color: var(--cm-primary, #00c3ce);
    margin-right: 6px;
}

.friend-record-gift-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.friend-record-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
}

.friend-vip-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
    border-radius: 8px;
}

.friend-vip-banner .fa-lock {
    font-size: 24px;
    color: #ff9800;
}

.friend-vip-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.friend-vip-banner-text strong {
    font-size: 14px;
    color: #333;
}

.friend-vip-banner-text span {
    font-size: 12px;
    color: #666;
}

.friend-gift-tabs-wrap {
    background: #fff;
    border-bottom: 1px solid var(--cm-border, #eee);
    margin-bottom: 8px;
}

.friend-gift-tabs {
    display: flex;
    gap: 24px;
}

.friend-gift-tab {
    padding: 12px 4px;
    font-size: 15px;
    color: var(--cm-text-muted, #999);
    text-decoration: none;
    position: relative;
}

.friend-gift-tab.active {
    color: var(--cm-primary, #00c3ce);
    font-weight: 600;
}

.friend-vip-block {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 8px;
    margin-top: 12px;
}

.friend-vip-block .fa-lock {
    font-size: 48px;
    color: var(--cm-primary, #00c3ce);
    margin-bottom: 16px;
}

.friend-vip-block h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.friend-vip-block p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.friend-search-form {
    margin-top: 8px;
}

.friend-range-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-range-input span {
    color: #999;
}

.friend-search-result {
    padding-bottom: 24px;
}

.friend-search-result-title {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 8px;
}

/* legacy grid - keep for compatibility */
.friend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 12px;
}

@media (min-width: 768px) {
    .friend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.friend-card {
    background: #fff;
    border-radius: var(--cm-radius, 8px);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--cm-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.friend-card-cover {
    aspect-ratio: 3/4;
    background: var(--cm-bg, #f5f5f5);
    overflow: hidden;
}

.friend-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--cm-text-muted, #ccc);
    font-size: 32px;
}

.friend-card-body {
    padding: 10px;
}

.friend-card-name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-card-meta {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--cm-text-muted, #999);
}

.friend-card-edu {
    font-size: 12px;
    color: var(--cm-primary, #00c3ce);
    margin-top: 4px;
}

.friend-card-intro {
    font-size: 12px;
    color: var(--cm-text-muted, #999);
    margin: 6px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-profile-page {
    padding-bottom: 8px;
}

.friend-action-section {
    margin-bottom: 0;
}

.friend-action-section .friend-action-grid {
    gap: 10px;
}

.friend-action-section .friend-action-btn {
    padding: 12px 4px;
    border-radius: 10px;
    background: var(--cm-bg, #f8f8f8);
    border-color: transparent;
}

.friend-profile-hero {
    position: relative;
    margin-bottom: 12px;
}

.friend-profile-cover {
    height: 180px;
    background: linear-gradient(135deg, #00c3ce 0%, #7de8ef 100%);
    overflow: hidden;
}

.friend-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.friend-profile-back {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cm-text, #333);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.friend-profile-hero-card {
    position: relative;
    margin-top: -48px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 12px 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.friend-profile-head-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.friend-profile-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--cm-bg, #f5f5f5);
    margin-top: -36px;
}

.friend-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-profile-head-main {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.friend-profile-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.friend-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.friend-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--cm-bg, #f5f5f5);
    font-size: 12px;
    color: var(--cm-text-muted, #666);
}

.friend-profile-intro {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cm-text, #333);
}

.friend-profile-stats {
    display: flex;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--cm-border, #eee);
}

.friend-stat-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--cm-text-muted, #999);
}

.friend-stat-item strong {
    display: block;
    font-size: 18px;
    color: var(--cm-text, #333);
    margin-bottom: 2px;
}

.friend-profile-body {
    padding-bottom: 12px;
}

.friend-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.friend-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
}

.friend-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.friend-card-head .friend-card-title {
    margin: 0;
}

.friend-info-list {
    display: flex;
    flex-direction: column;
}

.friend-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cm-border, #f0f0f0);
    font-size: 14px;
}

.friend-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.friend-info-row:first-child {
    padding-top: 0;
}

.friend-info-row .label {
    flex-shrink: 0;
    width: 72px;
    color: var(--cm-text-muted, #999);
    font-size: 13px;
}

.friend-info-row .value {
    flex: 1;
    text-align: right;
    color: var(--cm-text, #333);
    word-break: break-all;
}

.friend-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.friend-section-head .section-title {
    margin: 0;
}

.friend-section-link {
    font-size: 13px;
    color: var(--cm-primary, #00c3ce);
    text-decoration: none;
}

.friend-album-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--cm-text-muted, #999);
}

.friend-album-empty p {
    margin: 0 0 10px;
}

.friend-album-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.friend-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.friend-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border: 1px solid var(--cm-border, #eee);
    border-radius: 8px;
    background: #fff;
    color: var(--cm-text, #333);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.friend-action-btn i {
    font-size: 18px;
}

.friend-action-btn.active {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

.friend-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.friend-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.friend-modal-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    overflow-y: auto;
}

.friend-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.friend-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.friend-modal-close {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: var(--cm-text-muted, #999);
}

.friend-greet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-greet-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--cm-border, #eee);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.friend-greet-item:active {
    background: var(--cm-primary-light, rgba(0, 195, 206, 0.08));
    border-color: var(--cm-primary, #00c3ce);
}

.friend-gift-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.friend-gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--cm-border, #eee);
    border-radius: 8px;
    background: #fff;
}

.friend-gift-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.friend-gift-item .gift-name {
    font-size: 13px;
}

.friend-gift-item .gift-price {
    font-size: 12px;
    color: var(--cm-primary, #00c3ce);
}

.friend-album-edit {
    margin-top: 12px;
}

.friend-album-edit-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.friend-album-edit-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.btn-album-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    padding: 0;
}

.friend-album-add {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px dashed var(--cm-border, #ddd);
    border-radius: 6px;
    background: var(--cm-bg, #f5f5f5);
    color: var(--cm-text-muted, #999);
    font-size: 24px;
}

.friend-profile-actions .btn {
    flex: 1;
}

.friend-profile-header {
    position: relative;
    background: #fff;
    margin-bottom: 8px;
}

/* legacy selectors kept for compatibility */
.friend-profile-info {
    position: relative;
    padding: 0 12px 16px;
    margin-top: -40px;
}

.friend-back-link {
    display: inline-block;
    font-size: 24px;
    color: var(--cm-text, #333);
    text-decoration: none;
    margin-bottom: 8px;
}

.friend-profile-name {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
}

.friend-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 195, 206, 0.12);
    color: var(--cm-primary, #00c3ce);
    font-weight: normal;
    margin-left: 4px;
}

.friend-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--cm-text-muted, #999);
}

.friend-profile-intro {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.friend-profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--cm-text-muted, #999);
}

.friend-profile-section {
    background: #fff;
    padding: 16px 12px;
    margin-bottom: 8px;
}

.friend-profile-section .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.friend-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.friend-info-item {
    font-size: 14px;
}

.friend-info-item .label {
    display: block;
    font-size: 12px;
    color: var(--cm-text-muted, #999);
    margin-bottom: 2px;
}

.friend-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.friend-album-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.friend-contact-lock {
    text-align: center;
    padding: 20px;
    color: var(--cm-text-muted, #999);
}

.friend-contact-lock i {
    font-size: 32px;
    margin-bottom: 8px;
}

.friend-profile-actions {
    /* 保留类名兼容，资料页操作区已改为页面内联卡片 */
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: auto;
}

.friend-profile-actions .community-container {
    padding-left: 12px;
    padding-right: 12px;
}

.btn-like-friend.active {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

/* 编辑页 */
.friend-edit-page {
    padding-bottom: 24px;
}

.friend-cover-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-cover-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cm-bg, #f5f5f5);
}

.friend-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-radio-group {
    display: flex;
    gap: 16px;
}

.friend-radio-group label {
    font-weight: normal;
    margin: 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cm-border, #eee);
}

.form-row-group {
    display: flex;
    gap: 12px;
}

.form-row-group .col-half {
    flex: 1;
}

.friend-need-profile {
    padding: 40px 0;
}

/* 地区选择 */
.area-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.area-picker-trigger:active {
    background: var(--cm-bg, #f5f5f5);
}

.area-picker-value {
    flex: 1;
    font-size: 14px;
    color: var(--cm-text, #333);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-picker-value.is-placeholder {
    color: var(--cm-text-muted, #999);
}

.area-picker-trigger .fa-angle-right {
    color: var(--cm-text-muted, #ccc);
    font-size: 16px;
}

.area-picker-panel {
    padding: 4px 0 0;
}

.area-picker-tip {
    font-size: 12px;
    color: var(--cm-text-muted, #999);
    margin-bottom: 12px;
    line-height: 1.5;
}

.area-picker-fields .form-group {
    margin-bottom: 12px;
}

.area-picker-fields .form-group:last-child {
    margin-bottom: 0;
}
