
.right-btn {
    position: fixed;
    top: 20px;
    right: 15%;
    display: flex;
    z-index: 1000;
}
/* 语言切换按钮（旁边有退出按钮，外面外一层） */
.x-language-switch-top-right1 {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
/* 语言切换按钮（旁边无退出按钮） */
.x-language-switch-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.x-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

    .x-lang-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .x-lang-btn.x-lang-active {
        background-color: #000000;
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .x-lang-btn.x-lang-active:hover {
            background-color: #14171a;
        }

/* 主容器 - 相对定位锚点 */
.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 头像触发器区域 */
.avatar-trigger {
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.2s;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
    z-index: 10;
}

    .avatar-trigger:hover {
        transform: scale(1.02);
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
    }

.avatar-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f2f8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    transition: all 0.2s;
    overflow: hidden;
    margin-left: 15px;
}

    .avatar-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        background-color: #eef2ff;
    }

/* 下拉卡片 - 初始隐藏，优雅弹出 */
.dropdown-card {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 330px;
    background: #fff;
    backdrop-filter: blur(0px);
    border-radius: 20px;
    box-shadow: 0 30px 50px -12px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0.28s, transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.6);
    pointer-events: none; /* 隐藏时不可点击 */
}

    /* 下拉卡片显示状态 */
    .dropdown-card.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto; /* 显示时接收点击 */
    }

/* 卡片内容 */
.card-inner {
    padding: 1.3rem 1.5rem 1.5rem;
}

/* 紧凑信息区 */
.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eff1f5;
    padding-bottom: 1rem;
}

.card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f1f4fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid white;
    overflow: hidden;
}

    .card-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.info-name h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.info-name p {
    font-size: 0.7rem;
    color: #6c86a3;
    margin-top: 4px;
}

/* 详情条目 */
.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f2f7;
}

    .detail-item:last-of-type {
        border-bottom: none;
    }

.detail-icon {
    width: 32px;
    text-align: center;
    color: #4b6584;
    font-size: 1rem;
}

.detail-content {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
}

.detail-label {
    font-size: 0.7rem;
    color: #8b9bb0;
    font-weight: 400;
}

/* 三个 icon 链接区域 */
.social-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1.25rem 0 1.2rem 0;
    padding: 0.3rem 0;
    background: #fafcff;
    border-radius: 60px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .social-icon img {
        width: 46px;
        height: auto;
        background: white;
        border-radius: 50%;
        color: #2c3e66;
        font-size: 1.4rem;
        transition: all 0.2s ease;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        border: 1px solid #eef2f8;

    }
    .social-icon .social-info {
        display: inline-block;
        font-size: 12px;
        color: #8b9bb0;
        margin-top: 8px;
    }
    .social-icon img:hover {
        transform: translateY(-3px);
        background: #f0f4fa;
        color: #0f2b3d;
        border-color: #cbdde9;
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    }

/* 退出按钮 */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 0;
    background: #eff6ff;
    border: none;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.2rem;
    font-family: inherit;
}

    .logout-btn i {
        font-size: 1rem;
    }

    .logout-btn:hover {
        background: #ffe6e3;
        color: #b91c1c;
        transform: scale(0.98);
    }

/* 小三角箭头 */
.dropdown-card::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-top-left-radius: 4px;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-left: 1px solid rgba(0,0,0,0.03);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.02);
    pointer-events: none;
}
