/* Neighbor Page Styles */

.Neighbor_Container {
    margin: 30px 20px;
}

.Neighbor_Head {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.Neighbor_Head_Content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.Neighbor_Image {
    flex-shrink: 0;
}

.Neighbor_Image img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.Neighbor_Head_Text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.Neighbor_Icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.Neighbor_Icon_Owner,
.Neighbor_Icon_Me {
    flex-shrink: 0;
}

.Neighbor_Icon_Owner img,
.Neighbor_Icon_Me img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.Neighbor_Page_Text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.Neighbor_Title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.2;
    word-break: break-word;
}

.Neighbor_Topic {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.Neighbor_Relation {
    display: inline-block;
    margin-top: auto;
}

.Neighbor_Add {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.Neighbor_Add:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.Neighbor_Is {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.Neighbor_Summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.Neighbor_Summary_Item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.Neighbor_Summary_Count {
    font-size: 36px;
    font-weight: 700;
    color: #FF9800;
    line-height: 1;
    margin-bottom: 8px;
}

.Neighbor_Summary_Label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.Neighbor_Cousin,
.Neighbor_Fans {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.Neighbor_Cousin_Title,
.Neighbor_Fans_Title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.Neighbor_Cousin_Count,
.Neighbor_Fans_Count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #FF9800;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.Neighbor_Cousin_Item,
.Neighbor_Fans_Item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.Neighbor_Cousin_Item:last-child,
.Neighbor_Fans_Item:last-child {
    border-bottom: none;
}

.Neighbor_Cousin_Item:hover,
.Neighbor_Fans_Item:hover {
    background: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

.Neighbor_Cousin_Item img,
.Neighbor_Fans_Item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.Neighbor_Nick {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.Neighbor_Empty {
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.Neighbor_My {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.Neighbor_My_Title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.Neighbor_My_Count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #FF9800;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.Neighbor_My_Cousin,
.Neighbor_My_Oneway {
    margin-bottom: 20px;
}

.Neighbor_My_Cousin:last-child,
.Neighbor_My_Oneway:last-child {
    margin-bottom: 0;
}

.Neighbor_My_Group_Title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.Neighbor_My_Group_Count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.Neighbor_My_Item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.Neighbor_My_Item:last-child {
    border-bottom: none;
}

.Neighbor_My_Item:hover {
    background: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

.Neighbor_My_Item_Left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.Neighbor_My_Item_Left img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.Neighbor_My_Item_Right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.Neighbor_My_Go {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.Neighbor_My_Go:hover {
    background: #1976D2;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.Neighbor_My_Del_Form {
    display: inline;
    margin: 0;
}

.Neighbor_My_Del {
    background: #f44336;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.Neighbor_My_Del:hover {
    background: #d32f2f;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .Neighbor_Head_Content {
        flex-direction: column;
        gap: 20px;
    }

    .Neighbor_Image img {
        width: 100%;
        max-width: 300px;
    }

    .Neighbor_Title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .Neighbor_Container {
        margin: 20px 15px;
    }

    .Neighbor_Head {
        padding: 20px;
    }

    .Neighbor_Head_Content {
        gap: 15px;
    }

    .Neighbor_Image img {
        width: 100%;
    }

    .Neighbor_Title {
        font-size: 24px;
    }

    .Neighbor_Icons {
        gap: 10px;
    }

    .Neighbor_Icon_Owner img,
    .Neighbor_Icon_Me img {
        width: 50px;
        height: 50px;
    }

    .Neighbor_Summary {
        padding: 15px;
    }

    .Neighbor_Summary_Count {
        font-size: 28px;
    }

    .Neighbor_Cousin,
    .Neighbor_Fans,
    .Neighbor_My {
        padding: 15px;
    }

    .Neighbor_Cousin_Title,
    .Neighbor_Fans_Title,
    .Neighbor_My_Title {
        font-size: 14px;
    }

    .Neighbor_Page_Text {
        font-size: 11px;
    }

    .Neighbor_Topic {
        font-size: 13px;
    }

    .Neighbor_My_Item {
        flex-wrap: wrap;
    }

    .Neighbor_My_Item_Right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
        gap: 6px;
    }

    .Neighbor_My_Go,
    .Neighbor_My_Del {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .Neighbor_Container {
        margin: 15px 10px;
    }

    .Neighbor_Head {
        padding: 15px;
    }

    .Neighbor_Title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .Neighbor_Page_Text {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .Neighbor_Topic {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .Neighbor_Add,
    .Neighbor_Is {
        padding: 8px 16px;
        font-size: 13px;
    }

    .Neighbor_Summary_Count {
        font-size: 24px;
    }

    .Neighbor_Summary_Label {
        font-size: 12px;
    }

    .Neighbor_Cousin_Item img,
    .Neighbor_Fans_Item img,
    .Neighbor_My_Item_Left img {
        width: 40px;
        height: 40px;
    }

    .Neighbor_Nick {
        font-size: 13px;
    }

    .Neighbor_My_Group_Title {
        font-size: 12px;
    }

    .Neighbor_My_Item {
        flex-direction: column;
        align-items: flex-start;
    }

    .Neighbor_My_Item_Left {
        width: 100%;
    }

    .Neighbor_My_Item_Right {
        width: 100%;
    }

    .Neighbor_My_Go,
    .Neighbor_My_Del {
        flex: 1;
        text-align: center;
    }
}
