/* 顶栏「个人档案」：弹层展示与旧版 profile 页一致的个人资料字段 */

/* z-index 需高于登录弹窗(10050)与安全验证层(10100)，避免被挡住看不见 */
.oh-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
    background: rgba(15, 23, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.oh-profile-modal.is-open {
    display: flex;
}

.oh-profile-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 640px);
    overflow: auto;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.25rem, 3vw, 1.75rem) 1.5rem;
    box-sizing: border-box;
}

.oh-profile-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.oh-profile-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.oh-profile-modal__title {
    margin: 0 2rem 1.25rem 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.02em;
}

.oh-profile-modal__info {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.oh-profile-modal__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.oh-profile-modal__row:last-child {
    border-bottom: none;
}

.oh-profile-modal__label {
    flex: 0 0 5.5rem;
    font-weight: 700;
    color: #555;
}

.oh-profile-modal__value {
    flex: 1 1 12rem;
    color: #222;
    word-break: break-word;
}

.oh-profile-modal__hint {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.88rem;
    color: #888;
    min-height: 1.25em;
}

.oh-profile-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.oh-profile-modal__actions .oh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.oh-profile-modal__actions .oh-btn--ghost {
    background: transparent;
    color: #444;
    border: 1px solid #ccc;
}

.oh-profile-modal__actions .oh-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.oh-profile-modal__actions .oh-btn--primary {
    background: linear-gradient(135deg, #e8c82a, #d4a017);
    color: #2a3228;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.oh-profile-modal__actions .oh-btn--primary:hover {
    filter: brightness(1.05);
}
