.banner {
    height: 220px;
    color: #fff;
    margin-top: 30px;
    background: linear-gradient(90deg, rgba(254, 86, 77, 1) 0%, rgba(251, 155, 54, 1) 50.4%, rgba(249, 202, 38, 1) 98%);
}

.content {
    top: 40px;
}

.banner-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 51px;
}

.content {
    background-color: #fff;
    width: 100%;
    margin-bottom: 40px;
    padding: 30px 0;
}

.title {
    font-size: 20px;
    color: #3F3535;
    margin-bottom: 20px;
}

.information {
    display: flex;
    align-items: center;
}

.rank {
    text-align: center;
    color: #666;
    line-height: 28px;
    font-size: 16px;
    margin-right: 20px;
}

.color1 {
    color: #FF6C36;
}

.score {
    color: #666;
    font-size: 16px;
}

.percent {
    height: 20px;
    border-radius: 50px;
    background-color: rgba(238, 238, 238, 1);
    border: 1px solid rgba(221, 221, 221, 1);
    position: relative;
    margin: 17px 0 10px;
}

.percent font {
    display: block;
    height: 100%;
    border-radius: 50px;
    background-color: rgba(255, 107, 53, 1);
}

.percent span {
    font-size: 20px;
    position: absolute;
    left: 100%;
    top: 100%;
}

.record span {
    margin-right: 20px;
    font-size: 14px;
    color: #999;
}

.avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    padding: 16px; /* 环宽 */
    background: linear-gradient(#0000, #0000) padding-box, /* 内层透明占位 */ conic-gradient(from 180deg, #ffffff, #ffffff, #ffffff, #ffffff) border-box;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}


.avatar {
    position: relative;
}

.avatar::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(73, 180, 255, 0.5);
    animation: ripple 1.8s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(.9);
        opacity: .9;
    }
    100% {
        transform: scale(.95);
        opacity: 0;
    }
}

.ny-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ny-modal {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    transform: translateY(8px);
    animation: nyPop .18s ease-out forwards;
}

@keyframes nyPop {
    to {
        transform: translateY(0);
    }
}

.ny-modal-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #ff8a00, #ffb14a);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ny-modal-header .ny-x {
    border: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
}

.ny-modal-body {
    padding: 16px;
    color: #333;
}

.ny-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e6;
    color: #c25d00;
    font-weight: 600;
    border: 1px solid #ffe1c2;
    margin-bottom: 10px;
}

.ny-modal-body p {
    margin: 8px 0 0;
    line-height: 1.55;
    color: #444;
}

.ny-em {
    color: #ff7a00;
    font-weight: 700;
}

.ny-modal-footer {
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f3f3f3;
    background: #fff;
}

.ny-btn {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

.ny-btn-cancel {
    background: #fff;
    color: #ff7a00;
    border: 1px solid #ffd2a6;
}

.ny-btn-ok {
    background: #ff7a00;
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 122, 0, .25);
}

.ny-btn-ok:active {
    transform: translateY(1px);
}

.ny-stat {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #ffe1c2;
    background: #fff7ef;
    border-radius: 14px;
}

.ny-stat-item {
    flex: 1;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fff0df;
}

.ny-stat-label {
    font-size: 12px;
    color: #9a6b3a;
    font-weight: 800;
}

.ny-stat-val {
    margin-top: 4px;
    font-size: 16px;
    color: #3f3535;
    font-weight: 900;
}

.ny-stat-val span {
    color: #ff7a00;
    font-size: 20px;
}

.ny-stat-sub {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

/* ---- edit button ---- */
#editNickBtn {
    margin-left: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    vertical-align: middle;
}

#nickHint {
    margin-left: 10px;
    color: #888;
    font-size: 12px;
}

/* ---- orange/white modal ---- */
.ny-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ny-modal {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    transform: translateY(8px);
    animation: nyPop .18s ease-out forwards;
}

@keyframes nyPop {
    to {
        transform: translateY(0);
    }
}

.ny-modal-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #ff8a00, #ffb14a);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ny-modal-header .ny-x {
    border: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
}

.ny-modal-body {
    padding: 16px;
    color: #333;
}

.ny-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e6;
    color: #c25d00;
    font-weight: 700;
    border: 1px solid #ffe1c2;
    margin-bottom: 10px;
}

.ny-modal-body p {
    margin: 8px 0 0;
    line-height: 1.55;
    color: #444;
}

.ny-em {
    color: #ff7a00;
    font-weight: 800;
}

.ny-modal-footer {
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f3f3f3;
    background: #fff;
}

.ny-btn {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
}

.ny-btn-cancel {
    background: #fff;
    color: #ff7a00;
    border: 1px solid #ffd2a6;
}

.ny-btn-ok {
    background: #ff7a00;
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 122, 0, .25);
}

.ny-btn-ok:active {
    transform: translateY(1px);
}