/* 头像下拉卡片：按 2026-07 视觉稿整理 */
.b-header-userdrop .user-opearation {
    width: 334px;
    padding: 0 0 9px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 48, 78, .14);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: border-box;
    letter-spacing: 0;
}

.profile-card-head {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    border-radius: 10px 10px 0 0;
    background: #fff;
}

.profile-card-hero {
    display: grid;
    min-height: 88px;
    padding: 17px 15px;
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: center;
    column-gap: 12px;
    border-radius: 10px 10px 0 0;
    background: #fff;
    box-sizing: border-box;
}

.profile-card-hero .profile-card-user {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
    color: #152238;
}

.profile-card-user:hover {
    color: #152238;
}

.profile-card-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 2px;
    border: 3px solid #3b7df0;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
    box-sizing: border-box;
}

.profile-card-hero .profile-card-identity {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    gap: 0;
}

.profile-card-name {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: 136px;
    margin: 0;
    overflow: hidden;
    color: #152238;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: none;
}

.profile-card-member-badge {
    display: inline-flex;
    min-width: 80px;
    height: 20px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 6px;
    background: linear-gradient(135deg, #387cf0 0%, #2044b4 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    box-sizing: border-box;
}

.profile-card-member-badge .layui-icon {
    font-size: 11px;
}

.profile-card-member-badge.is-regular {
    min-width: 64px;
    background: #aab7c8;
}

.profile-card-actions {
    display: flex;
    width: 74px;
    flex: 0 0 74px;
    flex-direction: column;
    gap: 7px;
}

.profile-card-action {
    display: inline-flex;
    width: 74px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
    box-sizing: border-box;
}

.profile-card-action-primary {
    background: #2563eb;
    color: #fff;
}

.profile-card-action-secondary {
    background: #fff;
    color: #2563eb;
}

.profile-card-action-primary:hover,
.profile-card-action-primary:focus-visible {
    background: #fff;
    color: #2563eb;
    transform: translateY(-1px);
}

.profile-card-action-secondary:hover,
.profile-card-action-secondary:focus-visible {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.profile-card-action:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.profile-card-expire {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 108px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #6f8098;
    font-size: 14px;
    font-weight: 400;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: border-box;
}

.profile-card-expire .profile-card-expire-row,
.profile-card-expire .profile-card-download-inline {
    display: grid;
    width: 100%;
    height: 54px;
    padding: 0 8px;
    grid-template-columns: 16px minmax(0, 1fr) max-content;
    column-gap: 9px;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    color: #6f8098;
    font-size: 14px;
    font-weight: 400;
    line-height: 54px;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
}

.profile-card-download-inline:hover {
    color: #6f8098;
}

.profile-card-info-icon {
    width: 16px;
    margin-right: 0;
    color: #5598ff;
    font-size: 16px;
    text-align: center;
}

.profile-card-expire-row > span,
.profile-card-download-inline > span {
    min-width: 0;
    margin-right: 0;
}

.profile-card-expire .profile-card-download-inline > .profile-card-info-icon {
    grid-column: 1;
}

.profile-card-expire .profile-card-download-inline > span {
    grid-column: 2;
    justify-self: start;
}

.profile-card-expire .profile-card-download-inline > strong {
    display: block;
    width: auto;
    min-width: max-content;
    margin: 0 0 0 auto;
    grid-column: 3;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.profile-card-expire strong {
    justify-self: end;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.profile-card-expire .profile-card-expire-value {
    display: inline-flex;
    min-height: 20px;
    padding: 0 8px;
    align-items: center;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    line-height: 20px;
    box-sizing: border-box;
}

.profile-card-stats {
    position: relative;
    display: grid;
    height: 78px;
    padding: 0 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #edf1f6;
    box-sizing: border-box;
}

.profile-stat-card {
    position: relative;
    display: flex;
    width: auto;
    height: 78px;
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.profile-stat-card + .profile-stat-card::before {
    position: absolute;
    top: 25px;
    left: 0;
    width: 1px;
    height: 28px;
    background: #e5eaf1;
    content: "";
}

.profile-stat-card:hover {
    color: #2563eb;
    box-shadow: none;
}

.profile-stat-card strong {
    display: block;
    width: 100%;
    margin: 0 !important;
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
}

.profile-stat-label {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    color: #98a6b9;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.profile-stat-bad,
.profile-stat-bad:hover {
    color: #2563eb;
}

.profile-stat-bad strong {
    color: #2563eb;
}

.profile-stat-renew strong {
    font-size: 14px;
    line-height: 18px;
}

.b-header-userdrop .b-userdrop-entrance {
    display: flex;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 14px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    box-sizing: border-box;
}

.b-header-userdrop .b-userdrop-entrance:last-of-type {
    margin: 0;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item {
    display: flex;
    width: 50%;
    height: 54px;
    flex: 0 0 50%;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #43536a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    text-align: left;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: border-box;
    appearance: none;
    transition: color .18s ease;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover,
.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible {
    background: transparent;
    color: #2563eb;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.profile-entrance-icon {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin: 0 10px 0 0;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f3f5f8;
    color: #9ba5b0;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.profile-entrance-icon-cancel .layui-icon {
    font-size: 17px;
}

.profile-entrance-icon-cancel::after {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #9ba5b0;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    content: "×";
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover .profile-entrance-icon,
.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible .profile-entrance-icon {
    width: 34px;
    height: 34px;
    background: #eff6ff;
    box-shadow: 0 5px 10px rgba(37, 99, 235, .16);
    color: #2563eb;
    line-height: 34px;
    transform: translateY(-2px);
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover .profile-entrance-icon-cancel::after,
.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible .profile-entrance-icon-cancel::after {
    color: #2563eb;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item[aria-disabled="true"] {
    color: #9ba8b9;
    cursor: default;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item.login_out {
    cursor: pointer;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item[aria-disabled="true"] .profile-entrance-icon {
    background: #f3f5f8;
    color: #9ba5b0;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item .text {
    margin: 0;
    line-height: 20px;
    white-space: nowrap;
    transition: text-shadow .18s ease, transform .18s ease;
}

.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover .text,
.b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible .text {
    text-shadow: 0 2px 4px rgba(37, 99, 235, .14);
    transform: translateY(-2px);
}

.b-header-userdrop .b-userdrop-ban-notice {
    margin: 0 14px 10px;
}

@media (prefers-reduced-motion: reduce) {
    .profile-card-action,
    .profile-entrance-icon,
    .b-header-userdrop .b-userdrop-entrance .b-entrance-item .text {
        transition: none;
    }

    .profile-card-action:hover,
    .profile-card-action:focus-visible,
    .b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover .profile-entrance-icon,
    .b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible .profile-entrance-icon,
    .b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):hover .text,
    .b-header-userdrop .b-userdrop-entrance .b-entrance-item:not([aria-disabled="true"]):focus-visible .text {
        transform: none;
    }
}
