﻿/* 遮罩与卡片 */
.role-info-plane {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.56);
    z-index: 200;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 卡片主体 */
.role-info-card {
    width: 760px;
    max-width: calc(100% - 40px);
    background: var(--btn_bg_s);
    color: var(--btn_color_q);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 64px; /* 留出底部按钮与关闭按钮空间 */
}

/* 顶部区域 */
.ri-top {
    padding: 15px;
    border-bottom: 1px solid #a0a0a082;
    display: flex;
    position: relative; /* 使 avatar absolute 定位基于卡片 */
}

.ri-top-inner {
    display: flex;
    gap: 18px;
    width: 100%;
    align-items: flex-start;
}

/* 将头像与头像框绝对定位到卡片的右上角 */
.ri-avatar-wrap {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.ri-avatar-img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ri-avatar-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    pointer-events: none;
}

/* 基础信息列：每条单独一行 */
.ri-basic {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ri-line {
    display: flex;
    gap: 0px;
    align-items: center;
    border-bottom: 1px solid #69696969;
}

.ri-line-label {
    min-width: 64px;
    font-size: 13px;
    color: #c4c4c4;
}

.ri-line-value {
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
}

.mono {
    font-family: monospace;
    color: #8a8a8a;
}

/* 经验进度条（宽度90%） */
.ri-progress-wrap {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    -webkit-justify-content: inherit;
    justify-content: inherit;   
}

.ri-progress {
    background: var(--btn_color_q);
    height: 12px;
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}

.ri-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#6bceff,#2aa8ff);
    width: 0%;
    transition: width .5s ease;
}

.ri-exp-text {
    font-size: 12px;
}

/* 签名区域（宽度90%，高度150px） */
.ri-sign-wrap {
    margin-top: 10px;
    width: 90%;
}

.ri-sign-input {
    width: 100%;
    height: 150px;
    resize: vertical;
    border: 1px solid #939393;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    background: #00000017;
    color: var(--btn_color_q);
}

.ri-sign-readonly {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    background: #00000017;
    color: var(--btn_color_q);
    overflow: auto;
    border: 1px solid #939393;
}

/* 点赞总数 */
.ri-like-total {
    margin-top: 8px;
    color: #cc6b00;
    font-weight: 600;
}

/* 底部：按钮（图标样式） */
.ri-bottom {
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.ri-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0px;
}

.ri-buttons-secondary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}
.ri-copy {
    border: 1px solid var(--btn_bg_s);
    background: var(--btn_bg_q);
    color: var(--btn_color_s);
    border-radius: 4px;
    margin-left: 10px;
}
/* 图标按钮 */
.ri-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--bg_bg_s);
    background: var(--bg_bg_q);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .ri-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 1px 0 rgba(0,0,0,0.03));
    }

    .ri-btn:hover {
        transform: translateY(-2px);
        transition: transform .12s ease;
    }

/* 固定右下角的关闭图标（不受按钮布局影响） */
.ri-close {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff00;
    border: 1px solid #e8e8e800;
    cursor: pointer;
    font-size: 18px;
    line-height: 38px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* 提示泡 */
.ri-tip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

    .ri-tip.show {
        opacity: 1;
    }
.ri-last-time {
    margin-left: 15px;
    font-size: 11px;
    color: #d4d4d4;
}