/* ========== 打手列表页 ========== */
.player-page {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #1c2450 0%, #101632 260px, #0d1128 100%);
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* ---------- 搜索 ---------- */
.player-search {
    padding: 14px 12px 4px;
}

.player-search-box {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border-radius: 20px;
}

.player-search-box svg {
    flex: none;
    margin-right: 8px;
}

.player-search-box input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.player-search-box input::placeholder {
    color: #9aa3b2;
}

/* ---------- 打手卡片 ---------- */
.player-cards {
    padding: 10px 12px 0;
}

.player-card {
    display: flex;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.player-card-side {
    flex: none;
    margin-right: 12px;
}

.player-card-avatar-wrap {
    position: relative;
    width: 66px;
}

.player-card-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 12px;
    background: #e8ebf2;
    overflow: hidden;
}

.player-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card-online {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    min-width: 44px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #fff;
    background: #2f7cf6;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    box-sizing: border-box;
}

.player-card-online.off {
    background: #b6bdc9;
}

.player-card-main {
    flex: 1;
    min-width: 0;
}

.player-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.player-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
}

.player-card-sex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
}

.player-card-sex.male {
    background: #3d8bff;
}

.player-card-sex.female {
    background: #ff6b81;
}

.player-card-tag {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.player-card-tag.star {
    background: #e3efff;
    color: #2f7cf6;
}

.player-card-tag.area {
    background: #f2f3f7;
    color: #8a93a6;
}

.player-card-intro {
    margin-top: 6px;
    font-size: 12px;
    color: #8a93a6;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.player-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.player-card-score {
    color: #ff9500;
    font-size: 13px;
    font-weight: bold;
}

.player-card-time {
    font-size: 11px;
    color: #b6bdc9;
}

.player-empty,
.player-tip {
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #8a93b0;
}

.player-tip {
    display: none;
}

/* ========== 打手详情页 ========== */
.player-page-detail {
    background: #eef1f6;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* ---------- 返回按钮 ---------- */
.player-back {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: max(12px, calc((100vw - 540px) / 2 + 12px));
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    cursor: pointer;
}

.player-back:active {
    background: rgba(0, 0, 0, .6);
}

/* ---------- 照片墙轮播 ---------- */
.player-swiper-wrap {
    position: relative;
}

.player-swiper {
    height: 100vw;
    max-height: 540px;
    background: linear-gradient(135deg, #2b3a75, #141d3f);
}

.player-swiper .swiper-wrapper,
.player-swiper .swiper-slide {
    height: 100%;
}

.player-swiper-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.player-swiper-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    min-width: 44px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
}

/* ---------- 打手资料 ---------- */
.player-profile {
    margin: 10px 12px 0;
    padding: 16px 14px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
}

.player-profile-avatar {
    position: relative;
    display: inline-block;
}

.player-profile-avatar img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8ebf2;
}

.player-profile-avatar > svg {
    display: block;
    width: 76px;
    height: 76px;
    padding: 16px;
    border-radius: 50%;
    background: #e8ebf2;
    box-sizing: border-box;
}

.player-profile-sex {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
}

.player-profile-sex.male {
    background: #3d8bff;
}

.player-profile-sex.female {
    background: #ff6b81;
}

.player-profile-name {
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #1b2a5e;
}

.player-profile-club {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    border-radius: 12px;
    background: #3a4152;
    color: #fff;
    font-size: 12px;
}

.player-profile-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.player-profile-tags .player-card-tag {
    margin: 0 3px;
}

.player-profile-score {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    color: #ff9500;
    font-size: 14px;
    font-weight: bold;
}

.player-profile-score .player-star {
    margin-right: 3px;
    color: #ff9500;
}

.player-profile-intro {
    margin-top: 10px;
    font-size: 13px;
    color: #8a93a6;
    line-height: 1.7;
    text-align: left;
    word-break: break-all;
}

/* ---------- 评价 ---------- */
.player-comment-section {
    margin: 10px 12px 0;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
}

.player-comment-title {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
}

.player-comment-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f2f3f7;
}

.player-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.player-comment-avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 50%;
    background: #e8ebf2;
}

.player-comment-main {
    flex: 1;
    min-width: 0;
}

.player-comment-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-comment-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.player-comment-time {
    font-size: 11px;
    color: #b6bdc9;
}

.player-comment-stars {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.player-star {
    margin-right: 2px;
}

.player-star-on {
    color: #ff3b30;
}

.player-star-off {
    color: #e0e3ea;
}

.player-comment-content {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    word-break: break-all;
}

.player-comment-empty,
.player-comment-loading,
.player-comment-nomore {
    padding: 14px 0 4px;
    text-align: center;
    font-size: 12px;
    color: #b6bdc9;
}

/* ---------- 底部操作栏 ---------- */
.player-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 540px;
    transform: translateX(-50%);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 10px rgba(27, 42, 94, .08);
    box-sizing: border-box;
}

.player-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
    color: #666;
    font-size: 11px;
}

.player-bar-item svg {
    margin-bottom: 2px;
}

.player-bar-btn {
    flex: 1;
    height: 44px;
    line-height: 44px;
    margin-left: 12px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(90deg, #ff9500, #ff5e1f);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ---------- 联系客服弹窗 ---------- */
.player-kefu-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.player-kefu-mask.show {
    opacity: 1;
    visibility: visible;
}

.player-kefu {
    position: relative;
    width: 320px;
    padding: 28px 20px 20px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    transform: scale(.85) translateY(10px);
    transition: transform .25s ease;
}

.player-kefu-mask.show .player-kefu {
    transform: scale(1) translateY(0);
}

.player-kefu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f2f3f7;
    color: #8a93a6;
    cursor: pointer;
}

.player-kefu-title {
    font-size: 17px;
    font-weight: bold;
    color: #1b2a5e;
}

.player-kefu-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #8a93a6;
}

.player-kefu-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 196px;
    height: 196px;
    margin: 14px auto 0;
    padding: 8px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.player-kefu-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-kefu-empty {
    font-size: 13px;
    color: #b6bdc9;
}

.player-kefu-wx {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.player-kefu-wx span {
    color: #2f7cf6;
    font-weight: bold;
}

.player-kefu-btn {
    margin-top: 12px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    background: linear-gradient(90deg, #3d8bff, #2f7cf6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ---------- 商品选择弹窗 ---------- */
.player-goods-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.player-goods-mask.show {
    opacity: 1;
    visibility: visible;
}

.player-goods-sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 540px;
    transform: translate(-50%, 100%);
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .25s ease;
}

.player-goods-mask.show .player-goods-sheet {
    transform: translate(-50%, 0);
}

.player-goods-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f2f3f7;
}

.player-goods-title {
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
}

.player-goods-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f2f3f7;
    color: #8a93a6;
    cursor: pointer;
}

.player-goods-search {
    padding: 10px 16px 0;
}

.player-goods-search-box {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    background: #f2f3f7;
    border-radius: 18px;
}

.player-goods-search-box svg {
    flex: none;
    margin-right: 8px;
}

.player-goods-search-box input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
}

.player-goods-search-box input::placeholder {
    color: #9aa3b2;
}

.player-goods-list {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
}

.player-goods-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f2f3f7;
    cursor: pointer;
}

.player-goods-item:last-child {
    border-bottom: none;
}

.player-goods-img {
    flex: none;
    width: 58px;
    height: 58px;
    margin-right: 10px;
    border-radius: 10px;
    background-color: #2b3a75;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.player-goods-info {
    flex: 1;
    min-width: 0;
}

.player-goods-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.player-goods-price {
    margin-top: 6px;
    color: #ff3b30;
    font-size: 16px;
    font-weight: bold;
}

.player-goods-price em {
    font-style: normal;
    font-size: 12px;
    margin-right: 1px;
}

.player-goods-btn {
    flex: none;
    margin-left: 10px;
    padding: 0 16px;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    background: linear-gradient(90deg, #ff9500, #ff5e1f);
    color: #fff;
    font-size: 13px;
}

.player-goods-empty,
.player-goods-tip {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #9aa3b2;
}